
html, body, h1, h2, h3, p{
    margin: 0;
    padding: 0;
    user-select: none;
    /* font-size: 16px; */
}

html, body {
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
}


@font-face  { /* semi-bold 700*/
    font-family: 'Ostin Sans';
    src: url("fonts/OSTIN Sans SemiBold.otf") format("opentype");
    font-weight: 700;
    /* font-style: semibold; */
}
@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/SuisseIntl-Regular.otf');
    font-weight: 400;
}

.test_wrapper {
    position: relative;
    width: 100%;
    /* max-width: 850px; */
    /* min-width: 350px; */
    height: 100%;
    max-height: 700px;
    /* min-height: 245px; */
    /* background-color: red; */
    display: flex;
    align-items: center;
    min-width: 330px;
    max-width: 850px;
}



/* .test_left_img{
    top: 2%;
    width: 28%;
    left: calc(5% - 100px)
}
.test_right_img{
    position: relative;
    top: 1%;
    margin-left: auto;
    right: calc(6% - 40px);
    right: 5%;
    width: 22%;
} */

.test_window {
    z-index:5;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* top: 75px; */
    height: 100%;
    max-height: 700px;
    margin-bottom: 75px;
    width: 100%;
    max-width: 850px;
    /* display: flex;
    flex-direction: row; */
    overflow: hidden;
}


/* .test_fade_bg {
    display: none;
    position: absolute;
    width: 1050px;
    height: 100%; 
    background: linear-gradient(to right, transparent 0%, #F9F7F4 25%, #F9F7F4 75%, transparent 100%);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
} */

.section {
    padding-top: 5%;
    position: absolute;
    top: 0;          
    left: 0;          
    height: 100%;
    width: 100%;
    transform: translateY(0%);
    transition: all 0.6s ease-in-out;
}
.section.before {
    transform: translateY(100%);
}
.section.current{
    transform: translateY(0%);
}
.section.after{
    transform: translateY(-100%);
}

.section_content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0%);
    transition: transform 0.6s ease-in-out;
}

/* тут не надо менять? */
.test_question { 
    flex-shrink: 0;
    top: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: opacity;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;  
    /* transform: translateX(-100%) */
}

.base_text {
    position: relative;
    width: 90%;
    top: 5%;
    font-size: 1.5rem;
    font-family: "Ostin Sans";
    font-weight: 700;
    color: black;
    text-align: center;
}

.song_lyrics {
    position: relative;
    top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Suisse Intl';
    font-size: 1.125rem;
    text-align: center;
}

