* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}

body {
    background: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
}

.container {
    width: 900px;
    max-width: 100%;
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

h1 {
    text-align: center;
    color: #0F4C81;
    margin-bottom: 10px;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.generate-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.generate-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.generate-box input {
    flex: 1;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

button {
    background: #0F4C81;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    background: #0b3d66;
}

#coursesForm {
    margin-top: 20px;
}

.course {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.course span {
    display: flex;
    align-items: center;
    font-weight: bold;
}

#calculateBtn,
#resetBtn {
    width: 100%;
    margin-top: 20px;
    display: none;
}

#result {
    display: none;
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #eef5fb;
}

#result h2 {
    color: #0F4C81;
    margin-bottom: 15px;
}

#gpaValue {
    font-size: 50px;
    font-weight: bold;
    color: #0F4C81;
}

.backBtn {
    display: block;
    text-align: center;
    margin-top: 25px;
    text-decoration: none;
    color: #0F4C81;
    font-weight: bold;
}

.backBtn:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .course {
        grid-template-columns: 1fr;
    }

    .generate-box {
        flex-direction: column;
    }

    h1 {
        font-size: 26px;
    }

    #gpaValue {
        font-size: 40px;
    }

}