/* Ensure the html and body occupy full height */
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #86e5fd;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Main content container */
.container {
    flex: 1; /* Makes this section take available space */
    max-width: 100%;
    width: 40%;
    margin: 30px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}

.container:hover {
    transform: scale(1.02);
}

h1 {
    text-align: center;
    color: #0091ff;
    font-size: 2em;
}

p {
    text-align: center;
    color: #000;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Class input fields */
.class-input {
    display: flex;
    align-items: center;
    margin: 12px 0;
    gap: 12px;
}

.class-name {
    flex: 1;
    padding: 10px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
}

.grade, .credits {
    padding: 10px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1em;
    width: 70px;
    color: #333;
}

/* Button styling */
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(140deg, #046cff, #015db2);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background: linear-gradient(135deg, #7ea5e3, #7bc3fe);
    transform: translateY(-2px);
}

/* Result box styling */
.result {
    margin-top: 25px;
    padding: 20px;
    background-color: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #cce6ff;
    font-size: 1.2em;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease;
    display: none;
}

 .gpa-info {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 60px;
    padding-top: 10px;
    margin: 20px auto;
    margin-top: 0px;
    max-width: 45%;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.gpa-info h2 {
    color: #0067b1;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
}

.gpa-info h3 {
    color: #0093dc;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.gpa-info p {
    color: #444;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: left;
}

.gpa-info ul,
.gpa-info ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.gpa-info ul li,
.gpa-info ol li {
    margin-bottom: 10px;
    font-size: 18px;
}

.gpa-info strong {
    color: #0073e6;
}


@media screen and (max-width: 1024px) {
    
    h1 {
        font-size: 2em;
        margin-top: 0vh;
    }

    p {
        font-size: 19px;
    }

    .hamburger {
        display: flex;
        margin-left: 19px;
    }

    .container {
width: 90vw;
        padding: 5vh 5vw;
        padding-left: 6vw;
    }

    /* Update .class-input to display fields horizontally on larger screens and stacked on smaller screens */
    .class-input {
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap to the next line */
        justify-content: space-between;
        gap: 13px;
    }

    /* Adjust individual field styles to fit horizontally on larger screens */
    .class-name, .grade, .credits {
        width: 20%; /* Each field takes up roughly 1/3 of the container */
        font-size: 17px; /* Smaller font for mobile */
    margin-left: -10px;
    }

    /* Styling for add button */
    button {
        font-size: 1.1rem;
        width: 100%;
        margin-left: -5px;
    }

    .result {
        font-size: 23px;
        text-align: center;
    }

    .gpa-info {
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px 30px;
        margin: 10px auto;
        max-width: 90%;
        font-family: 'Arial', sans-serif;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        line-height: 1.6;
    }

    .gpa-info h2 {
        color: #0067b1;
        font-size: 1.7rem;
        margin-bottom: 10px;
        text-align: center;
        line-height: 1.3;
        padding-left: 10px;
        padding-right: 10px;
    }

    .gpa-info h3 {
        color: #0093dc;
        font-size: 21px;
        margin-top: 15px;
        margin-bottom: 8px;
        text-align: center;
    }

    .gpa-info p {
        color: #444;
        font-size: 19px;
        margin-bottom: 12px;
        text-align: left;
        padding-left: 10px;
    }

    .gpa-info ul,
    .gpa-info ol {
        padding-left: 20px;
        margin-bottom: 10px;
    }

    .gpa-info ul li,
    .gpa-info ol li {
        margin-bottom: 8px;
        font-size: 19px;
    }

    .gpa-info strong {
        color: #0073e6;
    }
}