body, html {
  max-width: 100%;
  height: 100%;
}

@font-face {
  font-family: firstFont; 
  src: url(Fonts/first/Comfortaa-SemiBold.ttf);
  src: url(Fonts/first/Comfortaa-Medium.ttf);
  src: url(Fonts/first/Comfortaa-Light.ttf);
  src: url(Fonts/first/Comfortaa-Regular.ttf);
}

@font-face {
  font-family: secondFont;
  src: url(Fonts/second/Montserrat-Black.ttf);
  src: url(Fonts/second/Montserrat-BlackItalic.ttf);
  src: url(Fonts/second/Montserrat-SemiBold.ttf);
  src: url(Fonts/second/Montserrat-Bold.ttf);
  src: url(Fonts/second/Montserrat-ExtraBold.ttf);
  src: url(Fonts/second/Montserrat-Regular.ttf);
}

@font-face {
  font-family: firstFontBold;
  src: url(Fonts/first/Comfortaa-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: secondFontBold;
  src: url(Fonts/second/Montserrat-Medium.ttf);
  font-weight: bold;
}

@font-face {
  font-family: secondFontBlack;
  src: url(Fonts/second/Montserrat-Black.ttf);
}

body {
  font-family: firstFont;
  font-family: secondFont;
  font-size: 14px;
  padding: 0 0 0 0;
  margin: 0;
  overflow-x: hidden;
  background-color: #2A4B7C;
  background: url(https://image.ibb.co/dCYYST/abstract_astronomy_constellation_1025469.jpg) no-repeat;
  background-size: cover;
}

header {
  max-width: 100%;
}

footer {
  max-height: 100%;
  background-color: #142339;
}

h1, h2 {
  margin: 0;
}

h4 {
  margin-top: 8px;
  margin-bottom: 5px;
}

img {
  max-width: 100%;
  height: auto;
}

header, div, img {
  box-sizing: border-box;
}

/* HEADER */
.header_container {
  box-shadow: 3px 3px 10px 2px rgba(0,0,0,0.3);
  margin: 15px 15px;
  height: 88px;
  border-radius: 10px;
  background-color: #142339;
}

.header_mobile {
  background-color: #142339;
  display: none;
  padding-bottom: 5px;
}

.mobile_container {
  display: grid;
  grid-template-columns: 1fr auto; 
}

.mobile_container a {
  text-decoration-line: none;
  color: #fff;
}

.logo_mobile {
  font-family: firstFontBold;
  color: white;
  font-size: 15px;
  text-transform: uppercase;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.mobile_menu_container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.mobile_menu_container #links {
  display: none;
}

#links {
 width: 100%;
}

.mobile_menu_container a {
  padding: 10px 0 10px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-family: secondFont;
  display: inline-block;
  background-color:  #142339;
  width: 100%;
  text-transform: uppercase;
}

.nav_list {
  text-decoration: none;
  text-transform: uppercase;
  list-style: none;
  padding-top: 31px;
  padding-right: 30px;
  position: absolute;
  color: white;
  justify-self: end;
  display: block;
}

.nav_list a {
  display: inline-block;
  margin-left: 10px;
  font-family: secondFontBold;
  font-size: 18px;
  vertical-align: middle;
  font-weight: bolder;
}

.nav_list a:hover {
  text-decoration-line: underline;
}


 .menu_icon {
  position: absolute;
  display: none;
  width: 80px;
  justify-self: end;
  margin: 10px 10px;
}

.menu_icon_mobile {
  display: none;
  width: 30px;
}

.item1 {
  display: grid;
  grid-template-columns: auto 1fr; 
  position: relative;
  border-radius: 10px;
  box-shadow: 3px 3px 10px 2px rgba(0,0,0,0.3);
  z-index: 1;
}

.item1 a {
  text-decoration-line: none;
  color: #fff;
}

.logo {
  font-family: firstFontBold;
  position: absolute;
  color: white;
  font-size: 15px;
  text-transform: uppercase;
  padding-top: 10px;
  padding-left: 10px;
  display: block;
  transition-property: all;
  transition-duration: 5s;
  -webkit-transition-property: all;
  -webkit-transition-duration: 5s;
}

 .logo:hover  {
  padding-left: 60px;
 }
 .logo:hover h2 {
  display: none;
 }
 .logo:hover div::after {
  content: "на главную";
  font-size: 1.5em;
 }

.logo:hover .fa-dot-circle-o {
  color: rgba(255,117,26,0.8);
  text-shadow: 1px 3px 3px rgba(255,117,26,0.8);
}

 #name, #name2 {
   text-transform: lowercase;
   font-size: 1em;
   font-family: secondFontBlack;
   color: #fff;
   background-color: ;
   border: 4px solid #fff;
   border-radius: 15px;
   text-align: center;
 } 

  #name2 {
  border: 3px solid #fff;
  border-radius: 20px;
 }

