/*
* Theme Name: Basic Theme
* Theme Version: 0.1
*/

/*	------------------------
	GENERAL THEME STUFF
	------------------------*/
body {
	font-family: Arial, sans-serif;
	display: flex;
	height: 100vh;
	background-color: #f4f7f6;
	margin: 0;
	overflow: hidden;
	box-sizing: border-box;
}

a{
	text-decoration: none;
}

button#refreshCalendars {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 0.5rem 1rem;
}
#refreshBtnDisabledText{
	display: none;
}
button#refreshCalendars:disabled {
	background: #ddd;
	cursor: not-allowed;
	border: 1px solid #aaaaaa;
	color: #333333;
}
button#refreshCalendars:disabled>#refreshBtnDisabledText{
	display: inline;
}
button#today-btn{
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 0.5rem 1rem;
}
#calendarSelection{
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
}
button.viewTypeSelector {
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 0.5rem 1rem;
	font-size: 1.125rem;
	line-height: 1rem;
}
button.viewTypeSelector:disabled {
	background: #ddd;
	cursor: not-allowed;
	border: 1px solid #aaaaaa;
	color: #333333;
}
#themeSelectorContainer{
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
}
#themeSelector{
	padding: 0.5rem 1rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid #666;
	border-radius: 8px;
}

#alertContainer{
	position: fixed;
	z-index: 1000;
	top: 3rem;
	right: 1rem;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	flex-direction: column;
	max-width: 20%;
}
.alertItem{
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	margin-bottom: 1rem;
	width: 100%;
}
.alertMain{
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	padding: 0.5rem;
}
.alertCloser{
	margin-left: 0.25rem;
}
.alertItem-success{
	background: #00C16E;
	color: #fff;
}
.alertItem-error{
	background: #ff676f;
	color: #000;
}
.alertItem-success .alertProgress{
	height: 3px;
	background: #004d28;
}
.alertItem-error .alertProgress{
	height: 3px;
	background: #3a0008;
}

#modalObjects{
	background-color: rgba(0,0,0,0.8);
	z-index: 10001;
	height: 100vh;
	width: 100vw;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}
#modalObjects.inView{
	transform: translateY(0);
}
#modalDayPreview{
	z-index: 10002;
	width: 585px;
	min-height: 600px;
	max-height: calc(100% - 40px - 8rem);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	background: #fff;
	border-radius: 1rem;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease-in-out, top 0.25s ease-in-out, transform 0.25s ease-in-out;
	position:absolute;
	top: 100%;
}
#modalDayPreview.inView, #modalEventPreview.inView{
	opacity: 1;
	display: block;
	z-index: 10005;
	top: 50%;
	transform: translateY(-50%)
}
#modalDayPreview h2{
	text-align: center;
}
#modalDayPreview #modalDuplicatedDayView{
	height: calc(100% - 68px);
	position: relative;
}
#modalDayPreview #modalDuplicatedDayView .eventEmptyEventsGroup{
	text-align: center;
	font-style: italic;
	position: absolute;
	top:50%;
	transform: translateY(-50%);
	width: 100%;
}
#modalEventPreview{
	z-index: 10002;
	min-width: 585px;
	max-width: 680px;
	min-height: 500px;
	max-height: calc(100% - 40px - 8rem);
	box-shadow: 0 4px 12px rgba(0,0,0,1);
	background: #fff;
	border-radius: 1rem;
	opacity: 0;
	transition: opacity 0.25s ease-in-out, top 0.25s ease-in-out, transform 0.25s ease-in-out;
	position:absolute;
	top: 100%;
}
.modalEventHeader{
	border-radius: 1rem 1rem 0 0;
	width: 100%;
	aspect-ratio: 2.8 / 1;
	background-size: cover;
}
.modalEventBody{
	display: flex;
	justify-content: start;
	flex-direction: row;
}
.modalEvBodyLeft{
	width: 120px;
	padding: 0.875rem 1.25rem;
	display: flex;
	flex-direction: column;
	padding-right: 0.5rem;
	text-align: center;
}
.modalEventDateDay{
	order: 1;
	font-size: 2.25rem;
}
.modalEventDateMo {
	order: 2;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	font-weight: bold;
	margin: 0 auto;
}
body.March .modalEventDateMo, body.April .modalEventDateMo {
	width: 60%;
}
body.July .modalEventDateMo, body.June .modalEventDateMo{
	width: 55%;
}
body.May .modalEventDateMo{
	width: 50%;
}
.modalEventDateYr {
	order: 3;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	opacity: 0.9;
	width: 80%;
	margin: 0 auto;
}
.modalEventDateStart{
	order: 4;
	margin-top: 1.5rem;
}
.modalEventDateStart:after{
	content: " – ";
}
.modalEventDateEnd{
	order: 5;
}

