*{
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
body{
    background-color: rgb(35,70,138);
    
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(35,70,138);
    padding: 10px 20px;
    color:white;
}

.nava{
    color:white;
    text-decoration: none;
    font-size: 15px;
    padding-top: 5px;
    border-bottom:2px solid transparent;
}
.nava:hover{
    color: rgb(255, 255, 255);
    border-bottom: 2px solid white;
}
img{
    height:100px;
}
.nav-right{
    display: flex;
    gap: 20px;
    
}
h1{
    color:white;
    text-align: center;
    margin-top: 20px;
}
h5{
    color:white;
    text-align: center;
    margin-top: 20px;
}
.Submit{
    display: flex;
    justify-content: center;
    align-items: center;
    
    
}
.submitbutton{
    color: rgb(255, 255, 255);
    background-color: rgb(35,70,138);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
}
.submitbutton:hover{
    background-color: rgb(26, 53, 105);
}
label{
    font-size: 16px;
    font-weight: bold;
   
}
.addcontainer{
     background-color: rgb(35,70,138);
    border: none;
    padding:2px;
    border-radius: 5px;
    font-size: 16px;
    color:white;
}.addcontainer:hover{
    background-color: rgb(26, 53, 105);
}
.subject, .semester {
    margin-bottom: 20px;
}
.attendance,.cgpa,.sgpa{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: white;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    border-radius: 25px;
    margin-left: auto;
    margin-right: auto;
}

.integerinput{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;

}
input{
    width: 100%;
    max-width: 500px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
}
.result-attendance {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#mode1:hover{
    background-color: rgb(26, 53, 105);
}
.form-desc{
    margin-top: 10px;
    margin-bottom: 20px;
}
#resultDisplay {
    white-space: pre-line;
}


.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    .nav-right {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: rgb(35,70,138);
        padding: 10px 0;
    }

    .nav-right.active {
        display: flex;
    }

    img {
        height: 60px;
    }
}