.drop_container {
  position: relative;
  display: inline-block;
}

.drop_content {
  position: absolute;
  display: none;
  background-color: #142339;
  margin-left: 3px;
  height: auto;
  z-index: 1;
  border-radius: 10px;
}

.drop_content a  {
  text-transform: none;
  font-size: 17px;
  font-family: secondFontBold;
  text-align: left;
  color: #fff;
  text-decoration: none;
  padding: 3px 10px 5px 10px;
  margin: 3px; 
  font-weight: bolder;
  display: block;
}

 .drop_container:hover .drop_content {
  display: block;
}

.drop_container:hover .drop_btn {
  font-family: firstFontBold;
  font-size: 25px;
  font-weight: bold;
  text-decoration-line: none;
}

.drop_btn {
 position: relative;
}

.drop_btn a:hover {
  font-size: 25px;
}

.drop_content a:hover {
  font-family: secondFontBold;
  font-size: 17px;
  border-radius: 10px;
  background-color: #fff;
  color: #142339;
  text-decoration-line: none;
}



/* CONTENT */

.content_container {
  padding-bottom: 20px;
  height: 800px;
  position: relative;
  display: grid;
  grid-template-columns: auto;
 }

 .quiz_container {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 530px));
  padding-left: 15px;
  padding-right: 15px;
  justify-self: center;
  grid-template-rows: auto auto auto auto auto auto auto auto 1fr;
  background: #fff;
  margin-top: 12px;
  padding-top: 10px;
  padding-bottom: 20px;
  border-radius: 10px;
  -webkit-box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3); 
  -moz-box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3); 
  box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3);
}

.correct { 
  background-color: #0c0; 
  border-radius: 0 0 10px 10px;
  margin-bottom: -11px;
} 
.wrong { 
  background-color: #e60000; 
  border-radius: 0 0 10px 10px;
  margin-bottom: -11px;
}

#question, #question2 {
 margin-top: 5px;
 padding-top: 5px;
 padding-bottom: 3px;
 margin-bottom: 10px;
 font-family: firstFont;
 font-size: 18px;
 display: none;
 background-color: #111;
 color: #fff;
 border-radius: 0 0 10px 10px;
 padding-left: 5px;
}

#question2 {
 color: #111;
 font-family: secondFontBold;
 background-color: #eee;
 text-align: center;
 padding-right: 5px;
 padding-bottom: 10px;
 font-size: 20px;
}

#rule {
 color: #fff;
 position: relative;
 text-align: left;
 align-content: center; 
 padding-left: 5px;
 padding-right: 5px;
 padding-top: 5px;
 padding-bottom: 5px;
 font-family: firstFont;
 font-size: 17px;
 background-color: #111; 
 margin-bottom: -5px;
 border-radius: 0 0 10px 10px;
}

#score{
 display: none;
}

#page {
  margin-bottom: 5px;
}

#h1 {
  font-family: firstFontBold;
  margin-bottom: 2px;
}

#result{
  color: #fff;
  margin: 0.2em 0;
  padding-top: 2px;
  padding-bottom: 2px;
  width: 100%;
  text-align: center;
  font-family: secondFontBold;
  font-size: 14px;
  margin-bottom: -1px;
}

.right {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
}

#image {
  border-radius: 10px 10px 0 0;
  justify-self: center;
  width: 100%;
  margin-bottom: -10px;
}

#gif { 
  display: none;
  width: 100%;
  border-radius: 10px 10px 0 0;
  margin-bottom: -10px;
}


