/* ==========================================
   bases y cosas principales
   ========================================== */

body {
  background-color: #1a1a21;
  color: white;
  font-family: "UD Digi Kyokasho NK-B", sans-serif;
  background-image: url("/images/bgstamp1.png");
  background-size: 10% auto;
  background-repeat: repeat;
}

.contenedor {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  
  background-color: #5032ac;
  padding: 25px;
  border: 6px double #a193ff;
  border-radius: 25px;
  box-shadow: 6px 6px 0px #2a1659;
}

.contenedor .titulado {
  width: 90%;
  max-width: 700px;
  margin: 15px auto;
  
  background-color: #c68ae7;
  padding: 15px;
  border: 3px dashed #f4bdf4;
  border-radius: 20px;
  box-shadow: 4px 4px 0px #2a1659;
  text-align: center;
}

.contenedor .titulado h1 {
  width: 90%;
  max-width: 700px;
  margin: 10px auto;
  
  background-color: #5032ac;
  padding: 12px;
  border: 3px solid #7741ff;
  border-radius: 15px;             /* Redondeado para el título interno */
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.4);
  font-weight: bold;
}

.contenedor .titulado h1::before,
.contenedor .titulado h1::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url("/images/wolf1.gif");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.contenedor .titulado h1::before {
  margin-right: 15px;
}

.contenedor .titulado h1::after {
  margin-left: 15px;
}

.center {
  text-align: center;
}

/* ==========================================
   ESTRUCTURA DE PESTAÑA LATERAL (SIDEBAR)
   ========================================== */

.layout {
  display: flex;
  gap: 20px;                   /* Separación entre la pestaña y el cuadro */
  width: 90%;
  max-width: 1100px;           /* Un poco más de margen para que quepan ambos */
  margin: 30px auto;           /* Centrado global en pantalla */
  align-items: flex-start;     /* Alinea las partes arriba */
}

/* La pestaña lateral redondita y linda */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background-color: #322a49;
  padding: 15px;
  border: 5px double #a193ff;  /* Borde doble lila claro */
  border-radius: 20px;         /* Esquinas bien curvadas */
  box-shadow: 6px 6px 0px #2a1659;
  box-sizing: border-box;
  
  position: sticky;
  top: 20px;
}

/* Título estilo "titulado" para la pestaña */
.sidebar .titulado-mini {
  background-color: #3b3d87;
  padding: 8px;
  border: 2px dashed #f4bdf4;  /* Punteado rosa claro */
  border-radius: 12px;         /* Forma redondita para el minitítulo */
  text-align: center;
  margin-bottom: 15px;
}

.sidebar .titulado-mini h2 {
  margin: 0;
  font-size: 16px;
}

/* Adaptación para que TU .contenedor encaje perfecto al lado de la pestaña */
.layout .contenedor {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Si entras desde el móvil, la pestaña se pone arriba en vez de apretarse */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}


/* ==========================================
   botones (Estilo Píldora / Cute)
   ========================================== */

.boton {
  display: block;
  background-color: #a193ff;
  color: white;
  border: 2px dashed #f4bdf4;
  border-radius: 15px;         /* Forma de pildorita suave */
  padding: 6px 14px;
  font-family: "Comic Sans MS", monospace;
  font-size: 14px;
  text-decoration: none;
  font-weight: normal;
  margin-bottom: 8px;
  text-align: center;
  box-shadow: 2px 2px 0px #2a1659;
  transition: all 0.2s ease;
}

.boton:hover {
  background-color: #c68ae7;   /* Cambia a rosa/lila alegre */
  color: white;
  font-size: 15px;
  font-weight: bold;
  border-color: #ffffff;
  transform: translateY(-2px); /* Pequeño salto "flotante" al pasar el ratón */
  box-shadow: 3px 4px 0px #2a1659;
  cursor: pointer;
}

.boton:active {
  background-color: #6062d1;
  border: 2px dashed #a193ff;
  transform: translateY(1px);
  box-shadow: 1px 1px 0px #2a1659;
}


/* ==========================================
   dialogos de personajes (Estilo Bocadillo Cute)
   ========================================== */

.nereD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #e7d7fe;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #9684c4;
  border: 4px double #222034;
  border-radius: 20px;         /* Redondeado estilo mensaje */
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.nereD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/nere.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 50%;          /* Marco circular para el icono */
}

.miaD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #ffe0cd;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #815452;
  border: 4px double #222034;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.miaD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/mia.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.roseD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #a46654;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #764447;
  border: 4px double #222034;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.roseD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/rose.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.aliceD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #dae8f9;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #a2afe4;
  border: 4px double #222034;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.aliceD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/alice.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.dartD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #ffb6a6;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #d86c5d;
  border: 4px double #222034;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.dartD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/dart.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.dsusD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #ff6565;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #d53665;
  border: 4px double #222034;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.dsusD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/dan sus.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.thornD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #a76e6a;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #764549;
  border: 4px double #222034;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.thornD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/thorn.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.danD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 18px;
  color: #f3c5ae;
  text-shadow:
    -2px 0 #222034,
     2px 0 #222034,
     0 -2px #222034,
     0  2px #222034;
  text-align: center;
  background-color: #3f8f78;
  border: 4px double #222034;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #2a1659;
  padding: 10px 15px;
  margin: 12px 0;
}

.danD::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url("/images/dan.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}