:root {
    --yellow: #fff600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

body, input, select {
    font-family: inter-variable, sans-serif;
}

body {
    overflow: hidden;
    color: #fff;
}

.logo {
    width: 25vw;
    height: auto;
}

body > .logo {
    position: absolute;
    top: 6vh;
    left: 50%;
    transform: translateX(-50%);
}

.button {
    display: block;
    border-radius: 20px;
    border: 1px solid #fff;
    padding: 5px 30px;
    text-decoration: none;
    text-align: center;
    font-size: 1.65rem;
    letter-spacing: .3em;
    background-color: transparent;
    color: currentColor;
    cursor: pointer;
}

section {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100dvh;
    width: 100dvw;
    background: #000 no-repeat center center / cover;
    &.hidden {
        display: none;
    }

    h1 {
        text-transform: uppercase;
        line-height: 1;
        font-size: 5rem;
        font-variation-settings: "wght" 300;
        .em {
            display: block;
            font-variation-settings: "wght" 800, "slnt" -10;
        }
    }

    p {
        font-variation-settings: "wght" 300;
        strong {
            font-variation-settings: "wght" 600;
        }
    }

    .button-wrapper {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        .button {
            width: 270px;
            margin: 0 auto 15px;
        }
        p {
            margin-block: 4.6vh 5vh;
            text-align: center;
            font-size: 1.4rem;
            font-variation-settings: "wght" 400, "slnt" -10;
        }
    }
}

.welcome {
    padding-top: 36vh;
    text-align: center;
    background-image: url("../images/bg-1-lqmYAQN.webp");

    h1 + p {
        margin-top: 30px;
        font-size: 1.8rem;
    }
}

.registration {
    padding-top: 20vh;
    background-image: url("../images/bg-2-eIrtE1J.jpg");
    form {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: calc(100% - 120px);
        fieldset {
            position: relative;
            margin-top: 45px;
            width: calc(50% - 30px);
            border: none;
            label, input, .input {
                display: block;
                padding: 15px 15px 5px;
            }
            label {
                font-size: 1.2rem;
            }
            input, .input {
                width: 100%;
                border: none;
                border-radius: 0;
                border-bottom: 1px solid #fff;
                font-size: 1.8rem;
                font-variation-settings: "wght" 600;
                background-color: transparent;
                color: currentColor;
                &:focus-visible {
                    outline: none;
                }
                &:user-invalid {
                    color: var(--yellow);
                    & + .error {
                        display: block;
                    }
                }
            }
            .error {
                display: none;
                position: absolute;
                top: 85px;
                left: 15px;
            }

            &:has(.input) {
                .input {
                    position: relative;
                    width: 50%;
                    height: 46px;
                    &::after {
                        position: absolute;
                        content: '';
                        bottom: 5px;
                        right: 0;
                        width: 40px;
                        height: 25px;
                        background: url("../images/arrow-WCMK2Z-.svg") no-repeat center center / contain;
                        transform-origin: center;
                        transition: .2s all;
                    }
                }
                .options-wrapper {
                    height: 0;
                    overflow-y: hidden;
                    position: absolute;
                    top: 90px;
                    left: 0;
                    width: 50%;
                    padding: 0 15px;
                    background-color: rgba(0, 0, 0, 0.25);
                    transition: .2s all;
                    span {
                        display: block;
                        margin-top: 5px;
                        font-size: 1.8rem;
                        &:first-child {
                            margin-top: 0;
                        }
                        &.disabled {
                            opacity: 0.3;
                        }
                    }
                }
                &.active {
                    .input::after {
                        transform: rotate(180deg);
                    }
                    .options-wrapper {
                        height: 130px;
                        overflow: scroll;
                        padding-block: 5px;
                    }
                }
            }
        }
        &:has(:user-invalid) .button, .error:not(:empty) + .button{
            border-color: var(--yellow);
            color: var(--yellow);
        }
        .error {
            display: block;
            font-size: 1.6rem;
            font-variation-settings: "wght" 400, "slnt" -10;
            color: var(--yellow);
        }
        .button-wrapper .error {
            margin-bottom: 5px;
            text-align: center;
        }
    }
}

.thanks {
    padding-top: 35vh;
    text-align: center;
    background-image: url("../images/bg-3-u-M58Gw.webp");

    h1 + p {
        margin-top: 5px;
        font-size: 1.8rem;
    }

    > div {
        margin-top: 75px;
        width: 100%;
        position: relative;
        &::before, &::after, p::before, p::after {
            content: '';
            position: absolute;
            width: 38%;
            height: 40px;
            background: no-repeat center center / contain;
        }
        &::before, &::after {
            background-image: url("../images/bar-1-WiaEEwM.svg");
        }
        p::before, p::after {
            background-image: url("../images/bar-2-88U5zGf.svg");
        }

        &::before {
            left: 0;
            top: 0;
        }
        &::after {
            top: 50px;
            left: -28px;
        }
        p::before {
            right: -28px;
            top: 0;
        }
        p::after {
            top: 50px;
            right: 0;
        }
        p {
            line-height: 1.2;
            font-size: 4rem;
            font-variation-settings: "wght" 300, "slnt" -10;
        }
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 0%;
    }
}

.songs {
    padding: 15vh 40vw 10vh 0;
    text-align: center;
    background-image: url("../images/bg-4-cYx0uUa.webp");
    h1 {
        margin-block: 30px auto;
    }
    .button {
        margin-top: 30px;
        padding: 8px 15px;
        width: 340px;
        font-size: 1.3rem;
        &.active {
            background: linear-gradient(90deg, #AD997C, #473F33);
            background-size: 200% 100%;
            animation: gradientShift 3s linear infinite alternate;
        }
    }
    audio {
        display: none;
    }
}
