@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Lexend+Deca:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
  --colorMain: #8257e6;
  --colorWhite: #fefbfb;
  --corWhite200: #c4c4c4;
  --corGray200: #282830;
  --corDark: #13131f;

  --fontInter: "Inter", sans-serif;
  --fontLexendDeca: "Lexend Deca", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--corDark);
  font-family: var(--fontLexendDeca);
  color: var(--colorWhite);
  font-size: 62.5%;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: auto;

  display: flex;
  justify-content: space-between;
  border: 1px solid red;
}
.hide {
  display: none;
}
.show {
  display: block;
}

button {
  background: none;
  cursor: pointer;
  border: none;
  outline: none;
}

a {
  text-decoration: none;
}

main .presentation {
  margin-top: 50px;
  font-size: 3rem;
  font-weight: 400;
}
main p {
  font-family: var(--fontInter);
  font: 500;
  font-size: 1.9rem;
  color: #c4c4c4;
  padding-top: 11px;
  line-height: 30px;
}

.slider {
  width: 800px;
  height: 400px;
  overflow: hidden;
  margin-top: 50px;
  position: relative;
}

.slides {
  width: 400%;
  height: 400px;
  display: flex;
}

.slides input {
  display: none;
}
.slide {
  width: 25%;
  position: relative;
}
.slide a p:hover {
  color: #8257e6;
}
.slide img {
  width: 800px;
}
.manual-navigation {
  position: absolute;
  left: 38%;
  max-width: 800px;
  margin-top: -22px;
  display: flex;
  justify-content: center;
}
.navigation-auto {
  position: absolute;
  left: 38%;
  max-width: 800px;
  margin-top: 378px;
  display: flex;
  justify-content: center;
}
.manual-btn {
  border: 2px solid white;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: 1s;
}
.manual-btn:not(:last-child) {
  margin-right: 40px;
}

.manual-btn:hover {
  background-color: white;
}

#radio1:checked ~ .first {
  margin-left: 0;
}
#radio2:checked ~ .first {
  margin-left: -25%;
}
#radio3:checked ~ .first {
  margin-left: -50%;
}
#radio4:checked ~ .first {
  margin-left: -75%;
}

.navigation-auto div {
  border: 2px solid #20a6ff;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: 1s;
}

.navigation-auto div:not(:last-child) {
  margin-right: 40px;
}

#radio1:checked ~ .navigation-auto .auto-btn1 {
  background-color: white;
}
#radio2:checked ~ .navigation-auto .auto-btn2 {
  background-color: white;
}
#radio3:checked ~ .navigation-auto .auto-btn3 {
  background-color: white;
}
#radio4:checked ~ .navigation-auto .auto-btn4 {
  background-color: white;
}

