@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap');

@font-face {
    font-family: Oldenburg;
    src: url("./Oldenburg-Regular.ttf");
}

@font-face {
    font-family: IndieFlower;
    src: url("./IndieFlower-Regular.ttf");
}

:root {
    --font-title: IndieFlower, cursive;
    --font-normal: Oldenburg, sans-serif;
    --base-text-color-black: rgb(42, 42, 42);
    --base-filter-color: brightness(0%) invert(19%) sepia(91%) saturate(2204%) hue-rotate(190deg) brightness(86%) contrast(95%);
    --white-filter-color: brightness(0%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    --base-text-color: #065490;
    --header-animation-distance: 4rem;
}

html,
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--font-normal) !important;
    scroll-behavior: smooth;
    color: var(--base-text-color);
}

body:not(.iframe) {
    background-image: url('../viragminta.png'), url('../viragminta_rev.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: left bottom, top right;
    background-size: auto 40%;
}

html {
    min-height: 100vh;
}

body {
    flex: 1;
}

.recolor-base {
    filter: var(--base-filter-color);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    top: 0;
    left: 0;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.825);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.125);
    font-size: 1.05rem;
    overflow: hidden;
    z-index: 20;
    transition: transform 250ms, opacity 250ms;
}

#navbar.sticky {
    position: sticky;
}

#navbar:not(.sticky) {
    position: absolute;
}

#navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

#navbar .navbar-logo-container {
    order: 0;
}

#navbar .navbar-logo {
    display: flex;
    align-items: center;
    height: 3rem;
    font-size: 2rem;
    margin: 0 auto;
    text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15);
}

#navbar .navbar-logo .navbar-logo-link {
    color: var(--base-text-color);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-normal);
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0.5rem;
}

#navbar #navbar-items {
    list-style-type: none;
    margin: 0;
    padding: 0;
    user-select: none;
    text-align: center;
    order: 2;
}

#navbar #navbar-items li {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.5rem 0;
    position: relative;
    border-radius: 0.325rem;
    border-radius: 2rem;
    overflow: hidden;
}

#navbar #navbar-items li a {
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--base-text-color);
    font-weight: bold;
}

#navbar #navbar-items li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.125);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 0.325rem;
    transform: translateX(-101%);
    transition: opacity 300ms, transform 300ms;
    z-index: -1;
    overflow: hidden;
}

#navbar #navbar-items li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

#navbar-button {
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.2));
    width: 3rem;
    height: 3rem;
    order: 1;
    display: none;
}

#navbar-button .navbar-button-pic {
    background-image: url('../hamburger.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 85%;
    height: 100%;
    margin: 0 auto;
    display: none;
    cursor: pointer;
    filter: var(--base-filter-color);
}

.search-bar-container {
    position: relative;
}

.header {
    position: relative;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
    background-position: center;
    background-size: cover;
    color: white;
}

.header>div {
    width: 100%;
    max-width: 978px;
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.625);
    z-index: 0;
}

.header h1 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
}

.header p {
    margin: 0.5rem 0 0;
    font-size: 1.125rem;
}

.carousel-item {
    min-height: 14rem;
}

.carousel-item>div {
    width: 50vw;
}

#content {
    flex-wrap: wrap;
    position: relative;
    padding: 0 2rem 2rem;
    background-color: rgb(235, 235, 235);
    background-color: rgba(0, 0, 0, 0.08);
    margin: 0;
    flex: 1;
}

.search-items.special {
    margin-inline: -2rem;
}

.search-items.special .search {
    padding-inline: 3.5rem;
}

.search-items.special #items {
    padding-inline: 2rem;
}

.search-items.special.s2x {
    margin-inline: -3rem;
}

.search-items.special.s2x .search {
    padding-inline: 4rem;
}

.search-items.special.s2x #items {
    padding-inline: 3rem;
}

#content.flash {
    animation-name: flash;
    animation-delay: 200ms;
    animation-duration: 500ms;
    animation-iteration-count: 1;
}

@keyframes flash {
    50% {
        background-color: rgb(233, 211, 19, 0.325);
    }
}

#content>div {
    flex-basis: 100%;
}

