@import url('https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap');

/* Shared title block used across the templates. */
#heading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Henny Penny', cursive;
}

#heading h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
}

#heading p {
    font-size: 1.2em;
    color: #555555;
    margin-top: 0;
}

/* Basic page background. */
body {
    background-color: rgb(240, 240, 240);
}

/* Centered panels used by the home and upload forms. */
.container {
    width: 90%;
    max-width: 360px;
    margin: 40px auto 20px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}


/* Stack form controls vertically for easier data entry. */
.form-container form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-container label {
    margin-top: 8px;
    margin-bottom: 2px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-container input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-container input[type="text"]:focus {
    border-color: #555;
    outline: none;
}

.form-container input[type="submit"] {
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.form-container input[type="submit"]:hover {
    background-color: #555;
}

/* Secondary link back to the spreadsheet workflow. */
.normality {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    box-shadow: solid black;
}

.normality a {
    width: fit-content;
    padding: 12px 24px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 8px;

    font-size: 1rem;
    font-weight: bold;
    text-align: center;

    transition: 0.2s ease;
}

.normality a:hover {
    background: #555;
    transform: translateY(-2px);
}
/* Center the topper table and its heading. */
.table_of_toppers{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Responsive grid for generated performance charts. */
.physics_performance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 95%;
    margin: 30px auto;
}

.physics_performance img {
    width: 100%;
    height: auto;
    display: block;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.physics_performance img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}


/* Subject picker layout and category cards. */
.subject_selection {
    width: 95%;
    margin: 30px auto;
}

/* The form contains the subject categories. */
.subject_selection form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.subject_selection section {
    width: 100%;
    box-sizing: border-box;
    min-height: 200px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.subject_selection section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.20);
}

.subject_selection form button {
    grid-column: 1 / -1;
    max-width: 40%;
    color: #0b56b8;
    display: flex;
    justify-self: center;
    align-items: center;
}