html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: math;
  background: url('noRes.jpg');
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

i{
  color: white;
}

.container {
  height: 80%;
  width: 90%;
  border-radius: 1em;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 2em;
  align-items: center;
  display: flex;
  flex-direction: column;
}

header {
  height: 10vh;
  display: flex;
  align-items: center;
  gap: 10em; /*jc:sb no anda, por eso el gap*/
}

nav a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  cursor: pointer;
  border-radius: 2em;
  padding: 0.7em;
}

nav a.active {
  background: #f0cf9e;
}

nav a:hover {
  background: #f0cf9e;
  transition: 1s;
}

li {
  list-style-type: none;
  font-size: 1.3em;
}

ul {
  display: flex;
  gap: 2em;
}

.panel {
  display: none;
  height: 80vh;
  margin: 2.5vh 1.5vw;
  border-radius: 2em;
  justify-content: space-around;
  align-items: center;
  gap: 20vh;
}

.panel.active {
  display: flex;
}

img {
  width: 30%;
  height: auto;
  border-radius: 1em;
  animation: bounce 5s ease infinite;
}

@keyframes bounce {
  50% { transform:translateY(0%); }
  50% { transform:translateY(-5%); }
}

.text {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.7em;
}

button, input[type="submit"], #back {
  background: #ffffff;
  border-radius: 2em;
  height: fit-content;
  width: fit-content;
  padding: 0.9em;
  display: flex;
  align-items: center;
  border: #ffffff;
}

#back {
  margin-top: 3em;
}

button:hover, #cart input[type="submit"]:hover, #back:hover {
  background: #eb7b2c;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

#cart {
  display: none;
  border-radius: 1em;
  justify-content: center;
  align-items: center;
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  text-align: center;
  margin-top: 1em;
}

#cart.active {
  display: grid;
}

#cart form {
  display: grid;
  gap: 1em;
  justify-items: center;
  grid-template-columns: 1fr 1fr 1fr;
}

#cart input[type="submit"] {
  width: 100%;
}

#cart input {
  background: rgba(255, 255, 255, 0.7);
}

#cart input,
#cart input[type="submit"] {
  padding: 0.9em 1.5em;
  border-radius: 2em;
  border: none;
  text-align: center;
  font-size: 1em;
  color: rgb(47, 47, 47);
}

::placeholder {
  color: rgb(47, 47, 47);
}

@media (max-width: 720px) {
  html, body {
    overflow: auto;
    background: url('res.jpg');
  }
  header {
    flex-direction: column;
    gap: 1em;
  }
  .container{
    width: 75vw;
  }
  h2{
    font-size: 1.3em;
  }
  .panel h1{
    font-size: 1.2em;
  }
  .panel p {
    font-size: 0.9em;
  }
  .panel {
    margin-top: -7em;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  img {
    margin-top: -12em;
    padding: 0;
    width: 50%;
  }
  .text {
    width: 90%;
    text-align: center;
  }
  nav {
    font-size: 0.6em;
    position: absolute;
    margin-top: 20%;
  }
  .references {
    display: flex;
    flex-wrap: nowrap;
  }
  #cart.active {
    width: 60vw;
    display: grid;
    margin-top: 5em;
  }
  #cart h1 {
    font-size: 1.2em;
  }
  #cart form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.1em;
  }
  #back {
    margin-top: 1.5em;
  }
  #cart input[type="submit"] {
    width: 92%;
  }
  #cart input, #cart input[type="submit"] {
    padding: 0.2em;
  }
}
