:root {
    --bg-main: #fff;
    --bg-second: #00a5b5;
    --color-hover: #f0f0f0;
    --color-txt: #444;
}


.cal-wrapper {
    display: grid;
}

.calendar {
    height: auto;
    width: 100%;
    background-color: var(--bg-main);
    border-radius: 0px;
    position: relative;
    overflow: hidden;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
    box-shadow: 0 14px 40px -28px;
}

.light .calendar {
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 21px;
    font-weight: 600;
    color: var(--color-txt);
    padding: 10px;
    background: #00a5b5;
}

.calendar-body {
    padding: 10px;
}

.calendar-week-day {
    height: 50px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: 600;
}

.calendar-week-day div {
    display: grid;
    place-items: center;
    color: var(--bg-second);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    color: var(--color-txt);
}

.calendar-days div {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
}


.calendar-day-hover {
    border-radius: 10%;
    -webkit-border-radius: 10%;
    -moz-border-radius: 10%;
    animation: to-top 1s forwards;
    -ms-border-radius: 10%;
    -webkit-animation: to-top 1s forwards;
    -o-border-radius: 10%;
    box-shadow: 0 3px 10px -5px #777;
    transition: .3s ease-out;
    -webkit-transition: .3s ease-out;
    -moz-transition: .3s ease-out;
    -ms-transition: .3s ease-out;
    -o-transition: .3s ease-out;
    cursor: pointer;
}

.calendar-day-hover:hover {
    box-shadow: 0 10px 30px -10px #00a5b5;
}

.calendar-day-hover.active:after {
    content: '';
    position: absolute;
    left: 20%;
    bottom: 10%;
    width: 60%;
    height: 80%;
    box-sizing: border-box;
    font-size: small;
    border: 2px solid #00a5b5;
    z-index: 1;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transform: rotate(40deg);
    -webkit-transform: rotate(40deg);
    -moz-transform: rotate(40deg);
    -ms-transform: rotate(40deg);
    -o-transform: rotate(40deg);
}


.calendar-days div.curr-date,
.calendar-days div.curr-date:hover {
    background-color: #00a5b530;
    border: 4px solid white;
}

.calendar-days div.curr-date span {
    display: none;
}

.month-picker,
.year-picker {
    padding: 10px 8px;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
}

.month-picker:hover {
    background-color: var(--color-hover);
    cursor: pointer;
}


.year-change {
    height: 100%;
    width: auto;
    display: grid;
    place-items: center;
    margin: 0;
    cursor: pointer;
}

.year-change:hover {
    background-color: var(--color-hover);
}

.year-change pre {
    display: inline-block;
    margin: 0;
    word-wrap: unset;
    padding: 0 15px;
    line-height: 1.7;
    font-size: 20px;
    cursor: pointer;
}

.year-change pre:hover {
    background: var(--color-hover);
}

#year {
    margin: 0 10px;
}

.calendar-footer {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.toggle {
    display: flex;
}

.toggle span {
    margin-right: 10px;
    color: var(--color-txt);
}


.month-list {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--bg-main);
    padding: 20px;
    grid-template-columns: repeat(3, auto);
    gap: 5px;
    display: grid !important;
    transform: scale(1.5);
    visibility: hidden;
    pointer-events: none;
    background-color: #fff;
}

.month-list.show {
    transform: scale(1);
    visibility: visible;
    pointer-events: visible;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.month-list>div {
    display: grid;
    place-items: center;
}

.month-list>div>div {
    width: 100%;
    padding: 5px 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    color: var(--color-txt);
}

.month-list>div>div:hover {
    background-color: var(--color-hover);
}

.badgem {
    display: inline-block;
    min-width: 10px;
    padding: 3px 8px 2px 8px;
    font-size: 11px;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #ff8000;
    border-radius: 8px;
    float: none !important;
    font-weight: 500;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    width: 100%;
}

@keyframes to-top {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}