/* body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #111;
} */

.curtain-container {
    position: absolute;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    perspective: 1500px;
    background: var(--white);
    z-index: 1000;
    opacity: 1;
    transition: opacity 2s ease;
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    /* background-color: #444; */
    /* background: linear-gradient(135deg, var(--red) 25%, var(--white) 25%, var(--beige) 50%, var(--red) 50%, var(--red) 75%, var(--white) 75%, var(--beige) 100%); */
    background-size: 56.57px 56.57px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
    transform-origin: center left;
    transition: transform 2.5s cubic-bezier(0.45, 0, 0.55, 1), box-shadow 2.5s;
    z-index: 10;
}

.curtain-left,
.curtain-right {
    background-image: url(../images/curtain.webp);
    background-position: center;
    background-size: cover;
}

.curtain-left {
    left: 0;
    transform: translateX(0) rotateY(0deg);
}

.curtain-right {
    right: 0;
    transform: translateX(0) rotateY(0deg);
    transform-origin: center right;
}

.password-input {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

#password-input {
    font-size: 2em;
    background-image: var(--red);
    border: none;
    outline: none;
    text-align: center;
    border-radius: 2em;
    padding: 0.5em;
}

#countdown {
    font-size: 3em;
    color: var(--white);
    font-family: var(--font1);
    font-weight: 900;
}

.launch-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    border-radius: 5px;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); */
}

.launched .curtain-left {
    transform: translateX(-110%) rotateY(-25deg);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.launched .curtain-right {
    transform: translateX(110%) rotateY(25deg);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.launch-button.launched {
    /* transform: scale(100); */
    animation: launch 2s linear forwards;
    /* transition: transform 5s cubic-bezier(0.45, 0, 0.55, 1), box-shadow 2.5s; */
}

.curtain-left img,
.curtain-right img {
    max-height: 100%;
}

.curtain-left img {
    position: absolute;
    left: 0;
    top: 0;
}

.curtain-right img {
    position: absolute;
    right: 0;
    top: 0;
}

.curtain-left img.launched {
    transform: translateX(-110%) rotateY(-25deg);
    transition: transform 2.5s cubic-bezier(0.45, 0, 0.55, 1), box-shadow 2.5s;
}

.curtain-right img.launched {
    transform: translateX(110%) rotateY(25deg);
    transition: transform 2.5s cubic-bezier(0.45, 0, 0.55, 1), box-shadow 2.5s;
}

.fade-out {
    opacity: 0;
    /* Set opacity to 0 for fade-out effect */
}

@keyframes launch {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(100);
    }
    100% {
        transform: scale(.5);
        position: absolute;
        left: 15em;
        top: -1em;
    }
}

@media screen and (max-width: 40em) {
    .launch-button img {
        width: 75vw
    }
    #countdown {
        font-size: 1.5em
    }
    .password-input {
        bottom: 15%;
    }
    #password-input {
        font-size: 1.5em;
    }
}