@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap");
html {
  --special-font-clr: #ae1100;
  --color-bg: #ebecf0;
  --color-shadow: #babecc;
  --color-white: #ffffff;
  --padding: 25px;
}

html[data-theme='dark'] {
  --special-font-clr: #13cfbc;
  --color-bg: #1a1a1a;
  --color-shadow: rgba(0, 0, 0, 0.9);
  --color-white: #1a1a1a;
  --font-color: white;
}

*,
*::after,
*::before {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

body,
p,
input,
button {
  font-family: 'Tajawal';
  color: var(--font-color);
  font-size: 3vh;
}

body {
  background-color: var(--color-bg);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

button {
  width: 100%;
  padding: 35px 0;
  color: var(--font-color);
  font-weight: bold;
  -webkit-box-shadow: -5px -5px 20px var(--color-white), 5px 5px 20px var(--color-shadow);
          box-shadow: -5px -5px 20px var(--color-white), 5px 5px 20px var(--color-shadow);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  -webkit-box-shadow: -2px -2px 5px var(--color-white), 2px 2px 5px var(--color-shadow);
          box-shadow: -2px -2px 5px var(--color-white), 2px 2px 5px var(--color-shadow);
}

button:active {
  -webkit-box-shadow: inset 1px 1px 2px var(--color-shadow), inset -1px -1px 2px var(--color-white);
          box-shadow: inset 1px 1px 2px var(--color-shadow), inset -1px -1px 2px var(--color-white);
}

.back-btn {
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  padding: 0;
}

.back-btn .gg-arrow-left {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  position: relative;
  display: block;
  -webkit-transform: scale(2);
          transform: scale(2);
  width: 22px;
  height: 22px;
}

.back-btn .gg-arrow-left::after, .back-btn .gg-arrow-left::before {
  content: '';
  display: block;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  position: absolute;
  left: 3px;
}

.back-btn .gg-arrow-left::after {
  width: 8px;
  height: 8px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  bottom: 7px;
}

.back-btn .gg-arrow-left::before {
  width: 16px;
  height: 2px;
  bottom: 10px;
  background: currentColor;
}

.calc-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 38.4vh;
}

.calc-container .top-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
}