.firts-news {
  display: flex;
  gap: 15px;
  font-size: 1.5rem;
}
.mini-news p {
  font-size: 1.5rem;
  line-height: 22px;
  padding: 0px 20px;
  margin-bottom: -19px;
}
.news-rigth {
  height: 188px;
  margin-top: 50px;
  position: relative;
}
#two {
  margin-top: 24px;
}
.news-rigth img {
  width: 338px;
  height: 190px;
  object-fit: cover;
}
.news-rigth a p:hover {
  color: #8257e6;
}
.title-news {
  color: white;
  position: absolute;
  bottom: 10%;
  font-weight: 400;
  font-size: 3rem;
  line-height: 44px;
  padding: 10px 20px;
  font-family: var(--fontLexendDeca);
}
main button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  width: 80px;
  height: 25px;
  border-radius: 3px;
  background-color: #8257e6;
  color: white;
  border: none;
  cursor: pointer;
}
.mini {
  position: absolute;
  top: 5px;
  left: 10px;
}
img {
  /* opacity: 0.5; */
}
.news-wrapper {
  display: flex;
}
.wrapper {
  max-height: 1000px;
  max-width: 800px;
  border: 1px solid black;
  overflow-y: auto;
  margin-top: 50px;
  border-left: 0px;
  border-right: 0px;
}
.wrapper::-webkit-scrollbar {
  background-color: #282830;
  width: 10px;
}
.wrapper::-webkit-scrollbar-thumb {
  background-color: #8257e6;
  border-radius: 8px;
  height: 60px;
}
.wrapper .box {
  max-width: 788px;
  height: 200px;
  margin-top: 30px;
  position: relative;
}
.box img {
  max-width: 260px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.box {
  display: flex;
}
span {
  display: block;
  font-size: 1.2rem;
  font-weight: 200;
}
.tex {
  padding: 0 20px;
}

.tex h3 {
  font-size: 1.9rem;
  color: #fefbfb;
  opacity: 0.9;
  font-weight: 400;
}
a {
  text-decoration: none;
}
.tex h3:hover {
  color: #8257e6;
}
.tex p {
  margin: 12px 0px;
  font-size: 1.6rem;
  line-height: 27px;
  color: rgb(196, 196, 196);
  font-family: var(--fontInter);
}

.top-news-w {
  width: 340px;
  height: auto;
  display: inline-block;
  margin-top: 50px;
  margin-left: 10px;
}
.box-top-news-w {
  width: inherit;
  height: 250px;
  margin-bottom: 10px;
}
.box-top-news-w img {
  width: inherit;
  height: 150px;
  object-fit: cover;
}
.top-news-w a {
  text-decoration: none;
  color: white;
}
.top-news-w {
  font-size: 1.4rem;
}
.ad2 {
  background-color: gray;
  width: 100%;
  height: 200px;
  margin-top: 50px;
}
.recent {
  max-width: 1200px;
  height: auto;
  margin-top: 64px;
}
.recent h3 {
  margin-bottom: 25px;
  font-weight: 400;
  font-size: 2.4rem;
  font-family: var(--fontInter);
  color: #fefbfb;
  text-align: center;
}
.recent .conteiner-recent .box a p:hover {
  color: #8257e6;
  font-weight: 600;
}
.recent .conteiner-recent {
  text-align: center;
}
.recent .conteiner-recent .box {
  max-width: 338px;
  width: 90%;
  height: 250px;
  display: inline-block;
  margin: 20px 25px;
  position: relative;
}
.recent .conteiner-recent .box img {
  max-width: 338px;
  width: 100%;
  height: 190px;
  object-fit: cover;
  -webkit-transition: all 0.7s ease;
  transition: all 0.7s ease;
  cursor: pointer;
}
.conteiner-recent .box img:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.recent .conteiner-recent .box a p {
  position: absolute;
  bottom: 24%;
  left: 3%;
  z-index: 5;
  color: #fefbfb;
  text-align: left;
  line-height: 20px;
  font-size: 1.6rem;
}
hr {
  height: 1px;
  border-color: hsla(258, 74%, 62%, 0.034);
}
footer {
  max-width: 1000px;
  width: 90%;
  margin: auto;
  text-align: center;
  font-size: 1.8rem;
  color: #8257e6;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 25px 0px;
}
footer p {
  font-size: 1.6rem;
  color: white;
}
footer nav ul {
  padding: 50px 0;
  width: 250px;
  margin: auto;
}
footer nav ul li {
  text-align: left;
}

/*Page slide*/

.news-click {
  font-family: var(--fontInter);
  margin-top: 50px;
}
.news-click img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.news-click h1 {
  font-size: 3.6rem;
  padding-bottom: 30px;
}
.news-click p {
  font-size: 2.4rem;
  font-weight: 400;
  padding: 12px 0;
  line-height: 4rem;
}
.news-click h2 {
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 4rem;
  padding-top: 24px;
}
#hr-se {
  height: 2px;
  margin-bottom: 50px;
}
a:hover {
  text-decoration: underline;
}
/*page navbar*/

.text-back {
  padding-top: 58px;
}
.text-back h1 {
  font-size: 4.8rem;
  padding: 17px 0;
}
.text-back p {
  font-size: 2rem;
}

/*page series*/
.series-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 100px;
}
.series-box .box-series {
  width: 338px;
  margin: auto;
  -webkit-transition: all 0.7s ease;
  transition: all 0.7s ease;
  cursor: pointer;
  position: relative;
}
.series-box .box-series:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.series-box .box-series img {
  max-width: 338px;
  width: 100%;
  object-fit: cover;
  height: 190px;
}
.series-box .box-series h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2rem;
  color: #fefbfb;
  position: absolute;
  bottom: 0%;
  left: 0%;
  z-index: 2000;
  padding: 10px;
}

.creditos {
  font-size: 2rem;
  padding-top: 10px;
  font-family: var(--fontLexendDeca);
  font-weight: 600;
}
.info {
  padding-top: 10px;
}