.modalEvBodyRight{
	flex-grow: 5;
	padding: 0.875rem 1.25rem;
	display: flex;
	flex-direction: column;
	overflow-y: scroll;
	max-height: calc(100vh - 96px - 8rem);
	margin-bottom: 28px;
}
.modalEventTitleLine {
	font-size: 120%;
	font-weight: 300;
	padding-bottom: 0.5rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid #999;
}
.modalEventRightLine{
	display: flex;
	justify-content: start;
	flex-direction: row;
	margin-top: 0.625rem;
}
.modalEventRightIcon{
	width: 10%!important;
	text-align: center;
}
.modalEventMainText{
	width: 90%;
}
.modalEventLocationLine{
	cursor: pointer;
}
.modalEventFlightLine{
	cursor: pointer;
}
.modalEvLocTxtName{
	font-weight: bold;
}
.modalEvLocTxtAddr{
	opacity: 0.7;
}
.modalEventRightCalColorPreview{
	display: inline-block;
	height: 12px;
	width: 12px;
	border-radius: 3px;
}
.modalEventCalLine {
	position: absolute;
	bottom: 1rem;
	width: calc(100% - 188px);
}
.modalEventBgRings, .modalEventBgCake{
	display: none!important;
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	opacity: 0.2;
	font-size: 500%;
}
.modalEvBodyType-anniversary .modalEventBgRings, .modalEvBodyType-birthday .modalEventBgCake{
	display: inline-block!important;
}
#modalDirections{
	z-index: 10002;
	width: 1200px;
	min-height: 750px;
	max-height: calc(100% - 40px - 2rem);
	box-shadow: 0 4px 12px rgba(0,0,0,1);
	background: #fff;
	border-radius: 1rem;
	margin: 2rem 4rem;
	opacity: 0;
	transition: opacity 0.25s ease-in-out, top 0.25s ease-in-out, transform 0.25s ease-in-out;
	position:absolute;
	display: flex;
	flex-direction: column;
	top: 100%;
}
#modalDirections.inView{
	opacity: 1;
	display: flex;
	z-index: 10005;
	top: 0;
}
#modalDirHeader{
	width: 100%;
	flex-grow: 1;
}
#modalDirHeadCont{
	display: flex;
	flex-direction: row;
	justify-content: center;
}
#modalDirHeadBack, #modalDirHeadCounterweight{
	width: 100px;
	text-align: left;
}
#modalDirHeadTitle{
	margin: 1rem 0 0 0;
	font-weight: bold;
	flex-grow: 300;
	text-align: center;
}
#modalDirHeadAddrShow{
	margin: 0.25rem 0 0.5rem 0;
	text-align: center;
	opacity: 0.8;
}
#modalDirBody{
	flex-grow: 100;
	display: flex;
	flex-direction: row;
	width: 100%;
	align-items: stretch;
	max-height: calc(100vh - 104px - 2rem);
}
#modalDirMapSide{
	width: 75%;
}
#modalDirMapSide #modalDirMapError{
	display: none;
}
#modalDirMapSide.showError #modalDirMapError{
	display: block;
	height: 30px;
	line-height: 30px;
	background: #fcc;
	text-align: center;
	font-size: 90%;
}
#modalDirMapPreview{
	width: 100%;
	height: 200px;
}
#modalDirMapRoute{
	width: 100%;
	height: calc(100% - 200px);
	border-bottom-left-radius: 1rem;
}
#modalDirMapSide.showError #modalDirMapRoute{
	height: calc(100% - 230px);
}
#modalDirsContainer{
	width: 25%;
	overflow-y: scroll;
}
#modalDirFooter{
	display: none;
	flex-grow: 1;
}
button#modalDirsBackToEventBtn {
	margin: 0.25rem 0.5rem;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 0.25rem 0.5rem;
}
#modalDirsDirHdr{
	background: #eee;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	font-size: 120%;
	padding: 1rem 0;
}
.modalDirsStepAction{
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	margin: 0.5rem 0;
}
.modalDirsStepActIconCont{
	font-size: 140%;
	padding: 0 0.5rem;
}
.modalDirsStepDetails{
	display: flex;
	align-items: center;
	text-align: center;
	font-size: 87.5%;
}
.modalDirsStepDetails::before, .modalDirsStepDetails::after{
	content: '';
	flex: 1;
	border-bottom: 1px solid #ccc;
}
.modalDirsStepDetails::before{
	margin-right: 15px;
}
.modalDirsStepDetails::after{
	margin-left: 15px;
}
#modalFlightInfo{
	z-index: 10002;
	width: 900px;
	height: 900px;
	box-shadow: 0 4px 12px rgba(0,0,0,1);
	background: #fff;
	border-radius: 1rem;
	opacity: 0;
	transition: opacity 0.25s ease-in-out, top 0.25s ease-in-out, transform 0.25s ease-in-out;
	position:absolute;
	top: 100%;
	display: flex;
	flex-direction: row;
}
#modalFlightInfo.inView{
	opacity: 1;
	display: block;
	z-index: 10005;
	top: 50%;
	transform: translateY(-50%)
}
#modalFlightInfo.en-route{
	display: flex;
	width: 1200px;
}
#modalFlightMainCol{
	display: flex;
	flex-direction: column;
	height: 100%;
}
#modalFlightDetails{
	width: calc(900px - 2rem);
	padding: 1rem;
}
#modalFlightDials{
	display: none;
	background: #22222a;
	background: #cfcfd8;
	border-radius: 0 1rem 1rem 0;
}
#modalFlightInfo.en-route #modalFlightDials{
	width: 300px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}