#choose-category {
    overflow: hidden;
    max-height: 5000px;
    transition: max-height 200ms, opacity 200ms;
    transition-delay: 200ms;
}

#choose-category.hidden {
    max-height: 0;
    opacity: 0;
    transition: max-height 200ms, opacity 200ms;
}

#choose-category h2,
.search-items h2 {
    margin: 4.5rem 0 2.5rem;
    text-align: center;
}

.categories {
    padding: 0 5rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.category {
    width: 5rem;
    display: inline-block;
    margin: 0 2rem 2rem;
    padding: 2.5rem;
    max-width: 180px;
    transition: background-color 150ms;
    border-radius: 2.5rem;
    cursor: pointer;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category>div {
    width: 100%;
}

.category:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

.category>div:first-child {
    text-align: center;
}

.category img {
    width: 4rem;
    height: 4rem;
}

.category p {
    margin: 0.5rem -50% 0 -50%;
    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
}

.search {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 auto;
    max-width: 1280px;
    padding: 1.5rem 1.5rem 0;
    background-color: rgba(235, 235, 235, 0.85);
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.search>* {
    color: var(--base-text-color-black);
}

.search-items {
    min-height: 80vh;
    transition: opacity 200ms;
}

.search-items.hidden {
    opacity: 0;
}

input,
button {
    font-family: var(--font-normal);
    color: black;
}

.search input[type=text],
input.search-bar,
textarea.search-bar {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    font-size: 1rem;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    transition: box-shadow 200ms;
}

textarea.search-bar {
    resize: none;
    font-family: inherit;
    border-radius: 1rem;
}

.search input[type=text] {
    height: 3rem;
}

.search input[type=number] {
    width: 4.75rem;
    border: 0;
    outline: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.search input[type=text]:focus,
.search input[type=text]:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
}

.filters>* {
    display: inline-block;
}

.filter-list {
    background-color: white;
}

.search button {
    border: 0;
    outline: 0;
    font-size: 1rem;
    background-color: white;
}

.search #openFiltersBtn {
    margin: auto;
    font-weight: bold;
    color: white;
    background-color: rgb(17, 17, 17);
}

.search #openFiltersBtn:hover {
    background-color: rgb(42, 42, 42);
}

.blue-button {
    outline: 0;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin: 1rem auto 0;
    display: block;
    color: white;
    background-color: var(--base-text-color);
    transition: background-color 250ms;
}

.search #apply-filters {
    padding-inline: 1rem;
    color: white;
    background-color: var(--base-text-color);
}

.search #apply-filters:hover,
.blue-button:hover {
    background-color: #063f6b;
}

.filter-list,
.search button {
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 250ms;
    user-select: none;
}

.search #back-to-categories:hover {
    background-color: rgb(230, 230, 230);
}

.filter-list:hover {
    background-color: rgb(230, 230, 230);
}

.filter-list .filter-selected {
    width: 100%;
}

.filter-list .filter-selected,
.search button {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.filter-list .filter-selected img,
.search button img {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.filter-list .filter-list-options-container {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
}

.filter-list .filter-list-options {
    position: absolute;
    top: 0.5rem;
    left: calc(50% - 0.25rem);
    transform: translateX(-50%);
    max-height: 50vh;
    border-radius: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    background-color: white;
    overflow-x: hidden;
    overflow-y: auto;
    transition: max-height 300ms ease-in;
    -ms-overflow-style: none;
    z-index: 1;
}

.filter-list .filter-list-options::-webkit-scrollbar {
    width: 0.5rem;
    overflow: hidden;
}

.filter-list .filter-list-options::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
.filter-list .filter-list-options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 1rem 1rem 0;
}

/* Handle on hover */
.filter-list .filter-list-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.filter-list .filter-list-options.hidden {
    max-height: 0;
    transition: max-height 150ms ease-out;
}

.filter-list .filter-list-option {
    display: flex;
    padding: 0.5rem;
    transition: background-color 150ms;
}

.filter-list .filter-list-option p {
    margin: 0;
    flex-basis: 100%;
}

.filter-list .filter-list-option span {
    margin: 0 0.25rem;
    transition: opacity 150ms;
}

.filter-list .filter-list-option.filter-list-option-selected span {
    opacity: 1;
}

.filter-list .filter-list-option:not(.filter-list-option-selected) span {
    opacity: 0;
}

.filter-list .filter-list-option:hover {
    background-color: rgb(230, 230, 230);
}

.filter-price {
    display: flex;
    justify-content: space-between;
}

.filter-price>div {
    margin: 0.25rem 0.5rem;
}

#items {
    margin: 0.5rem auto 0 auto;
    max-width: 1280px;
    text-align: center;
}

