/* Ensure header is full width */
header {
    width: 100%;

}
footer {
    width: 100%;
}
h1 {
    margin-top: 50px;
    margin-bottom: 10px;
    font-size: 30px;
    text-align: center; /* Center h1 */
}

h2, h3 {
    text-align: center; /* Center h2 and h3 */
}


#sci .btn {
    color: #185290;
    background-color: #f0f0f0 !important;
}

#sci .calculator {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    margin: 20px;
    border: 1px solid #a2bbd4;
    margin: 0 auto;
}

.display {
    color: white;
    width: 100%;
    height: 40px;
    font-size: 18px;
    text-align: right;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    overflow-x: auto;
    border: 1px solid #ccc; /* Lighter border for clarity */
    background-color: #185290;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 buttons per row */
    grid-gap: 10px;
}

.btn {
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
    border-radius: 3px;
}

.btn:hover {
    background-color: #ddd;
}

.btn:active {
    background-color: #ccc;
}

#one {
    font-style: justify;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 auto; /* Center the section */
    padding: 20px; /* Add padding */
    text-align: center; /* Center text */
}

@media screen and (max-width: 400px) {
    .calculator {
        width: 100%;
        padding: 15px;
    }

    .btn {
        font-size: 12px;
        padding: 10px;
    }
}