#popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 200;

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);

    animation: test 0.1s ease-in-out;

    flex-direction: column;
    gap: 20px;

    box-shadow: 0px 0px 2px 2px var(--transparent-color);
}

.close-popup {
    background-color: var(--tertiary-background-color);
    padding: 20px;
    border-radius: 48px;
    height: 24px;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.close-popup svg {
    pointer-events: none;
}

.popup-container {
    max-height: calc(100vh - 118px);
    overflow: auto;
    display: flex;
    background-color: var(--secondary-background-color);
    box-shadow: 0px 0px 4px 0px var(--transparent-border);
    border-radius: var(--border-radius-huge);
    flex-direction: column;
    gap: 20px;
    max-width: min(calc(100vw - var(--spacing-big)), 1400px);
}

.popup-content-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 30px;
    padding-right: 30px;
    padding-left: 30px;
    padding-bottom: 30px;
}

.popup-content>.carousel {
    padding-top: 30px;
    padding-left: 30px;
    padding-bottom: 30px;
    background-color: var(--tertiary-background-color);
    position: relative;
}

.dark .popup-container {
    background-color: var(--secondary-background-color-inverted);
    color: var(--text-color-inverted);
}

.dark .popup-content>.carousel {
    background-color: var(--tertiary-background-color-inverted);
}

.dark .resource {
    background-color: var(--tertiary-background-color-inverted);
    color: var(--text-color-inverted);
}


.spawn {
    opacity: 0;
}

.spawn-up {
    opacity: 0;
    animation: spawnUp 0.5s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
}

.partners-logo img:nth-child(1) { animation-delay: calc(1 * 0.05s) }
.partners-logo img:nth-child(2) { animation-delay: calc(2 * 0.05s) }
.partners-logo img:nth-child(3) { animation-delay: calc(3 * 0.05s) }
.partners-logo img:nth-child(4) { animation-delay: calc(4 * 0.05s) }
.partners-logo img:nth-child(5) { animation-delay: calc(5 * 0.05s) }
.partners-logo img:nth-child(6) { animation-delay: calc(6 * 0.05s) }
.partners-logo img:nth-child(7) { animation-delay: calc(7 * 0.05s) }
.partners-logo img:nth-child(8) { animation-delay: calc(8 * 0.05s) }
.partners-logo img:nth-child(9) { animation-delay: calc(9 * 0.05s) }
.partners-logo img:nth-child(10) { animation-delay: calc(10 * 0.05s) }
.partners-logo img:nth-child(11) { animation-delay: calc(11 * 0.05s) }
.partners-logo img:nth-child(12) { animation-delay: calc(12 * 0.05s) }
.partners-logo img:nth-child(13) { animation-delay: calc(13 * 0.05s) }

.products-list div:nth-child(1) {
    animation-delay: 0.15s;
}
.products-list div:nth-child(2) {
    animation-delay: 0.3s;
}
.products-list div:nth-child(3) {
    animation-delay: 0.45s;
}
.products-list div:nth-child(4) {
    animation-delay: 0.60s;
}

.spawn-right-later {
    animation: spawnRight 0.5s ease-in-out forwards;
    animation-delay: 1.5s;
}

.fade-out {
    animation: fadeOut 0.4s ease-in-out forwards;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes spawnUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}


@keyframes spawnRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes spawnLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

.carousel {
    width: 400px;
    min-width: 400px;
    padding: 20px;
    display: flex;
    gap: 4vw;

    pointer-events: none;

    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel img {
    max-width: 400px;
    min-width: 400px;
    object-fit: contain;
    border-radius: 4px;
}


@media (max-width: 1000px) {
    .carousel {
        max-width: min(100vw, 400px);
        min-width: auto;
        width: auto;
    }

    .popup-content>.carousel {
        max-width: calc(100% - 40px);
    }

    .popup-content>.carousel img {
        max-height: 35vh;
    }


    .carousel img {
        max-width: 100%;
        min-width: auto;
        width: auto;
    }
}

.resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--spacing-big);
}

.cgv {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--footer-height);
    padding: 0;
    min-height: 0;
}

.cgv h1 {
    font-size: var(--text-small);
}

.resource {
    color: var(--text-color);
    border: none;
    font-size: var(--text-smaller);
    box-shadow: 0px 0px 2px var(--transparent-border);
    display: flex;
    flex-direction: row;
    border-radius: var(--border-radius);
    padding: var(--spacing-small);
    align-items: center;
    justify-content: start;
    gap: var(--spacing-medium);
    background-color: var(--background-color);
}

.popup-title {
    font-size: var(--text-big);
}

.partners-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
}

.partners-logo img {
    max-height: 90px;
    max-width: 160px;
}

.contact-mail {
    margin-top: var(--spacing-big);
    margin-bottom: var(--spacing-big);
    display: inline-block;
    font-size: var(--text-big);
    color: var(--emphasis-color);
}

#contact {
    /* height: calc(100vh - var(--header-height) - var(--footer-height)); */
}

.address {
    display: inline-block;
    margin-top: var(--spacing-big);
}

.hoverable {
    cursor: pointer;
}

.hoverable:hover {
    transform: scale(1.04);
    transition: transform 0.024s ease-in-out;
}

.popup-content ul br, .popup-content table br {
    display: none;
}

.popup-content ul {
    list-style: "- ";
    padding-left: 10px;
}

.popup-content ul.specs {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.popup-content ul label {
    font-weight: bold;
    display: inline-block;
    min-width: 50%;
    padding-right: 10px;
    word-break: break-word;
}