#fltProfileCont{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
#fltProfileDep{
	width: 50%;
	text-align: left;
}
#fltProfileArr{
	width: 50%;
	text-align: right;
}
#fltProfileProgCont{
	width: 100%;
}
#fltProfileProgCont{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin: 0.5rem auto 0;
	width: 90%;
}
#fltProfProgDep{
	width: 50%;
	text-align: left;
}
#fltProfProgArr{
	width: 50%;
	text-align: right;
}
#fltProfProgBarsCont{
	width: 100%;
	text-align: center;
}
#fltProfProgDepTime, #fltProfProgArrTime{
	font-size: 140%;
	font-weight: 100;
}
#fltProfProgTimeBar{
	height: 4px;
	border: 1px solid #000080;
	background: #ccf;
	display: none;
}
#modalFlightInfo.en-route #fltProfProgTimeBar{
	display: block;
}
#fltProfProgTimeFill{
	background: #000080;
	height: 4px;
	position: relative;
}
#fltProfProgTimeFill::after{
	content: "\f017";
	font-family: "Font Awesome 7 Pro";
	position: absolute;
	transform: translateY(-50%) translateX(50%);
	background: #000080;
	color: #fff;
	border-radius: 50%;
	padding: 0.25rem;
	line-height: 18px;
	width: 18px;
	height: 18px;
	right: 0;
}
#fltProfProgDistBar{
	height: 4px;
	border: 1px solid #008000;
	background: #cfc;
	position: relative;
	display: none;
}
#modalFlightInfo.en-route #fltProfProgDistBar{
	display: block;
}
#fltProfProgDistFill{
	background: #008000;
	height: 4px;
	position: relative;
}
#fltProfProgDistFill::after{
	content: "\f072";
	font-family: "Font Awesome 7 Pro";
	position: absolute;
	transform: translateY(-50%) translateX(50%);
	background: #008000;
	color: #fff;
	border-radius: 50%;
	padding: 0.25rem;
	line-height: 18px;
	width: 18px;
	height: 18px;
	right: 0;
}
#modalFlightMap{
	flex-grow: 10;
}
.flightMapPlaneCont{
	font-size: 24px;
	text-align: center;
}
.flightMapAirplane{
	color: #1db954;
	transform: rotate(var(--flight-direction)) translateX(-50%);
}
#fltDetsAirline{
	font-weight: bold;
	font-size: 200%;
}
#fltDetsStatus{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
#modalFlightInfo.ontime #fltDetsStatusSegment,
#modalFlightInfo.early #fltDetsStatusSegment,
#modalFlightInfo.ontime #fltDetsStatusTiming,
#modalFlightInfo.early #fltDetsStatusTiming{
	color: #008000;
}
#modalFlightInfo.late #fltDetsStatusSegment,
#modalFlightInfo.late #fltDetsStatusTiming{
	color: #ff8000;
}
#fltDetsStatusSegment{
	font-weight: bold;
}
#fltDetsStatusRemain{
	width: 100%;
}
#fltDetsStatusTiming::before{
	padding: 0 0.5rem;
	content: "/";
}
#fltProfDepIATA, #fltProfArrIATA{
	font-size: 170%;
	font-weight: 100;
}
#fltProfDepAirport, #fltProfArrAirport{
	font-weight: bold;
}
.flightDialAddendumRight, .flightDialAddendumLeft{
  display: flex;
  justify-content: center;
  background-color: #050505;
  border: 2px solid #222;
  border-radius: 4px;
  padding: 3px;
  overflow: hidden;
  box-shadow: inset 0 5px 10px rgba(0,0,0,0.8);
}
.flightDialAddendumRight{
	position: absolute;
	right: 0;
	bottom: 0;
	transform: translateX(40px);
}
.flightDialAddendumLeft{
	position: absolute;
	left: 0;
	bottom: 0;
	transform: translateX(-40px);
}
.flightDialAddendumRight span, .flightDialAddendumLeft span{
  background-color: #222;
  color: #f0f0f0;
  width: 14px;
  height: 18px;
  font-size: 14px;
  height: 22px;
  line-height: 22px;
  margin: 0 0.5px;
  border-radius: 2px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
  display: inline-block;
  text-align: center;
  font-weight: 600;
}

