body {
  background: linear-gradient(315deg, #f28ac3 20%, #ffe4f4 100%);

  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;

  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("images/background.png");
  opacity: 0.1;
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: move 15s linear infinite;
  z-index: -1;
}
@keyframes move {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 300px 300px;
  }
}

.login {
  font-family: "Alata", sans-serif;
  font-weight: 100;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2vh;
  text-align: center;
}

.login-box {
  backdrop-filter: blur(2px);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-radius: 5vh;
  padding: 10vh;

  transition: 0.2s;
  animation: appear 2.5s forwards;
}

/* Safari on ios will automatically zoom in if the font size is under 16px */
input,
select {
  font-size: 16px;
}

/* apple recommend a minimum touch target size of 44x44 pixels so buttons are easy to tap with a thumb on mobile*/
.arrow-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 12px;
}

/* lets navbar wrap naturally on mobile */
.navbar {
  flex-wrap: wrap;
  justify-content: center;
}

.box {
  backdrop-filter: blur(2px);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-radius: 5vh;
  padding: 10vh;
}
#error {
  color: white;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-box:hover {
  backdrop-filter: blur(10px);
}

.login-box h1 {
  color: white;
  font-weight: 200;
}
.password-row input {
  outline: none;
  padding: 10px;
  transition: 0.2s;
}

.password-row button {
  font-family: "Alata", sans-serif;
  font-weight: 200;
  outline: none;
  padding: 10px;
  background-color: white;
  border: none;
  border-radius: 0.8vh;
  transition: 0.2s;
}

.select {
  font-family: "Alata", sans-serif;
  font-weight: 600;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

#resultImage {
  max-width: 30%;

  width: 100%;

  display: block;
  margin: 20px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upload {
  text-align: center;
}

.navbar {
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.navbar a {
  background-color: #f28ac3;
  opacity: 0.7;
  box-shadow: 0 4px 15px rgba(104, 104, 104, 0.3);
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-family: "Alata", sans-serif;
  font-weight: 600;
  transition: 0.2s;
}

.navbar a:hover {
  opacity: 1;
}

.outfit-mixer-card {
  display: flex;
  flex-direction: column;
  /* Change max-width to 100% or a larger size so it expands */
  width: 90%;
  max-width: 600px; /* Adjust this larger if you want it wider */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  box-sizing: border-box;
}

.layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
}

.layer-row:last-child {
  border-bottom: none;
}

.layer-section {
  flex-grow: 1;
  /* Increase the height so the clothing items display larger */
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.layer-section img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keeps your full PNG transparent clothing centered */
}

.arrow-btn {
  background: transparent;
  border: none;
  font-size: 24px; /* Larger arrows to match the bigger card */
  padding: 0 20px;
  height: 100%;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
