/*
root ->flex - solo se usa para la página de inicio
body -> grid  -  nav, estructura principal + .inner-content
.inner-content -> flex - se usa para todo el contenido dinámico
*/

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

html {
  font-size: 62.5%; /*16px = 100%, 10px = 62.5%  - 1rem = 10px*/
  color: #272828;
  font-family: "Oswald", sans-serif;
}

button {
  cursor: pointer;
}

body {
  background-color: #f7f0e9;
  display: grid;
  grid-template-columns: 10% 1fr 10%;
  grid-template-rows: 20% 75%;
  height: 100vh;
  font-size: 2rem;
}

#root {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  margin-left: -8rem;
}

/*PANTALLA DE INICIO*/
.img-box {
  margin-top: 3rem;
  max-width: 80vw;
}

.img-box-image {
  width: 100%;
}

.titulo-inicio {
  font-family: "Oswald", sans-serif;
  color: #272828;
  align-self: center;
  font-size: 3rem;
}

.alohomora-button {
  text-decoration: none;
  padding: 10px;
  font-weight: 600;
  font-size: 2rem;
  color: #272828;
  background-color: #dfa63a;
  border-radius: 6px;
  margin-top: 2rem;
  transition: all, 0.5s;
  outline: none;
}

.alohomora-button:hover {
  transform: scale(1.2);
}

/*0. ESTRUCTURA BÁSICA DE TODAS LAS PANTALLAS*/
.dynamic-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  grid-row: 2;
  margin-top: 3rem;
}

section.header {
  background-color: #f7f0e9;
  grid-row: 1;
  grid-column: 2;
  max-height: 70vh;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.small-logo-box {
  width: 18vw;
  height: 100%;
  cursor: pointer;
}

.small-logo-box > img {
  width: 100%;
}

.section-title {
  font-family: "Oswald", sans-serif;
  border-top: 5px solid;
  border-bottom: 5px solid;
  text-align: center;
  font-size: 3rem;
  width: 100%;
  margin-top: 5rem;

  /*color de borde cambia según sección*/
}

.inner-content {
  width: 80vw;
  height: 40vh;
  /* border: 2px solid darkred; */
  margin: 6vh auto;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  font-size: 2rem;
}

/*Bienvenida a cada casa*/
.parrafo {
  font-family: "Oswald", sans-serif;
  color: #272828;
  font-size: x-large;
}

/*Colores de borde superior e inferior de título según sección*/
.titulo-dorado {
  border-top-color: #dfa63a;
  border-bottom-color: #dfa63a;
}

.gryffindor-color {
  border-top-color: darkred;
  border-bottom-color: darkred;
}

.hufflepuff-color {
  border-top-color: yellow;
  border-bottom-color: yellow;
}

.slytherin-color {
  border-top-color: darkgreen;
  border-bottom-color: darkgreen;
}

.ravenclaw-color {
  border-top-color: darkblue;
  border-bottom-color: darkblue;
}

/*///////////////////////////////////*/
/*1. PANTALLAS DE MIEMBROS DE CADA CASA - 3 columnas */

/*1.a. CARDS*/
.card-box {
  width: 23vw;
  height: 120%;
  margin: 1rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  padding-top: 2rem;
}

.card {
  width: 18vw;
  height: 120%;
  /* background-color: #272828; */
  position: relative;
  transform-style: preserve-3d;
  transition: all 1s ease;
}

.card:hover {
  transform: rotateY(180deg);
}

.card-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 15px;
  z-index: 0;
}

.card-front > img {
  width: 100%;
  height: 100%;
}

.transparent-card-title {
  width: 100%;
  background-color: #f7f0e9;
  opacity: 0.8;
  height: 7vh;
  display: inline-block;
  position: absolute;
  top: 20rem;
  color: #2c2a2a;
  font-size: large;
  text-transform: uppercase;
  text-align: center;
  padding-top: 1rem;
  font-weight: 900;
  z-index: 1;
}

.wand-card-title {
  background-color: #2c2a2a;
  color: #f7f0e9;
}

.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #434343;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 15px;
  transform: rotateY(180deg);
}

.card-back > ul {
  list-style: none;
  max-height: 100%;
  font-size: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 5rem;
  /* text-align: center; */
  font-size: small;
}

.card-back > ul > li {
  margin: 0.2rem;
}

.card-title {
  margin-bottom: 2rem;
}

/*PATRONUS*/

.card-title {
  text-transform: uppercase;
  text-align: center;
  font-size: x-large;
  margin-top: -3rem;
}

/*Código Menú nuevo*/
/*Menu Hamburguesa*/
.nav--top {
  position: fixed;
  top: 10px;
  left: 100px;
  z-index: 10;
  width: 3em;
  height: 3em;
  color: black;
  overflow: hidden;
  cursor: pointer;
}
.nav--top:after {
  content: "☰";
  font-size: 2em;
  line-height: 1;
  text-align: center;
  position: absolute;
  top: 25%;
  left: 25%;
  margin-top: -6px;
  margin-left: -4px;
}
.nav--top__list {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 3em;
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: -1;
  height: 100px;
  width: 70vw;
}

.checkbox__hack {
  display: none;
}

