#calendar{
	position: relative;
}
#calendar-container {
  display: inline-block;
  text-align: center;
  position: relative;
  width: 100%;
}
.calendar-wrapper{
    position: relative;
}
.nav {
     position: absolute;
    top: 50%;
    transform: translate(0px, -50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#calendar-container button {
    align-items: center;
    background-color: var(--primary-color);
    column-gap: 0.5em;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
    border-radius: 9999rem;
    padding: 0;
  cursor: pointer;
}
#calendar-container button svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    color: var(--white-color);
}
#calendar-container button:hover {
  background: var(--primary-hover);
}
.months {
    display: flex;
    justify-content: center;
    gap: 20px;
    justify-content: center;
    max-width: calc(100% - 120px);
    margin: auto;
}
#calendar-container table {
  border-collapse: collapse;
  border-radius: 8px;
  padding: 30px 13px;
  display: flex;
 flex-direction: column;
 border:none;
 background: var(--white-color);
 width: auto;
}
#calendar-container tbody{
    border-width: 1px 0 0 1px;
    border-color: rgba(0,0,0,.1);
    border-style: solid;
	position: relative;
}

#calendar-container th {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    position: relative;
    text-transform: uppercase;
    font-size: 8px;
}
#calendar-container th.month{
    display:block;
    width: 100%;
    font-size: 14px;
}
#calendar-container td {
    border-width: 0 1px 1px 0;
    width: 60px;
    height: 70px;
    font-size: 10px;
    line-height: 0;
    font-weight: 700;
    position: relative;
}
td div {
    display: flex;
    line-height: 1;
    width: 100%;
    height: 100%;
}
td.event:not(.past) {
  background: var(--secodary-color);
  border: 2px solid var(--secodary-color);
  color: var(--white-color);
  cursor: pointer;
}
td.event.past {
  background: var(--bg-color);
  color: var(--secodary-color);
  cursor: pointer;
}
td.today {
    background: #E2F2EB;
    color: var(--primary-color);
}
td.event.active-event {
  background: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}
td.event.active-event .calendar-card-wrapper {
    display: flex;
}
.calendar-card-wrapper {
    position: absolute;
    display: none;
	flex-direction: column;
	transform: translate(-150px, 0px);
	z-index: 1;
	gap: 4px;
}
.calendar-card {
    position: relative;
    width: 300px;
    z-index: 99;
    background: white;
    color: var(--primary-color);
	display:flex;
    flex-direction: column;
    max-height: fit-content;
    border-radius: 8px;
    padding: 12px;
    height: fit-content;
}
.calendar-card h3{
	font-size:18px;
}
.close-popup{
	width: 24px;
	height: 24px;
}
@media (max-width: 1280px){
    #calendar-container td {
        height: 50px;
    }

}
@media (max-width: 1280px){
    table#calendar-3  {
        display: none !important;
    }
	#calendar-container td{
		position: unset;
	}
	.calendar-card-wrapper{
		left: 50%;
    	transform: translate(-50%, 10px);
		width: fit-content;
	}

}
@media (max-width: 768px){
    table#calendar-2  {
        display: none !important;
    }
	.nav button#prevBtn, .nav button#nextBtn{
		height: 20px;
		width: 20px;
	}
	.nav button#prevBtn svg, .nav button#nextBtn svg{
		width: 0.5em;
    	height: 0.5em;
	}
	#calendar-container td {
        height: 40px;
    }

}