/*? global clearing */
*,
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Orbitron", sans-serif;
  transition: all 0.4s ease;
}

section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f8ff;
  padding: 0 20px;
}

section.dark {
  background: #242920;
}

section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  max-width: 560px;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 10px rgb(0 0 0/0.2);
  border-radius: 12px;
  position: relative;
}

footer {
  padding: 20px;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

section.dark .container {
  background: #323840;
}

section .container .icons i {
  position: absolute;
  right: 17px;
  top: 17px;
  height: 30px;
  width: 30px;
  background: #24292d;
  color: #fff;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

section.dark .container .icons i {
  background: #fff;
  color: #323840;
}

.container .icons i.fa-sun {
  opacity: 0;
  pointer-events: none;
}

section.dark .container .icons i.fa-sun {
  opacity: 1;
  pointer-events: auto;
  font-size: 16px;
}

section .container .time {
  display: flex;
  align-items: center;
}

.container .time .time-colon {
  display: flex;
  align-items: center;
  position: relative;
}

.time .time-colon .am-pm {
  position: absolute;
  top: 0;
  right: -50px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

section.dark .time .time-colon .am-pm {
  color: #fff;
}

.time .time-colon .time-text {
  height: 100px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f8ff;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgb(0 0 0/0.2);
}

section.dark .time .time-colon .time-text {
  background: #24292d;
}

.time .time-colon .time-text,
.time .time-colon .colon {
  font-size: 35px;
  font-weight: 600;
}

section.dark .time .time-text .num,
section.dark .time .colon {
  color: #fff;
}

.time .time-colon .colon {
  font-size: 40px;
  margin: 0 10px;
}

.time .time-colon .time-text .text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

section.dark .time .time-colon .text {
  color: #fff;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  section .container {
    height: 190px;
    max-width: 500px;
  }

  .time .time-colon .am-pm {
    top: 3px;
    right: -47px;
    font-size: 17px;
  }

  .time .time-colon .time-text,
  .time .time-colon .colon {
    font-size: 30px;
  }

  .time .time-colon .time-text {
    height: 90px;
    width: 90px;
  }

  .time .time-colon .time-text .text {
    font-size: 10px;
  }
}