.checkbox__hack:checked ~ .nav--top {
  overflow: visible;
}
.checkbox__hack:checked ~ .nav--top::after {
  content: "X";
}

.checkbox-hack__label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 5vw;
  height: 14vh;
  color: white;
  overflow: visible;
  cursor: pointer;
  margin: 0;
  z-index: 100;
}
nav ul {
  padding: 0;
  margin: 0;
  text-align: center;
}

.item {
  display: inline-block;
  margin-left: 2rem;
  margin-top: auto;
  width: 170px;
}

.item label {
  font-family: "Oswald";
  display: block;
  padding: 5xp;
  background-color: #434343;
  font-size: 25px;
  cursor: pointer;
  color: white;
  border-bottom: solid 1px #f7f0e9;
}

.item label:hover {
  background-color: rgb(241, 186, 83);
}

.item ul {
  width: 100%;
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: all 1s linear;
}

.item input {
  display: none;
}

.item ul li a {
  width: 100%;
  height: 30px;
  padding: 7px;
  display: block;
  text-decoration: none;
  background-color: #f7f0e9;
  color: #434343;
  border-bottom: solid 2px #dfa63a;
  font-size: medium;
  text-align: center;
}

.item ul li a:hover {
  background-color: rgb(241, 186, 83);
}

.item input:checked ~ ul {
  height: auto;
  max-height: 400px;
  transform: all;
}

/*Sección Casas*/
.grilla {
  grid-column-start: 1;
  grid-column-end: 4;
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  text-align: center;
  height: 60vh;
  margin-top: 6vh;
}

.grilla > img {
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

/*Sección Noticias*/
.grid {
  display: inline-block;
  text-align: center;
  grid-column-start: 2;
  grid-column-end: 4;
  margin-top: 6vh;
  column-gap: 20%;
}

.grill {
  display: inline-block;
  margin-bottom: 0, 5rem;
  text-align: center;
  margin-top: 1vh;
}

/*PANTALLA DE VARITAS*/

/*//////////////////////////////////////*/
/*MEDIA QUERIES - TABLET, MOBILE*/

@media screen and (min-width: 500px) {
  .nav--top__list {
    float: none;
    width: 100%;
  }
}

/*TABLET - 2 columnas */

@media screen and (max-width: 768px) {

  .checkbox-hack__label {
    width: 15vw;
    height: 14vh;
  }
  /*Pantalla de inicio*/
  .titulo-inicio {
    font-family: "Oswald", sans-serif;
    color: #272828;
    align-self: center;
    font-size: 2rem;
  }

  .alohomora-button {
    text-decoration: none;
    padding: 10px;
    font-weight: 600;
    font-size: 1.5rem;
    color: #272828;
    background-color: #dfa63a;
    border-radius: 6px;
    transform: scale(1);
    outline: none;
  }

  /*0. Estructura básica*/
  .inner-content {
    width: 80vw;
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .parrafo {
    font-size: 2rem;
  }

  .dynamic-content {
    margin-top: 0;
  }

  /*1. Pantalla de los escudos */
  .grilla {
    grid-template-columns: 50% 50%;
  }

  /*2. Pantallas de miembros de cada casa*/
  .card-box {
    width: 25vw;
  }

  .card {
    width: 100%;
  }

  ul {
    font-size: 1.5rem;
  }

  .transparent-card-title {
    margin-top: -2rem;
  }
}

/*MOBILE - 1 columna */
@media screen and (max-width: 425px) {
  .nav--top__list {
    margin-left: -6rem;
  }

  section.header {
    position: fixed;
    background-color: #f7f0e9;
    grid-row: 1;
    grid-column: 2;
    width: 100vw;
    max-height: 25vh;
    overflow: hidden;
    z-index: 1;
  }

  header {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .small-logo-box {
    width: 20vw;
    height: 100%;
    cursor: pointer;
    margin-top: -2rem;
  }

  /*Pantalla de inicio*/

  .img-box {
    margin-top: 10rem;
  }

  .titulo-inicio {
    font-family: "Oswald", sans-serif;
    color: #272828;
    align-self: center;
    font-size: 1.5rem;
  }

  .alohomora-button {
    text-decoration: none;
    padding: 10px;
    font-weight: 600;
    font-size: 1.5rem;
    color: #272828;
    background-color: #dfa63a;
    border-radius: 6px;
    outline: none;
    transform: scale(0.8);
  }

  /*0. Estructura básica*/

  .inner-content {
    width: 80vw;
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-top: 2rem;
  }

  .parrafo {
    font-size: 1.5rem;
  }

  .small-logo-box {
    width: 40vw;
  }

  .dynamic-content {
    margin-top: 0;
  }

  /*1. Pantalla de escudos */
  .grilla {
    grid-template-columns: 100%;
  }

  /*2. Pantallas de miembros de cada casa*/
  .card-box {
    width: 50vw;
  }

  .card {
    width: 100%;
  }

  ul {
    font-size: inherit;
  }
}

@media screen and (max-width: 320px) {
  .nav--top__list {
    margin-left: -5rem;
  }

  /*2. Pantallas de miembros de cada casa*/
  .card-box {
    width: 60vw;
  }

  .card {
    width: 100%;
  }

  ul {
    font-size: small;
  }
}

#toggle {
  display: none;
}