.product-block {
    margin: 0.25rem;
    width: 30%;
    display: inline-block;
    text-align: left;
    border-radius: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 200ms, transform 200ms;
    vertical-align: top;
}

.product-block:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.product-block.sold {
    opacity: 0.45;
}

.sold-warning {
    font-weight: bold;
    color: rgb(117, 8, 8);
}

.sent-warning {
    font-weight: bold;
    color: rgb(66, 117, 8);
}

.product-block-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 1.5rem;
    margin-bottom: 0.25rem;
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.1)
}

.product-info {
    display: flex;
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 0 2rem;
    justify-content: space-evenly;
}

.product-info>div {
    padding: 0 1rem;
    flex-basis: 50%;
}

.product-images-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-images-container a:has(img) {
    filter: brightness(1.0);
    transition: filter 200ms;
}

.product-images-container a:has(img):hover {
    filter: brightness(0.75);
}

.product-image-container {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.product-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    padding: 0 !important;
    height: auto;
    overflow: hidden;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    order: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-other-images {
    width: 4rem;
    padding-right: 0.5rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    border-radius: 0.25rem;
    order: 0;
}

.product-other-images a {
    width: 100%;
    aspect-ratio: 1;
}

.product-other-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
    overflow: hidden;
}

.product-other-images a:not(:last-child) {
    margin-bottom: 0.5rem;
}

.product-type {
    font-weight: bold;
    font-size: 112.5%;
}

.product-materials {
    font-style: italic;
}

.events,
.about {
    max-width: 1280px;
    margin: 0.5rem auto 2rem;
}

