@font-face {
    font-family: 'Dela';
    font-style: normal;
    font-weight: normal;
    src: local('Dela'), url('../assets/DelaGothicOne-Regular.ttf');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: normal;
    src: local('Montserrat'), url('../assets/Montserrat-Regular.woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: bold;
    src: local('Montserrat'), url('../assets/Montserrat-SemiBold.woff2');
}

*{
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;
    
}

*::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  ::-webkit-scrollbar { /* chrome based */
    width: 0px;  /* ширина scrollbar'a */
    background: transparent;  /* опционально */
    display: none;

}

html {
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.close{
    position: absolute;
    right: 20px;
    top: 20px;
    font-family: 'Dela';
    text-align: center;
    color: var(--title-color);
    font-size: calc(10px + 15 * (100vw / 1920));
    cursor: pointer;
}

.text{
    font-family: 'Dela';
    text-align: center;
    color: var(--title-color);
    font-size: calc(10px + 15 * (100vw / 1920));
}

.red-bg{
    background-color: var(--red-color);
}

:root{
    --white-color: #FFF;
    --blue-color: #356FB3;
    --black-color: #000;
    --grey-color: #7F7F7F;
    --red-color: rgb(158, 64, 64);

    --background-color: var(--white-color);
    --accent-color: var(--blue-color);
    --main-color: var(--grey-color);
    --title-color: var(--blue-color);
    --text-color: var(--black-color)
}


#page__1, #page__2, #page__3, #page__4, #page__8, #page__9, #page__10, #page__11, #page__12, #page__13, #page__14, #page__15, #page__16, #page__17, #page__18, #page__19{
    display: none;
}

.animation{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;

    /* display: none; */

    background-color: #000000c6;

    z-index: 10;
}

.animation__close{
    position: absolute;
    right: 50px;
    top: 50px;

    font-family: 'Dela';
    text-align: center;
    color: var(--title-color);
    font-size: calc(10px + 15 * (100vw / 1920));
    cursor: pointer;

    transition: all 0.3s ease-in-out;
}

.animation__close:hover{
    transform: scale(150%);
}

.animation__video{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-width: 80vw;
    max-height: 60vh;
    border-radius: 20px;
}

.hint{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;

    display: none;

    background-color: #000000c6;

    z-index: 10;
}

.hint__wrapper{
    width: 90vw;
    max-width: 1000px;
    height: 70vh;
    margin: 15vh auto;

    box-sizing: border-box;
    padding: 75px 45px 30px 45px;

    background-color: var(--main-color);
    border-radius: 20px;
    z-index: 20;
}

.hint__container{
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
}

.hint__holder{
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translate(-50%, 0);
}
.hint__container table{
	width: 100%;
    height: 100%;
	border-collapse:collapse;
	border-spacing:0;

    font-family: 'Montserrat';
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    font-size: calc(10px + 5 * (100vw / 1920));
}
.hint__container table,.hint__container table td, .hint__container table th {
	border: 1px solid #595959;
}
.hint__container table td,.hint__container table th {
	padding: 3px;
	width: 30px;
	height: 35px;
}
.hint__container table th {
	background: #347c99; 
	color: #fff; 
	font-weight: normal;
}

hr{
    height: 2px;
    background-color: var(--text-color);
    border: none;
}


.container{
    background: var(--background-color) url('../assets/eom2/bg.png') no-repeat bottom ;
    background-size: 1200px auto;

    width: 100vw;
    max-width: 1200px;
    height: 100vh;

    margin: 0 auto;

    display: grid;
    

    background-color: rgb(255, 255, 255);

}

.header{
    max-width: 1150px;
    height: 13.2vh;
    margin: 0 25px 1.8vh 25px;
    display: grid;
}

.header__title{
    margin-top: 2vh;
    border-radius: 20px;
    border: 5px solid var(--title-color);

    display: grid;
    align-content: center;
    justify-content: center;
}

.header__title h1{
    font-family: 'Dela';
    text-align: center;
    color: var(--title-color);
    font-size: calc(6px + 15 * (100vw / 1920));
}

.content{
    height: 76vh;
    width: 100%;
    max-width: 1200px;
}

.content__header{
    position: relative;
    height: 9.8vh;

}

.content__title{
    height: 7.9vh;
    width: 64vw;
    display: grid;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
}

.content__title h2{
    font-family: 'Dela';
    text-align: center;
    font-size: calc(10px + 15 * (100vw / 1920));
    color: var(--text-color);
    overflow-y: scroll;
}

.theme__progress{
    position: absolute;
    right: 0;
    top: 15px;
    width: 100px;
    max-height: 10vh;
    height: 40px;

    border-radius: 10px;
    background-color: var(--main-color);

    font-family: 'Montserrat';
    color: var(--white-color);
    text-align: center;
    line-height: calc((10px + 10 * (100vw / 1920)) * 2);
    font-size: calc(10px + 10 * (100vw / 1920));
}

.theme__hint{
    display: none;

    position: absolute;
    right:115px;
    top: 15px;
    width: 60px;
    height: 40px;
    max-height: 10vh;


    align-content: center;
    justify-content: center;

    border-radius: 10px;
    background-color: var(--main-color);

    font-family: 'Montserrat';
    color: var(--white-color);
    text-align: center;
    line-height: 60px;
    font-size: calc(10px + 15 * (100vw / 1920));

    cursor: pointer;
    transition: all 0.2s ease-in-out;
    
}

@media screen and (max-width: 480pc) {
    .theme__progress{
        line-height: 30px;
        height: 30px;
        width: 60px;
    }

    .theme__hint{
        height: 30px;
        width: 30px;

    }
}

.theme__hint_animation{
    animation: hintAnimation 2s ease-in-out infinite;
}

@keyframes hintAnimation {
    from{
        background-color: var(--main-color);
        transform: scale(100%);
    }

    20%{
        background-color: var(--accent-color);
        transform: scale(110%);

    }

    40%{
        background-color: var(--main-color);
        transform: scale(100%);

    }

    60%{
        background-color: var(--accent-color);
        transform: scale(110%);

    }

    80%{
        background-color: var(--main-color);
        transform: scale(100%);

    }

    80%{
        background-color: var(--accent-color);
        transform: scale(110%);

    }

    to{
        background-color: var(--main-color);
        transform: scale(100%);

    }
}

.question{
    width: 94%;
    margin: 0 3%;
    height: 63vh;
}

.question_table{
    height: 49vh;
}

.question__title{
    height: 8vh;

    overflow-y: scroll;
}

.question__title p{
    font-family: 'Montserrat';
    font-size: calc(7px + 15 * (100vw / 1920));
    color: var(--text-color);
}

.content__task{
    display: grid;
    height: 100%;
    overflow: scroll;
    background-color: var(--background-color);
}

.question__content{
    height: 54vh;
    display: grid;
    overflow: scroll;
}

.question__content_table{
    height: 40vh;
}

.theory{
    height: 40vh;
    width: calc(100% - 20px);
    display: grid;
    grid-template-columns: 60% 40%;
    column-gap: 20px;
}

.theory p{
    font-family: 'Montserrat';
    font-size: calc(10px + 10 * (100vw / 1920));
    color: var(--text-color);
}

.theory img{
    border-radius: 10px;

    align-self: start;
    justify-self: center;
    height: 38vh;
    width: 100%;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 480px) {
    .theory{
        grid-template-columns: 100%;
        grid-template-rows: auto;
        row-gap: 20px;
    }

    .theory img{
        border-radius: 10px;
    
        align-self: center;
        justify-self: center;
        width: 70%;
        aspect-ratio: auto;
        overflow: hidden;
        object-fit: cover;
        object-position: center;
    }
}

.laboratory{
    height: 40vh;
    width: calc(100% - 20px);

    display: grid;
    align-items: center;
    justify-items: center;
    grid-auto-flow: column;
    justify-content: center;
    column-gap: 30px;

    box-sizing: border-box;
    border-radius: 20px;
    border: 5px solid var(--grey-color);
    background-color: rgba(255, 255, 255, 0.7);

    img{
        max-height: 200px;
    }
}

.laboratory__result{
    height: 38vh;

    display: grid;
    /* row-gap: 20px; */
    justify-items: center;
    align-items: center;

    box-sizing: border-box;
    /* padding: 15px; */
}

.laboratory__result img{
    align-self: start;
    height: 25vh;
}
.laboratory__result p{
    display: grid;
    align-items: center;
    align-self: center;
    justify-self: center;
    height: 10vh;
    font-family: 'Montserrat';
    font-weight: bold;
    font-size: calc(10px + 15 * (100vw / 1920));
    color: var(--title-color);

}

.math-formules{
    display: grid;
    row-gap: 20px;
    grid-template-rows: 1fr;
    box-sizing: border-box;
    padding: 20px 0;
    align-content: start;
}

.math-formules__content{
    width: 100%;

    box-sizing: border-box;
    padding: 20px 40px;
    border: 1px solid var(--main-color);
    background-color: var(--background-color);
    border-radius: 20px;

    display: grid;
    column-gap: 30px;
    grid-auto-flow: column;
    align-content: center;
    justify-content: center;
    align-self: start;
}

.math-formules__task{
    width: max-content;
    font-family: 'Montserrat';
    font-size: calc(10px + 10 * (100vw / 1920));
    color: var(--text-color);

    display: grid;
    row-gap: 5px;
    align-content: center;
    align-items: center;
}

.math-formules__task_proportion{
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 1fr 10px 1fr;
    column-gap: 10px;
    height: max-content;
    align-content: center;
    align-items: center;
}

.math-formules__task_equation{
    display: grid;
    grid-auto-flow: column;
    column-gap: 10px;
}

.math-formules__task_case{
    display: grid;
    grid-auto-flow: column;
    column-gap: 10px;
}

.math-formules__task select{
    background-color: var(--main-color);
    color: var(--background-color);
}

.math-formules__task input, .paragraphe input{
    box-sizing: border-box;
    padding: 5px 10px;

    border-radius: 30px;
    border: 2px solid var(--accent-color);
    font-size: calc(10px + 10 * (100vw / 1920));

}

.task-row{
    display: grid;
    grid-auto-rows: 1fr;
    row-gap: 15px;

    align-items: center;
    justify-items: center;
}

.equation{
    display: grid;
    grid-template-rows: 1fr 2px 1fr;
    align-items: center;
    row-gap: 5px;
}

.input-field{
    display: grid;
    grid-auto-flow: column;
    column-gap: 10px;
    align-items: center;
}

.input__text{
    width: 200px;
    height: 50px;
}

.input__number{
    width: 85px;
    height: 40px;
}
.math-formules__task label{
    display: inline;
}

.paragraphe{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--main-color);
    overflow: scroll;
    max-height: 50vh;

    display: grid;
    align-content: start;
    row-gap: 30px;

    font-family: 'Montserrat';
    color: var(--text-color);
    font-size: calc(10px + 10 * (100vw / 1920));
}

