* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: consolas;
}
body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333333;
  transition: background 0.4s ease;
}
.container {
  position: relative;
  width: 450px;
  height: 650px;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "input input input input"
    "clear clear divide multiply"
    "seven eight nine minus"
    "four five six plus"
    "one two three plus"
    "zero double_zero dot equal";
  gap: 15px;
  border-radius: 20px;
  background-color: #333333;
  box-shadow: 25px 25px 75px rgba(0, 0, 0, 0.25),
    10px 10px 70px rgba(0, 0, 0, 0.25), inset -5px -5px 15px rgba(0, 0, 0, 0.5),
    inset 5px 5px 15px rgba(0, 0, 0, 0.5);
}
.items {
  padding: 5px 10px 12px 5px;
  color: white;
  cursor: pointer;
  font-weight: 400;
  border-radius: 10px;
  background: linear-gradient(to top, #333333, #383838);
  box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15),
    inset 0 -8px 8px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(0, 0, 0, 0.75),
    10px 20px 25px rgba(0, 0, 0, 0.4);
}
.items:active {
  transform: scale(0.95);          /* slightly shrink on click */
  box-shadow: inset -2px -2px 5px rgba(255, 255, 255, 0.1),
              inset 2px 2px 5px rgba(0, 0, 0, 0.6); /* inner shadow */
}


li {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  font-size: 1.5em;
  user-select: none;
  border-radius: 10px;
  background: linear-gradient(to right, #292929, #464646);
}
#input {
  grid-area: input;
}
.input-value {
  border: none;
  outline: none;
  background: #a7af7c;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px;
  font-size: 2em;
  text-align: right;
  direction: ltr;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.75);
}
#clear {
  grid-area: clear;
  background: #d40606;
  background: linear-gradient(to left, #d40606, #f95150);
}
#clear li {
  background: linear-gradient(to right, #d40606, #f95150);
  border-left: 1px solid #fff4;
  border-bottom: 1px solid #fff4;
  border-top: 1px solid #fff4;
}
#divide {
  grid-area: divide;
}
#multiply {
  grid-area: multiply;
}
#seven {
  grid-area: seven;
}
#eight {
  grid-area: eight;
}
#nine {
  grid-area: nine;
}
#minus {
  grid-area: minus;
}
#four {
  grid-area: four;
}
#five {
  grid-area: five;
}
#six {
  grid-area: six;
}
#plus {
  grid-area: plus;
}
#one {
  grid-area: one;
}
#two {
  grid-area: two;
}
#three {
  grid-area: three;
}
#zero {
  grid-area: zero;
}
#double_zero {
  grid-area: double_zero;
}
#dot {
  grid-area: dot;
}
#equal {
  grid-area: equal;
  background: #2196f3 !important;
}
#equal li {
  background: linear-gradient(90deg, #1479c9, #ffffff5c) !important;
  border: 1px solid #fff4;
  font-weight: 700;
}
/* <============ Dark Mode =============> */

.dark_mode{
    position: absolute;
    top: 50px;
    right: 50px;
    width: 60px;
    height: 60px;
    font-size: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: #333333;
    cursor: pointer;
    box-shadow: 5px 5px 5px #2b2b2b,-5px 5px 5px #2b2b2b,5px -5px 5px #2b2b2b,-5px -5px 5px #2b2b2b;
}
.dark{
    background: #f8f8f8;
    transition: background 0.4s ease;
}
.darkModeJs{
    background-color: white;
    box-shadow: 5px 5px 5px #efebeb,-5px 5px 5px #efebeb,5px -5px 5px #efebeb,-5px -5px 5px #efebeb;
}
.moon{
    display: none;
}