body {
    background-color: black;
}

.countdown-container {
    border-radius: 5px;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
}

.loop-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Assurez-vous que la vidéo est placée derrière les autres éléments */
}

.box {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    /* font-size: 11em; */
    background-image: url(./illustration7.webp);
    color: transparent;
    /* background-size: cover; */
    -webkit-background-clip: text;
    /* filter: drop-shadow(0px -3px 1px rgba(255, 255, 255, 0.738)); */
    animation: stripes 120s infinite alternate;
}

.display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes stripes {
    100% {
        background-position: 100px -250px, 250px 250px, 100px -250px;
    }
}

.cardTime:hover {
    cursor: none;
    animation: 20s ease infinite;
    animation-name: boingInUp;

    @media screen and (max-width: 900px) {
        animation: none;
    }

    @keyframes boingInUp {
        0% {
            opacity: 1;
            transform-origin: 50% 0%;
            transform: perspective(800px) rotateX(-30deg);
            box-shadow: 0px 0px 0px rgb(71, 58, 76);
        }

        50% {
            opacity: 1;
            transform-origin: 50% 0%;
            transform: perspective(800px) rotateX(30deg);
            box-shadow: 20px 20px 25px rgb(84, 69, 90);
        }

        100% {
            opacity: 1;
            transform-origin: 50% 0%;
            transform: perspective(800px) rotateX(-30deg);
            box-shadow: 0px 0px 0px rgb(71, 58, 76);
        }
    }
}

.countdown-pair {
    margin: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-label {
    font-size: 60px;
}

.countdown-label {
    /* -webkit-text-stroke: 3px rgba(255, 255, 255, 0.58); */
    /* Ajoute un contour de 2 pixels autour du texte en blanc */
}

.countdown-number {
    margin-top: -0.3em;
    font-size: 150px;
}

@keyframes lightning {

    0%,
    90%,
    100% {
        -webkit-text-stroke: 0.5px rgba(247, 109, 10, 0.62);
    }

    50%,
    95% {
        -webkit-text-stroke: 1px rgb(247 110 10 / 77%);
    }
}

@keyframes thunder {

    0%,
    90%,
    100% {
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.062);
    }

    50%,
    95% {
        text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.225);
    }
}

@keyframes colorChange {
    100% {
        color: rgba(255, 255, 255, 0);
        text-shadow: none;
    }
}

.countdown-number,
.countdown-label {
    -webkit-text-stroke: 1px rgb(247 110 10 / 77%);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.209);
    animation: lightning 0.3s infinite alternate, thunder 0.3s infinite alternate, colorChange 2s infinite forwards;
}




.countdown-number:last-child {
    margin-bottom: 0;
}


.float {
    /* animation-name: float; */
    /* animation-duration: 10s;
    animation-iteration-count: infinite; */
}

@keyframes float {
    50% {
        transform: translateY(30px);
    }

}

/* card */


.body {
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.main {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}


.item {
    width: 200px;
    height: 300px;
    list-style-type: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;

    &:nth-child(1),
    &:nth-child(2) {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        transform: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
    }


    &:nth-child(3) {
        left: 50%;
    }

    &:nth-child(4) {
        left: calc(50% + 220px);
    }

    &:nth-child(5) {
        left: calc(50% + 440px);
    }

    &:nth-child(6) {
        left: calc(50% + 660px);
        opacity: 0;
    }

    &:nth-child(3),
    &:nth-child(4),
    &:nth-child(5) {
        transition: 0.5s;
    }

    &:nth-child(3):hover,
    &:nth-child(4):hover,
    &:nth-child(5):hover {
        /* cursor: pointer; */
        transition: 0.5s;
        scale: 1.1;
    }
}

.content {
    width: min(30vw, 400px);
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    font: 400 0.85rem helvetica, sans-serif;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: none;

    & .title {
        font-family: 'arial-black';
        text-transform: uppercase;
    }

    & .description {
        line-height: 1.7;
        margin: 1rem 0 1.5rem;
        font-size: 0.8rem;
    }

    & button {
        width: fit-content;
        background-color: rgba(0, 0, 0, 0.1);
        color: white;
        border: 2px solid white;
        border-radius: 0.25rem;
        padding: 0.75rem;
        cursor: pointer;
    }

    & button:hover {
        background-color: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
        border: 2px solid rgba(255, 255, 255, 0);
    }
}

.item:nth-of-type(2) .content {
    display: block;
    animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
    0% {
        filter: blur(5px);
        transform: translateY(calc(-50% + 75px));
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    user-select: none;

    & .btn {
        background-color: rgba(255, 255, 255, 0.5);
        color: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(0, 0, 0, 0.6);
        margin: 0 0.25rem;
        padding: 0.75rem;
        border-radius: 50%;
        cursor: pointer;

        &:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }
    }
}

@media (width > 650px) and (width < 900px) {
    .content {
        & .title {
            font-size: 1rem;
        }

        & .description {
            font-size: 0.7rem;
        }

        & button {
            font-size: 0.7rem;
        }
    }

    .item {
        width: 160px;
        height: 270px;

        &:nth-child(3) {
            left: 50%;
        }

        &:nth-child(4) {
            left: calc(50% + 170px);
        }

        &:nth-child(5) {
            left: calc(50% + 340px);
        }

        &:nth-child(6) {
            left: calc(50% + 510px);
            opacity: 0;
        }
    }
}

@media (width < 650px) {
    .content {
        & .title {
            font-size: 0.9rem;
        }

        & .description {
            font-size: 0.65rem;
        }

        & button {
            font-size: 0.7rem;
        }
    }

    .item {
        width: 130px;
        height: 220px;

        &:nth-child(3) {
            left: 50%;
        }

        &:nth-child(4) {
            left: calc(50% + 140px);
        }

        &:nth-child(5) {
            left: calc(50% + 280px);
        }

        &:nth-child(6) {
            left: calc(50% + 420px);
            opacity: 0;
        }
    }
}

/* Background glass effect  */


.window {
        overflow: hidden;
        position: relative;
        width: 100%;
        height: 100vh;
}

.wasteland {
    overflow: hidden;
    animation: zoomIn 10s linear infinite alternate;
    background-image: url(./scene_6.webp);
    background-size: cover;
    height: 100%;
    position: absolute;
    width: 100%;
}

.glass {
    overflow: hidden;
    animation: zoomIn 10s linear infinite alternate-reverse;
    background-image: url(./effect.jpg);
    background-size: cover;
    height: 100%;
    opacity: .3;
    position: absolute;
    width: 100%;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Loading Nuke */

.rotating {
    width: 100px;;
    transform: translateY(-50%); /* Centrer l'image verticalement par rapport à sa position */
    animation: spin 50s linear infinite;
}
.nuke-content{
    margin-bottom: 30px;
    text-align: center;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}