* {
  margin: 0;
  padding: 0;
  transition: all 0.5s;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #10101e;
}

.datetime,
.formatType {
  color: white;
  background-color: #10101e;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  width: 400px;
  padding: 15px 15px;
  border: 3px solid #2e94e3;
  border-radius: 5px;
}

.formatType {
  font-size: 27px;
  font-weight: 600;
  margin: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.date {
  font-size: 25px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 3px;
}

.time {
  font-size: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-box-reflect: below 1px
    linear-gradient(transparent, rgba(255, 255, 255, 0.1));
}

.datetime:hover {
  background-color: #2e95e3dd;
  box-shadow: 1px 1px 30px 1px #2e94e3;
}

.time span:not(:last-child) {
  position: relative;
  margin: 0 6px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 3px;
}

.time span:last-child {
  background-color: #2e94e3;
  font-size: 27px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 16px;
  padding: 0 5px;
  border-radius: 3px;
}

.menu-item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.format-switch-btn {
  width: 40px;
  height: 20px;
  background-color: #485470;
  border-radius: 75px;
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.95%;
  margin-left: 3%;
}

.format-switch-btn:before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #10101e;
  box-shadow: 0 5px 25px #10101e;
  transform: translateX(-10px);
}

.format-switch-btn.active:before {
  background-color: whitesmoke;
  box-shadow: 0 5px 25px whitesmoke;
  transform: translateX(10px);
}
