:root {
  --black: #272727;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body section {
  display: flex;
}
body section .analogCont .clock {
  height: 250px;
  width: 250px;
  border: 4px solid snow;
  border-radius: 50%;
  position: relative;
}
.hand {
  height: 100px;
  width: 3px;
  background-color: #fff;
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 99px;
  transform-origin: bottom;
}
.hand.hour {
  height: 70px;
  background-color: #f4f4f4;
}
.hand.minute {
  height: 95px;
}
.hand.second {
  background: red;
  transition: 0.3 ease;
}
body section .analogCont .clock::after {
  content: "";
  height: 15px;
  width: 15px;
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Digital Clock */

body section .digitalCont {
  display: flex;
  flex-direction: column;
  user-select: none;
  color: #fff;
  margin-left: 1rem;
  margin-top: 2rem;
}
body section .digitalCont .topCont {
  display: flex;
  align-items: center;
  justify-content: center;
}
body section .digitalCont .time {
  font-size: 3rem;
  font-weight: bolder;
}
body section .digitalCont .bottomCont p {
  font-size: 1.2rem;
  margin-left: 1rem;
}
body section .digitalCont .topCont .icon {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 0.8rem;
}
body section .digitalCont .topCont .icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
body section .digitalCont .topCont .icon.active {
  background-color: rgba(255, 255, 255, 0.1);
}
body section .digitalCont .topCont .icon .menu {
  height: 3px;
  width: 3px;
  background-color: #fff;
  position: relative;
  display: flex;
  transform: rotate(90deg);
}
body section .digitalCont .topCont .icon .menu::after,
body section .digitalCont .topCont .icon .menu::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background-color: #fff;
}
body section .digitalCont .topCont .icon .menu::after {
  top: -8px;
}
body section .digitalCont .topCont .icon .menu::before {
  bottom: -8px;
}

@media (max-width: 600px) {
  section {
    flex-direction: column;
  }
  body section .digitalCont {
    margin-left: 0% !important;
    text-align: center !important;
    position: relative;
  }
  body section .digitalCont .topCont .icon {
    position: absolute;
    right: -20px;
  }
}
