body {
  margin: 0 0;
  padding: 0 0;
  overflow-x: hidden;
  font-family: "Raleway", sans-serif;
}

.homepage {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}

.wrapper {
  width: 100%;
  margin: 80px auto 0 auto;
  background: #fff;
}

.edu_nav {
  overflow: hidden;
  height: 60px;
  transition: 1s;
  box-sizing: border-box;
}
.edu_nav:nth-child(1) {
  border: none;
}
.edu_nav:nth-child(2) {
  border: none;
  background: white;
  color: white;
}
.edu_nav:nth-child(3) {
  border: none;
  background: white;
}
.edu_nav:nth-child(4) {
  border: none;
  background: white;
}
.edu_nav:hover {
  height: 240px;
  overflow: visible;
  transition: 1s;
}
.edu_nav a {
  height: 60px;
  width: 100%;
  background: white;
  color: white;
  box-sizing: border-box;
  transition: 1s;
}

.edu_nav_links {
  display: grid;
  grid-template-rows: repeat(3, 50px);
}

.edu_nav__element {
  text-align: left;
  background: white;
}

#mylink {
  background: white;
  color: #822C2B;
}

.nav {
  width: 100%;
  background: #822C2B;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  align-items: flex-start;
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  left: 0px;
  z-index: 40;
}
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 20px;
  font-size: 30px;
  font-family: "Raleway", sans-serif;
}
.nav a:nth-child(1) {
  background: #822C2B;
  color: white;
  height: 60px;
  padding: 0 20px;
}
.nav a:nth-child(1):hover {
  color: #822C2B;
  background: white;
  transition: 0.3s;
}
.nav a:nth-child(4) {
  background: #822C2B;
  color: white;
}
.nav a:nth-child(4):hover {
  color: #822C2B;
  background: white;
  transition: 0.3s;
}
.nav a:nth-child(2) {
  background: #822C2B;
  color: white;
}
.nav a:nth-child(2):hover {
  color: #822C2B;
  background: white;
  transition: 0.3s;
}
.nav a:nth-child(3) {
  background: #822C2B;
  color: white;
}
.nav a:nth-child(3):hover {
  color: #822C2B;
  background: white;
  transition: 0.3s;
}

