html {
    font-size: 100%;
    scroll-behavior: smooth;
    box-sizing: border-box;
}
body {
    width: 100%;
    background: rgb(71, 130, 255);
  }
.all {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    margin-bottom: 100px;
}

@media screen and (max-width: 770px) {
    .all {
        max-width: 100%;
        height: 100%;
        margin: 0 auto;
        margin-bottom: 50px;
    }
}

.input {
    visibility: hidden;
  }
  .slides__container {
    width: 70%;
    height: 100%;
    margin: 1rem auto 3rem auto;
    border: 0.2rem solid rgba(183, 183, 184, 0.692);
    border-radius: 5%;
    overflow: hidden;
  }

  @media screen and (max-width: 760px) {
    .slides__container {
        width: 80%;
      }
  }

  @media screen and (max-width: 500px) {
    .slides__container {
        width: 100%;
        border: 0.1rem solid rgba(183, 183, 184, 0.692);
      }
  }
  .ribbon {
    display: flex;
    width: 500%;
    height: 60%;
  }
  .image {
    width: 80%;
    transition: all 2s ease-in-out;
  }
  .sliler__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
  }
  .block {
    display: flex;
    width: 70%;
    margin: auto;
  }
  .title {
    width: 70%;
   overflow: hidden;
  }
  .controls {
    width: 500%;
    height: 100%;
    display: flex;
    align-items: flex-start;
  }
  .text {
    width: 100%;
    transition: all 2s ease-in-out;
    display: flex;
    justify-content: flex-start;
    align-self: center;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(253, 254, 255, 0.593);
    overflow: hidden;
  }
  .active {
    width: 30%;
    height: 4rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
  }
  .circle {
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .circle:hover {
    border: 0.1rem solid rgba(5, 91, 250);
    background-color: rgb(120, 159, 230);
    transition: 0.5s;
  }
  .circle:active {
    background-color: rgba(5, 91, 250);
    border: 0.1rem solid rgb(120, 159, 230);
  }
  .circle:checked {
    background-color: rgb(120, 159, 230);
    border: 0.2rem solid rgba(5, 91, 250);
  }
  .dot:active {
    background-color: cornflowerblue;
    border: 0.3rem solid rgb(4, 50, 136);
}
  .dot {
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(254, 254, 254, 0.537);
    border-radius: 50%;
  }
  .dot:hover {
background-color: rgb(2, 52, 146);
border: 1rem sloid rgb(83, 123, 197);
  }
  .dot:checked {
    background-color: cornflowerblue;
    border: 0.3rem solid rgb(4, 50, 136);
  }

  #switch-1:checked ~ .slides__container .ribbon,
  #switch-1:checked ~ .block .title .controls {
    transform: translateX(0);
    transition: 1.5s;
  }

  #switch-2:checked ~ .slides__container .ribbon,
  #switch-2:checked ~ .block .title .controls {
    transform: translateX(-20%);
    transition: 1.5s;
  }
  #switch-3:checked ~ .slides__container .ribbon,
  #switch-3:checked ~ .block .title .controls {
    transform: translateX(-40%);
    transition: 1.5s;
  }
  #switch-4:checked ~ .slides__container .ribbon,
  #switch-4:checked ~ .block .title .controls {
    transform: translateX(-60%);
    transition: 1.5s;
  }
  #switch-5:checked ~ .slides__container .ribbon,
  #switch-5:checked ~ .block .title .controls {
    transform: translateX(-80%);
    transition: 1.5s;
  }

#switch-1:checked ~ .controls .active label:first-child .dot {
  background-color: cornflowerblue;
    border: 0.3rem solid rgb(4, 50, 136);
}
#switch-2:checked ~ .controls .active label:nth-child(2) .dot {
  background-color: cornflowerblue;
    border: 0.3rem solid rgb(4, 50, 136);
}
#switch-3:checked ~ .controls .active label:nth-child(3) .dot {
  background-color: cornflowerblue;
    border: 0.3rem solid rgb(4, 50, 136);
}
#switch-4:checked ~ .controls .active label:nth-child(4) .dot {
  background-color: cornflowerblue;
    border: 0.3rem solid rgb(4, 50, 136);
}
#switch-5:checked ~ .controls .active label:nth-child(5) .dot {
  background-color: cornflowerblue;
    border: 0.3rem solid rgb(4, 50, 136);
}

  @media screen and (max-width: 1100px) {
    .block {
        width: 100%;
        margin: 1rem auto;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
      }
      .title {
        width: 70%;
        text-align: center;
        justify-content: center;
      }
      .active {
        width: 100%;
        justify-content: center;
      }
      .controls {
        width: 500%;
        height: 100%;
        display: flex;
        justify-content: center;
      }
  }