.answer_vars {
    position:relative;
    top: 13%;
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.var {
    transition: background-color 0.15s ease-in-out;
    width: 100%;
    height: 70px;
    background-color: #283C6E;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Suisse Intl';
    font-weight: 400;
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
}

.section_content.explanation_active {
    transform: translateY(-100%);
}


/* @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
} */

.section_content .test_answer {
    /* margin-top: 120px;
    top: 20px; */
    flex-shrink: 0;
    position: relative;
    width: 100%;
    height: 100%;
    top: 35%;
    transform: translateY(0%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.6s ease-in-out;   
}


.explanation_text {
    position: relative;
    width: 90%;
    /* top: 25%; */
    font-size: 1.875rem; /*30px*/
    font-family: "Ostin Sans";
    font-weight: 700;
    color: black;
    text-align: center;
}

.continue_btn {
    position: relative;
    top: 5%;
    height: 70px;
    width: 50%;
    background-color: #283C6E;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.continue_btn p{
    color: white;
    text-align: center;
    font-family: "Ostin Sans";
    font-weight: 600;
    font-size: 1.75rem;
}

/* АДАПТИВ С 1480 ДО 850 */

/* РЕЗУЛЬТАТЫ */

.results_window {
    z-index:4;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    max-height: 700px;
    width: 100%;
    max-width: 850px;
    /* min-width: 700px; */
    /* display: flex;
    flex-direction: row; */
    overflow: hidden;
}
.results_window.active {
    z-index: 6
}

.results_window .results_section {
    position: relative;
    left: 4%;
    width: 96%;
    height: 100%;
    /* display: flex;
    flex-direction: column; */
    transform: translateY(100%);
    transition: transform 0.6s ease-in-out;
}

.results_window.active .results_section {
    transform: translateY(0%);
}

.band_photo {
    position: relative;
    left: -3%;
    height: auto;
    width: 369px;
}

.rotation_wrapper {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: rotate(-4deg);
}

.your_song {
    width: 285px;
    height: 140px;
    background: white;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 20px;
    padding-bottom: 20px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d; */
}

.song_name {
    color: #FF7161;
    font-family: 'Ostin Sans';
    font-weight: 700;
    font-size: 1.875rem;
}

.ostin_tie_in {
    top: 15px;
    position: relative;
    color: black;
    font-family: 'Suisse Intl';
    font-size: 14px;
    font-weight: 400;
}

.results_text {
    width: 92%;
    /* height: 100px; */
    display: flex;
    flex-direction: column;
}

.results_big_text {
    position: relative;
    left: -5px;
    font-size: 2.5rem;
    font-family: 'Ostin Sans';
    font-weight: 700;
    font-style: italic;
    color: #283C6E;
}

.results_small_text {
    position: relative;
    top: 12px;
    font-family: 'Suisse Intl';
    font-size: 1rem;
    font-weight: 400;
    color: black;
}

.link_btn {
    position: relative;
    top: 35px;
    height: 70px;
    width: 40%;
    background-color: #283C6E;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-family: 'Ostin Sans';
    font-weight: 700;
    /* font-style: semibold; */
    font-size: 1.5rem;
}

@media (max-width: 1480px){
    .test_wrapper {
        min-width: 350px;  
        min-height: 245px;
    }
    .test_window {
        height: 100%;
        max-height: 700px;
        width: 100%;
        max-width: 850px;
        margin-bottom: 0px;
    }
    .section {
        /* padding-top: 0; */
    }
    .test_question {
        top: 0px;
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .base_text {
        font-size: clamp(10px, 2.8vw, 24px);
    }
    .song_lyrics {
        font-size: clamp(8px, 2.3vw, 18px);
    }
    .answer_vars {
        gap: 1.7vh;
    }
    .var{
        height: 20%;
        max-height: 70px;
        font-size: clamp(8px, 2.3vw, 16.8px)
    }
    .section_content .test_answer {
        /* top: 50%;
        transform: translateY(50%); */
        top: -5%;
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .explanation_text {
        font-size: clamp(10px, 2.8vw, 30px)
    }
    .continue_btn {
        height: min(12.2%, 70px);
        /* max-height: 70px; */
        border-radius: min(12px, 1.4vw);
    }
    .continue_btn p{
        font-size: clamp(11px, 3.14vw, 1.75rem)
    }
    .results_window {
        height: 100%;
        width: 100%;
    }
    /* .results_window .results_section {
        left: 4%;
        height: 100%;
        width: 100%;
    } */
    .band_photo {
        width: clamp(173px, 49.1vw, 369px);
        /* left: -3%; */
    }
    .rotation_wrapper{
        /* left: 45%; */
    }
    .your_song {
        width: calc(clamp(140px, 40vw, 285px));
        height: calc(clamp(82px, 23.4vw, 140px));
        padding-top: clamp(6px, 2.5vh, 20px);
        padding-bottom: clamp(6px, 2.5vh, 20px);
        padding-left: clamp(7px, 2vh, 25px);
        padding-right: clamp(7px, 2vh, 25px);
        border-radius: clamp(8.2px, 2.3vw, 20px);
    }
    .song_name {
        font-size: clamp(12.35px, 3.4vw, 1.875rem)
    }
    .ostin_tie_in {
        top: clamp(6.3px, 1.8vw, 15px);
        font-size: clamp(6.6px, 1.9vw, 14px)
    }
    .results_text {
        gap: clamp(7px, 1.42vw, 16px);
        height: clamp(10px, 15vw, 100px);
        display: inline-block;
    }
    .results_big_text {
        /* left: 2.5%; */
        font-size: clamp(16px, 4.6vw, 2.5rem);
    }
    .results_small_text{
        top: clamp(7px, 1.42vw, 16px);
        /* left: 3%; */
        font-size: clamp(7px, 2vw, 16px);
    }
    .link_btn {
        border-radius: min(12px, 1.4vw);
        height: clamp(26px, 10.6vh, 70px);
        top: clamp(8px, 3.2vh ,35px);
        font-size: clamp(11px, 3.14vw, 1.5rem);
        /* left: clamp(9px, 1.3vw, 100px); */
    }
    
}
@media (max-width: 620px){
        .var{
            height: 10%;
        max-height: 50px;
        font-size: clamp(8px, 2.3vw, 16.8px);
        width: 70%;
        }
        .answer_vars{
            align-items: center;
        }
        .song_lyrics{
            top: 8%;
        }
        .answer_vars{
            top: 11%;
        }
    }

