body {
  font-family: Rubik;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;

  background-color: #4F5165;
  color: #fff;
  margin: 58px 30px auto 30px;
  width: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
}

h1 {
  font-size: 116px;
  font-weight: 700;
  line-height: 0.9;
  width: 336px;
}

a {
  text-decoration: underline;
  color: #fff;
}

a:hover {
  text-decoration: none;
}

.newstext {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  margin-left: 306px;
  margin-right: 60px;
}

.gif .image {
  position: absolute;
  left: 0;
  right: 0;
  top: 117px;
  margin-left: auto;
  margin-right: auto;
  z-index: -1;
  width: 70%;
  height: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-right: 60px;
  margin-top: 480px;
  height: 60px;
}

.right {
  display: flex;
}

#andrei {
  padding-left: 20px;
}

.overlayabout {
  position: fixed; /* Sit on top of the page content */
  display: block;
  display: none; /* Hidden by default */
  width: 972px; /* Full width (cover the whole page) */
  height: 704px; /* Full height (cover the whole page) */
  top: 50%;
  left: 50%;
  margin-top: -352px;
  margin-left: -486px;
  background-color: #50D8D7;
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
}

.overlayabout p {
  margin: 139px 167px auto 167px;
}

.close {
  position: relative;
  float: right;
  padding: 16px;
  cursor: pointer; /* Add a pointer on hover */
}



@media (max-width: 3000px) {
  body {
  	max-width: 1366px;
    margin: 58px auto auto auto;
    padding: 0 30px 0 30px;
  }
  .gif .image {
  width: 972px; /*972px*/
}
}


@media (max-width: 1024px) {
  h1 {
    font-size: 80px;
    width: 240px;
  }
  .newstext {
    font-size: 32px;
    margin-left: 80px;
  }
  .gif .image {
    top: 160px;
    width: 60%; /*70%*/
  }
  .footer {
    margin-top: 480px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 80px;
    width: 240px;
  }
  .newstext {
    font-size: 32px;
    margin-left: 80px;
  }
  .gif .image {
    top: 240px;
    width: 80%;
  }
  .footer {
    margin-top: 440px;
  }
  .overlayabout {
    width: 708px; /* Full width (cover the whole page) */
    height: 704px; /* Full height (cover the whole page) */
    margin-top: -352px;
    margin-left: -354px;
  }
  .overlayabout p {
    margin: 120px 100px auto 100px;
  }
}

@media (max-width: 414px) {
  .header {
    display: block;
  }
  h1 {
    font-size: 60px;
    width: 200px;
  }
  .newstext {
    font-size: 24px;
    margin-top: 40px;
    margin-left: 0;
  }
  .gif .image {
    top: 360px;
    width: 70%;
  }
  .footer {
    display: block;
    margin-top: 260px;
  }
  .overlayabout {
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    margin-top: -90%;
    margin-left: -50%;
  }
  .overlayabout p {
    margin: 80px 30px auto 30px;
    font-size: 18px;
  }
}