/*	------------------------
	MONTH MODE
	------------------------*/

body.monthMode{
	justify-content: center;
	align-items: center;
}
body.monthMode #monthView{
	width: 100vw;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
}
body.monthMode #dayView, body.monthMode #itineraryView{
	display: none;
}
body.monthMode #month-year-exterior{
	display: none;
}
body.monthMode #monthView .calendar-container{
	width: calc(100% - 40px - 8rem);
	height:  calc(100% - 40px - 8rem);
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	margin: 4rem;
}
body.monthMode #monthView .calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
	margin-bottom: 20px;
}
body.monthMode #monthView .calendar-header button {
	padding: 5px 12px;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
}
body.monthMode #monthView .weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: bold;
	color: #666;
	height: 18px;
	margin-bottom: 10px;
}

body.monthMode #monthView .days-grid {
	background: #ddd;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: left;
	gap: 1px;
	border: 1px solid #ccc;
	height: calc(100% - 92px - 28px);
}

body.monthMode #monthView .days-grid>a {
	display: block;
	position: relative;
	color: #333;
	background: #ffffff;
	padding: 2px 0;
	min-height: 12%;
}
body.monthMode #monthView .days-grid .dayNum{
	float: right;
	width: 2rem;
	line-height: 2rem;
	text-align: center;
	border-left: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	font-weight: bold;
	margin-left: 2px;
	margin-top: -2px;
}