.paragraphe p{
    height: calc((10px + 10 * (100vw / 1920)) * 2.3);
    display: flex;
    align-items: center;
    vertical-align: middle;
    margin-bottom: 20px;
}

.fraction-start{
    margin-left: 10px;
    margin-right: 5px;
}

.fraction-end{
    margin-left: 5px;
    margin-right: 10px;
}

.fraction {
    display: inline-block;
    text-align: center;
  }
  
  .numerator,
  .denominator {
    display: inline-block;
    text-align: center;
  }
  
  .fraction-line {
    display: block;
    border-top: 1px solid #000;
    margin: 2px 0;
  }

  .multiply{
    margin: 0 10px;
  }

.select-answer{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: center;
    row-gap: 50px;
    align-items: center;
    justify-items: start;
}

.select-answer__block{
    position: relative;
    display: grid;

    padding-left: 65px;
    font-family: 'Montserrat';
    color: var(--text-color);
    font-size: calc(10px + 15 * (100vw / 1920));
    line-height: 50px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.select-answer__block input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;

}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    width: 50px;
    background-color: var(--background-color);
    box-sizing: border-box;
    border: 4px solid var(--blue-color);
    border-radius: 15px;

    cursor: pointer;

    transition: all 0.3s ease-in-out;
  }

  .select-answer__block:hover input ~ .checkmark {
    background-color: var(--blue-color);
  }

  .select-answer__block input:checked ~ .checkmark {
    background-color: var(--background-color);
  }

  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }

  .select-answer__block input:checked ~ .checkmark:after {
    display: block;
  }

  .select-answer__block .checkmark:after {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--blue-color);
  }

