@import url("https://fonts.googleapis.com/css2?family=Hammersmith+One&display=swap");
@font-face {
  font-family: "Bleak Chop";
  src: url("./Bleak\ Chop.ttf");
}
* {
  text-align: center;
  margin: 0px;
}
html,
body {
  height: 100vh;
  position: relative;
  overflow-y: scroll;
}
header {
  height: 230px;
  font-family: "Bleak Chop";
  background-color: #febf4e;
  padding-bottom: 40px;
}
h1 {
  font-size: 35px;
  color: black;
  font-family: "Bleak Chop";
  margin-top: -15px;
  letter-spacing: 2px;
}
#logo {
  max-height: 180px;
  max-width: 180px;
  margin-top: 25px;
}
nav {
  height: auto;
  width: 100%;
  background-color: #febf4e;
  padding: 10px 0px;
}
/* falta un float*/
.menuIcon {
  width: 30px;
  height: 30px;
  float: right;
  margin: 15px 20px 15px 0px;
  display: none;
}
#check {
  display: none;
}
input {
  font-size: 18px;
  text-align: left;
  padding: 8px 10px 6px 15px;
  margin: 0px 6px 0px 10px;
  box-shadow: 3px 3px 3px rgba(132, 132, 132, 0.13);
  border: 0;
  border-radius: 8px;
  outline: none;
}
label {
  padding: 5px;
  border: none;
  font-family: "Hammersmith One", sans-serif;
}
select {
  font-size: 18px;
  font-family: "Hammersmith One", sans-serif;
  background-color: #febf4e;
  padding: 6px 10px 6px 10px;
  box-shadow: 2px rgba(132, 132, 132, 0.13);
  border: 0;
  border-radius: 5px;
  outline: none;
}
select[name="year"] {
  padding: 8px 12px 8px 12px;
}
select:hover {
  background-color: #fcbc46;
  transition: 5ms;
}
/*No funciona
option {
  color: #080808;
  background-color: #febf4e;
}
option:hover {
  background-color: #fe9a4e;
}*/
button {
  font-size: 15px;
  font-weight: bold;
  border: none;
  color: white;
  background-color: #c90040;
  padding: 8px 10px 8px 10px;
  border-radius: 5px;
  margin-left: 15px;
}
button:hover {
  background-color: rgba(255, 12, 89, 0.902);
}
.metrics {
  height: auto;
  color: white;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #c90040;
  padding-bottom: 15px;
}
.compute-stats {
  font-size: 20px;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 10px 0px;
  background-color: rgb(40, 40, 40);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}
.itemcontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  word-wrap: break-word;
  width: 500px;
  height: 280px;
  margin: 10px;
  color: white;
  border-radius: 6px;
  padding: 15px 5px 0px 15px;
  background: rgb(40, 40, 40);
  position: relative;
}
.container img {
  max-width: 220px;
  max-height: 264px;
  border-radius: 6px;
}

.texto {
  position: absolute;
  top: 8px;
  left: 220px;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

dd[itemprop="studio"] {
  color: #febf4e;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  margin-top: 25px;
}

dd[itemprop="name"] {
  font-size: 17px;
  font-weight: bold;
  font-family: "Hammersmith One", sans-serif;
  margin-top: 30px;
  letter-spacing: 1px;
}
dd[itemprop="shortDescription"] {
  font-size: 16px;
  text-align: left;
  margin-top: 30px;
  color: #aca6a6;
  font-family: Arial, Helvetica, sans-serif;
}
dd[itemprop="genre"] {
  font-size: 15px;
  padding-top: 10px;
  text-align: left;
  margin-top: 15px;
  color: #aca6a6;
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  top: 220px;
}
dd[itemprop="year"] {
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  top: 245px;
  left: 240px;
  letter-spacing: 1px;
}
footer {
  font-size: 16px;
  position: static;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 30px;
  padding: 20px 20px;
  background-color: #febf4e;
  font-family: "Hammersmith One", sans-serif;
}

@media (max-width: 400px) {
  header {
    height: 20px;
    width: 100%;
    background-color: #febf4e;
  }
  #logo {
    max-height: 70px;
    max-width: 70px;
    position: absolute;
    left: 5px;
    top: 1px;
  }
  h1 {
    display: none;
  }
  .menuIcon {
    display: block;
  }
  nav select {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: white;
    top: 60px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav select option {
    display: block;
    margin: 50px 0;
    line-height: 30px;
    font-size: 20px;
  }
  option:hover {
    background: none;
    color: #f8b943;
  }
  #check:checked ~ select {
    left: 0;
  }
  .metricas {
    padding-left: 10px;
    padding-top: 10px;
  }
  .cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .itemcontainer {
    flex-direction: column;
    width: 300px;
    height: 540px;
    justify-content: flex-start;
  }
  .container img {
    max-width: 180px;
    max-height: 240px;
    border-radius: 6px;
  }
  .texto {
    position: relative;
    padding: 0;
    left: 0;
  }
  dd[itemprop="name"] {
    font-size: 15px;
    line-height: 28px;
  }
  dd[itemprop="shortDescription"] {
    font-size: 15px;
    line-height: 20px;
  }
  dd[itemprop="genre"] {
    position: absolute;
    top: 230px;
  }
  dd[itemprop="year"] {
    line-height: 15px;
    position: absolute;
    top: 256px;
  }
}