body.monthMode #monthView .days-grid .empty {
  background: transparent;
}

body.monthMode #monthView .days-grid .today {
	background: #cdf;
}

body.monthMode #monthView .days-grid .today .dayNum {
	background: #007bff;
	border-color: #ffffff;
	color: #fff;
}


body.monthMode .eventActual:first{
	margin-top: 0.25rem;
}
body.monthMode .eventAllDay{
	display: flex;
	background: #444;
	color: #fff;
	margin: 2px;
	padding: 2px;
	font-size: 14px;
	text-overflow: ellipsis;
	border-radius: 4px;
	padding: 2px;
}
body.monthMode .eventTimed{
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	border: 1px solid #333;
	border-left-width: 3px;
	margin: 2px;
	border-radius: 4px;
	background: #fff;
	color: #000;
}
body.monthMode .eventTimedTimebox{
	font-size: 12px;
	font-weight: bold;
	margin: 0 2px;
}
body.monthMode .eventTimedTitle{
	font-size: 14px;
}
body.monthMode .eventBirthday{
	display: flex;
	color: #fff;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	margin: 2px;
	border-radius: 4px;
	padding: 2px 0;
}
body.monthMode .eventBirthdayIndicator{
	font-size: 16px;
	line-height: 18px;
	font-weight: bold;
	margin: 0 2px;
	background: #fff;
	border-radius: 3px;
	padding: 1px;
}
body.monthMode .eventBirthdayTitle{
	font-size: 14px;
}
body.monthMode .eventAnniv{
	display: flex;
	color: #fff;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	margin: 2px;
	border-radius: 4px;
	padding: 2px 0;
}
body.monthMode .eventAnnivIndicator{
	font-size: 16px;
	line-height: 18px;
	font-weight: bold;
	margin: 0 2px;
	background: #fff;
	border-radius: 3px;
	padding: 1px;
}
body.monthMode .eventAnnivTitle{
	font-size: 14px;
}






/*	------------------------
	DAY MODE
	------------------------*/


body.dayMode{
	justify-content: space-between;
	align-items: start;
}
body.dayMode #monthView{
	width: 40vw;
	margin: 0 2.5vw;
}
body.dayMode #itineraryView{
	display: none;
}
body.dayMode #dayView{
	width: 50vw;
	margin: 0 2.5vw;
	height: 100vh;
}
body.dayMode #month-year-exterior{
	display: none;
}
body.dayMode .dayView-container{
	width: calc(100% - 40px - 8rem);
	height: calc(100% - 40px - 8rem);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	margin: 4rem;
}
body.dayMode #monthView .calendar-container{
	width: calc(100% - 40px - 8rem);
	height:  calc(100% - 40px - 8rem);
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	margin: 4rem;
}
body.dayMode #monthView .calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
	margin-bottom: 20px;
}
body.dayMode #monthView .calendar-header button {
	padding: 5px 12px;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
}
body.dayMode #monthView .weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: bold;
	color: #666;
	height: 18px;
	margin-bottom: 10px;
}

body.dayMode #monthView .days-grid {
	background: #ddd;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: left;
	gap: 1px;
	border: 1px solid #ccc;
	height: calc(100% - 92px - 28px);
}

