
body {
    margin: 0;
    font-family: 'Treasure Map', cursive, sans-serif;
    background: #0b0b1a url('./img/mar_fondo.jpg') center/cover no-repeat; 
    color: #f5d76e;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.card {
    background: rgba(0,0,0,0.75); 
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 650px;
    box-shadow: 0 0 25px #ffd700;
}

/* Imagen de index.php */
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid #ffd700; 
}

/* Títulos */
h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 2px 2px 4px #000;
}

/* Texto principal */
p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.5em;
}

/* Error */
.error {
    color: #ff4d4d;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Formulario */
form label {
    font-weight: bold;
}

form input[type="text"] {
    padding: 8px;
    border-radius: 5px;
    border: none;
    width: 70%;
    max-width: 250px;
}

form button {
    padding: 12px 20px;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

form button:hover {
    background: #f5b700;
    transform: scale(1.05);
}

/* Fondo completo para index.php */
body.index-page {
    background: url('./img/fondo1.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    height: 100vh;
    font-family: 'Treasure Map', cursive, sans-serif;
    color: #ffd700;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fondo completo para hidden.php */
body.hidden-page {
    background: url('./img/hidden.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    height: 100vh;
    font-family: 'Treasure Map', cursive, sans-serif;
    color: #ffd700;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* contenedor para el mapa */
.map-page {
    display: block;
    justify-content: center;
    text-align: center; 
    align-items: center;
    height: 100vh;
    overflow: auto; 
    background: #000; 
}

.map-page img {
    max-width: 100%;
    height: auto;

}

/* Estilo general para la página del tesoro */
.treasure-page {
    margin: 0;
    min-height: 100vh;
    background: url('./img/fondo1.jpg') center/cover no-repeat; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: gold;
    font-family: 'Treasure Map', cursive;
}

.flag-container {
    background: #f4e5c0; 
    padding: 30px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 20px #00000080; 
    border: 3px solid #d4b17f; 
    max-width: 90%;
}

.flag {
    font-size: 2em;
    font-weight: bold;
    margin-top: 20px;
    background: repeating-linear-gradient(
        45deg,
        #fdf5d4,
        #fdf5d4 5px,
        #f4e5c0 5px,
        #f4e5c0 10px
    ); 
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px #00000070 inset; 
}

h1 {
    font-size: 2em;
    text-shadow: 2px 2px 4px #00000080;
}

/* Página del mar oculto */
.sea-page {
    margin: 0;
    min-height: 100vh;
    background: url('./img/fondo1.jpg') center/cover no-repeat; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Treasure Map', cursive;
    color: #ffd700;
    text-align: center;
}

.sea-page .card {
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    box-shadow: 0 0 20px #00000080;
}

.sea-page .error {
    color: #ff4d4d;
    font-weight: bold;
    margin-top: 15px;
}

map {
    cursor: none;
}