.middle_nav {
  font-family: "Raleway", sans-serif;
  margin: 60px auto;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.middle_nav a {
  margin: 0 40px 0 0;
  color: black;
  text-decoration: none;
  letter-spacing: 2px;
}
.middle_nav a:hover {
  color: #822C2B;
  text-decoration: underline;
}

.burger_menu {
  display: none;
}

header {
  width: 1200px;
  height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.header_info {
  width: 600px;
  position: relative;
}

.header_img {
  position: relative;
}

.animation1 {
  position: absolute;
  top: 3;
  left: -200%;
  -webkit-animation-name: anim1;
          animation-name: anim1;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  width: 550px;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

.animation2 {
  position: absolute;
  top: 3;
  left: -200%;
  -webkit-animation-name: anim2;
          animation-name: anim2;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  width: 550px;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

.animation3 {
  position: absolute;
  top: 3;
  left: -200%;
  -webkit-animation-name: anim3;
          animation-name: anim3;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  width: 550px;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

.header__block h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  border-bottom: 4px solid #822C2B;
  padding: 0 0 20px 0;
}
.header__block p {
  font-family: "Raleway", sans-serif;
  padding: 20px 0 20px 0;
}
.header__block a {
  width: 200px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #822C2B;
  border: 5px solid #822C2B;
  letter-spacing: 2px;
  border-radius: 15px;
  font-family: "Raleway", sans-serif;
  transition: 0.5s;
}
.header__block a:hover {
  background: #822C2B;
  color: white;
  transition: 0.5s;
}

@-webkit-keyframes anim1 {
  0% {
    left: -200%;
  }
  6% {
    opacity: 1;
    left: 0px;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    left: 0px;
  }
  33% {
    left: -200%;
    opacity: 0;
  }
}

@keyframes anim1 {
  0% {
    left: -200%;
  }
  6% {
    opacity: 1;
    left: 0px;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    left: 0px;
  }
  33% {
    left: -200%;
    opacity: 0;
  }
}
@-webkit-keyframes anim2 {
  0% {
    left: -200%;
  }
  33% {
    left: -200%;
  }
  36% {
    left: 0;
  }
  55% {
    opacity: 1;
  }
  63% {
    opacity: 0;
    left: 0px;
  }
  66% {
    left: -200%;
    opacity: 0;
  }
  100% {
    left: -200%;
  }
}
@keyframes anim2 {
  0% {
    left: -200%;
  }
  33% {
    left: -200%;
  }
  36% {
    left: 0;
  }
  55% {
    opacity: 1;
  }
  63% {
    opacity: 0;
    left: 0px;
  }
  66% {
    left: -200%;
    opacity: 0;
  }
  100% {
    left: -200%;
  }
}
@-webkit-keyframes anim3 {
  0% {
    left: -200%;
  }
  63% {
    left: -200%;
  }
  66% {
    left: 0;
  }
  90% {
    opacity: 1;
  }
  97% {
    opacity: 0;
    left: 0px;
  }
  100% {
    left: -200%;
    opacity: 0;
  }
}
@keyframes anim3 {
  0% {
    left: -200%;
  }
  63% {
    left: -200%;
  }
  66% {
    left: 0;
  }
  90% {
    opacity: 1;
  }
  97% {
    opacity: 0;
    left: 0px;
  }
  100% {
    left: -200%;
    opacity: 0;
  }
}
.anim_img {
  position: absolute;
}

.anim_img1, .anim_img2, .anim_img3 {
  right: -200%;
}

.anim_img1 {
  -webkit-animation-name: img1;
          animation-name: img1;
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

.anim_img2 {
  -webkit-animation-name: img2;
          animation-name: img2;
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

.anim_img3 {
  -webkit-animation-name: img3;
          animation-name: img3;
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

@-webkit-keyframes img1 {
  0% {
    right: -200%;
  }
  6% {
    opacity: 1;
    right: 0px;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    right: 0px;
  }
  33% {
    right: -200%;
    opacity: 0;
  }
  100% {
    right: -200%;
  }
}

@keyframes img1 {
  0% {
    right: -200%;
  }
  6% {
    opacity: 1;
    right: 0px;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    right: 0px;
  }
  33% {
    right: -200%;
    opacity: 0;
  }
  100% {
    right: -200%;
  }
}
@-webkit-keyframes img2 {
  0% {
    right: -200%;
  }
  33% {
    right: -200%;
  }
  36% {
    right: 0;
  }
  55% {
    opacity: 1;
  }
  63% {
    opacity: 0;
    right: 0px;
  }
  66% {
    right: -200%;
    opacity: 0;
  }
  100% {
    right: -200%;
  }
}
@keyframes img2 {
  0% {
    right: -200%;
  }
  33% {
    right: -200%;
  }
  36% {
    right: 0;
  }
  55% {
    opacity: 1;
  }
  63% {
    opacity: 0;
    right: 0px;
  }
  66% {
    right: -200%;
    opacity: 0;
  }
  100% {
    right: -200%;
  }
}
@-webkit-keyframes img3 {
  0% {
    right: -200%;
  }
  63% {
    right: -200%;
  }
  66% {
    right: 0;
  }
  90% {
    opacity: 1;
  }
  95% {
    opacity: 0;
    right: 0px;
  }
  100% {
    right: -200%;
    opacity: 0;
  }
}
@keyframes img3 {
  0% {
    right: -200%;
  }
  63% {
    right: -200%;
  }
  66% {
    right: 0;
  }
  90% {
    opacity: 1;
  }
  95% {
    opacity: 0;
    right: 0px;
  }
  100% {
    right: -200%;
    opacity: 0;
  }
}
main {
  width: 1200px;
  margin: 0 auto;
  font-family: "Raleway", sans-serif;
  color: white;
}
main h1 {
  border-bottom: 4px solid white;
  padding: 30px 0 30px 0;
  font-size: 40px;
}
main h2 {
  padding: 40px 0 40px 0;
}
main ul {
  margin: 0 0 0 30px;
  list-style-image: url(../img/ancestors.png);
  display: grid;
  grid-gap: 20px;
}

.wrap2 {
  background: #822C2B;
}

.cytata {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  width: 900px;
  margin: 80px auto 0 auto;
  padding: 40px 0 40px 0;
}

.cytata_info {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 20px;
}
.cytata_info h2 {
  margin: 0 0;
  padding: 20px 0 5px 0;
  border-bottom: 2px solid white;
}
.cytata_info img {
  border-radius: 50%;
  grid-row: 1/3;
}
.cytata_info p {
  font-size: 16px;
  font-family: "Pacifico", cursive;
}

footer {
  width: 1200px;
  padding: 100px 0 100px 0;
  margin-top: 200px;
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 100px;
  height: 100%;
  margin: 0 auto;
  justify-content: center;
}

.footer_nav {
  display: grid;
  grid-template-columns: repeat(2, 110px);
  grid-gap: 20px;
}

.footer_info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.footer_info a {
  font-family: "Raleway", sans-serif;
  font-size: 28px;
  color: black;
  text-decoration: none;
}
.footer_info a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) and (max-width: 1200px) {
  .wrapper {
    width: 100%;
  }
  main {
    width: 95%;
    margin: 20px auto;
  }
  header {
    width: 90%;
    margin: 0 auto;
    height: 750px;
    grid-template-columns: 1fr;
    grid-template-rows: 400px 250px;
    grid-gap: 100px;
  }
  .header_img {
    grid-row: 1/2;
    height: 100%;
    overflow: hidden;
  }
  .cytata {
    width: 95%;
    margin: 0 auto;
  }
  footer {
    grid-template-columns: 1fr;
    width: 90%;
    margin: 0 auto;
  }
  .footer_nav {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 0 20px 0;
  }
}
@media (min-width: 300px) and (max-width: 699px) {
    .middle_nav{
        flex-wrap: wrap;
    }
  .burger_menu {
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: #822C2B;
    justify-content: end;
    overflow: hidden;
    position: fixed;
    z-index: 10;
    border-bottom: 2px solid white;
  }
  .burger_menu img {
    margin: 10px 10px;
  }
  .nav {
    display: none;
    width: 100%;
    background: #822C2B;
    grid-template-columns: 1fr;
    height: 500px;
    align-items: flex-start;
    grid-template-rows: 80px 80px;
    grid-gap: 0px;
    top: 60px;
    transition: 1s;
  }
  .edu_nav {
    height: 240px;
    overflow: visible;
    transition: 1s;
  }
  .wrapper {
    width: 100%;
  }
  main {
    width: 95%;
    margin: 20px auto;
  }
  header {
    width: 90%;
    margin: 0 auto;
    height: 630px;
    grid-template-columns: 1fr;
    grid-template-rows: 300px 250px;
    grid-gap: 20px;
  }
  .header_info {
    width: 95%;
  }
  .header_img {
    grid-row: 1/2;
    height: 100%;
    width: 90%;
    overflow: hidden;
  }
  .animation1, .animation2, .animation3 {
    width: 100%;
    overflow: hidden;
  }
  .cytata {
    width: 95%;
    margin: 0 auto;
  }
  .cytata_info {
    grid-template-columns: 1fr;
  }
  footer {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .footer_info {
    width: 90%;
    padding: 0 10px;
  }
  .footer_nav {
    grid-template-columns: repeat(2, 30%);
    padding: 0 0 20px 0;
    justify-content: space-around;
  }
}/*# sourceMappingURL=edu_hub_main.css.map */	