@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700&display=swap');
*, before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

body, html {
	width: 100%;
	height: 100%;
}

body {
	background-color: rgba(0,0,0,0.5);
}

.wrap {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
}

.wrap .calendar {
	position: relative;
	display: flex;
    flex-direction: column;
    width: auto;
    min-height: 400px;
    background-color: white;
    border-radius: 7px;
     /*padding: 20px;*/
}

.wrap .calendar .header {
    position: relative;
	width: 100%;
    height: 200px;
    background-color: darkseagreen;
    border-radius: 7px 7px 0 0;
    background-image: var(--wallpaper);
    isolation: isolate;
    overflow: hidden;
    display: flex;
    background-size: 100%;
    background-position: center;
}

.wrap .calendar .header::before {
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	/*background-color: rgba(255,255,255,0.3);*/
	background-color: rgba(0,0,0,0.3);
	z-index: -1;
}

.wrap .calendar .header .jump-btn {
	position: absolute;
    width: auto;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #d5d5d5;
    outline: none;
    top: 20px;
    right: 20px;
    backdrop-filter: blur(4px);
    border-radius: 7px;
    cursor: pointer;
    transition: .2s ease;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
}

.wrap .calendar .header .jump-btn:hover {
	background: rgba(255,255,255,0.1);
}

.wrap .calendar .header .jump-btn .far {
	margin-left: 10px;
}

.wrap .calendar .table {
	position: absolute;
	width: auto;
	height: auto;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	background-color: rgba(255,255,255,0.5);
	background-color: rgba(0,0,0,0.5);
	border: 1px solid #fff;
	border: 1px solid #555;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	border-radius: 7px;
	padding: 20px;
	box-shadow: 0 2px 3px rgba(0,0,0,0.3);
	display: none;
}

.wrap .calendar .table .close {
	position: absolute;
	width: 20px;
	height: 20px;
	line-height: 0;
	border-radius: 50%;
	background-color: transparent;
	/*background-color: tomato;*/
	font-size: 20px;
	border: 0;
	outline: none;
	top: 5px;
	right: 5px;
	color: #eee;
	cursor: pointer;
	font-weight: 600;
}

.wrap .calendar .table #month,
.wrap .calendar .table #year {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}

.wrap .calendar .table #month label,
.wrap .calendar .table #year label {
	color: #eee;
	font-weight: 600;
}

.wrap .calendar .table #month select,
.wrap .calendar .table #year select {
	color: #333;
	background-color: #e3feff;
	font-weight: 600;
	border-radius: 7px;
	outline: none;
	padding: 5px 10px;
	cursor: pointer;
}

.wrap .calendar .table #month select option,
.wrap .calendar .table #year select option {
	cursor: pointer!important;
	transition: .1s ease!important;
}

.wrap .calendar .table #month select option:hover,
.wrap .calendar .table #year select option:hover {
	background-color: #96dce9!important;
}

.wrap .calendar .table #jump {
	width: 100%;
	height: auto;
	padding: 10px;
	border-radius: 5px;
	outline: none;
	border: 0;
	font-size: 12px;
	background-color: #3AB5CD;
	color: white;
	font-weight: 600;
	cursor: pointer;
}

.wrap .calendar .header .this-month {
	/*--background: rgba(255,255,255,0.5);*/
	position: relative;
	width: 100%;
	height: auto;
	backdrop-filter: blur(3px);
	padding: 10px 20px;
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: auto auto;
    align-self: flex-end;
    background: var(--background);
    margin: 20px;
    border-radius: 7px;
}

.wrap .calendar .header .this-month .day {
	height: fit-content;
	font-size: 14px;
	grid-column:1/3;
	text-align: center;
	color: var(--color);
}

.wrap .calendar .header .this-month .day .today {
	font-weight: 600;
	color: var(--todayColor);/*#84bcc7*/
}

.wrap .calendar .header .this-month .month {
	/*--color: #333;*/
	font-family: 'Poppins', sans-serif;
	text-align: right;
	font-weight: 600;
	font-size: 30px;
	-webkit-user-select:  none;
	user-select: none;
	color: var(--color);
	text-transform: uppercase;
}

.wrap .calendar .header .this-month .year {
	/*--color: #333;*/
	font-family: 'Poppins', sans-serif;
	text-align: left;
	font-weight: 600;
	margin-left: 10px;
	font-size: 30px;
	color: var(--color);
	-webkit-user-select:  none;
	user-select: none;
}

