@import url("https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@300&display=swap");

* {
    padding: 1.5%;
}

body {
    font-size: large;
    box-sizing: border-box;
    background: radial-gradient(circle, #59b4c3, #bbe2ec);
    color: black;
    font-family: Georgia, "Times New Roman", Times, serif;
}

#title {
    color: black;
    padding: 2px;
    text-align: center;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: bolder;
}

p {
    position: relative;
    font-size: 0.8em;
    text-align: center;
    color: rgb(6, 20, 105);
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    font-weight: bold;
    margin: 5%;
}

.small {
    font-size: 0.8em;
    margin-top: 5%;
    margin-bottom: 0;
    color: rgb(4, 17, 91);
}

#calculator-container {
    position: absolute;
    background-color: rgb(243, 235, 253);
    color: rgb(44, 44, 44);
    left: 50%;
    top: 50%;
    padding: 3% auto;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: #59b4c3 10px 15px 40px 10px,
        rgba(56, 62, 248, 0.6) 3px 3px 8px 1px;
    text-align: center;
}

label {
    font-weight: bold;
}

select,
input {
    display: block;
    margin: 0.1em auto;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
    width: 100%;
}

#btnGenerate {
    background-color: #8cb9bd;
    color: black;
    font-size: 1em;
    margin: 0em auto;
    border: 1px solid black;
    padding: 0.8em 2em;
    width: auto;
    border-radius: 0.8rem;
    font-weight: 8%;
    text-align: center;
    cursor: pointer;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
        "Lucida Sans", Arial, sans-serif;
    box-shadow: 0 0 0 1px rgba(8, 29, 63, 0.712),
        2px 2.5px 2px 0 rgba(8, 27, 63, 0.712);
    transition: background-color 0.4s;
}

#btnGenerate:hover {
    background: rgba(20, 32, 124, 0.918);
    color: #8cb9bd;
    box-shadow: 0 0 0 1px rgba(8, 29, 63, 0.712),
        2px 3px 5px 0 rgba(8, 27, 63, 0.712);
}

.form-control {
    width: 20vw;
    border-color: rgb(45, 43, 43);
}

@media only screen and (max-width: 1030px) {
    #calculator-container {
        width: 45%;
    }

    .marks {
        width: 90%;
        max-width: none;
    }
}

@media only screen and (max-width: 430px) {
    #calculator-container {
        width: 80%;
    }

    .marks {
        width: 80%;
        max-width: none;
    }

    #btnGenerate {
        padding: 0.5em 1.5em;
    }

    select,
    input {
        margin: 0.1em auto;
        padding: 8px;
        width: 90% !important;
    }
}

@media only screen and (max-width: 350) {
    #calculator-container {
        width: 60%;
    }

    .marks {
        width: 90%;
        max-width: none;
    }
}