/* General styles for mobile */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #fff8f1;
  color: #333;
  text-align: center;
  overflow-x: hidden;
  background-image: url("/imgs/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

header nav {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
  gap: 1rem;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

main {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
}

main, .riddle p, .modal-content p {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  border-radius: 5px;
}

h1 {
  font-size: 2rem;
  margin-top: 1rem;
}

.rainbow {
  background: linear-gradient(
    to right,
    #ff6b6b,
    #f7b731,
    #26de81,
    #45aaf2,
    #a55eea
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-btn {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  background-color: #f45b69;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.main-btn:hover {
  background-color: #d13b4c;
}

.description {
  font-size: 1rem;
  margin: 1rem auto;
}

.visuals {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.visuals img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

footer {
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.8rem;
  color: #aaa;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 1rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  background-image: url('/imgs/torta.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.riddle {
  margin: 1rem 0;
}

.riddle input {
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#giftModal {
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prevent zooming issues on input focus */
input, button {
  font-size: 16px;
}

.custom-alert {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  text-align: center;
  display: none;
  width: 90%;
  max-width: 300px;
}

.custom-alert p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.custom-alert button {
  padding: 0.5rem 1rem;
  background-color: #f45b69;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.custom-alert button:hover {
  background-color: #d13b4c;
}
