@font-face {
    font-weight: 400;
    font-family: "Gilory";
    src: url("Gilroy-Medium.ttf");
}
  
body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    margin: 0;
    font-family: "Gilory";
    background: #333131;
    color:rgb(15, 15, 15)
}
  
p {
    margin: 5px 0;
}
  
.calculation {
 
    width: max-content;
    height: max-content;
    padding-bottom: 10px;
    background-color: #ffffff;
    font-family: "Gilory";
    border-radius: 15px 15px;
    overflow: hidden;
  }
  
.top {
    padding: 7%;
    background-color: #b1c9e0;
    text-align: right;
    letter-spacing: 1.8px;
    border-bottom-left-radius: 15px 15px;
    border-bottom-right-radius: 15px 15px;
  }
.bottom{
    display: flex;
    flex-direction: column;
    justify-content:space-around;

}
  
#prev {
    width: 100%;
    font-size: 80%;
    color: #4e4e4e;
    height: max-content;
}
button:last-child{
    background: #98cbec;
}
.bg-blue {
    background: #3498db;
}
  
button:last-child:hover {
    background: #68a3ca;
}
#result {
    font-size: 3em;
    margin: 5px 0px;
    height: max-content;
    overflow-x:auto;
    text-align: right;
    width: 100%;
  }
#result:empty::before{
    content: '0';
}
#prev:empty::before{
    content: '.';
    opacity: 0;
}
#result::-webkit-scrollbar-thumb {
    background-color: rgb(152, 171, 187);
    border: 3px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;  
    direction: rtl
  }
#result::-webkit-scrollbar {
    width: 30px;
}
  
.but, .mid{
    padding-top: 0.3vw;
    text-align: center;
    color: rgb(0, 0, 0);
    background-color: rgb(236, 236, 236);
    height: 4.2vw;
    width: 4.2vw;
    display: block;
    font-size: 1.4em;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-family: "Gilory";
    transition: 0.2s;
}
.mid{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    height: 30px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 30px 30px;
}
.back{
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
    font-family:'Courier New', Courier, monospace;
}
.zero{
    width: 8.4vw; border-radius: 50px 50px;
}
img{
    position: relative;
    left: 10%;
    bottom: 2%;
    width: 60%;
    height: auto;
    pointer-events: none;

}

.but:hover {
    background-color: #d3d3d3;
}
.g-but{
    background-color: rgb(217, 238, 211)
}
.g-but:hover{
    background-color: rgb(190, 219, 183)
}
.brackets:hover{
    background-color: #364c63;

  }
.calc-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    color: #ced4d9;
    padding: 10px;
  }
.github{
    margin-top: 20px;
    color: white
}
a{
    color:#98cbec;
}
a:hover{
    color: #68a3ca;
}

@media only screen and (max-width: 1280px){
    .calculation {
        width: 40vw;
      }
      .but, .mid{
        height: 6vw;
        width: 6vw;
    }
    .mid{
        margin: 2vw;
    }
    .mid{
        height: 0.1vw;
    }
    .calc-row {
        padding: 6px;
      }
      .zero{
        width: 17vw;
    }
    img{
        width: 3.5vw;
    }
}
@media only screen and (max-width: 920px){
    .calculation {
        width: 60vw;
      }
      .but, .mid{
        height: 10vw;
        width: 10vw;
    }
    .mid{
        margin: 2vw;
    }
    .mid{
        height: 30px;
    }
    .calc-row {
        padding: 6px;
      }
      .zero{
        width: 24vw;
    }
    img{
        width: 60%;
    }
}


@media only screen and (max-width: 468px){

    .calculation {
        width: 100%;
      }
      .but, .mid{
        height: 17.5vw;
        width: 17.5vw;
    }
    .mid{
        margin: 2vw;
    }
    .mid{
        height: 30px;
    }
    .calc-row {
        padding: 6px;
      }
      .zero{
        width: 35vw;
      }
}


