body {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    line-height: 1.1;
    margin: 0;
}

/*Стили главного заголовка*/
.mainbox {
    position: absolute;
    left: 0;
    right: 0;
    top: 5vh;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
    font-size: 54px;
}

#header.animate {
    top: -100vh;
    transition: all 0.5s linear 0s;
}
/*==============================*/

/*Стили полосы*/
.line {
    position: absolute;
    left: 0;
    right: 0;
    top: 55vh;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

#el.animate {
    top: 2vh;
    transition: all 0.4s linear 0s;
}

.flexxx {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
/*==============================*/

/*Стили элементов полосы*/
.flexitem {
    border: 2px solid #000000;
    flex: 1;
    padding: 10px;
    margin: 0 5px;
    position: relative;
    font-weight: bold;
    transition: all 0.5s linear 0s;
}

.flexitem:hover {
    background-color: black;
    color: white;
}

.flexitem:hover .flex1 {
    height: auto;
    position: absolute;
    color: black;
    top: 150%;
    text-align: left;
    font-weight: normal;
    opacity: 1;
    transition: opacity 0.5s linear 0s;
}

.flexitem:hover .nonhover {
    height: 0;
    opacity: 0;
}

.flexitem:hover .withhover {
    height: auto;
    opacity: 1;
}

.flex1, .withhover {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s linear 0s;
}

#el1.animate, #el2.animate, #el3.animate, #el4.animate, #el5.animate {
    color: white;
    background-color: black;
    flex: 3;
    transition: flex 0.5s linear 0s;
}
/*==============================*/

/*Стили информации*/
.information, #infA {
    display: none;
}

.inftext {
    font-size: 22px;
    width: 850px;
    margin: 0 auto;
}

.inftext p {
    width: 700px;
    margin: 20px auto;
}

.inftext h3{
    text-align: center;
    font-size: 36px;
    margin: 8% 8% 4%;
}

.information .png {
    width: 50%;
    padding: 5%;
}

.png img {
    width: 100%;
    max-height: 70vh;
}

.png .buttest {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.buttest button {
    text-align: center;
    font-family: 'Comfortaa', serif;
    font-weight: bold;
    border: 2px black solid;
    padding: 6px 16px;
    background-color: white;
    font-size: 22px;
}

.infheader {
    margin: 100px auto 300px;
    display: flex;
    max-width: 90%;
    justify-content: space-between;
    align-items: center;
    height: 90vh;
}

.headernav {
    padding: 5%;
    font-size: 54px;
    font-weight: bold;
    width: 50%;
    font-family: 'Comfortaa', serif;
}

.headernav h2 {
    border-bottom: 2px solid maroon;
    padding-bottom: 20px;
    margin: 0;
}

#information1.animate, #information2.animate, #information3.animate, #information4.animate, #information5.animate, #infA.animate {
    display: block;
    margin-top: 20%;
    opacity: 0;
    visibility: hidden;
}

#infA {
    padding: 100px 10% 30px;
}

#information1.vis, #information2.vis, #information3.vis, #information4.vis, #information5.vis, #infA.vis {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    transition: all 0.5s linear 0s;
}

.inftext ul {
    margin: 3% 5%;
    font-size: 22px;
    list-style-type: disc;
}

.information a {
    text-decoration: none;
    color: inherit;
}

#infA ul {
    list-style-type: none;
    margin: 3% 0 0 3%;
    padding-left: 0;
}

#infA ol {
    margin: 3% 0 0 3%;
    padding-left: 0;
}

#infA {
    font-size: 24px;
}

nav ul {
    font-size: 36px;
    list-style-type: none;
    margin: 3% 0;
    padding-left: 0
}

nav ul li {
    margin: 3% 0;
}

#back-top {
    position: fixed;
    bottom: 0;
    padding: 0;
    right: 10px;
    z-index: 99991;
}

#back-top a {
    width: 77px;
    height: 30px;
    background: rgba(0, 0, 0, 0.25);
    display: block;
    text-decoration: none;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
    text-align: center;
    color: black;
}

#back-top a:hover {
    height: 70px;
    background: #000000;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
    color: white;
}

#author {
    position: fixed;
    bottom: 0;
    padding: 0;
    right: 100px;
    z-index: 99991;
    color: black;
}

#author a {
    width: 77px;
    height: 30px;
    background: rgba(0, 0, 0, 0.25);
    display: block;
    text-decoration: none;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
    text-align: center;
    color: black;
}

#author a:hover {
    height: 70px;
    background: #000000;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
    color: white;
}

#information1 h2, #information1 h3 {
    color: #ab2b2d;
    font-family: 'Comfortaa', serif;
}

#information2 h2, #information2 h3 {
    color: #250f61;
    font-family: 'Comfortaa', serif;
}

#information2 .headerinf h2 {
    border-bottom: 2px solid #250f61;
    padding-bottom: 20px;
}

#information3 h2, #information3 h3 {
    color: #37694d;
    font-family: 'Comfortaa', serif;
}

#information3 .headerinf h2 {
    border-bottom: 2px solid #37694d;
    padding-bottom: 20px;
}

#information4 h2, #information4 h3 {
    color: #542859;
    font-family: 'Comfortaa', serif;
}

#information4 .headerinf h2 {
    border-bottom: 2px solid #542859;
    padding-bottom: 20px;
}

#information5 h2, #information5 h3 {
    color: #1e6367;
    font-family: 'Comfortaa', serif;
}

#information5 .headerinf h2 {
    border-bottom: 2px solid #1e6367;
    padding-bottom: 20px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.start {
    padding: 10px 30px;
    background-color: white;
    border-radius: 10px;
    border: 2px solid black;
    font-family: inherit;
    font-size: 28px;
    margin: 50px auto;
    width: 800px;
}

.testblock {
    display: none;
}

#testblock.animate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 85vh;
    margin-top: 100px;
}

#maintext {
    font-size: 32px;
    text-align: center;
    margin: 20px auto;
    width: 1000px;
}

#start {
    background-color: white;
    border-radius: 10px;
    border: 2px solid black;
    width: 30vw;
    height: 50px;
    text-align: center;
    font-size: 28px;
    margin-top: 50px;
}

.options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    height: 60px;
    font-size: 22px;
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 5px 30px;
    width: 800px;
    text-align: center;
    border-radius: 10px;
}

button:active, button:focus {
    outline: none;
}
button::-moz-focus-inner {
    border: 0;
}

button:hover {
    -webkit-box-shadow: 0 0 9px 0 rgba(0,0,0,0.4);
    -moz-box-shadow: 0 0 9px 0 rgba(0,0,0,0.4);
    box-shadow: 0 0 9px 0 rgba(0,0,0,0.4);
}

#answer {
    margin: 0;
    background: none;
    color: black;
    height: auto;
    text-align: center;
    width: 1000px;
}

#question, .options, #answer {
    display: none;
}

.buttonbox {
    display: none;
}

.buttonbox button {
    background-color: white;
    border-radius: 10px;
    border: 2px solid black;
    width: 400px;
    height: 50px;
    text-align: center;
    font-size: 28px;
    margin: 20px;
}

@media screen and (max-height: 769px) {
    nav ul {
        font-size: 28px;
    }
}