* {
  font-size: 25px;
  font-family: "Arial", sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}
body {
  background-color: #f0f8ff;
  transition: background-color 0.3s, color 0.3s;
}
.container {
  height: 520px;
  width: 350px;
  border: 2px solid #ddd;
  background-color: #3d3838;
  border-radius: 20px;
  margin-top: 0px;
  padding: 20px;
  transition: background-color 0.3s, border-color 0.3s;
}
input {
  height: 80px;
  width: 100%;
  border: 1px solid #ddd;
  font-size: 40px;
  text-align: right;
  background-color: #463737;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px;
}
.buttons {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  height: 300px;
  width: 100%;
}
.item {
  font-size: 30px;
  padding: 10px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.2s;
}
.item:hover {
  background-color: #ff6347;
  transform: scale(1.1);
}
.item:active {
  background-color: #ff4500;
  transform: scale(1.05);
}
.item:focus {
  outline: none;
}
#display {
  margin-bottom: 20px;
}
body {
  background-color: #f0f8ff;
}
body.dark-theme {
  background-color: #121212;
  color: white;
}
body.dark-theme .container {
  background-color: #333;
  border-color: #555;
}
body.dark-theme input {
  background-color: #444;
  color: white;
}
body.dark-theme .item {
  background-color: #555;
  color: white;
}
body.dark-theme .item:hover {
  background-color: #ff6347;
  transform: scale(1.1);
}
.item:active {
  background-color: #ff4500;
  transform: scale(1.05);
}
#darkmode-toggle {
  display: none;
}
.fa-moon{
  display: inline-block;
  color: #ff4500;
  font-size: 30px;
  margin-right: 20px;
  margin-left: 20px;
  padding: 0;
  transition: color 0.3s;
}
.fa-sun{
  display: inline-block;
  color: #f4dad1;
  font-size: 30px;
  margin-right: 20px;
  margin-left: 20px;
  padding: 0;
  transition: color 0.3s;
}
#darkmode-toggle:checked + .toggle-label .fa-moon {
  display: none;
}
.toggle-label .fa-sun {
  display: none;
}
#darkmode-toggle:checked + .toggle-label .fa-sun {
  display: inline-block;
}
.toggle-label {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: transparent;
  font-size: 50px;
  margin-right: 400px;
  margin-top: 40px;
  cursor: pointer;
  transition: color 0.3s;
}