#hangbutton {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1000;
  background-color:white;
  color:black;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size:20px;
}

#menuItems {
  display: none;
  flex-direction: column;
  background-color: #444;
  border-radius: 10px;
  padding: 10px;
  margin-top: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: absolute;
  right:20px;
  top:61px;

}
#menuItems button {
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 8px;
  font-size: 14px;
  cursor: pointer;
}
#menuItems button:hover {
  background-color: #666;
  
}
.history-container {
  background-color: white;
  color: black;
  padding: 10px;
  border-radius: 10px;
  max-height: 200px;
  width: 300px;
  overflow-y: auto;
  box-shadow: 0 0 10px gray;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
}
.history-container ul {
  list-style-type: none;
  padding-left: 0;
}
.history-container li {
  padding: 5px 0;
  border-bottom: 1px solid #ccc;
}

/* Dark theme style */
.dark-theme {
  background-color: #1c1c1c;
}

.dark-theme .calculator {
  background-color:black;
}

.dark-theme #display {
  background-color:rgb(96, 0, 128);
  color: lime;
}

.dark-theme button {
  background-color: #b6b3b3;
  color: white;
}
.dark-theme #hangbutton {
  background-color: #333;
  color: lime;
}
.dark-theme #topbtn{
  background-color:rgb(217, 179, 255);
}
.dark-theme #equal{
  background-color: rgb(217, 179, 255);
}
body {
  background: #f3f3f3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color:white;
  font-family: 'Poppins', sans-serif;
  /* background-image:url(download.jpg); */

}


.calculator{
    background-color:white;
    height:710px;
    width:380px;
 box-shadow: 2px 4px 10px 1px #555;
  border-radius:20px;
}
#display{
    height:180px;
    width:375px;
    background-color:rgb(204, 153, 255);
    /* margin: 10px 25px; */
    border-radius:10px;
    text-align: right;
    font-size:60px;
    font-weight:100;
    color: white;
}
#buttons{
     
  display: grid;
  grid-template-columns: repeat(4, 60px);
  gap:17px;
  margin-left:40px;
  
  
} 
.btn{
    height:60px;
    width:60px;
    border-radius:15px;
    border: solid wheat 1px;
    font-size:25px;
    font-weight:100;
    background:#eeecec;
    color:black;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow:1px 2px 5px 0px #555;
  margin-top: 10px;
}
#topbtn{
  height:60px;
    width:60px;
    border-radius:15px;
    border: solid wheat 1px;
    font-size:25px;
    font-weight:100;
    background:rgb(204, 153, 255);
    color:black;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow:1px 2px 5px 0px #555;
  margin-top: 10px;
}
button:hover {
  background: #555;
}
@media (max-width: 480px) {
  #equal {
    width: 120px;
    height: 60px;
    font-size: 18px;
  }
}

