
body {
    background-color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}


#cal {
        background-image: url(./Cal.png);
    border: 2px solid brown;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    width: 30rem;
    padding: 2rem;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}


.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}


#cal h1 {
    font-size: 2.5rem;
    color: brown;
    margin-bottom: 1rem;
}

input {
    width: 80%;
    margin: 0.5rem 0;
    padding: 0.5rem;
    font-size: 1rem;
    border: 2px solid brown;
    border-radius: 1rem;
    text-align: center;
}


input::placeholder {
    color: rgb(208, 67, 67);
}


label {
    font-size: 1.2rem;
    color: brown;
    font-weight: bold;
    margin-bottom: 0.3rem;
}


button {
    margin-top: 1rem;
    width: 80%;
    padding: 0.8rem;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid brown;
    border-radius: 1rem;
    background-color: brown;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

button:hover {
    background-color: darkorange;
}


#percentageResult, #gradeBox {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: brown;
    width: 80%;
    border: 2px solid brown;
    border-radius: 1rem;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}


#percentageResult h2, #gradeBox h2 {
    margin: 0;
    font-size: 1.5rem;
    color: brown;
    
}


@media (max-width: 600px) {
    #cal {
        width: 90%;
    }

    button {
        width: 100%;
    }

    input {
        width: 100%;
    }

    #percentageResult, #gradeBox {
        width: 100%;
    }
}