#result2 {
 margin-top: 5px;
 font-family: secondFont;
 font-size: 16px;
 padding-left: 5px;
}

 #result3 {
  margin-top: 3px;
  padding-bottom: 1px;
  font-family: secondFont;
  font-size: 16px;
  display: none;
  padding-left: 5px;
 }

#info{
  font-family: secondFontBold;
  font-size: 18px;
  color: white; 
  background: #ff751a;
  padding-top: 3px;
  padding-left: 5px;
  display: none; 
}

#info2{
   font-family: firstFont;
   font-size: 18px;
   background: #ff751a;
   padding-left: 5px;
   padding-top: 3px;
   display: none;
   padding-bottom: 5px;
   border-radius: 0 0 10px 10px;
   margin-bottom: 5px;
}

#game_score {
  margin-top: 5px;
  display: none;
}

.btn, .btn2 {
  width: 100%;
  border: 1.5px solid #111;
  background-color: #fff;
  color: #ff751a;
  padding: 5px 5px;
  font-size: 15px;
  cursor: pointer;
  border-color: #ff751a;
  outline: none;
  margin-top: 5px;
  border-radius: 10px;
  font-family: secondFontBold;
}

.btn2 {
  font-family: firstFontBold;
  border: 1.5px solid #111;
  color: #111;
  margin-top: 10px;
}


.btn:hover {
  background: #ff751a;
  color: white;
}

.btn2:hover {
  background-color: #111;
  color: #fff;
}

#next {
  
  display: none;
}

.article {
  font-size: 14px;
  font-family: secondFont;
  background-color: #fff;
  padding-left: auto;
  margin-left: auto;
  padding-right: auto;
  margin-right: auto;
}

.article a {
  color: #111;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #ff751a; 
}

#article_title, #article_title3 {
  font-size: 25px;
  font-family: firstFontBold;
  color: #ff751a;
  text-align: center;
  align-self: center;
}

#article_title a, #article_title3 a {
  color: #ff751a;
  text-decoration-line: none;
}


#article_title p, #article_title3 p {
  font-size: 17px;
  margin-bottom: 5px;
}

#article_title3 p {
  margin-bottom: 0px;
}

 #article_title2 {
  font-size: 45px;
  font-family: secondFont;
  text-shadow: 1px 1px #142339;
  align-self: center;
  color: #fff;
  justify-self: center;
}

.item2, .item3 {
  border-radius: 20px;
  margin-top: 5px;
  background-color: #fff;
  padding-bottom: 15px;
  display: grid;
 
  margin-left: 2px;
  margin-right: 2px;
}

.item3 {
  margin-top: 20px;
  padding-bottom: 5px;
}

.item3 #article_title3 {
  font-family: secondFont;
}

.item2 p, .item3 p {
   font-size: 16px;
   font-family: secondFont;
}

.cover, .cover2 {
  margin-top: 10px; 
  justify-self: center;
  text-align: center; 
}

.cover2 {
  margin-top: 35px;
}




.first_letter {
  font-size: 25px;
  display: inline-block;
  padding: 0 5px;
  background-color: #ff751a;
  border-radius: 5px;
  color: #fff;
}

.author {
  font-size: 15px;
  font-family: firstFontBold;
  color: #111;
  text-align: right; 
}


 #article_title2 {
  font-size: 45px;
  font-family: secondFont;
  text-shadow: 1px 1px #142339;
  align-self: center;
  color: #fff;
  justify-self: center;
}


.cover {
  margin-top: 10px; 
  justify-self: center;
  text-align: center; 
}

.cover img {
  border-radius: 10px;
  box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3);
  width: 350px;
  overflow: hidden;
}


.preview_quote2 {
  
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #142339;
  border-radius: 10px;
  font-size: 15px;
  font-family: secondFont;
  
  
  line-height: 140%;
}

.first_letter {
  font-size: 25px;
  display: inline-block;
  padding: 0 5px;
  background-color: #ff751a;
  border-radius: 5px;
  color: #fff;
}

.author {
  font-size: 15px;
  font-family: firstFontBold;
  color: #111;
  text-align: right; 
}

.map {
 display: grid;
 justify-items: center;
}

