html {
    font-size: 3vh;
}

body {
    font-size: 1.6rem;
}

html, body {
	background: #F4F4F4;
	height: 100%; 
	width: 100%; 
	margin: 0; 
	padding: 0; 
	font-family: Gilroy, Arial;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
}

*, *::before, *::after {
	box-sizing: border-box;
}

/*!* Works on Firefox *!*/
/** {*/
/*  scrollbar-width: thin;*/
/*  scrollbar-color: #fff #fff;*/
/*}*/

/*!* Works on Chrome, Edge, and Safari *!*/
/**::-webkit-scrollbar {*/
/*  width: .1rem;*/
/*  height: .15rem;*/
/*  -webkit-appearance: none;*/
/*    !*width: 7px;*!*/
/*}*/

/**::-webkit-scrollbar-track {*/
/*  background: #fff;*/
/*  border-radius: 1rem;*/
/*}*/

/**::-webkit-scrollbar-thumb {*/
/*  background-color: gray;*/
/*  border-radius: 1rem;*/
/*}*/

/* Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: #adadad #199468;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 7px;
}

*::-webkit-scrollbar-track {
    background: #199468;
}

*::-webkit-scrollbar-thumb {
    background-color: #adadad;
    border-radius: 10px;
    border: 3px solid #199468;
}

h3 {
    color: #ffcfa9;
    text-align: left;
}

.container h3 {
    text-align: center;
}

.display__window {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.window__heading {
    padding: 1rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 4rem;
    min-height: 4rem;
    /*height: 4rem;*/
}

.window__content {
    flex: auto;
    width: 100%;
    background: #199468;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    line-height: 120%;
}

.container {
    width: 100%;
    max-width: 51rem;
}

.side, .logo {
    /*width: 8rem;*/
    padding-top: .3rem;
    width: 100%;
    text-wrap: nowrap;
}

.logo img {
    width: 8rem;
}

.nav {
	display: flex;
	border-bottom: 1px solid #fff;
  position: relative;
}

.nav__item {
    display: inline-block;
    padding: .5rem 1rem;
    cursor: pointer;
    font-size: .7rem;
    line-height: 1rem;
    color: #1C212C;
}

.nav__slide {
    position: absolute;
    bottom: -1px;
    left: 0px;
    width: 5rem;
    height: .1rem;
    background-color: #7d8be8;
    display: inline-block;
    transition: left 500ms, width 500ms;
}

[data-settings="none"] .nav__slide {
    width: 0;
}


.btn {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 700;
    color: #199468;
    background: #F4F4F4;
    border-radius: 1rem;
    font-size: 1rem;
    padding: .5rem 1rem;
    border: unset;
    cursor: pointer;
    background: #fff;
}
.btn:hover {
  opacity: .9;
}

.btn-start {
    font-size: 2rem;
    line-height: 95%;
    border-radius: 2rem;
    padding: 1rem 2rem;
    display: block;
    width: fit-content;
    margin: 1rem auto;
}

.btn-question, .btn-tests, .btn-tests-next {
    font-size: 2rem;
    line-height: 95%;
    border-radius: 2rem;
    padding: 1rem 5.1rem;
    display: block;
    width: fit-content;
    margin: 1rem auto;
    background-color: #F4F4F4;
    color: #199468;
}

.text {
    text-align: center;
    margin: 2rem 0 1rem;
    line-height: 120%;
    min-height: 8rem;
    width: 100%; 
}


#reading {
    display: none;
    max-height: 24.1rem;
    max-width: 98vw;
    overflow-y: auto;
    overflow-x: hidden;
}

.buttons__panel {
    min-height: 9rem;
}

.display__window[data-font="small"] .text {
    font-size: .8rem;
    line-height: 150%;
}
.display__window[data-font="medium"] .text {
    font-size: 0.9rem;
    line-height: 1.05rem;
}
.display__window[data-font="high"] .text {
    font-size: 1rem;
}


.progress-handler,
.progress {
    position: absolute;
    top: 0px;
    left: 0px;
    height: .1rem;
    background-color: #80808047;
    width: 100%;
}