.event {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.event:not(:last-child) {
    margin-bottom: 2rem;
}

.event>.event-pic {
    flex-basis: 20%;
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
}

.event:nth-of-type(even) {
    justify-content: flex-end;
}

.event:nth-of-type(even)>.event-pic {
    order: 1;
}

.event-pic img {
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 1rem;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
}

.event-desc {
    text-align: justify;
    flex-basis: 50%;
}

.event-desc>.event-link {
    margin-top: 0.5rem;
}

.event-desc>.event-link a {
    text-decoration: none;
}

.event-desc h3 {
    margin: 0 0 0.5rem;
}

.event-desc p {
    margin: 0;
}

.event-edit-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-edit-preview img {
    height: 5rem;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    object-fit: cover;
}

.footer {
    padding: 3rem 2rem;
    background-color: rgb(220, 220, 220);
    background-color: rgba(0, 0, 0, 0.14);
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer p {
    margin: 0.25rem 0;
}

.footer a {
    color: var(--base-text-color);
}

.footer p.footer-title {
    margin: 0.25rem 0 0.5rem;
}

.header-animated {
    position: relative;
    height: calc(100vh - 4rem);
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header-animated.header-animated-full {
    height: 100vh;
}

.header-animated-top-left,
.header-animated-top-right,
.header-animated-bottom-left,
.header-animated-bottom-right {
    position: absolute;
    width: 50vw;
    height: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('../viragminta.png');
    animation-duration: 1000ms;
    animation-fill-mode: forwards;
    animation-delay: 150ms;
    opacity: 0;
}

@keyframes top-left-swoop {
    100% {
        opacity: 1;
        transform: scale(1, -1) translate(0, 0);
    }
}

@keyframes top-right-swoop {
    100% {
        opacity: 1;
        transform: scale(-1, -1) translate(0, 0);
    }
}

@keyframes bottom-left-swoop {
    100% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
}

@keyframes bottom-right-swoop {
    100% {
        opacity: 1;
        transform: scale(-1, 1) translate(0, 0);
    }
}

@keyframes content-swoop {
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.header-animated-top-left {
    top: 0;
    left: 0;
    background-position: left bottom;
    animation-name: top-left-swoop;
    transform: scale(1.25, -1.25) translate(calc(-1 * var(--header-animation-distance)), var(--header-animation-distance));
}

.header-animated-top-right {
    top: 0;
    right: 0;
    background-position: left bottom;
    animation-name: top-right-swoop;
    transform: scale(-1.25, -1.25) translate(calc(-1 * var(--header-animation-distance)), var(--header-animation-distance));
}

.header-animated-bottom-left {
    bottom: 0;
    left: 0;
    background-position: left bottom;
    animation-name: bottom-left-swoop;
    transform: scale(1.25) translate(calc(-1 * var(--header-animation-distance)), var(--header-animation-distance));
}

.header-animated-bottom-right {
    bottom: 0;
    right: 0;
    background-position: left bottom;
    animation-name: bottom-right-swoop;
    transform: scale(-1.25, 1.25) translate(calc(-1 * var(--header-animation-distance)), var(--header-animation-distance));
}

.header-animated-content {
    text-align: center;
    animation-name: content-swoop;
    animation-duration: 1000ms;
    animation-fill-mode: forwards;
    animation-delay: 550ms, 2000ms;
    transform: scale(0.85);
    opacity: 0;
}

.header-animated-full .header-animated-content {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    border-radius: 2rem;
    overflow: hidden;
    backdrop-filter: invert(0.02);
}

.search .search-button-container {
    position: absolute;
    height: 100%;
    width: auto;
    aspect-ratio: 1;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search button.search-button {
    height: 80%;
    width: auto;
    aspect-ratio: 1;
    margin-left: 0.25rem;
    border-radius: 50%;
    background-color: rgb(238, 255, 238);
}

.search button.search-button img {
    margin-right: 0;
}

.fade {
    position: absolute;
    left: 0;
    width: 100%;
    background-repeat: repeat-x;
    background-size: contain;
    pointer-events: none;
}

.fade:not(.bottom) {
    top: -2rem;
    height: 2rem;
    background-image: url('../fade.png');
}

.fade.reverse {
    top: 0rem;
    transform: scaleY(-1);
}

.fade.bottom {
    bottom: 0;
    height: 4rem;
    background-image: url('../fade2.png');
    opacity: 0.5;
}

.black-btn,
.white-btn,
.green-btn,
.red-btn {
    padding: 0.625rem 1rem;
    font-size: 1rem;
    margin: 0.5rem 0;
    border: 0;
    outline: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    color: white;
    cursor: pointer;
    transition: background-color 250ms;
    user-select: none;
    text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
}

.black-btn,
.white-btn {
    background-color: rgb(255, 255, 255);
    color: black;
}

.black-btn,
.white-btn:hover {
    background-color: rgb(218, 218, 218);
}

.black-btn {
    filter: invert(1);
}

.green-btn {
    background-color: rgb(82, 150, 78);
}

.green-btn:hover {
    background-color: rgb(54, 113, 51);
}

.red-btn {
    background-color: rgb(193, 49, 30);
}

.red-btn:hover {
    background-color: rgb(145, 36, 22);
}

.input-group:not(:last-child) {
    margin-bottom: 1.75rem;
}

.input-group>* {
    display: block;
}

.input-group>*:not(:last-child) {
    margin-bottom: 0.75rem;
}

.input-group>button {
    margin-inline: auto;
}

form a {
    text-decoration: none;
}

.material-bubbles,
.type-bubbles,
.product-bubbles,
.event-bubbles,
.carousel-bubbles {
    display: flex;
    flex-wrap: wrap;
}

.type-bubbles,
.event-bubbles {
    justify-content: flex-start;
}

.material-bubbles {
    justify-content: space-evenly;
}

.material-bubble,
.type-bubble,
.product-bubble,
.event-bubble,
.carousel-bubble {
    position: relative;
    padding: 0.75rem 1.15rem;
    margin: 0.75rem 0.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: transform 250ms, background-color 250ms;
}

.type-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: calc(16% - 1rem);
    box-sizing: border-box;
}

.type-bubble img {
    width: 2rem;
    height: 2rem;
}

.bubble-new {
    color: white;
    background-color: rgba(16, 176, 19, 0.8);
    background-color: var(--base-text-color);
    height: 100%;
    align-self: center;
    z-index: 3;
}

.material-bubble:hover,
.type-bubble:hover,
.product-bubble:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.8);
}

.product-bubble.bubble-new {
    width: 33%;
    text-align: center;
    margin-inline: auto;
}

.product-bubble.bubble-new:hover {
    transform: scale(1.05);
}

.event-bubble,
.carousel-bubble {
    width: 100%;
}

.material-bubble:not(.bubble-new):after,
.type-bubble:not(.bubble-new):after,
.event-bubble:not(.bubble-new):after,
.carousel-bubble:not(.bubble-new):after {
    content: "Szerkesztés";
    position: absolute;
    font-size: 85%;
    top: -0.25rem;
    left: 50%;
    display: block;
    padding: 0.125rem 0.5rem;
    box-sizing: border-box;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.625rem;
    opacity: 0.0;
    transform: translate(-50%, 0);
    z-index: -1;
    transition: transform 200ms, opacity 200ms, z-index 200ms;
}

.material-bubble:not(.bubble-new):hover:after,
.type-bubble:not(.bubble-new):hover:after,
.event-bubble:not(.bubble-new):hover:after,
.carousel-bubble:not(.bubble-new):hover:after {
    opacity: 1.0;
    transform: translate(-50%, -100%);
    z-index: 10;
}

.bubble-new:hover {
    background-color: rgba(13, 147, 15, 0.8);
    background-color: #063f6b;
}

.delete-other-pic {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0.25rem !important;
    border-radius: 0.5rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.delete-other-pic>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.delete-other-pic:after {
    content: '\00D7';
    font-size: 2.25rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.0;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 50, 50);
    transition: opacity 150ms;
}

.delete-other-pic:hover:after {
    opacity: 0.75;
}

summary {
    cursor: pointer;
    margin-block: 0.83em;
}

summary::marker {
    display: block;
}

summary>h2 {
    margin: 0 0 0 0.5rem;
    display: inline;
}

details>summary>h2:after {
    font-size: 70%;
}

details:not([open])>summary>h2:after {
    content: " (kattints a szekció megjelenítéséhez)";
}

details[open]>summary>h2:after {
    content: " (kattints a szekció elrejtéséhez)";
}

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1.0;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 330ms, z-index 330ms;
}

#modal-overlay.hidden {
    opacity: 0.0;
    z-index: -1;
}

