body{
     background: linear-gradient(to bottom right, #5a5862, #FAF4E4);
     font-family: sans-serif;
}
.mainbody{
    height: 100vh;
    width: 100vw;
    display: grid;
    place-items: center;
}

.maindiv{
    background-color: black;
    width: 300px;
    height: 480px;
    margin-top: 0px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgb(0, 0, 0);
    border: solid 5px rgb(199, 195, 195);

}
.mainTop{
    border-radius: 10px;
    height: 50px;
    display: grid;
    grid-template-columns: 40px 1fr;
    
}
.leftHistory{
    background-color: rgb(41, 39, 39);
    border-top-left-radius: 10px;
}
.rightUpdate{
    border: solid 2px rgb(94, 93, 93);
    
    color: white;
    font-size: 20px;
    line-height: 40px;
    text-align: right;
    padding-right: 10px; 
}

.mainDisplay{
    border: 1px solid rgb(82, 80, 80);
    border-bottom: 3px solid rgb(82, 80, 80);
    background-color: rgb(28, 27, 27);
    height: 70px;
    color: white;
    font-size: 35px;
    text-align: right;
    line-height: 60px;
    padding-right: 10px;

}
.mainDisplay {
    font-size: clamp(20px, 5vw, 35px);
    
    
}
.historyBtn{
    cursor: pointer;
    transition: all 0.2s ease;
}
.historyBtn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.historydis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: black;
  background-color: gray;
  width: 300px;
  height: 350px;
  font-size: 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  border-radius: 10px;
  text-align: right;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.historydis.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.history-content {
  scrollbar-width: thin;
  overflow-y: auto;
  max-height: 100%;
  margin-bottom: 10px;
  flex-grow: 1;
}

.del-btn {
  background-color: black;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  align-self: center;
}
.historydis p{
    border-bottom: 2px solid white;
    padding-bottom: 15px;
    margin-right: 10px;

}

.rightUpdate {
    font-size: clamp(12px, 4vw, 20px);
}

.buttons{
    position: relative;
    height: 350px;
    overflow: hidden;
}
.btnOperator{
    background-color: rgb(185, 181, 181);
    color: rgb(253, 0, 0);
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    font-size:larger;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.btnNumber{
    background-color: rgb(68, 68, 68);
    color: white;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    font-size:larger;
    border-radius: 20px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.btnOperator:hover,
.btnNumber:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.2s ease;
}
.btnOperator:active,
.btnNumber:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.buttons table{
    padding: 5px;
    width: 100%;
    height: 100%;
    border: none;
    table-layout: fixed;
    border-spacing: 7px;
    border-collapse: separate;
}
.btnOperator:hover,.btnNumber:hover{
    cursor: pointer;
}