@media (max-width: 1150px) {
  .top-news-w {
    width: 80%;
    margin: auto;
    display: block;
  }
  .box-top-news-w {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
  }
  .box-top-news-w img {
    width: inherit;
    height: auto;
    /* object-fit: cover; */
  }
  .news-wrapper {
    display: block;
  }
  .mini-news {
    display: none;
  }
  .slider {
    margin: auto;
  }
  .tex h3 {
    font-size: 1.6rem;
  }
  .ad {
    display: none;
  }
  .wrapper {
    max-width: 1200px;
    width: 100%;
  }
  .wrapper .box {
    max-width: 968px;
    height: auto;
  }
  header nav ul .li-main a {
    font-size: 1.8rem;
  }
  .firts-news {
    margin-top: 50px;
  }
  main button {
    top: 3%;
    left: 9%;
    width: 9%;
    height: 5%;
    font-size: 1rem;
  }
}

@media (max-width: 960px) {
  html,
  body {
    font-size: 50%;
  }
  header nav #menu {
    gap: 3rem;
  }
}
@media (max-width: 883px) {
  .recent .conteiner-recent .box {
    max-width: 228px;
    width: 90%;
    height: 230px;
    margin: 0px 6px;
  }
  footer {
    display: block;
  }
}
@media (max-width: 791px) {
  .series-box .box-series {
    width: 244px;
  }
}
@media (max-width: 744px) {
  .news-click img {
    height: 250px;
  }
  .box {
    text-align: center;
    margin: auto;
    margin-right: 15px;
    margin-left: 15px;
  }
  .tex {
    max-width: 258px;
    text-align: left;
    margin: auto;
    padding: 0px;
  }
  header nav #menu {
    gap: 2rem;
  }
  #nav.active #menu {
    max-width: 300px;
    width: 60%;
    padding-left: 20px;
    z-index: 2000;
  }
  header .li-main {
    padding: 15px 0;
  }
  header ul li a {
    color: var(--colorMain);
  }
  #btn-mobile {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #8257e6;
    gap: 0.5rem;
  }
  #hamburger {
    display: block;
    width: 20px;
    border-top: 2px solid #8257e6;
  }
  #hamburger::after,
  #hamburger::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #8257e6;
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }
  #nav.active #hamburger {
    border-top-color: transparent;
  }
  #nav.active #hamburger::before {
    transform: rotate(135deg);
  }
  #nav.active #hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }
  #logo-hambu {
    position: absolute;
    max-width: 300px;
    width: 70%;
    margin-left: -14px;
    top: 20px;
    left: 0px;
    z-index: 1200;
    display: block;
    visibility: hidden;
    position: fixed;
  }
  #nav.active #logo-hambu {
    transition-delay: 230ms;
    visibility: visible;
    z-index: 2500;
  }
  .slide img {
    width: 100%;
    text-align: center;
    margin: auto;
    display: block;
  }
  .title-news {
    position: relative;
    padding: 0px;
    font-size: 2rem;
    top: 7px;
    line-height: 27px;
    text-align: center;
  }
  .manual-navigation {
    display: none;
  }
  .navigation-auto {
    display: none;
  }
  .wrapper {
    margin-top: 14%;
    text-align: center;
  }
  .news-click h1,
  .news-click p {
    font-size: 500%;
  }
}
@media (max-width: 683px) {
  .wrapper {
    display: flex;
    flex-wrap: wrap;
  }

  .box {
    display: block;
    width: 40%;
    margin: auto;
  }

  html,
  body {
    font-size: 50%;
  }

  .presentation p {
    font-size: 1.6rem;
  }
  .news-wrapper {
    margin-top: -12%;
  }
}
@media (max-width: 581px) {
  .series-box .box-series {
    width: 400px;
  }
  .series-box .box-series h2 {
    max-width: 350px;
  }
}
@media (max-width: 552px) {
  .recent .conteiner-recent .box {
    max-width: 338px;
    width: 90%;
    height: 250px;
    display: inline-block;
    margin: -15px 15px;
    position: relative;
  }
}
@media (max-width: 483px) {
  .news-wrapper {
    margin-top: -30%;
  }
  .box {
    display: block;
    width: 100%;
    margin: auto;
  }
  .wrapper {
    display: block;
  }
}
@media (max-width: 360px) {
  .box img,
  .recent .conteiner-recent .box img {
    width: 100%;
    object-fit: cover;
  }
  .recent .conteiner-recent .box img {
    width: 338px;
    width: 90%;
    object-fit: cover;
  }
  .recent .conteiner-recent .box a p {
    padding: 10px;
    font-size: 1.3rem;
  }
}