#modal-overlay>button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    outline: 0;
    background-color: rgba(255, 97, 97, 0.75);
    border: 3px solid rgba(0, 0, 0, 0.25);
    color: white;
    width: 4rem;
    height: 4rem;
    aspect-ratio: 1;
    font-size: 2rem;
    line-height: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 101;
}

#modal-overlay>button:hover {
    background-color: rgba(255, 97, 97, 0.85);
}

#modal-overlay>#modal-iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform: scale(1.0);
    transition: transform 300ms;
}

#modal-overlay>#modal-iframe-container>iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

.product-block-img {
    transform: scale(0.8);
    transition: transform 400ms;
}

.product-desc {
    padding-top: 1rem;
}

.image-loaded {
    transform: scale(1.0);
}

@keyframes loading {
    0% {
        content: "Betöltés.";
    }

    33% {
        content: "Betöltés..";
    }

    67% {
        content: "Betöltés...";
    }

    100% {
        content: "Betöltés.";
    }
}

#modal-iframe-container.loading>#modal-iframe {
    filter: brightness(0.5);
    pointer-events: none;
}

#modal-iframe-container.loading::after {
    content: "Betöltés...";
    color: var(--base-text-color-black);
    font-size: 150%;
    font-weight: bold;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    animation-name: loading;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    transform: translate(-50%, -50%);
    z-index: 102;
}

#modal-overlay.hidden>#modal-iframe-container {
    transform: scale(0.0);
}

.iframe {
    justify-content: center;
    align-items: center;
}

.iframe>* {
    color: var(--base-text-color-black);
}

