@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap');
*{
  margin:0;
  padding:0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

:root[data-theme="light"]{
  --bg-color:#e8edee;
  --bg-color2:white;
  --text-color:#3a3a3a;
  --color-blue:#55acee;
  --color-dark-blue:#007bb5;
  --color-purple:#bb86fc;
  --color-darkpurple:#664b86;
}

:root[data-theme="dark"]{
  --bg-color:#101010;
  --bg-color2:#1c1c1c;
  --text-color:#dddddd;
  --color-dark-blue:#55acee;
  --color-blue:#007bb5;
  --color-darkpurple:#bb86fc;
  --color-purple:#664b86;
}

body{
  background:var(--bg-color);
  margin:0 14vw;
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  color: var(--text-color);
}

/**CONTENEDOR PRINCIPAL**/
.contenedor-principal{
  padding: 1.5vh;
  background-color:var(--bg-color2);
}

/**COMPONENTES GLOBALES**/

img{
  filter: contrast(0.7);
  overflow: hidden;
  transition: 0.5s all ease-in-out;
}

img:hover{
  filter: none;
  cursor: pointer;
  transform: scale(1.3);
}

p{
  color: var(--text-color);
  margin: 1vh 0;
}

.link:hover{
  color: var(--color-blue);
  cursor: pointer;
}

/**INICIO DEL HEADER**/
header{
  height: 40vh;
  background-image: url(../img/header2.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
}

/**INICIO DEL MENU DE NAVEGACION**/
nav{
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

.topnav {
  overflow: hidden;
  background-color: var(--color-purple);
}

.topnav a {
  float: left;
  display: block;
  color: #ecf0f1;
  text-align: center;
  padding: 1.8vh 2vh;
  text-decoration: none;

}

.topnav a:hover {
  color: var(--color-darkpurple);
}

.topnav a.active {
  background-color: var(--color-blue);
  color: white;
}

.topnav .icon {
  display: none;
}


/**DROPBUTOM**/
.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn { 
  border: none;
  outline: none;
  color: white;
  padding: 1.8vh 2vh;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-darkpurple);
  z-index: 1;
}

.dropbtn:hover {
  cursor: pointer;
  color:var(--color-darkpurple);
}

.dropdown-content a {
  float: none;
  color: white;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover{
  color: var(--color-purple);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/**INICIO DEL CONTENEDOR**/
.contenedor{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 2vh;
}

/**INICIO DEL ARTICLE **/
.contenedor article{
  display: flex;
  flex-direction: column;
  width: 130%;
}

/*SLIDER*/
.slider-frame{
  width: 100%;
  height:auto;
  margin:0;
  overflow: hidden;
}

.slider-frame ul{
  display: flex;
  padding: 0;
  width: 400%;
  animation: slide 16s infinite alternate ease-in-out;
}

.slider-frame li{
  list-style: none;
  width: 100%;
}

.slider-frame img{
  width: 100%;
}

@keyframes slide{
  0%{margin-left: 0%;}
  20%{margin-left: 0%;}

  25%{margin-left: -100%;}
  45%{margin-left: -100%;}

  50%{margin-left: -200%;}
  70%{margin-left: -200%;}

  75%{margin-left: -300%;}
  95%{margin-left: -300%;}
}

/**INICIO DEL SECTION**/
.contenedor section{
  background: var(--bg-color);
  margin: 1vh;
  padding: 3vh 1vw;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  border-radius: 2%;
}

.section-img{
  overflow: hidden;
  width: 50%;
}

.section-img img{
  object-fit: cover;
  width: 100%;
  height: 100%;

}

.section-parrafo{
  margin-left: 2vh;
  width: 100%;
}

.btn{
  color: white;
  font-size: 0.8em;
  padding: 0.8vh 1vw;
  text-decoration: none;
  transition: 0.8s;
}

.btn-like{
  background: var(--color-blue);
}

.btn-like:hover{
  background: var(--color-dark-blue);
  cursor: pointer;
}

.btn-download{
  color: white;
  background: var(--color-purple);
  float: right;
}

.btn-download:hover{
  background: var(--color-darkpurple);
  cursor: pointer; 
}

.pagination{
  margin: 2vh 0;
}

.pagination a {
  color: var(--text-color);
  float: left;
  padding: 1vh 1vw;
  text-decoration: none;
  transition: background-color .3s;
  font-size: 0.8em;
}

.pagination a.active {
  background-color: var(--color-blue);
  color: white;
}

.pagination a:hover:not(.active) {
  background-color:var(--color-purple);
}

/*INICIO DEL ASIDE*/
.contenedor aside{
  display: flex;
  flex-grow: 2;
  flex-direction: column;
  margin-left: 1vw;
}

aside h2{
  color:var(--color-purple);
  margin-bottom: 3vh;
  border-bottom: 1px dotted var(--color-purple);
}
/**ASIDE IMAGEN ANIME**/
.anime{
  margin: 0 auto;
  overflow: hidden;
}

.anime img{
  height: 30vh;
  width: auto;
  margin-bottom: 3vh;
}

/**ASIDE LABELS **/
.label-items{
  display: flex;
  flex-wrap: wrap;
  margin-top: 1vh;
  margin-bottom: 3vh;
}

.label-items span{
  margin: 0.5vw;
}

/**ASIDE POPULAR ENTRIES**/
.entri-items{
  margin: 0.7vh;
  display: flex;
  flex-direction: column;
}

.e-item{
  margin-bottom: 2vh;
  margin-top: 2vh;
}

.e-item img{
  width: 20%;
  float: left;
  margin-right: 2vh;
  cursor: pointer;
}

.e-item img:hover{
  opacity: 0.5;
}

.e-item p{
  font-size: 0.8em;
  cursor: pointer;
}

/**ASIDE CONTRIBUTORS**/
.contributors-items{
  margin-bottom: 2vh;
  margin-top: 2vh;
}

.contributors-items li{
  font-size: 1em;
  margin-left: 5vh;
  color:var(--text-color);
}

/**ASIDE ARCHIVE**/
.archive-items{
  margin-bottom: 2vh;
  margin-top: 2vh;
}

.a-item{
  display:flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.a-item li{
  font-size: 0.9em;
  cursor: pointer;
  list-style: square;
  margin-left: 5vh;
  margin-bottom: 1vh;
  color:var(--text-color);
}

/**Socials*/
.socials{
  display:flex;
  justify-content: center;
}

.socials .fa {
  padding: 2vh 2vw;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  margin: 0.1vw;
}

.socials .fa:hover {
  opacity: 0.7;
}

.fa-twitter {
  background: #55ACEE;
  color: white;
}

.fa-linkedin {
  background: #007bb5;
  color: white;
}

.fa-youtube {
  background: #bb0000;
  color: white;
}

.fa-reddit {
  background: #ff5700;
  color: white;
}

.fa-rss {
  background: #ff6600;
  color: white;
}

/**Top button**/
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

/**FOOTER**/
footer{
  background: var(--color-purple);
  color: white;
  text-align: center;
  padding: 2vh;
}

footer span{
  font-size: 0.8em;
}


@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}
@media screen and (max-width: 810px) {
  body{
    margin:1vh;
    display:flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .contenedor-principal{
    padding: 0.5vh;
  }

  header{
    height: 20vh;
  }

  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

  /**INICIO DEL CONTENEDOR**/
  .contenedor{
    display: flex;
    flex-wrap: wrap;
    margin-top: 1vh;
  }

  /**INICIO DEL ARTICLE Y SECTION **/
  .section-img{
    display: none;
  } 

  .section-parrafo{
    margin: 0;
  }

  .btn-download{
    margin-right: 1vh;
  }
  
  .anime img{
    height: 20vh;
    width: auto;
    margin-bottom: 3vh;
  }

  .socials .fa {
    padding: 1vh 4vw;
    margin: 0.5vw;
  }

}

