html {
  scroll-behavior: smooth;  
  box-sizing: border-box;
}

body {
  font-family: "Roboto", "Georgia", "serif";
  font-weight: lighter;
  line-height: 130%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html, 
body {
    overflow-x: hidden; 
}

main {
  width: 100%;
  height: 100vh;
  padding-top: 2rem;
  background-color: black;
  overflow: hidden;
}
input {
  display: none;
}
.mem-slider-container {
  width: 100%;
  margin: 0 auto;
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ryzhkin {
  color: white;
  padding: 0 1rem;
  font-size: 3rem;
  line-height: 130%;
  text-align: center;
  padding-bottom: 2rem;
}

.image-window {
  width: 90%;
  margin: 0 auto;
  background-color: antiquewhite;
  border-radius: 10px;
  overflow: hidden;
}
.images-wrapper {
  width: 500%;
  display: flex;
}
img {
  width: 7%;
  padding: 20px;
  margin: 0 auto;
  border-radius: 10px;
  transition: all 0.5s ease;
}

.mems-and-bullets {
  width: 90%;
  padding: 2rem 0;
  display: flex;
}
.mem-window {
  overflow: hidden;
}
.mems-wrapper {
  width: 500%;
  display: flex;
  color: antiquewhite;
  font-size: 2rem;
  letter-spacing: 2px;
  line-height: 130%;
}
.mems-wrapper > div {
  width: 100%;
  transition: all 0.5s ease;
}

.slider-bullets {
  display: flex;
  flex-direction: row;
}

.slider-bullet {
  padding: 10px;
  cursor: pointer;
}
.bullet {
  width: 20px;
  height: 20px;
  margin: 5px;
  border-radius: 50%;
  border: 2px solid cornflowerblue;
  background-color:cornflowerblue;
}
.bullet:hover {
  background-color: antiquewhite;
  border: 2px solid antiquewhite;
}
.bullet:checked {
  background-color: black;
}
.bullet:active {
  background: none;
}

#radio-1:checked ~ .image-window #current-illustration {
  margin-left: 6.5%;
}
#radio-2:checked ~ .image-window #current-illustration {
  margin-left: -13.5%;
}
#radio-3:checked ~ .image-window #current-illustration {
  margin-left: -44.5%;
}
#radio-4:checked ~ .image-window #current-illustration {
  margin-left: -101.5%;
}
#radio-5:checked ~ .image-window #current-illustration {
  margin-left: -233.5%;
}

#radio-1:checked ~ .mems-and-bullets #mem-1 {
  margin-left: 0%;
  margin-right: 10%;
}

#radio-2:checked ~ .mems-and-bullets #mem-1 {
  margin-left: -25%;
}
#radio-3:checked ~ .mems-and-bullets #mem-1 {
  margin-left: -66%;
}
#radio-4:checked ~ .mems-and-bullets #mem-1 {
  margin-left: -150%;
}
#radio-5:checked ~ .mems-and-bullets #mem-1 {
  margin-left: -400%;
}
#radio-1:checked ~ .mems-and-bullets #bullet-1,
#radio-2:checked ~ .mems-and-bullets #bullet-2,
#radio-3:checked ~ .mems-and-bullets #bullet-3,
#radio-4:checked ~ .mems-and-bullets #bullet-4,
#radio-5:checked ~ .mems-and-bullets #bullet-5 {
  background: none;
}

@media (max-width: 1500px) {
  .ryzhkin {
    font-size: 2.5rem;
  }
}
@media (max-width: 1220px) {
  .ryzhkin {
    font-size: 2rem;
  }
  .mems-wrapper {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) {
  main {
    height: 100%;
  }
  .mems-and-bullets {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }
  img {
    width: 18%;
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .mem-window {
    text-align: center;
  }
  .slider-bullets {
    padding-top: 0;
    padding-bottom: 20px;
  }
  .ryzhkin {
    padding-bottom: 1.5rem;
  }
  .mem-window {
    margin: 0 auto;
  }
  .mem {
    padding-right: 0;
  }
  
  #radio-1:checked ~ .image-window #current-illustration {
    margin-left: 1%;
  }
  #radio-2:checked ~ .image-window #current-illustration {
    margin-left: -19%;
  }
  #radio-3:checked ~ .image-window #current-illustration {
    margin-left: -50.5%;
  }
  #radio-4:checked ~ .image-window #current-illustration {
    margin-left: -107%;
  }
  #radio-5:checked ~ .image-window #current-illustration {
    margin-left: -239%;
  }

  #radio-1:checked ~ .mems-and-bullets #mem-1 {
    margin-left: 0%;
  }  
  #radio-2:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -25%;
  }
  #radio-3:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -80%;
  }
  #radio-4:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -199%;
  }
  #radio-5:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -440%;
  }
}

@media (max-width: 620px) {
  .mem {
    font-size: 1rem;
  }
  .slider-bullet {
    padding: 5px;
  }
  .ryzhkin {
    font-size: 1.5rem;
    padding-bottom: 1rem;
  }
  .mems-wrapper > div {
    width: 20%;
  }
  .bullet {
    width: 15px;
    height: 15px;
  }
  img {
    width: 19%;
  }
  #radio-1:checked ~ .mems-and-bullets #mem-1 {
    margin-left: 1%;
  }  
  #radio-2:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -20%;
  }
  #radio-3:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -40%;
  }
  #radio-4:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -60%;
  }
  #radio-5:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -80%;
  }
}
@media (max-width: 550px) {
  .mems-wrapper > div {
    width: 90vw;
  }
  #radio-1:checked ~ .mems-and-bullets #mem-1 {
    margin-left: 0;
  }  
  #radio-2:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -4%;
  }
  #radio-3:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -8%;
  }
  #radio-4:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -12%;
  }
  #radio-5:checked ~ .mems-and-bullets #mem-1 {
    margin-left: -16%;
  }
}