input[type=file] {
    cursor: pointer;
}

input[type=file]::file-selector-button {
    background-color: red;
    margin: 0 0.5rem 0 0;
    font-size: 1rem;
    border: 0;
    outline: none;
    border-radius: 50%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    background-color: rgb(150, 150, 150);
    color: white;
    user-select: none;
    color: transparent;
    width: 2rem;
    height: 2rem;
    background-image: url("../svg/upload.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 50%;
}

.reload-warning {
    cursor: pointer;
    margin: 0.5rem;
    padding: 0.75rem;
    font-weight: bold;
    text-align: center;
    border: 3px solid rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    background-color: rgba(255, 235, 164, 1);
}

.reload-warning.hidden {
    display: none;
}

#delete-options {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

#delete-options.hidden {
    display: none;
}

#delete-options>div {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: white;
    overflow: hidden;
    border-radius: 1rem;
}

#delete-options>div>p {
    margin-top: 0;
}

#loader {
    position: relative;
}

#loader.loading {
    height: 2rem;
    margin-bottom: 1rem;
}

#loader.loading:after {
    content: "További találatok betöltése...";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-sold {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0.5rem;
}

input[type=checkbox],
input[type=radio] {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.325);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    background-color: white;
    transition: background-color 200ms;
    position: relative;
}

input[type=checkbox] {
    border-radius: 0.25rem;
}

input[type=radio] {
    border-radius: 50%;
    outline: 2px solid transparent;
    transition: outline-color 200ms, background-color 200ms;
}

input[type=radio]:hover {
    background-color: rgba(6, 83, 142, 0.3);
}

input[type=checkbox]:checked,
input[type=radio]:checked {
    background-color: var(--base-text-color);
}

input[type=radio]:checked {
    outline: 2px solid rgba(6, 83, 142, 0.3);
}

