/* -----------------------------------
   TIPOGRAFÍA: Pixelify Sans Custom
------------------------------------ */
@font-face {
  font-family: 'PixelifySans';
  src: url('../assets/static/PixelifySans-Regular.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: 'PixelifySans';
  src: url('../assets/static/PixelifySans-Bold.ttf') format('truetype');
  font-weight: bold;
}

/* -----------------------------------
   BASE
------------------------------------ */
body {
  font-family: 'PixelifySans', sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 100px; /* Ajusta según el alto de tu footer */
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url(../assets/image/rose.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  image-rendering: pixelated;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Layout principal */
.main-layout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 4vw;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.background-pixel,
.hojas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  image-rendering: pixelated;
}

/* -----------------------------------
   CONTAINER (input, hints)
------------------------------------ */
/* Contenedor a la izquierda */
.container {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
}

.container h1 {
  font-weight: bold;
  font-size: 2.5rem;
  color: #7a0b44;
  margin-bottom: 0.5rem;
}

.container p {
  color: #147a0b;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

input {
  width: 95%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #2c5e1a;
  border-radius: 0.5rem;
  margin: 1.25rem 0 0.75rem;
  font-family: 'PixelifySans', sans-serif;
  text-align: center;
  box-sizing: border-box;
}



input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  outline: none;
}

#statusMessage {
  font-size: 0.875rem;
  color: #4CAF50;
  margin-top: 0.5rem;
}

/* -----------------------------------
   HINT BOX
------------------------------------ */
#hintBox {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#hintBox p {
  font-weight: bold;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #2c5e1a;
}

#hintBox ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#hintBox li {
  display: inline-block;
  margin: 4px 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  color: #7c2833;
  font-size: 0.875rem;
  animation: pastelCycle 6s infinite ease-in-out;
}

@keyframes pastelCycle {
  0%   { background-color: #eaf7dc; }   /* pastel green */
  25%  { background-color: #fcefe3; }   /* pastel peach */
  50%  { background-color: #e3f1fc; }   /* pastel blue */
  75%  { background-color: #fbe3f1; }   /* pastel pink */
  100% { background-color: #eaf7dc; }   /* back to start */
}

/* -----------------------------------
   BOTÓN RESET
------------------------------------ */
#resetButton {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 0.95rem;
  background-color: #d9f3d8;
  color: #2c5e1a;
  border: 2px solid #82cc82;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  
}

#resetButton:hover {
  background-color: #d0ebc4;
}

/* -----------------------------------
   SEMILLEROS / PLOTS
------------------------------------ */
.plot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Mantén 3 columnas */
  gap: 2.5rem; /* Menos separación */
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 1rem;
  max-width: 480px;
  width: 100%;
}

.plot {
  width: 115px;
  height: 115px;
  background-image: url("../assets/image/tierra8.png");
  background-size: cover;
  background-position: center;
  border-radius: 10%;
  position: relative;
}

.plot img {
  width: 80px;
  height: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}


/* -----------------------------------
   FOOTER
------------------------------------ */
.site-footer {
  width: 40%;
  text-align: center;
  padding: 0.5rem 0.5rem;
  color: #2c5e1a;
  font-size: 0.85rem;
  font-family: 'PixelifySans', sans-serif;
  margin-top: auto;
  position: fixed; /* o fixed si quieres que esté fijo */
  bottom: 0;
  z-index: 10;
}

.site-footer strong {
  color: #7c2833;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.footer-links img {
  width: 22px;
  height: 22px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.footer-links img:hover {
  transform: scale(1.2);
}


canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none; /* ← evita bloquear clics */
}


/* -----------------------------------
   MEDIA QUERIES
------------------------------------ */
@media screen and (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .container {
    margin-bottom: 2rem;
    width: 90vw;
    max-width: 350px;
  }

  .plot-grid {
    margin: 0 auto;
  }
}





@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .container {
    width: 90vw;
    max-width: 100%;
  }

  .plot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
  }
}

@media screen and (max-width: 600px) {
  .plot-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 250px;
    gap: 0.8rem;
  }

  .plot {
    width: 5em;
    height: 5em;
  }
}


@media (max-width: 500px) {
  .plot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
  }

  .plot {
    width: 32vw;
    height: 32vw;
    max-width: 70px;
    max-height: 70px;
  }

  .site-footer {
    font-size: 0.75rem;
  }

  .footer-links img {
    width: 18px;
    height: 18px;
  }

  #hintBox li {
    font-size: 0.75rem;
  }
}
