/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Pantalla de carga */
#pantalla-carga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #d2b4de;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    color:  #283747;
}


.loader {
    margin-top: 20px;
    width: 50px;
    height: 50px;
    border: 5px solid white;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Menú de selección de dificultad */
#menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1000px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#seleccion-nivel {
    width: 45%;
    text-align: center;
}

#seleccion-nivel h1 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

#seleccion-nivel button {
    padding: 12px 20px;
    margin: 10px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#facil {
    background-color: #4CAF50;
    color: white;
}

#intermedio {
    background-color: #FF9800;
    color: white;
}

#seleccion-nivel button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

#mapa-container {
    width: 50%;
    display: flex;
    justify-content: center;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}



.oculto {
    display: none;
}

button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

button:hover {
    background-color: #27ae60;
}