body.dayMode #monthView .days-grid>a {
	display: block;
	position: relative;
	color: #333;
	background: #ffffff;
	padding: 2px 0;
	min-height: 12%;
}
body.dayMode .eventActual{
	display: none; /* use :nth-child below to display only the first 5 */
	width: 5px;
	height: 5px;
	margin: 2px;
	background: #000!important;
	content: "";
	overflow: hidden;
	font-size: 0;
	border: 0!important;
	padding: 0;
	border-radius: 4px;
}
body.dayMode .eventActual:nth-child(-n+5){ /* display only the first 5 */
	display: inline-block;
}
body.dayMode .eventTimedTimebox, body.dayMode .eventTimedTitle, body.dayMode .eventBirthdayTitle, body.dayMode .eventAnnivTitle{
	content: "";
	font-size: 0;
}

body.dayMode #monthView .days-grid>a {
	text-align: center;
}
body.dayMode #monthView .days-grid .dayNum{
	width: 100%;
	line-height: 2rem;
	text-align: center;
	border: 0;
	font-weight: bold;
}
body.dayMode #monthView .days-grid .active{
	background: #cdf;
}
body.dayMode #monthView .days-grid .today{
	background: #007bff;
	color: #fff;
}
body.dayMode #monthView .days-grid .today .eventActual{
	background: #fff!important;
}
body.dayMode #monthView .days-grid .today .dayNum {
	background: transparent;
	border: 0;
}

body.dayMode .day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
	margin-bottom: 20px;
}
body.dayMode .day-header button {
	padding: 5px 12px;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
}
body.dayMode #dayView-body{
	height: calc(100vh - 40px - 92px - 8rem);
	overflow: hidden;
}
body.dayMode .dayViewDayEvent{
	display: none;
	flex-grow: 5;
}
#modalDuplicatedDayView{
	width: 100%;
}
body.dayMode .dayViewDayEvent.active, #modalDayPreview{
	display: flex;
	flex-direction :column;
	justify-content: start;
	align-items: center;
	height: 100%;
}
body.dayMode .dayViewDayEvent.active.empty, #modalDayPreview .dayViewDayEvent.empty{
	justify-content: center;
}
#modalDuplicatedDayView.empty{
	display: block!important;
}
body.dayMode .dayViewEventBirthday, body.dayMode .dayViewEventAnniversary, #modalDayPreview .dayViewEventBirthday, #modalDayPreview .dayViewEventAnniversary{
	width: 100%;
	margin: 0.5rem 0;
	display: flex;
	justify-content: start;
	flex-direction: row;
	min-height: 4rem;
	border-radius: 0.75rem;
	cursor: pointer;
}
body.dayMode .eventBirthdayIndicator, body.dayMode .eventAnnivIndicator, #modalDayPreview .eventBirthdayIndicator, #modalDayPreview .eventAnnivIndicator{
	margin: 4px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #fff;
	background: transparent;
	font-size: 200%;
}
body.dayMode .dayViewEventBirthdayTitle, body.dayMode .dayViewEventAnnivTitle, #modalDayPreview .dayViewEventBirthdayTitle, #modalDayPreview .dayViewEventAnnivTitle{
	display: flex;
	flex-grow: 5;
	flex-direction: column;
	justify-content: center;
	font-weight: bold;
	font-size: 20px;
}
body.dayMode .eventYearliesGroup, body.dayMode .eventFullDaysGroup, body.dayMode .eventTimesGroup, #modalDayPreview .eventYearliesGroup, #modalDayPreview .eventFullDaysGroup, #modalDayPreview .eventTimesGroup{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}
body.dayMode .eventFullDaysGroup, body.dayMode .eventTimesGroup, #modalDayPreview .eventFullDaysGroup, #modalDayPreview .eventTimesGroup{
	flex-direction: column;
}
body.dayMode .dayViewEventFullday, #modalDayPreview .dayViewEventFullday{
	width: 100%;
	margin: 0.5rem 1rem;
	display: flex;
	justify-content: center;
	flex-direction: column;
	min-height: 3rem;
	border-radius: 0.75rem;
	color: #fff;
	text-align: left;
	cursor: pointer;
}
body.dayMode .dayViewEventFullday span, #modalDayPreview .dayViewEventFullday span{
	margin: 0.25rem 0.5rem;
}
body.dayMode .dayViewEventTimed, #modalDayPreview .dayViewEventTimed{
	width: 100%;
	margin: 0.5rem 1rem;
	display: flex;
	justify-content: start;
	flex-direction: row;
	min-height: 3rem;
	border-radius: 0.75rem;
	text-align: left;
	cursor: pointer;
}
body.dayMode .dayViewEventTimedTimebox, #modalDayPreview .dayViewEventTimedTimebox{
	font-weight: bold;
	display: flex;
	justify-content: center;
	flex-direction: column;
	width: 15%;
	min-width: 15%;
}
body.dayMode .dayViewEventTimedTitle, #modalDayPreview .dayViewEventTimedTitle{
	display: flex;
	justify-content: center;
	flex-direction: column;
	flex-grow: 5;
	border-radius: 0.75rem;
}
body.dayMode .dayViewEventTimedTitle span, #modalDayPreview .dayViewEventTimedTitle span{
	color: #fff;
	margin: 0.25rem 0.5rem;
}




