* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

main,
section {
    width: 100%;
    height: 100%;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo {
    position: absolute;
    width: 80vw;
    top: 10vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* ---------------------- Scene1 --------------------- */
#scene1 {
    position: relative;
}

.startBtn {
    display: none;
    position: absolute;
    width: 55vw;
    top: 81%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;

    animation: fadeIn 0.8s ease-out forwards;
}

/* ---------------------- Scene3 --------------------- */
#scene3 {
    display: none;
    position: relative;
}

#elements {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.arrow {
    position: absolute;
    width: clamp(20vw, 25vw, 30vw);
    bottom: 26%;
    left: 52%;
    transform: translate(-50%, -50%);

    animation: arrowMove 1s ease-in-out infinite;
}

.text {
    position: absolute;
    width: clamp(80vw, 85vw, 90vw);
    bottom: -7%;
    left: 50%;
    transform: translate(-50%, -50%);

    animation: textSlideUp 0.4s ease-out forwards;
}

/* ---------------------- Popout --------------------- */
#popout {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.popout {
    position: absolute;
    width: 90vw;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.sunburstWrap {
    position: absolute;
    width: 120vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.sunburst {
    width: 100%;
    display: block;

    animation: rotate 3s linear infinite;
}

/* ----------------------- Animation ---------------------- */
@keyframes arrowMove {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes textSlideUp {
    0% {
        transform: translate(-50%, -50%) translateY(200vh);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) translateY(-3vh);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}