.picture {
  display: none;
}

iframe {
  width: 800px;
  height: 350px;
  border: 0;
  margin-bottom: 10px;
}

/* Materialy page */
.mat1, .mat2, .mat3, .mat4, .mat5, .mat6, .mat7, .mat8, .mat9, .mat10, .mat11 {
  background-image: linear-gradient(transparent, #111, #111);
  font-size: 14.5px;
  font-family: firstFont;
  border-radius: 10px;
  color: white;
  overflow: hidden;
  box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3);
}

.mat1:hover, .mat2:hover, .mat3:hover, .mat4:hover, .mat5:hover, .mat6:hover, .mat7:hover, 
.mat8:hover, .mat9:hover, .mat10:hover, .mat11:hover {
   box-shadow: 4px 4px 11px 3px rgba(255,117,26,0.8);
}



/* FOOTER */

.footer_container {
  
  
  padding-top: 20px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: auto auto;
  background-color: #142339;
}

.footer_contact {
  font-family: secondFont;
  font-size: 15px;
  color: #fff;
  display: grid;
  grid-template-columns: 350px auto;
  margin-left: 15px;
  margin-right: 25px;
}

.attention {
  font-family: secondFont;
  font-size: 15px;
  color: #eee;
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: center;
  align-self: center;
  background-color: #111;
  border-radius: 10px;
}

.footer_nav {
  margin-left: 0px;
}
 
.footer_list {
  list-style: none;
  font-family: firstFont;
  text-align: left;
  padding-left: 25px;

}

.footer_list2 {
  list-style: none;
  text-align: right;
  align-self: center;
}

.footer_list a {
  padding: 5px 10px;
  font-size: 15px;
  color: #F3E0BE;
  text-decoration-line: none;
  text-transform: uppercase;
}

.footer_list a:hover {
  text-decoration-line: underline;
}

.footer_list li {
  display: inline-block;
  padding-top: 5px;
}

.footer_list2 li {
  padding: 5px 10px;
  font-family: secondFont;
}


/* Responsive header */
@media  (max-width: 1197px)  {
  .nav_list {
    padding-top: 28px;
  } 
  .nav_list a {
    font-size: 15px;
  }
   .logo {
    font-size: 13px;
  }
   #name {
    font-size: 0.96em;
  }
  .drop_container:hover .drop_btn {
    font-size: 20px;
  }
  .drop_btn {
    font-size: 20px;
  }
  .nav_list a:hover {
    font-size: 20px;
  }
  .drop_content a {
    font-size: 15px;
  }
  .drop_content a:hover {
    font-size: 15px;
  }
  .drop_content {
    margin-left: 3px;
  }
  .header_container {
   height: 78px;
  }
}

@media (max-width: 990px) {
  .nav_list {
    display: none;
  }
  .menu_icon {
    display: block;
  }
  .item1 {
    grid-template-columns: 1fr;
  }
  .header_container {
    margin-bottom: 20px;
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 10px;
  }
}

@media (max-width: 499px) {
  .header_mobile {
    display: block;
    padding-bottom: 10px;
    background-color: none;
    box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3);
  }
  .item1 {
    margin-top: -10px;
  }
  .logo {
    display: none;
  }
  .menu_icon {
    display: none;
  }
  .menu_icon_mobile {
    display: block;
  }
  .logo_mobile {
    font-size: 12px;
  }
  #name2 {
    font-size: 0.95em;
  }
  .header_container {
    height: auto;
    margin-right: 0px;
    margin-left: 0px;
    margin-bottom: 0px;
    box-shadow: none;
  }
  .mobile_menu_container {
    border-radius: 0px;
 }
 .picture {
    display: block;
    width: auto;
 }
}

@media (max-width: 400px) {
  .logo_mobile {
    text-align: left;
  }
}