@media only screen and (max-width: 600px) {
  .calc-container .top-buttons {
    width: 75%;
  }
  .calc-container .top-buttons button {
    padding: 20px;
  }
  .calc-container .top-buttons .gg-arrow-left {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

.calc-container button,
.calc-container input {
  margin: 10px 0;
  text-align: center;
  font-weight: bolder;
  border: 0;
  outline: 0;
  font-size: 1.2em;
  border-radius: 60vh;
  padding: 3vh;
  background-color: var(--color-bg);
  text-shadow: 1px 1px 0 var(--color-white);
}

@media only screen and (max-width: 600px) {
  .calc-container button,
  .calc-container input {
    font-size: 1em;
    border-radius: 9vh;
    padding: 3vh 1vh;
  }
}

input {
  padding: var(--padding) 30px;
  -webkit-box-shadow: inset 2px 2px 5px var(--color-shadow), inset -5px -5px 10px var(--color-white);
          box-shadow: inset 2px 2px 5px var(--color-shadow), inset -5px -5px 10px var(--color-white);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}

input:focus {
  -webkit-box-shadow: inset 1px 1px 2px var(--color-shadow), inset -1px -1px 2px var(--color-white);
          box-shadow: inset 1px 1px 2px var(--color-shadow), inset -1px -1px 2px var(--color-white);
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.result,
.special-font-clr {
  color: var(--special-font-clr);
}

.input,
.output {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.toggleWrapper {
  overflow: hidden;
}

.toggleWrapper input {
  position: absolute;
  left: -99em;
}

.toggleWrapper .toggle {
  cursor: pointer;
  display: inline-block;
  position: relative;
  width: 90px;
  height: 50px;
  background-color: #83d8ff;
  border-radius: 84px;
  -webkit-transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.toggleWrapper .toggle .toggle_handler {
  display: inline-block;
  position: relative;
  z-index: 1;
  top: 3px;
  left: 3px;
  width: 44px;
  height: 44px;
  background-color: #ffcf96;
  border-radius: 50px;
  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  -webkit-transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.toggleWrapper .toggle .toggle_handler .crater {
  position: absolute;
  background-color: #e8cda5;
  opacity: 0;
  -webkit-transition: opacity 200ms ease-in-out;
  transition: opacity 200ms ease-in-out;
  border-radius: 100%;
}

.toggleWrapper .toggle .toggle_handler .crater--1 {
  top: 18px;
  left: 10px;
  width: 4px;
  height: 4px;
}

.toggleWrapper .toggle .toggle_handler .crater--2 {
  top: 28px;
  left: 22px;
  width: 6px;
  height: 6px;
}

.toggleWrapper .toggle .toggle_handler .crater--3 {
  top: 10px;
  left: 25px;
  width: 8px;
  height: 8px;
}

.toggleWrapper .toggle .star {
  position: absolute;
  background-color: #ffffff;
  -webkit-transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  border-radius: 50%;
}

.toggleWrapper .toggle .star--1 {
  top: 10px;
  left: 35px;
  z-index: 0;
  width: 30px;
  height: 3px;
}

.toggleWrapper .toggle .star--2 {
  top: 18px;
  left: 28px;
  z-index: 1;
  width: 30px;
  height: 3px;
}

.toggleWrapper .toggle .star--3 {
  top: 27px;
  left: 40px;
  z-index: 0;
  width: 30px;
  height: 3px;
}

.toggleWrapper .toggle .star--4,
.toggleWrapper .toggle .star--5,
.toggleWrapper .toggle .star--6 {
  opacity: 0;
  -webkit-transition: all 300ms 0 cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition: all 300ms 0 cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.toggleWrapper .toggle .star--4 {
  top: 16px;
  left: 11px;
  z-index: 0;
  width: 2px;
  height: 2px;
  -webkit-transform: translate3d(3px, 0, 0);
          transform: translate3d(3px, 0, 0);
}

.toggleWrapper .toggle .star--5 {
  top: 32px;
  left: 17px;
  z-index: 0;
  width: 3px;
  height: 3px;
  -webkit-transform: translate3d(3px, 0, 0);
          transform: translate3d(3px, 0, 0);
}

.toggleWrapper .toggle .star--6 {
  top: 36px;
  left: 28px;
  z-index: 0;
  width: 2px;
  height: 2px;
  -webkit-transform: translate3d(3px, 0, 0);
          transform: translate3d(3px, 0, 0);
}

@media only screen and (max-width: 600px) {
  .toggleWrapper {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
}

[type='checkbox']:checked + .toggle {
  background-color: #749dd6;
}

[type='checkbox']:checked + .toggle:before {
  color: #749ed7;
}

[type='checkbox']:checked + .toggle:after {
  color: #ffffff;
}

[type='checkbox']:checked + .toggle .calc-container {
  background-color: red;
}

[type='checkbox']:checked + .toggle .toggle_handler {
  background-color: #ffe5b5;
  -webkit-transform: translate3d(40px, 0, 0) rotate(0);
          transform: translate3d(40px, 0, 0) rotate(0);
}

[type='checkbox']:checked + .toggle .toggle_handler .crater {
  opacity: 1;
}

@-webkit-keyframes randomMove {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
  0% {
    opacity: 0;
  }
}

@keyframes randomMove {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
  0% {
    opacity: 0;
  }
}

[type='checkbox']:checked + .toggle .star--1,
[type='checkbox']:checked + .toggle .star--2,
[type='checkbox']:checked + .toggle .star--3,
[type='checkbox']:checked + .toggle .star--4,
[type='checkbox']:checked + .toggle .star--5,
[type='checkbox']:checked + .toggle .star--6 {
  animation: randomMove 3s infinite ease-in-out alternate-reverse;
}

[type='checkbox']:checked + .toggle .star--1 {
  width: 2px;
  height: 2px;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

[type='checkbox']:checked + .toggle .star--2 {
  width: 4px;
  height: 4px;
  -webkit-transform: translate3d(-7px, 0, 0);
          transform: translate3d(-7px, 0, 0);
  -webkit-animation-delay: 8s;
          animation-delay: 8s;
}

[type='checkbox']:checked + .toggle .star--3 {
  width: 2px;
  height: 2px;
  -webkit-transform: translate3d(-7px, 0, 0);
          transform: translate3d(-7px, 0, 0);
  -webkit-animation-delay: 5s;
          animation-delay: 5s;
}

[type='checkbox']:checked + .toggle .star--4,
[type='checkbox']:checked + .toggle .star--5,
[type='checkbox']:checked + .toggle .star--6 {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}

[type='checkbox']:checked + .toggle .star--4 {
  -webkit-transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  -webkit-animation-delay: 12s;
          animation-delay: 12s;
}

[type='checkbox']:checked + .toggle .star--5 {
  -webkit-transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  -webkit-animation-delay: 9s;
          animation-delay: 9s;
}

[type='checkbox']:checked + .toggle .star--6 {
  -webkit-transition: all 300ms 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition: all 300ms 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}
/*# sourceMappingURL=style.css.map */