@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  user-select: none;
}

ul{
  list-style: none;
}

button{
  border: none;
  outline: none;
}

body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background:  aliceblue;
}

.container{
  width: 400px;
  background: #000332;
  color: #fff;
  box-shadow: 0 0 100px #73b2ff;
  border: 1px solid #f1f1f1;
}

/* Clock */
.clock{
  width: 100%;
  border-bottom: 1px solid #8d8d8d;
  padding: 20px 25px;
}

.clock .time{
  font-size: 3rem;
  letter-spacing: 1px;
}

.clock .date{
  font-size: 0.93rem;
  color: #64eaff;
}

/* Calendar */
.calendar{
  width: 100%;
  padding: 25px 25px 30px 25px;
}

/* Show */
.calendar .show .header{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.calendar .show .header .current-date{
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s;
}

.calendar .show .header .current-date:hover{
  opacity: 0.7;
}

.calendar .show .header .icons span{
  padding: 0 5px;
  opacity: 0.7;
  cursor: pointer;
}

.calendar .show .header .icons span:hover{
  opacity: 1;
}

.calendar .show ul{
  display: grid;
  grid-template-columns: repeat(7 , minmax(45px, 1fr));
  gap: 5px;
  text-align: center;
}

.calendar .show ul li{
  height: 45px;
  line-height: 45px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.calendar .show .weeks li{
  margin-bottom: 5px;
}

.calendar .show .days li::before{
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.calendar .show .days li.active::before{
  background: crimson;
}

.calendar .show .days li:hover::before{
  border: 1px solid #fff;
}

.calendar .show .days li.inactive{
  color: #999;
}

/* Hide */
.calendar .hide input{
  width: 100%;
  height: 50px;
  outline: none;
  padding: 0 10px;
  font-size: 1.5rem;
}

.calendar .hide .months{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 20px 0;
}

.calendar .hide .months li{
  padding: 12px 0;
  border: 1px solid #fff;
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
  text-transform: capitalize;
  opacity: 0.7;
}

.calendar .hide .months li:is(:hover, .active){
  background: crimson;
  opacity: 1;
  transition: 0.3s;
}

.calendar .hide .btns{
  width: 100%;
  display: flex;
  gap: 10px;
}

.calendar .hide .btns button{
  width: 100%;
  padding: 8px 0;
  text-transform: uppercase;
  background: #73b2ff;
  color: white;
  letter-spacing: 1px;
  cursor: pointer;
  font-weight: 500;
}

.calendar .hide .btns #reset{
  background: white;
  color: #000;
}

.calendar .hide{
  display: none;
}