body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 900px;
  background: #373737;
  font-family: "Poppins", sans-serif;
  flex-direction: column;
  gap: 20px;
}

#container {
  display: flex;
  flex-direction: column;
  width: 500px;
  border-radius: 15px;
  border: 3px solid black;
  background-color: #2d2d2c;
}

#display {
  display: flex;
  min-height: 150px;
  padding: 20px;
}
#sub-display {
  flex: 1;
  border: 2px solid black;
  border-radius: 8px;
  background-color: #373737;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  word-wrap: break-word;
  word-break: break-all;
}
#display #sub-display .result {
  flex: 0.9;
  font-size: 2rem;
  font-weight: bold;
  color: #f5f2ed;
  display: flex;
  justify-content: center;
  align-items: center;
}
#display #sub-display .previous-input {
  flex: 0.1;
  color: #c0c0c0;
}

#display1 {
  min-height: 55px;
  background-color: #262627;
  color: #f5f2ed;
  padding: 0px 22px 0px 22px;
  border-bottom: 1px solid black;
  border-top: 1px solid black;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  word-break: break-all;
}
#display1 .result {
  font-weight: bold;
  font-size: 30px;
}

#main {
  display: flex;
  flex-direction: column;
}

#btn-grid {
  display: grid;
  grid-gap: 0px;
  grid-template-columns: repeat(4, 1fr);
  min-height: 400px;
  padding: 20px;
  gap: 10px;
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #373737;
  color: #f5f2ed;
  font-size: 30px;
  font-weight: bold;
  border-radius: 10px;
  border: 2px solid black;
  cursor: pointer;
}
/* Create button affect */
/* Number */
.num:hover {
  background-color: #bdbdbd;
  color: black;
}
.num:active {
  background-color: #bdbdbd;
  box-shadow: 0 2px #666;
  transform: translateY(4px);
}
/* Operator */
.ops:hover {
  background-color: #6495ed;
  color: black;
}
.ops:active {
  background-color: #6495ed;
  box-shadow: 0 2px #666;
  transform: translateY(4px);
}

.active {
  background-color: #bdbdbd;
}
/* Equal */
#equal:active,
#backspace:active,
.dot:active,
#clear:active {
  box-shadow: 0 0 #666;
  transform: translateY(4px);
}

#equal {
  background-color: #228b22;
}

#backspace,
#clear {
  grid-column: span 2;
}
#clear {
  background-color: #b22222;
}

.btn.active {
  background-color: #6495ed;
}

/* Copyright */
.copyright {
  color: #dcdcdc;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45px;
}

.copyright a {
  color: #f8f8ff;
  text-decoration: none;
}

/* Note */
.press-note {
  color: white;
}