.options-answer{
    display: grid;
    align-content: start;
    align-self: start;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    background: #FFF;

    font-family: 'Montserrat';
    color: var(--text-color);
    font-size: calc(10px + 15 * (100vw / 1920));
}

.options-answer select{
    color: var(--white-color);
    background-color: var(--main-color);
    font-size: calc(10px + 10 * (100vw / 1920));

    transition: all 0.3s ease-in-out;
}

.table{
    height: 14vh;

    background-color: var(--grey-color);
    border-radius: 20px;

    display: grid;
    grid-auto-flow: column;
}

.table__button{
    width: 5vw;
    max-width: 60px;
    position: relative;

}

.table__button img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.table__content{
    box-sizing: border-box;
    margin: 10px 0px;
    border-radius: 10px;
    justify-self: center;
    width: 90vw;
    max-width: 1080px;

    display: grid;
    grid-auto-flow: column;
    column-gap: 20px;
    overflow-x: scroll;
}

.table__item{
    position: relative;
    height: 100%;
    width: 100px;
    border-radius: 10px;
    background-color: var(--white-color);
    cursor: move;
    display: grid;
}

.table__item img{
    align-self: center;
    justify-self: center;
    width: 80px;
    max-height: 8vh;
}

.table__field_text{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;

    display: grid;
    align-content: center;
    justify-content: center;
    text-align: center;
    font-family: 'Montserrat';
    font-weight: bold;
    color: var(--white-color);
    font-size: calc(5px + 10 * (100vw / 1920));

    z-index: 15;

    opacity: 0;

    transition: all 0.2s ease-in-out;
}

