* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  background: rgb(19, 55, 236);
  background: radial-gradient(
    circle,
    rgba(19, 55, 236, 1) 0%,
    rgba(74, 75, 75, 1) 100%
  );
}

img {
  margin-top: 6rem;
  filter: blur(6px);
  -webkit-filter: blur(6px);
  border-radius: 10%;
  height: 61rem;
  /* width: auto; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  z-index: -1;
}

h1 {
  text-align: center;
  font-size: 40px;
  padding-top: 2%;
  padding-bottom: 2%;
}

#container {
  position: relative;
  width: 35rem;
  margin-top: 6rem;
  padding: 8px 8px 20px 8px;
  background-color: #ababab;
  border-radius: 10%;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #c1c1c1;
  border-left: 2px solid #c1c1c1;
  box-shadow: 30px 30px 100px rgb(152, 152, 152);
  z-index: 2;
}

.calc-box {
  background: linear-gradient(
    145deg,
    rgba(116, 111, 213, 1) 0%,
    rgba(161, 161, 161, 1) 55%
  );
  border: 3px solid black;
  border-radius: 5%;
  width: 500px;
  height: 800px;
  top: 5%;
  position: relative;
  margin: auto;
  align-items: center;
  z-index: 2;
}

#result-box {
  display: flex;
  margin-top: 18px;
  margin-left: 25px;
  height: 75px;
  width: 450px;
  padding: 0 10px;
  border-radius: 8px;
  border-top: 2px solid #c1c1c1;
  border-right: 2px solid #c1c1c1;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  background-color: #fff;
  box-shadow: inset 0px 0px 10px #030303,
    inset 0px -20px 1px rgba(150, 150, 150, 0.2);
  font-size: 40px;
  color: #666;
  text-align: right;
  font-weight: 400;
  cursor: default;
}

.result-text {
  text-align: justify;
  font-size: 40px;
  text-indent: 5px;
  margin-left: 50px;
  margin-top: 20px;
  display: inline-block;
}

#first-nr,
#second-nr {
  display: flex;
  margin-top: 50px;
  margin-left: 50px;
  height: 38px;
  width: 200px;
  font-size: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 3px 3px 5px #030303;
}

p {
  text-align: center;
  font-size: 23px;
  margin-left: 1rem;
  margin-top: 3rem;
  /* margin-bottom: 5px; */
}

sup {
  font-size: 20px;
}

.container-box {
  display: flex;
}

button {
  width: 70px;
  align-content: center;
  margin-top: 3rem;
  align-items: center;
  appearance: none;
  background-color: #fcfcfd;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #d6d6e7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395a;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow, transform;
  font-size: 18px;
}

button:focus {
  box-shadow: #d6d6e7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #d6d6e7 0 -3px 0 inset;
}

button:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #d6d6e7 0 -3px 0 inset;
  transform: translateY(-2px);
}

button:active {
  box-shadow: #d6d6e7 0 3px 7px inset;
  transform: translateY(2px);
}

#random-nr-btn {
  width: 85px;
  height: 85px;
  margin-left: 6.5rem;
  font-size: 15px;
}

.right-container {
  margin-left: 5rem;
  margin-top: 0.5rem;
}

#html-spinner {
  opacity: 0;
  position: relative;
  display: inline-block;
  width: 35px;
  height: 35px;
  border: 4px solid rgb(255, 255, 255);
  border-top: 4px solid rgb(160, 160, 160);
  border-radius: 50%;
  left: 1%;
  top: 0.3rem;
}

#html-spinner {
  -webkit-transition-property: -webkit-transform;
  /* -webkit-transition-duration: 1.2s; */
  -webkit-animation-name: rotate;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;

  -moz-transition-property: -moz-transform;
  -moz-animation-name: rotate;
  -moz-animation-duration: 1.2s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;

  transition-property: transform;
  animation-name: rotate;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

@-moz-keyframes rotate {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
