
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Segoe UI", Arial, sans-serif; 
    background-color: #f4f4f4; 
    color: #2b2b2b; 
    line-height: 1.6;
    padding: 30px 0;
}


h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #8b0000; 
    font-size: 2rem;
    font-weight: 700;
}


h2 {
    color: #8b0000;
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-left: 4px solid #b30000;
    padding-left: 10px;
}


#exercise1, #exercise2, #exercise3, #exercise4, #exercise5, #exercise6, #exercise7 {
    background: #ffffff; 
    margin: 30px auto;
    padding: 25px;
    max-width: 800px; 
    border-radius: 6px;
    border-left: 6px solid #b30000; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


label {
    font-weight: 600;
    display: block;
    margin-top: 15px;
    color: #2b2b2b; 
}


input[type="number"], input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 15px;
    background-color: #ffffff;
}

input:focus {
    border-color: #b30000; 
    outline: none;
}


button {
    background-color: #b30000; 
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #8b0000; 
}

/* RESULTADO */
#output1, #output2, #output3, #output4, #output5, #output6, #output7 {
    background-color: #f9f9f9; 
    border-left: 5px solid #b30000; 
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1rem;
    color: #2b2b2b;
    white-space: pre-wrap;
}


@media (max-width: 600px) {
    body {
        padding: 20px 0;
        font-size: 90%;
    }

    h1 {
        font-size: 1.6rem;
    }

    input[type="number"], input[type="text"] {
        width: calc(100% - 10px);
    }

    button {
        width: 100%;
    }
}
