* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  color: #fff;
  font-family: Montserrat;
}

.calendar {
  margin: auto;
  width:85%;
  padding: 1rem;
  background: #001030;
  border-radius:20px;
}
.calendar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar nav {
  display: flex;
  align-items: center;
}
.calendar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  text-align: center;
}
.calendar ul li {
  width: calc(100% / 7);
  margin-top: 25px;
  position: relative;
  z-index: 2;
  
}
#prev,
#next {
  width: 20px;
  height: 20px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}
#prev::before,
#next::before {
  content: "";
  width: 50%;
  height: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 0.25em 0.25em 0 0;
  border-color: #F8DD36;
}
#next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#prev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}
#prev:hover::before,
#next:hover::before {
  border-color: #D6931E;
}

.dates li.selected::before {
  content: "";
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(#F8DD36, #EBBD29);
  border-radius: 50%;
  z-index: -1;
}
.dates li.selected:hover::before{
    
  background: linear-gradient(#EBBD29, #D6931E);
}
.dates li.inactive {
  color: #666666;
}

@media only screen and (max-width:1000px) {
  li{
      font-size:25px;
  }

  h3{
    font-size:30px;
  }

  #prev::before,
  #next::before { 
    width: 75%;
    height: 75%;
  }
}