.wrap .calendar .header .this-month button {
	/*--button: rgba(0,0,0,0.2);*/
	position: absolute;
	width: 50px;
	height: 50px;
	background-color: var(--button);
	border-radius: 50%;
	border: 0;
	outline: none;
	font-size: 20px;
	top: 50%;
	translate: 0 -50%;
	cursor: pointer;
	transition: .1s;
}

.wrap .calendar .header .this-month button:hover {
	background-color: rgba(0,0,0,0.6);
	color: #dcefec;
}

.wrap .calendar .header .this-month .left {
	left: 20px;
}

.wrap .calendar .header .this-month .right {
	right: 20px;
}

.wrap .calendar .days {
	width: 100%;
	height: -moz-fit-content;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px 20px;
}

.wrap .calendar .days div {
	height: 100%;
	width: 100%;
	text-align: center;
	font-size: 14px;
	padding: 5px 0;
	font-weight: 600;
	-webkit-user-select:  none;
	user-select: none;
}

.wrap .calendar .days div:first-child {
	background-color: tomato;
	color: #eee;
	border-radius: 4px;
}

.wrap .calendar .days div:last-child {
	background-color: #807CDC;
	color: #eee;
	border-radius: 4px;
}

.wrap .calendar .container {
	width: 500px;
    aspect-ratio: 2/1.5;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 2px;
    margin: 0 20px 20px;
}

.wrap .calendar .container .date {
	--bgColor: #baf4ff;
	--color: #333;
	position: relative;
	width: 100%;
	height: 100%;
	background-color: var(--bgColor);
	padding: 3px;
	border-radius: 3px;
	transition: .1s ease;
}

.wrap .calendar .container .date:not(.today, .empty):hover {
	background-color: #96dce9;
}

.wrap .calendar .container .date .text {
	font-size: 14px;
	line-height: 1;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color);
	font-weight: 600;
	-webkit-user-select:  none;
	user-select: none;
}

.wrap .calendar .container .date .holiday-container {
	--scale: 0;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	/*justify-content: center;*/
	flex-direction: column;
	border-radius: 7px;
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	background-color: rgba(255,255,255,0.7);
	backdrop-filter: blur(3px);
	z-index: 10;
	border: 1px solid #eee;
	overflow: hidden;
	scale: var(--scale);
	transition: .2s ease;
}

.wrap .calendar .container .date .holiday-container h4 {
	color: white;
	margin-bottom: 5px;
	background-color: tomato;
	width: 	100%;
	padding: 5px;
	line-height: 1;
}

.wrap .calendar .container .date .holiday-container .holiday-element {
	min-width: 150px;
	height: auto;
	padding: 10px;
	display: flex;
	flex-direction: column;
}

.wrap .calendar .container .date .holiday-container .holiday-element p.title {
	font-size: 14px;
	color: #333;
	font-weight: 600;
	width: max-content;
}

.wrap .calendar .container .date .holiday-container .holiday-element .img {
	width: calc(100% - 10px);
	margin: 0 auto;
	height: 70px;
	justify-self: center;
	border-radius: 7px;
	background-image: var(--image);
	background-size: cover;
	background-position: center center;
}

.today {
	--bgColor: #3AB5CD!important;
	--color: white!important;
	cursor: default!important;
}

.empty {
	--bgColor: #e3feff!important;
	--color: #d2d2d2!important;
	cursor: default!important;
}

.holiday {
	--color: #fff!important;
	cursor: pointer!important;
	background-color: tomato!important;
}

.appear {
	animation: appear .3s ease forwards!important;
}

.disappear {
	animation: disappear .3s ease forwards!important;
}

.todayWithHoliday {
	--color: #eee!important;
	cursor: pointer;
	background-image: linear-gradient(45deg, #3AB5CD 0% 50%, tomato 50% 100%)!important;
}

.appearHolidayCard {
	--scale: 1!important;
	cursor: pointer;
}

@keyframes appear {
	from {
		opacity: 0;
		translate: -50% -70%;
	}
	to {
		opacity: 1;
		translate: -50% -50%;
	}
}

@keyframes disappear {
	from {
		opacity: 1;
		translate: -50% -50%;
	}
	to {
		opacity: 0;
		translate: -50% -70%;
	}
}