.table__item:hover .table__field_text{
    opacity: 1;
}

.table__field_error{
    background-color: var(--red-color);
}

.table__field_hover{
    background-color: var(--accent-color);
    z-index: 10;
}

.table__field_no-select{
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
    cursor: no-drop;
}

.footer{
    width: 100%;
    max-width: 1200px;
    height: 9vh;

    display: grid;
    grid-auto-flow: column;
    align-items: center;

    box-sizing: border-box;
    padding: 0 1.8vw;
}

.footer__button{
    height: 63%;
    width: 16vw;
    max-width: 200px;
}

.footer__button_home{
    height: 63%;
    width: 22.4vw;
    max-width: 312px;

    justify-self: end;
}

.btn{
    border: none;
    font-family: 'Montserrat';
    font-weight: bold;
    color: var(--white-color);
    font-size: calc(10px + 10 * (100vw / 1920));
    background-color: var(--grey-color);
    border-radius: 10px;

    cursor: pointer;

    transition: all 0.3s ease-in-out;
}

.btn_home{
    background-color: var(--blue-color);
    border-radius: 60px;
}

@media screen and (max-height: 700px) {
    .footer__button, .footer__button_home{
        height: 90%;
    }
}

.footer__button_error{
    animation: errorButton 0.5s ease-in-out;
}

.footer__button_greate{
    animation: greateButton 1s ease-in-out;
}

@keyframes greateButton {
    from{
        transform: scale(110%);
    }

    20%{
        transform: scale(100%);

    }

    40%{
        transform: scale(110%);

    }

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

    to{
        transform: scale(100%);

    }
}

@keyframes errorButton {
    form{
        transform: rotate(0deg);
    }

    10%{
        transform: rotate(3deg);
    }

    20%{
        transform: rotate(-3deg);

    }

    40%{
        transform: rotate(7deg);

    }

    60%{
        transform: rotate(-7deg);

    }

    80%{
        transform: rotate(3deg);

    }

    to{
        transform: rotate(0deg);

    }
}

.footer__button:hover, .footer__home-button:hover{
    transform: scale(110%);
}

.footer__button{
    background-color: var(--main-color);
    border-radius: 10px;
}

.footer__button:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.footer__button:disabled:hover{
    transform: none;
}

.congratulations{
    position: fixed;
    top: 0;
    left: 0;

    height: 100vh;
    width: 100vw;

    background-color: #000000d7;

    z-index: 99;

    /* opacity: 0; */

    display: none;

    /* transition: opacity 0.4s ease-in-out; */

}

.cg-none{
    display: none;
}

.congratulations__block{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);

    display: grid;
    align-content: center;
    justify-content: center;
    row-gap: 50px;

    width: 80vw;
    max-width: 1200px;
    height: 80vh;
    background-color: var(--background-color);

    box-sizing: border-box;
    border-radius: 15px;
    border: 5px solid var(--accent-color);

}

.congratulations__results{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    font-family: 'Dela';
    text-align: center;
    color: var(--text-color);
    font-size: calc(6px + 15 * (100vw / 1920));
}



.congratulations__field{
    display: grid;
    justify-content: start;
    align-items: center;
    grid-template-columns: 30px auto;

    column-gap: 20px;
}

.congratulations__icon{
    width: 30px;
    height: 30px;
}

.congratulations__button{
    justify-self: center;
    padding: 10px 30px;
    width: 300px;
    background-color: var(--accent-color);
}


.p_no-margin{
    margin: 0;
    padding: 0;
    margin-bottom: 0 !important;
}