/*	------------------------
	ITINERARY MODE
	------------------------*/


body.itineraryMode{
	justify-content: space-between;
	align-items: start;
}
body.itineraryMode #monthView{
	width: 40vw;
	margin: 0 2.5vw;
}
body.itineraryMode #dayView{
	display: none;
}
body.itineraryMode #itineraryView{
	width: 50vw;
	margin: 0 2.5vw;
	height: 100vh;
}
body.itineraryMode #month-year-exterior{
	display: none;
}
body.itineraryMode .itineraryView-container{
	width: calc(100% - 40px - 8rem);
	height: calc(100% - 40px - 8rem);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	background: #fff;
	border-radius: 8px;
	padding: 20px 0 20px 20px;
	margin: 4rem;
}
body.itineraryMode #itinerary-body{
	height: calc(100vh - 40px - 8rem);
	overflow-y: scroll;
	padding-right: 20px;
}
body.itineraryMode #monthView .calendar-container{
	width: calc(100% - 40px - 8rem);
	height:  calc(100% - 40px - 8rem);
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	margin: 4rem;
}
body.itineraryMode #monthView .calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
	margin-bottom: 20px;
}
body.itineraryMode #monthView .calendar-header button {
	padding: 5px 12px;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
}
body.itineraryMode #monthView .weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: bold;
	color: #666;
	height: 18px;
	margin-bottom: 10px;
}

body.itineraryMode #monthView .days-grid {
	background: #ddd;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: left;
	gap: 1px;
	border: 1px solid #ccc;
	height: calc(100% - 92px - 28px);
}

body.itineraryMode #monthView .days-grid>a {
	display: block;
	position: relative;
	color: #333;
	background: #ffffff;
	padding: 2px 0;
	min-height: 12%;
}
body.itineraryMode .eventActual{
	display: none; /* use :nth-child below to display only the first 5 */
	width: 5px;
	height: 5px;
	margin: 2px;
	background: #000!important;
	content: "";
	overflow: hidden;
	font-size: 0;
	border: 0!important;
	padding: 0;
	border-radius: 4px;
}
body.itineraryMode .eventActual:nth-child(-n+5){ /* display only the first 5 */
	display: inline-block;
}
body.itineraryMode .eventTimedTimebox, body.itineraryMode .eventTimedTitle, body.itineraryMode .eventBirthdayTitle, body.itineraryMode .eventAnnivTitle{
	content: "";
	font-size: 0;
}

body.itineraryMode #monthView .days-grid>a {
	text-align: center;
}
body.itineraryMode #monthView .days-grid .dayNum{
	width: 100%;
	line-height: 2rem;
	text-align: center;
	border: 0;
	font-weight: bold;
}
body.itineraryMode #monthView .days-grid .active{
	background: #cdf;
}
body.itineraryMode #monthView .days-grid .today{
	background: #007bff;
	color: #fff;
}
body.itineraryMode #monthView .days-grid .today .eventActual{
	background: #fff!important;
}
body.itineraryMode #monthView .days-grid .today .dayNum {
	background: transparent;
	border: 0;
}





