@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;
  box-sizing: border-box;
}

.bg {
  background: #E4E4E4;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.calendar {
  font-weight: 400;
  font-style: normal;
  width: 400px;
  background: #fff;
  box-shadow: 0px 5px 5px #ccc;
  border-radius: 10px;
  padding: 20px;
	margin: 40px auto;
}

.cal-head {
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.cal-head h3 {
  font-size: 18px;
  font-weight: 600;
  display: inline-block;
  background: #fff;
  padding: 13px 25px;
  border-radius: 10px;
  margin-top: 0;
}

.cal-head #prev, 
.cal-head #next {
  position: absolute;
  top: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.cal-head #prev:hover, 
.cal-head #next:hover,
.cal-head #prev:focus, 
.cal-head #next:focus {
  opacity: 0.8;
  box-shadow: 3px 0px 3px #ccc;
}

.cal-head #prev:before, 
.cal-head #next:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: #141414;
  border-width: 2px 2px 0 0;
}

.cal-head #prev {
  left: 20px;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.cal-head #next {
  right: -20px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.days, .dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: start;    
  padding: 0;
}

.days li, .dates li {
  width: calc(100% / 7);
  text-align: center;
  font-size: 18px;
	display: inline;
}

.days {
  margin-bottom: 15px;
}

.days li {
  font-weight: 500;
  color: #219653;
  text-transform: uppercase;
}

.dates li span {
  background: #fff;
  width: 100%;
  height: 50px;
  display: inline-block;
  padding-top: 10px;
  border-radius: 10px;
  border: 2px solid #F5F5F5;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.dates li span:hover {
  color: #219653;
}

.dates li.old span {
  background: transparent;
  color: #BDBDBD;
}

.dates li.today span {
  background: #219653;
  color: #fff;
}

.dates li.events span {
  background: #219653;
  color: #fff;
}