.progress-handler {
    width: 0%;
    background-color: #199468;
    height: 100%;
}

.settings {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0px;
    height: 2.5rem;
}

.settings-item {
  display: none;
}

.display__window[data-settings="speed"] [data-settings="speed"],
.display__window[data-settings="level"] [data-settings="level"],
.display__window[data-settings="fonts"] [data-settings="fonts"],
.display__window[data-settings="theme"] [data-settings="theme"] {
  display: block;
}

.set-speed, .set-level, .set-font, .set-theme {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
    background-color: #f5f5f5;
    border-radius: .5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 .1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    vertical-align: middle;
}

.set-speed {

}

.set-speed[data-id="low"] {
    background-image: url(../svg/speed-low.svg);
}
.set-speed[data-id="medium"] {
    background-image: url(../svg/speed-medium.svg);
}
.set-speed[data-id="high"] {
    background-image: url(../svg/speed-high.svg);
}


.set-level[data-id="low"] {
    background-image: url(../svg/level-low.svg);
}
.set-level[data-id="medium"] {
    background-image: url(../svg/level-medium.svg);
}
.set-level[data-id="high"] {
    background-image: url(../svg/level-high.svg);
}


.set-theme[data-id="white"] {
    background-color: #fff; 
}
.set-theme[data-id="black"] {
    background-color: black; 
    color: #fff;
}
.set-theme[data-id="blue"] {
    background-color: #199468;
    color: #fff;
}


.set-font[data-id="small"] {
    font-size: 1rem;
}
.set-font[data-id="medium"] {
    font-size: 1.2rem;
}
.set-font[data-id="high"] {
    font-size: 1.4rem;
    line-height: 1.8rem;
}


.display__window[data-speed="medium"] .set-speed[data-id="medium"], 
.display__window[data-speed="low"] .set-speed[data-id="low"], 
.display__window[data-speed="high"] .set-speed[data-id="high"], 

.display__window[data-level="medium"] .set-level[data-id="medium"], 
.display__window[data-level="low"] .set-level[data-id="low"], 
.display__window[data-level="high"] .set-level[data-id="high"], 

.display__window[data-font="medium"] .set-font[data-id="medium"], 
.display__window[data-font="small"] .set-font[data-id="small"], 
.display__window[data-font="high"] .set-font[data-id="high"], 

.display__window[data-theme="white"] .set-theme[data-id="white"], 
.display__window[data-theme="black"] .set-theme[data-id="black"], 
.display__window[data-theme="blue"] .set-theme[data-id="blue"] {
    box-shadow: 0px 0px 0px .1rem #597fd169;
}





.display__window[data-theme="black"] .logo {
    filter: brightness(0);
}
.display__window[data-theme="black"] .btn {
  color: #000;
}
.display__window[data-theme="black"] .nav__slide,
.display__window[data-theme="black"] .window__content {
    background: #000;
}

.display__window[data-theme="white"] .window__content {
  background: #fff;
  color: #000;
}

.display__window[data-theme="white"] .btn {
  background: #4C6FBB;
  color: #fff;
}


.block__steps {
    height: .4rem;
    width: 20rem;
    left: calc(50% - 10rem);
    position: absolute;
    bottom: 1rem;
    background-color: #ffffff1f;
    border-radius: 1rem;
}
.block__steps span {
    height: 100%;
    display: block;
    width: 0%;
    background-color: #ffffff40;
    border-radius: 1rem;
}

[data-theme="white"] .block__steps {
    background-color: #5d68b721;
}
[data-theme="white"] .block__steps span {
    background-color: #5d68b71c;
}


.answers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
}
.answers .btn-answer {
    flex: auto;
    background-color: #fff;
    color: #199468;
}