body.itineraryMode .day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
	margin-bottom: 20px;
}
body.itineraryMode .day-header button {
	padding: 5px 12px;
	cursor: pointer;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
}
.itineraryViewEventsDayHeader {
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	height: 5rem;
}
.itinViewEvHeaderMonth{
	order: 2;
	letter-spacing: 10%;
	font-size: 120%;
}
.itinViewEvHeaderDay{
	order: 1;
	font-size: 220%;
	font-weight: bold;
	width: 15%;
	text-align: center;
	max-width: 15%;
	min-width: 15%;
}
.itinViewEvHeaderYear{
	order: 3;
	opacity: 0.6;
	margin-left: 0.5rem;
	font-size: 120%;
}
body.itineraryMode .itineraryViewDayEvent.empty{
	display: none;
}
body.itineraryMode .itineraryViewDayEvent.active{
	display: flex;
	flex-direction :column;
	justify-content: start;
	align-items: center;
	height: 100%;
}
body.itineraryMode .itineraryViewDayEvent.active.empty{
	justify-content: center;
}
body.itineraryMode .dayViewEventBirthday, body.itineraryMode .dayViewEventAnniversary{
	width: 100%;
	margin: 0.5rem 0;
	display: flex;
	justify-content: start;
	flex-direction: row;
	min-height: 4rem;
	border-radius: 0.75rem;
	cursor: pointer;
}
body.itineraryMode .eventBirthdayIndicator, body.itineraryMode .eventAnnivIndicator{
	margin: 4px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #fff;
	background: transparent;
	font-size: 200%;
}
body.itineraryMode .dayViewEventBirthdayTitle, body.itineraryMode .dayViewEventAnnivTitle{
	display: flex;
	flex-grow: 5;
	flex-direction: column;
	justify-content: center;
	font-weight: bold;
	font-size: 20px;
}
body.itineraryMode .eventYearliesGroup, body.itineraryMode .eventFullDaysGroup, body.itineraryMode .eventTimesGroup{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}
body.itineraryMode .eventFullDaysGroup, body.itineraryMode .eventTimesGroup{
	flex-direction: column;
}
body.itineraryMode .dayViewEventFullday{
	width: 100%;
	margin: 0.5rem 0;
	display: flex;
	justify-content: center;
	flex-direction: column;
	min-height: 3rem;
	border-radius: 0.75rem;
	color: #fff;
	text-align: left;
	cursor: pointer;
}
body.itineraryMode .dayViewEventFullday span{
	margin: 0.25rem 0.5rem;
}
body.itineraryMode .dayViewEventTimed{
	width: 100%;
	margin: 0.5rem 0;
	display: flex;
	justify-content: start;
	flex-direction: row;
	min-height: 3rem;
	border-radius: 0.75rem;
	text-align: left;
	cursor: pointer;
}
body.itineraryMode .dayViewEventTimedTimebox{
	font-weight: bold;
	display: flex;
	justify-content: center;
	flex-direction: column;
	width: 15%;
	min-width: 15%;
}
body.itineraryMode .dayViewEventTimedTitle{
	display: flex;
	justify-content: center;
	flex-direction: column;
	flex-grow: 5;
	border-radius: 0.75rem;
}
body.itineraryMode .dayViewEventTimedTitle span{
	color: #fff;
	margin: 0.25rem 0.5rem;
}







/*

.calendar-container {
  width: 350px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header button {
  padding: 5px 12px;
  cursor: pointer;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
}


.days-grid {
	background: #ccc;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 0px;
}

.days-grid div {
  padding: 10px 0;
  border: 1px solid #ccc;
  color: #333;
  background: #ffffff;
}

.days-grid .empty {
  background: transparent;
}

.days-grid .today {
  background: #007bff;
  color: white;
  font-weight: bold;
}

*/