/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #f0f4f8, #d9e2ec);
    color: #102a43;
    margin: 0;
    padding: 0;
}

h1 {
    margin-top: 20px;
    font-size: 2.5em;
    color: #334e68;
    text-align: center;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}

/* Panel de controles */
.controls {
    width: 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(16, 42, 67, 0.1);
    margin-right: 20px;
}

.controls label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.controls input[type="range"],
.controls select {
    width: 100%;
    margin-top: 5px;
}

.controls button {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 1em;
    color: #fff;
    background-color: #334e68;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.controls button:hover {
    background-color: #243b53;
}

/* Estilos del canvas */
#simulationCanvas {
    flex-grow: 1;
    border: 2px solid #bcccdc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(16, 42, 67, 0.1);
}

/* Conteo de frentes de onda */
#wavefrontCountDisplay {
    font-size: 1.2em;
    margin-top: 20px;
    color: #334e68;
    text-align: center;
}

#wavefrontCountDisplay span {
    font-weight: bold;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 800px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .controls {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    #simulationCanvas {
        width: 100%;
        height: auto;
    }
}
