*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  /* this defines what 1 rem is */
  font-size: 62.5%; /* 1rem = 10px; 10px / 16px = 62.5% */
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  background-color: #74ebd5;
  background-image: linear-gradient(90deg, #74ebd5 0%, #9face6 100%);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.iphone-x {
  position: relative;
  z-index: 1;
  height: 694px;
  width: 342px;
}
.iphone-x *,
.iphone-x *::before,
.iphone-x *::after {
  box-sizing: border-box;
  display: block;
}
.iphone-x .side {
  background: #1c1c1c;
  border-radius: 54px;
  box-shadow: inset 0 0 2px 2px dimgrey, inset 0 0 0 6px #e2e3e9,
    0px -1px 13px 9px rgba(255, 255, 255, 0.8) inset;
  height: 694px;
  padding: 15px 22px;
  width: 342px;
  z-index: 1;
}

.iphone-x .screen {
  background: #000;
  background-position: center center;
  background-size: cover;
  border-radius: 33px;
  position: relative;
  height: 652px;
  width: 300px;
  margin-left: -1px;
  margin-top: 6px;
  z-index: 198;
  overflow: hidden;
}

.iphone-x .line::after,
.iphone-x .line::before {
  content: "";
  position: absolute;
  border: solid rgba(68, 68, 68, 0.25);
  border-width: 0 6px;
  height: 5px;
  left: 0;
  width: 100%;
  z-index: 9;
}
.iphone-x .line::after {
  top: 68px;
}

.iphone-x .line::before {
  bottom: 68px;
}

.iphone-x .header {
  background: #1c1c1c;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
  height: 24px;
  left: 50%;
  margin-left: -82px;
  position: absolute;
  top: 15px;
  width: 164px;
  z-index: 199;
}

.iphone-x .sensor-1::after,
.iphone-x .sensor-1::before {
  content: "";
  position: absolute;
}

.iphone-x .sensor-1::after {
  background: #222;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  left: 1%;
  margin-left: 10px;
  top: 3px;
}

.iphone-x .sensor-1::before {
  background: #222;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  left: 10%;
  margin-left: 20px;
  top: 3px;
}

.iphone-x .sensor-2::after,
.iphone-x .sensor-2::before {
  content: "";
  position: absolute;
}

.iphone-x .sensor-2::before {
  background: #333;
  border-radius: 2.5px;
  height: 5px;
  width: 40px;
  left: 50%;
  margin-left: -20px;
  top: 7px;
}

.iphone-x .sensor-3::after,
.iphone-x .sensor-3::before {
  content: "";
  position: absolute;
}

.iphone-x .sensor-3::before {
  background: #444;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  left: 50%;
  margin-left: 35px;
  top: 3px;
  box-shadow: 0px 0px 5px 2px navy inset;
}

.iphone-x .sensor-3::after {
  background: #222;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  left: 65%;
  margin-left: 33px;
}

.iphone-x .volume-button {
  background: #c8cacb;
  height: 26px;
  left: -2px;
  position: absolute;
  top: 92px;
  width: 3px;
}

.iphone-x .volume-button::after,
.iphone-x .volume-button::before {
  content: "";
  position: absolute;
  background: #c8cacb;
  height: 50px;
  left: 0;
  width: 3px;
}

.iphone-x .volume-button::after {
  top: 48px;
}

.iphone-x .volume-button::before {
  top: 112px;
}

.iphone-x .power-button {
  background: #c8cacb;
  height: 80px;
  right: -2px;
  position: absolute;
  top: 160px;
  width: 3px;
}

.calc {
  background-color: black;
  /* background-image: url(iphoneX.jpg);
    background-position: center;
    background-size: cover; */
  width: 300px;
  height: 652px;
  padding: 2rem;
  padding-bottom: 3rem;
  margin: auto;
  border-radius: 50px;
}

.calc-display {
  height: 27rem;
  width: 100%;
  color: #eee;
  font-family: "Times New Roman", Times, serif;
  font-size: 7.3rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  /* padding-right: 1rem; */
  overflow: hidden;
}

.calc-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
}

.calc-btn {
  /* width: 8rem;
    height: 8rem; */
  border-radius: 50%;
  border: none;
  background-color: #333;
  color: #eee;
  font-size: 3rem;
  cursor: po;
  transition: transform 0.2s ease-in-out;
  outline: none;
}

.calc-btn:hover {
  filter: brightness(1.2);
  /* transform: translateY(-5px); */
}

.calc-btn:active {
  transform: translateY(-5px);
}

.calc-btn-double {
  grid-column: span 2;
  width: auto;
  border-radius: 40px;
  text-align: left;
  padding-left: 2rem;
}

.calc-btn-clear,
.calc-btn-delete {
  background-color: #999;
  color: black;
}

.calc-btn-operator {
  background-color: darkorange;
  font-size: 4rem;
  padding-bottom: 5.5px;
}
