body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    background: linear-gradient(135deg, #6ca4f3, #3d50af);
}

.container{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    align-items: center;
    background: linear-gradient(135deg, #6ca4f3, #3d50af);
}

.main{
    display: flex;
    flex-direction: column;
    position: relative;
    width: 90vw;
    max-width: 300px;
    height: 600px;
    background-color: rgb(6, 5, 5);
    border: 2px solid rgb(236, 191, 136);
    border-radius: 90px;
    box-shadow: 10px 0px 20px #292929;
}
.header{
    display: flex;
    align-items: center;
    width: 80%;
    height: 5%;
    margin: 10%;
    justify-content:space-between ;
}
.menu{
    margin-left: 5%;
    height: auto;
}
.screen{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 5%;
    height: 10%;
    white-space: nowrap; /*Tells the text not to break into a new line, even if it’s long.*/
    overflow: hidden;  /*Hides anything that doesn’t fit inside the box.(So the screen doesn’t stretch if the number is too long)*/
}

.buttons{
    display: flex;
    flex-direction: column;
    padding-top: 10%;
    height: 10%;
    gap: 10px;
}
.buttons button{
    height: 50px;
    width: 50px;
    border-radius: 50%;
    font-size: xx-large;
    font-size: clamp(1.2rem,5vw,2rem);
    color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
}
.buttons button img{
    width: 90%;

}
.row1,.row2,.row3,.row4,.row5{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 10px;
}
.number,.backspace{
    background-color: rgb(47, 47, 51);
    border: none;
}
.minus,.plus,.multiply,.divide,.equal{
    background-color: rgb(250, 138, 0);
    border: none;

}
#clear,.sign,.mod{
    background-color: rgb(113, 113, 122);
    border: none;
}
.buttons button:hover{
    transform: scale(1.1);
    transition: 0.2s;
}
.buttons button:active{
    transform: scale(0.8);
    transition: 0.1s;
    border: 1px solid rgb(231, 229, 227);
}
#answer{
    color: whitesmoke;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2rem,5vw,3rem)!important;
}
.answer p{
    margin: 0;  /*Removes any extra space around the text*/
}
#clock{
    color: whitesmoke;
}
.left{
    display: flex;
    align-items: center;
    gap: 8px; 
}
.line{
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    top: 90%;
}
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 14px;
    color: #fff;
    background-color: transparent;
    margin-top: auto;
  }
  .footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
  }
  .github-logo {
    width: 20px;
    height: 20px;
    filter: invert(100%); /*Change white color to black and black color to white*/
    transition: transform 0.4s ease;
  }
  .github-logo:hover {
    transform: rotate(360deg) scale(2);
  }
  

.animation{
    transform: scale(0.8);
    transition: 0.1s;
    border: 2px solid rgb(231, 229, 227);
}
  