/* --- Global Styles --- */
/* --- Global Styles --- */
html {
    background-image: url("images/background7.png");
}

body {
    background-color: #ffffff;
    color: #b30000;
    font-family: Arial, sans-serif;
    margin: auto;
    width: 35%;
    font-size: 150%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1, h2 {
    color: #b30000;
    border-bottom: 2px solid #b30000;
    padding-bottom: 5px;
}

form {
    background-color: #ffe5e5;
    border: 2px solid #b30000;
    padding: 20px;
    border-radius: 8px;
    width: 350px;
}

/* --- Global Element Styles (These affect everything unless overridden) --- */
label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, select {
    width: 95%; /* This is what makes normal inputs big */
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #b30000;
    border-radius: 4px;
}

/* --- Specific Radio Button Row Fixes --- */

fieldset {
    border: 1px solid #b30000;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
}

.radio-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important; /* Label left, Dot right */
    align-items: center !important;
    width: 100%;
    margin-top: 5px;
}

/* Overriding global label/input styles for inside the radio rows */
.radio-row label {
    display: inline !important; 
    margin-top: 0 !important;
    font-weight: normal; 
    cursor: pointer;
}

.radio-row input[type="radio"] {
    width: auto !important; /* Stops the dot from stretching to 95% */
    margin-top: 0 !important;
    cursor: pointer;
}

/* --- Other Elements --- */
button {
    background-color: #b30000;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
}

a { color: #b30000; font-weight: bold; }

.clear-history-form {
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */
    width: 70%;             /* Take up full width of the container */
    margin-top: 30px;        /* Space below the table */
    padding: 10px;
}

/* Optional: ensure the button itself doesn't stretch */
.clear-history-form button {
    width: 250px; 
    padding: 12px;
}