body {
  font-family:  sans-serif;
  background: #080e24;
  color: #9aa1a5;
  overflow: hidden;
}

.con {
    position: relative;
    width:100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.content {
    height: 90vh;
    width: 530px;
    font-size: 20px;
    border-radius: 5px;
    background: #0f132c;
    color: #767892;
    line-height: 1.7;
    border: 1px solid #1c203c;
    overflow-y: scroll;
    padding: 0 30px;
    text-align: justify;
}
.content h1{
  text-align: center;
  font-size: 40px;
}
.content h2{
  font-size: 30px;
  text-align: center;
}

.content::-webkit-scrollbar { width: 3px; height: 3px;}
.content::-webkit-scrollbar-track-piece { background-color: #0f132c}
.content::-webkit-scrollbar-thumb { height: 50px; background-color: #767892; border-radius: 3px;}

/**фазы луны*/
.moon {
  position: relative;
  width: 300px;
  height: 300px;
  border: 2px solid #C2D5E9;
  border-radius: 50%;
  overflow: hidden;
  background-color: #C2D5E9;
  transform: translateZ(0);
}

.moon::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #222;
  width: 50%;
  height: 100%;
  animation: flip 2s 1s steps(2) infinite alternate;
}

.disc {
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  animation: rotate 4s linear infinite;
}

.disc::before,
.disc::after {
  content: " ";
  display: block;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 4s;
  position: absolute;
  backface-visibility: hidden;
}

.disc::before {
  background-color: #222;
}

.disc::after {
  background-color: #C2D5E9;
  transform: rotateY(180deg);
}

@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes flip {
  0% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

/*-------------------------stars----------------------------*/
.stars {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    
    align-items: center;
    z-index: 20;
}

.star {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    animation: st 8s ease-in-out infinite,
               bgmove 16s linear infinite;
}

.star1 {
    animation-delay: 0s;
    background: url(../images/star1.png);
}

.star2 {
    animation-delay: -1s;
    background: url(../images/star2.png);
}

.star3 {
    animation-delay: -2s;
    background: url(../images/star3.png);
}

.star4 {
    animation-delay: -3s;
    background: url(../images/star4.png);
}

.star5 {
    animation-delay: -4s;
    background: url(../images/star5.png);
}

.star6 {
    animation-delay: -5s;
    background: url(../images/star6.png);
}

.star7 {
    animation-delay: -6s;
    background: url(../images/star7.png);
}

.star8 {
    animation-delay: -7s;
    background: url(../images/star8.png);
}

@keyframes st {
    0%,20%,40%,60%,80%,100% {
        opacity: 0;
    }
    10%,30%,50%,70%,90% {
        opacity: 1;
    }
}

@keyframes bgmove {
    0% {
        transform: scale(1) translateX(-1000px);
    }
    100% {
        transform: scale(2) translateX(1000px);
    }
}

@media screen and (max-width: 965px) {
  .stars {
    overflow: visible;
  }

  .star {
    visibility: hidden;
  }

  .con {
    margin-top: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
  }

  body {
    overflow-y:visible; 
    overflow-x: hidden;
    
  }

  .moon {
    margin: 100px 0 50px 0 ;
  }

  
}

@media screen and (max-width: 600px) {
  .content {
    width: 400px;
  }
}
@media screen and (max-width: 400px) {
  .content {
    width: 300px;
    font-size: 16px;
  }
}