@media (max-width: 1023px) {

    .logo .logo__text {
        font-size: 1.2rem;
        height: 1.9rem;
        display: flex;
        align-items: center;
    }

    .settings-item[data-settings="theme"] {
        display: flex;
        gap: 0.2rem;
    }

    .window__heading {
        flex-direction: column;
        padding: .3rem;
        height: 3rem;
        min-height: 3rem;
    }
    .btn-start {
        font-size: 1.2rem;
        padding: 1rem 1.8rem;
        max-width: 100%;
    }
    .nav {
        justify-content: center;
        width: 6rem;
        background-color: #fff;
        border-radius: 0.3rem;
        margin-top: 0.3rem;
        position: absolute;
        top: 0rem;
        right: 0;
        border: 0;
    }
    .nav__item {
        padding: .3rem .3rem;
        font-size: .7rem;

        display: none;
    }
    .nav__slide {
      width: 4rem;
      /*background-color: #ff7c15;*/

      background: none;
    }

    .text {
        min-height: 10rem;
    }

    .settings {
        /*height: 1rem;*/
        /*top: calc(-100% + -1rem);*/
    }

    .set-speed, .set-level, .set-font, .set-theme {
        width: 1.5rem;
        height: 1.5rem;
        line-height: 1.5rem;
        font-size: 1rem;
        border-radius: .5rem;
    }

    .display__window[data-speed="medium"] .set-speed[data-id="medium"], 
    .display__window[data-speed="low"] .set-speed[data-id="low"], 
    .display__window[data-speed="high"] .set-speed[data-id="high"], 
    .display__window[data-level="medium"] .set-level[data-id="medium"], 
    .display__window[data-level="low"] .set-level[data-id="low"], 
    .display__window[data-level="high"] .set-level[data-id="high"], 
    .display__window[data-font="medium"] .set-font[data-id="medium"], 
    .display__window[data-font="small"] .set-font[data-id="small"], 
    .display__window[data-font="high"] .set-font[data-id="high"], 
    .display__window[data-theme="white"] .set-theme[data-id="white"], 
    .display__window[data-theme="black"] .set-theme[data-id="black"], 
    .display__window[data-theme="blue"] .set-theme[data-id="blue"] {
        box-shadow: 0px 0px 0px .1rem #ff7c15;
    }

    .set-font[data-id="small"] {
        font-size: .7rem;
        line-height: 1.75rem;
    }
    .set-font[data-id="medium"] {
        font-size: .8rem;
        line-height: 1.6rem;
    }
    .set-font[data-id="high"] {
        font-size: 1.2rem;
        line-height: 1.4rem;
    }


    .display__window[data-font="small"] .text {
        font-size: .8rem;
    }
    .display__window[data-font="medium"] .text {
        font-size: 1rem;
    }
    .display__window[data-font="high"] .text {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 1rem;
        width: 100%;
    }
    .side, .logo {
        width: 100%; 
    }
    .logo img {
        height: 2rem;
        display: block;
        margin: 0 auto;
    }

    .block__steps {
        /*bottom: calc(100% - 4.3rem);*/
        width: calc(100% - 2rem);
        left: 1rem;
    }

    .btn-question, 
    .btn-tests,
    .btn-tests-next {
        font-size: 1.2rem;
        padding: 1rem 1.8rem;
        max-width: 100%;
    }


    h3 {
        font-size: 1rem;
        text-align: center;
        margin: 0 0;
    }

    .answers .btn-answer {
        font-size: .8rem;
        line-height: 110%;
        font-weight: normal;
        padding: .3rem .5rem;
        border-radius: .3rem; 
    }
}

@media (max-width: 768px) {
    #reading {
        display: none;
        overflow: scroll;
        /* max-height: 65vh; */
        max-height: 25.6rem;
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {
    .nav {
        position: relative;
        margin-top: 0;
        background: none;
    }

    .logo .logo__text {
        font-size: 1rem;
        height: 1.2rem;
    }

    .settings-item[data-settings="theme"] {
        padding-top: 0.2rem;
    }

    .window__heading {
        height: 2.3rem;
        min-height: 2.3rem;
    }

    .settings {
        position: unset;
        justify-content: left;
    }
}

.logo__text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #199468;
    width: 100%;
}