body {
    padding: 10px 0;
    background-color: #25253a;
    color: #e1e1e1;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 15px;
    background-color: #673f3f;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

h1, #story-text, #options, #start, #intro-text {
    border-radius: 15px;
    background-color: #573333;
    padding: 20px;
    border: 1px solid #222;
    margin-top: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#head1 {
    color: #87ceeb;
}

img {
    max-width: 500px;
    width: 100%;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

img.mal {
    max-width: 75%;
    }

#story-text, #intro {
    margin-top: 20px;
    text-align: justify;
    line-height: 1.5;
    text-indent: 50px;
}

center {
        text-indent: 0;
}

#options, #start {
    margin-top: 20px;
    background-color: #7b4f4f;
}

.option-button, button, #start-over, #close-dialog {
    background-color: #9e4545;
    color: #ddd;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.option-button:hover, button:hover, #start-over:hover, #close-dialog:hover {
    background-color: #d3a0a0;
}

.points {
    font-size: 15px;
    color: #222;
    margin: 20px 0 0;
}

#doscientos {
    color: #991111;
}


.hidden {
    display: none;
}

/* Overlay */
#custom-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none; /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Contenido del modal */
.modal-content {
   margin: 20px;
    background-color: #573333;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #222;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
  max-height: 80vh; /* limita altura */
  overflow-y: auto; /* scroll interno */
  width: 90%;
  max-width: 500px;
 }

.mundo-alternativo {
    background-color: #336699; /* Azul clarito */
        }

.mundo-alternativo:hover {
    background-color: #87ceeb; /* Azul un poquito más intenso al pasar el ratón */
}

.salto {
    display: inline-block;    
  }