@font-face {
  font-family: digital;
  src: url("./digital.ttf");
}
html {
  height: 100%;
}
body {
  height: 100%;
  margin: 0;
  background-color: #fff;
  background-image: linear-gradient(
      90deg,
      transparent 79px,
      #abced4 79px,
      #abced4 81px,
      transparent 81px
    ),
    linear-gradient(#eee 0.1em, transparent 0.1em);
  background-size: 100% 1.2em;
}
.calculator {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ada5a5;
  margin: 0;
}
.calculator__body {
  display: flex;
  justify-content: center;
  padding: 30px;
  gap: 40px;
  position: relative;
  background-color: transparent;
  border: none;
  box-shadow: 2px 10px 15px 2px rgba(35, 24, 24, 0.5),
}
#myCalc {
  width: 300px;
  height: 585px;
  background-color: #c4beaf;
  padding: 20px 20px 0 20px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 2px solid #000000;
  transform: perspective(1000px) rotateX(25deg);
  box-shadow: -20px 30px 20px 5px rgba(35, 24, 24, 0.5),
    inset -1px -6px 12px 0.1px #89847e;
}
.top {
  height: 150px;
  width: 300px;
  background-color: #292121;
  border-bottom: solid 8px #8f8b83;
  transform: translate(-7.5%, -15%);
  border-radius: 6px;
  position: relative;
}
.screen-section {
  height: 50px;
  width: 260px;
  background-color: #ded1bf;
  transform: translate(0%, -20%);
  border-radius: 6px;
  position: relative;
}
.screen {
  background-color: #0f091d;
  border-bottom: solid 8px #5d725a;
  border-top: solid 8px #0c1d09;
  border-right: solid 4px #0c1d09;
  border-left: solid 4px #0c1d09;
  width: 270px;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  text-align: center;
}
.screen-item {
  color: #00f048;
  font-size: 34px;
  font-family: digital;
  display: inline;
  width: 20px;
  text-align: right;
  opacity: 0;
  text-shadow: 0 0 1px rgba(87, 47, 47, 0.6);
}
.dot {
  margin-left: -5px;
  margin-right: -10px;
}
.border {
  height: -5px;
}
.keyboard {
  height: 320px;
  width: 260px;
  background-color: #c4beaf;
  position: absolute;
  border-radius: 2px;
  box-shadow: 0 2px rgba(150, 150, 150, 0.2);
}
.keys {
  padding: 15px;
  text-align: justify;
}
.register-container {
  position: absolute;
  top: 50px;
  left: 300px;
  display: flex;
}
.register-window {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 10px;
  margin-right: 20px;
  width: 200px;
  height: 100px;
  overflow-y: auto;
}
.register-window h3 {
  margin-top: 0;
}
#equal-button {
  margin-left: 8px;
}
#dot-button {
  margin-left: 7px;
}
#myCalc button {
  display: inline-block;
  margin-bottom: 15px;
  width: 45px;
  height: 45px;
  font-size: 30px;
  color: #ded1bf;
  background-color: rgb(47, 49, 44);
  border: none;
  outline: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  text-decoration: none;
  box-shadow: 0px 3px 1px 1px #444141,
    inset -2px -1px 10px 1px rgba(129, 76, 76, 0.5);
}
#myCalc button:active,
#myCalc .math-button:active {
  transform: translateY(2px);
  box-shadow: 0px 1px 0 0 #514d4d,
    inset -2px -1px 5px 0px rgba(129, 76, 76, 0.5);
}
#myCalc .big-button {
  width: 79.9px;
}
#myCalc .math-button {
  background-color: rgb(47, 49, 44);
  box-shadow: 0px 3px 1px 1px #444141,
    inset -2px -1px 10px 1px rgba(10, 30, 99, 0.5);
}
#myCalc #clear {
  font-size: 40px;
  vertical-align: bottom;
  background-color: rgb(228, 38, 41);
}
.switch-row {
  margin-top: 10px;
  margin-left: 15px;
}
#label {
  color: #333;
  background-color: rgba(245, 245, 245, 0.63);
  text-transform: uppercase;
  font-family: serif;
  font-size: 9px;
  display: inline-block;
  margin: 0 0 0 60px;
  padding: 5px 17px 3px 17px;
  border-radius: 3px;
  font-weight: bold;
  text-shadow: 0px 0px 1px rgba(204, 202, 181, 0.7);
  border: solid 1px #0d0d0e66;
}
#label a,
#label a:active,
#label a:visited {
  color: #333;
  text-decoration: none !important;
}
.onoffswitch {
  float: left;
  box-shadow: 0px 1px 1px 1px #444141,
    inset -2px -1px 10px 1px rgba(129, 76, 76, 0.5);
  position: relative;
  width: 35px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.onoffswitch-checkbox {
  display: none;
}
.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #999999;
  border-radius: 3px;
}
.onoffswitch-inner {
  display: block;
  width: 200%;
  margin-left: -100%;
  transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before,
.onoffswitch-inner:after {
  display: block;
  float: left;
  width: 50%;
  height: 14px;
  padding: 0;
  line-height: 14px;
  font-size: 10px;
  color: white;
  font-family: Trebuchet, Arial, sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}
.onoffswitch-inner:before {
  content: " ";
  padding-left: 5px;
  background-color: #303030;
  color: #ffffff;
}
.onoffswitch-inner:after {
  content: " ";
  padding-right: 5px;
  background-color: #303030;
  color: #ffffff;
  text-align: right;
}
.onoffswitch-switch {
  display: block;
  width: 6px;
  margin: 4px;
  background: #000000;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 17px;
  border: 2px solid #999999;
  border-radius: 3px;
  transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  right: 0px;
}
.registers-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 15px;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-right: 15px;
}
#registers {
  width: 310px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  text-align: right;
}
.register {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial;
}
.register label {
  font-size: 40px;
  color: #292121;
}
.register-display p {
  font-size: 40px;
  color: #292121;
}
.register-digit {
  margin: 0 2px;
}
#flags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: Arial;
}
.flag {
  font-size: 40px;
  color: #292121;
}
.photo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
}
.photo-container img {
  max-width: 100%;
  max-height: 585px;
  border-radius: 10px;
  box-shadow: 2px 10px 15px 2px rgba(35, 24, 24, 0.5);
  object-fit: cover;
}