@media (min-width: 2000px) {
  .logo {
    font-size: 23px;
  }
  #name {
    font-size: 1em;
    border-radius: 25px;
    border: 6px solid #fff;
  }
  .nav_list a {
    font-size: 23px;
    margin-left: 25px;
  }
  .nav_list {
    padding-top: 48px;
    padding-right: 48px;
  }
  .drop_content a, .drop_content a:hover {
    font-size: 20px
  }
  .drop_content a {
    margin: 0;
  }
  .drop_container:hover .drop_btn {
    font-size: 30px;
  }
  .drop_content {
    margin-left: 23px;
  } 
  .header_container {
    border-radius: 15px;
    width: 2000px;
    height: 128px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Responsive content */

@media (min-width: 800px) {
.article {
  width: 800px;
  padding-left: auto;
  margin-left: auto;
  padding-right: auto;
  margin-right: auto;
 }
 .item2, .item3 {
  overflow: hidden;
 }
}

@media (max-width: 868px) {
.item2, .item3 {
 border-radius: 15px;
 margin-left: 1px;
 margin-right: 1px;
 
}
.article {
  border-radius: 20px;
  padding-left: 15px;
  padding-right: 15px; 
 }
  iframe {
  width: 590px;
  margin-left: -14px;
  margin-right: -14px;
  
 }
 #article_title2 {
  font-size: 35px;
 }
}

@media (max-width: 1114px) {
  #article_title, #article_title3 {
  font-size: 20px;  
 }
} 

@media (max-width: 610px) {
  .item2, .item3 {
    overflow: hidden;
  }
}

@media (max-width: 499px) {
  .quiz_container {
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 0px;
    box-shadow: none;
    margin-top: 0px;
  }
  body {
    background: none;
  }
  #h1 {
    font-size: 13px;
  }
  #rule, #info1 {
    font-size: 16px;
  }
   #info2 {
    font-size: 17px;
   }
}

@media (max-width: 320px) {
  iframe {
    width: 310px;
  }
  .quiz_container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 530px));
  }
}

@media (min-width: 1280px) {
.article {
  width: 800px;
  padding-left: auto;
  margin-left: auto;
  padding-right: auto;
  margin-right: auto;
 } 
}

@media (min-width: 2000px) {
   .content_container {
    width: 2000px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Responsive footer */
@media (max-width: 1279px) {
  .footer_container {
    grid-template-columns: auto;
  }
  .footer_contact {
    grid-template-columns: 350px auto;
    margin-right: 15px;
  }
  .footer_nav {
    justify-self: center;
    align-self: center;
  }
  .footer_list {
    text-align: center;
  }
  .footer_list2 {
    padding-left: 5px;
    padding-right: 5px;
  }
  .attention {
    align-self: center;
    margin-left: 10px;
    margin-top: 15px;
  }
}

@media (max-width: 800px) {
  .footer_container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .footer_list {
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }  
  .footer_contact {
    grid-template-columns: 350px auto;
  }
  .attention {
    margin-top: 0px;
  }
}

@media (max-width: 650px) {
  .attention {
    text-align: center;
    padding: 0px 0px;
  }
  .footer_contact {
    grid-template-columns: 1fr auto;
    margin-left: 5px;
    margin-right: 5px;
  }
  .footer_list2 {
    text-align: right;
  }
}

@media (max-width: 599px) {
  .footer_container {
    grid-template-columns: auto;
    grid-template-rows: auto auto;
  }
  .footer_list {
    border-bottom: 1px dashed #fff;
    padding-bottom: 20px;
    margin-top: 7px;
  }
  .footer_list li {
    padding-top: 6px;
  }
  .footer_nav {
    text-align: center;
  }
  .footer_contact {
    text-align: center;
    grid-template-columns: auto;
    margin-right: 15px;
  }
  .footer_list2 {
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
  }
  .attention {
    text-align: center;
    margin-top: 5px;
  }
}

@media (max-width: 320px) {
  .footer_contact {
    font-size: 13.5px;
  }
  .attention {
    padding: 3px;
  }
}

@media (min-width: 2000px) {
  .footer_container {
    width: 2000px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer_list a {
    font-size: 18px;
    text-align: center;
  }
  .footer_list {
    padding-top: 5px;
    justify-content: center;
  }

  .footer_contact {
    font-size: 18px;
    grid-template-columns: 450px auto;
  }
  .attention {
    font-size: 18px;
    padding: 0 8px;
  }
  .item_photo {
    align-self: center;
    margin-right: 20px;
  }
  .intro {
    margin-right: 20px;
  }
}