input[type=checkbox]:checked::after {
    content: '\2713';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.h-captcha > iframe {
    margin-inline: -2rem;
    transform: scale(0.9);
}

@media screen and (min-width:1280px) {
    .search-items.special .search {
        border-radius: 0 0 2rem 2rem;
    }
}

@media screen and (max-width:919.5px) {
    .carousel-item>div {
        width: 85vw;
    }

    .product-block {
        width: 45%;
    }

    .type-bubble {
        width: calc(25% - 1rem);
    }

    .event>.event-desc {
        flex-basis: 80%;
    }
}

@media screen and (max-width:767.5px) {

    html,
    body {
        background-position: bottom;
        background-size: contain;
    }

    #navbar {
        height: 4rem;
        flex-wrap: wrap;
        align-items: flex-start;
        transition: transform 250ms, opacity 250ms, height 150ms ease-out 350ms;
    }

    #navbar.clicked {
        height: 65vh;
        transition: transform 250ms, opacity 250ms, height 150ms ease-in;
    }

    #navbar .navbar-logo {
        font-size: 1.75rem;
    }

    #navbar #navbar-items {
        order: 2;
        flex-basis: 100%;
    }

    #navbar #navbar-items li {
        width: 100%;
        margin: 0;
        font-size: 1.75rem;
        transform: translateX(-100vw);
        transition: transform 200ms;
    }

    #navbar #navbar-items li:nth-child(1) {
        transition-delay: 375ms;
    }

    #navbar #navbar-items li:nth-child(2) {
        transition-delay: 300ms;
    }

    #navbar #navbar-items li:nth-child(3) {
        transition-delay: 225ms;
    }

    #navbar #navbar-items li:nth-child(4) {
        transition-delay: 150ms;
    }

    #navbar #navbar-items li:nth-child(5) {
        transition-delay: 75ms;
    }

    #navbar #navbar-items li:nth-child(6) {
        transition-delay: 0;
    }

    #navbar.clicked #navbar-items li {
        transform: translateX(0);
    }

    #navbar.clicked #navbar-items li:nth-child(1) {
        transition-delay: 150ms;
    }

    #navbar.clicked #navbar-items li:nth-child(2) {
        transition-delay: 225ms;
    }

    #navbar.clicked #navbar-items li:nth-child(3) {
        transition-delay: 300ms;
    }

    #navbar.clicked #navbar-items li:nth-child(4) {
        transition-delay: 375ms;
    }

    #navbar.clicked #navbar-items li:nth-child(5) {
        transition-delay: 450ms;
    }

    #navbar.clicked #navbar-items li:nth-child(6) {
        transition-delay: 525ms;
    }

    #navbar-button {
        order: 1;
        display: block;
    }

    #navbar-button .navbar-button-pic {
        display: block;
    }

    .carousel-item>div {
        width: 75vw;
    }

    #content {
        padding: 0 0.5rem 2rem;
    }

    .search-items.special {
        margin-inline: -0.5rem;
    }

    .search-items.special .search {
        padding-inline: 2rem;
    }

    .search-items.special #items {
        padding-inline: 0.5rem;
    }

    .search-items.special.s2x {
        margin-inline: -1.5rem;
    }

    .search-items.special.s2x .search {
        padding-inline: 1.5rem;
    }

    .search-items.special.s2x #items {
        padding-inline: 1.5rem;
    }

    .header {
        height: 60vh;
    }

    .header>div {
        transform: translateY(2rem);
    }

    .categories {
        padding: 0 1rem;
    }

    .search button,
    .filter-list {
        font-size: 0.9rem;
    }

    .filter-list:first-child {
        margin-top: 0
    }

    .product-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .product-info>div {
        flex-basis: unset;
    }

    .product-info>div:not(:first-child) {
        flex-basis: 100%;
    }

    .product-image-container {
        align-items: center;
    }

    .product-desc {
        padding-top: 0;
    }

    .event {
        flex-wrap: wrap;
    }

    .event>.event-pic {
        flex-basis: 100%;
        max-height: 8rem;
    }

    .event>.event-pic img {
        position: relative;
    }

    .event:nth-of-type(even)>.event-pic {
        order: 0;
    }

    .event>.event-desc {
        flex-basis: 100%;
    }

    .event-bubble:has(.event-edit-preview) {
        flex-wrap: wrap;
    }

    .event-bubble:has(.event-edit-preview) > div {
        flex-basis: 100%;
    }

    .type-bubble {
        width: calc(33.3% - 1rem);
    }

    .product-images-container {
        align-items: center;
    }

    .product-image-container {
        flex-direction: column;
        justify-content: center;
    }

    .product-image {
        order: 0;
    }

    .product-other-images {
        flex-direction: row;
        order: 1;
        padding-right: 0;
        padding-top: 0.5rem;
    }

    .product-other-images a {
        height: 100%;
        width: auto;
    }

    .product-other-images a:not(:last-child) {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}

@media screen and (min-width:550px) {
    .sm-only {
        display: none;
    }
}

@media screen and (max-width:549.5px) {
    .sm-only {
        display: block;
    }

    .carousel-item>div {
        width: 95vw;
    }

    .product-block {
        width: calc(50% - 0.5rem);
        padding: 0.5rem;
        margin: 0;
    }

    .filters {
        padding: 0 0 1.125rem;
    }

    .filters:not(.filters-open) {
        display: none;
    }

    .filters>* {
        width: 90%;
        margin: 0.25rem 0;
    }

    .search {
        padding: 1.125rem 0 0;
    }

    .search button {
        margin: 0.25rem 0;
        box-sizing: content-box;
    }

    .search input[type=text] {
        height: 2.25rem;
        padding: 0.375rem 1rem;
        font-size: 0.9rem;
    }

    .search button,
    .filter-list {
        width: 92%;
    }

    .filter-list .filter-list-options {
        min-width: 70%;
    }

    .event {
        flex-wrap: wrap;
    }

    .event>.event-pic {
        flex-basis: 100%;
        max-height: 8rem;
    }

    .event>.event-pic img {
        position: relative;
    }

    .event:nth-of-type(even)>.event-pic {
        order: 0;
    }

    .event>.event-desc {
        flex-basis: 100%;
    }

    .type-bubble {
        width: calc(50% - 1rem);
    }

    .footer {
        text-align: left;
        gap: 1rem;
    }

    .footer-block {
        flex-basis: 100%;
    }
}