/* Estilo general del body */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url("background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor principal */
main {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Títulos y etiquetas */
h1, label, h2 {
    color: wheat;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Contenedor de inputs */
.contenedor-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

/* Inputs y botón */
input {
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: wheat;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: goldenrod;
}

/* Display del temporizador */
#display {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    margin-top: 20px;
}

#detener {
    padding: 10px 20px;
    font-size: 16px;
    background-color: crimson;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#detener:hover {
    background-color: darkred;
}