.calendar-wrapper,
.calendar-wrapper * {
    box-sizing: border-box;
    font-family: sans-serif;
    position: relative;
}

.calendar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 2rem auto;
}

.calendar-wrapper .month-name-wrapper {
    text-align: center;
    font-weight: 900;
    font-size: 1.5em;
}

.calendar-wrapper .days-names-wrapper,
.calendar-wrapper .days-wrapper {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.calendar-wrapper .day-name,
.calendar-wrapper .day {
    border: 1px solid #fff;
    background-color: rgb(130, 167, 248);
    text-align: center;
    width: calc(100% / 7);
    height: 0;
    padding-bottom: calc(100% / 7 / 2);
    padding-top: calc(100% / 7 / 2);
    line-height: 0;
}

.calendar-wrapper .day-name {
    background-color: brown;
    color: #fff;
}

.calendar-wrapper .today {
    background-color: brown;
    color: #fff;
}

.calendar-wrapper .day.prev-month,
.calendar-wrapper .day.next-month {
    background-color: lightgray;
    color: gray;
}

.calendar-wrapper .btn-prev-month,
.calendar-wrapper .btn-next-month {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
}

.calendar-wrapper .btn-next-month {
    right: 0;
    left: auto;
}

.calendar-wrapper .btn-prev-month:hover,
.calendar-wrapper .btn-next-month:hover{
  background-color: #eee;
}

.event-container {
    position: absolute;
    left: 0;
    bottom: 0;
}

.calendar-event {
    position: relative;
    display: inline-block;
    background: greenyellow;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    margin: 2px;
}

.calendar-event:after {
    content: attr(data-cal-tip);
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    width: auto;
    min-width: 60px;
    height: auto;
    line-height: 1;
    padding: 5px;
    z-index: 100;
    border-radius: 7px;
    left: 50%;
    transform: translate(-50%, -5px);
    color: #fff;
    bottom: 100%;
    font-size: 0.8em;
    display: none;
}
.calendar-event:hover {
    animation: none;
}
.calendar-event:hover:after{
    display: block;
}
.calendar-event.event-without-tip:hover:after{
    display: none;
}


/* we do not need the following classes for the calendar to work */

.red {
    background: red;
}

.calendar-wrapper .day.gold {
    background: gold;
}

.cal-animate {
    animation: calAni 450ms infinite;
    z-index: 10;
}

@keyframes calAni {

    from,
    80% {
        transform: scale(1);
    }

    90% {
        transform: scale(1.4);
    }

    to {
        transform: scale(1);
    }
}
*{
  font-family: sans-serif;
}
h1 {
  text-align: center;
}

.text {
  background-color: rgba(0,0,0,0.8);
  padding: 10px;
  color : #fff;
  border-radius: 10px;
}