.toastui-calendar-month-week-item {
    margin-bottom: 4px !important;
    height: calc(((min(1297px, 100vw) - 30px) / 7)* 1.13) !important;
    width: 100%;
    aspect-ratio: 583 / 93;
}

.toastui-calendar-daygrid-cell {
    border: 2px solid red!important;
    border: none!important;
    border-radius: 15px;
    aspect-ratio: 1!important;
    height: calc(((min(1297px, 100vw) - 30px) / 7) * 1.13);
    overflow: hidden;
}

.toastui-calendar-month .toastui-calendar-month-daygrid {
    height: unset;
    background-color: #000;
    transition: opacity 0.3s ease-in-out;
}

.toastui-calendar-weekday-grid {
    border-top: none!important;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.toastui-calendar-weekday-grid > div {
    width: calc((100% - 30px) / 7)!important;
    padding-top: 0;
/*    background-color: #fff!important;*/
}

span.toastui-calendar-weekday-event-dot {
    display: none;
}

span.toastui-calendar-weekday-event-title {
    padding-left: 0;
    padding-right: 4px;
    overflow: visible;
}

.toastui-calendar-template-time {
    height: calc(((min(1297px, 100vw) - 30px) / 7) * 1.11 - 26px);
    position: relative;
/*    background-color: pink;*/
/*    top: -6px;*/
    text-align: center;
}

.toastui-calendar-weekday-event {
    height: unset!important;
    overflow: visible!important;
}

.event_item h6 {
    margin-top: 0;
    white-space: normal;
}

span.toastui-calendar-weekday-grid-date.toastui-calendar-weekday-grid-date-decorator.toastui-calendar-template-monthGridHeader {
    background-color: transparent;
    text-align: left;
    width: unset!important;
    margin-left: 0;
}

span.toastui-calendar-weekday-grid-date {
    font-weight: bold;
    font-size: 18px;
    font-family: 'Source';
    color: #000;
    position: relative;
    z-index: 2;
    opacity: 0;
}

span.toastui-calendar-grid-cell-date {
    line-height: 21px;
    text-align: left;
    padding-left: 5px;
}

.event_item .overlay {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    transition-duration: .3s;
    display: flex;
    align-items: center;
    z-index: 0;
}

.event_item .top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-grow: 1;
    max-height: 70px;
}

.event_item .top img {
    width: 40%;
    height: auto!important;
    max-height: 65px!important;
    aspect-ratio: 1!important;
    flex-shrink: 0!important;
    flex-grow: 1;
    object-fit: contain;
    flex-basis: 1px;
    object-position: center;
}

p.game_time {
    margin-bottom: 0;
    font-family: 'Source';
    font-size: 21px!important;
    line-height: 93%;
    color: #000;
}

p.game_stadium {
    margin-bottom: 0;
    font-family: 'Source';
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

a.tickets_btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

a.tickets_btn .ribbon {
    width: 90%;
    margin: 0 auto;
    position: relative;
}

a.tickets_btn .ribbon::after {
    content: "Get tickets";
    color: #fff;
    position: absolute;
    top: 0;
    left: 50%;
}

.event_item .ribbon {
    display: inline-flex;
    max-width: 145px;
    margin: 3px auto 7px;
    position: relative;
}

.event_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
    opacity: 1;
    transition: opacity 0.4s 0.1s ease-in-out;
    position: relative;
    z-index: 1;
}

.fade-out .event_item {
    opacity: 0;
}

.event_item a.cosmic {
    display: none;
}

.event_item .ribbon::after {
    content: "Get tickets";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Source';
    text-transform: uppercase;
    font-size: 14px;
}

.event_item .flosports {
    max-width: 103px;
}

/*.event_item::after {
    content: "";
    width: 24px;
    aspect-ratio: 1;
    background-image: url('https://chilipeppers.wpenginepowered.com/wp-content/uploads/2025/03/ojo.png');
    position: absolute;
    top: -17px;
    right: -3px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}*/

.event_item:hover .overlay {
    opacity: 1;
    pointer-events: auto;
    z-index: 0;
}

.event_item .overlay h6 {
    margin-bottom: 0!important;
    color: #000000;
    line-height: 105%;
    font-family: 'Source';
    font-weight: 600;
    font-size: 15px;
}

@media (max-width: 1200px) {
    .event_item .overlay h6 {
        font-size: 12px;
    }
}

.toastui-calendar-day-name-container {
    display: flex;
    gap: 5px;
    text-align: center;
    top: -5px;
}

.toastui-calendar-day-name-item.toastui-calendar-month {
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-family: 'Source';
    font-size: 20px;
    width: calc((100% - 30px) / 7)!important;
}

.schedule-controls .control-months img,
.schedule-controls .toggle-views img {
    max-width: 35px;
    min-width: unset;
    cursor: pointer;
}

p.currentMonthText {
    font-family: 'Source';
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
}

.schedule-controls {
    color: #fff;
    display: flex;
    gap: 15px;
    align-items: center;
    text-align: center;
    padding: 0 30px;
    justify-content: space-between;
}

.schedule-controls .select-container {
    flex-grow: 1;
    display: flex;
    gap: 20px;
    justify-content: end;
    padding-right: 10px;
    align-items: center;
    font-size: 20px;
    color: yellow;
}

.schedule-controls > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.schedule-controls .flosports-banner p {
    margin-bottom: 0;
    font-size: 21px;
    font-weight: 600;
}

.schedule-controls .flosports-banner {
    flex-grow: 1;
    justify-content: flex-end;
    padding-right: 20px;
}
body.cosmic-mode p.currentMonthText {
    text-shadow: 0px 0px 14px white;
}

.schedule-controls select {
    max-width: 180px;
}

body:not(.cosmic-mode) .schedule-controls .cosmic, body.cosmic-mode .schedule-controls .default {
    display: none;
}

body.cosmic-mode .toastui-calendar-daygrid-cell {
    border-color: #f503f9!important;
    background-color: #000!important;
}

body.cosmic-mode span.toastui-calendar-weekday-grid-date {
    color: #fff;
}

.event_item span.vs {
    font-family: "Rhinos Rocks", sans-serif;
    font-size: 18px;
    padding: 0 5px;
    font-weight: 400;
}

.toastui-calendar-template-monthDayName {
    color: #fff;
}

/*body.cosmic-mode .event_item::after {
    background-image: url('https://chilipeppers.wpenginepowered.com/wp-content/uploads/2025/03/ojo-1.png');
}*/

body.cosmic-mode .event_item span.vs,
body.cosmic-mode .event_item .overlay h6 {
    color: #fff;
}

body.cosmic-mode p.game_time,
body.cosmic-mode p.game_stadium {
    color: yellow;
}

div#baseball-calendar {
    background-color: #000!important;
    aspect-ratio: 1!important;
    height: unset!important;
    padding-top: 20px;
}

.toastui-calendar-day-names.toastui-calendar-month {
    background-color: #00000078 !important;
    backdrop-filter: blur(32px);
    padding: 0;
    padding-top: 7px;
    position: sticky;
    top: 107px;
    z-index: 99;
    margin-bottom: 10px;
    background: rgb(0, 0, 0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7959558823529411) 43%, rgba(0, 0, 0, 0.76234243697479) 49%, rgba(0, 0, 0, 0.21332282913165268) 87%, rgba(0, 212, 255, 0) 100%);
    overflow: visible;
    box-shadow: 0px 5px 10px 0px #0000009e;
}

body.admin-bar .toastui-calendar-day-names.toastui-calendar-month {
    top: 139px;
}

.event_item:hover .top img,
.event_item:hover span.vs{
    opacity: 0;
}

body:not(.cosmic-mode) .event_item .ribbon.cosmic,
body:not(.cosmic-mode) .event_item .flosports.cosmic,
body:not(.cosmic-mode) .event_item.cosmic-event .ribbon.default,
body:not(.cosmic-mode) .event_item.cosmic-event .flosports.default,
body.cosmic-mode .event_item .ribbon.default,
body.cosmic-mode .event_item .flosports.default {
    display: none;
}

body:not(.cosmic-mode) .event_item .ribbon.default,
body:not(.cosmic-mode) .event_item .flosports.default,
body:not(.cosmic-mode) .event_item.cosmic-event .ribbon.cosmic,
body:not(.cosmic-mode) .event_item.cosmic-event .flosports.cosmic,
body.cosmic-mode .event_item .ribbon.cosmic,
body.cosmic-mode .event_item .flosports.cosmic {
    display: inline-flex;
}

.toastui-calendar-weekday-event-block:has(.cosmic-event) {
    background-image: url('https://chilipeppers.wpenginepowered.com/wp-content/uploads/2025/03/Cosmicschedule.jpeg');
    background-position: center;
    background-size: cover;
}

.event_item.cosmic-event span.vs {
    color: #fff;
    text-shadow: 0px 0px 10px #fff;
}

.cosmic-event p.game_time,
.cosmic-event p.game_stadium {
    color: #F503F9;
}

.toastui-calendar-layout.toastui-calendar-month {
    background-color: #000!important;
}

.toastui-calendar-weekday-event-block {
    top: 0!important;
/*    left: 0!important;*/
    margin: 2px;
    box-sizing: border-box;
    border-radius: 14px;
    padding-top: 17px;
    border: 2px solid red;
    background-color: #fff;
}

.toastui-calendar-weekday-event-block .day {
    position: absolute;
    top: -18px;
    left: 3px;
    z-index: 1;
    font-family: 'Source';
    font-size: 17px;
    font-weight: 800;
}

.toastui-calendar-weekday-event-block:has(.event_item.past-event) {
    background-color: #d8d8d8;
}

.event_item.past-event {
    filter: grayscale(1) brightness(1.1);
}

.event_item.past-event .ribbon, .event_item.past-event .flosports {
    opacity: 0;
    margin-top: -10px;
}

.toastui-calendar-weekday-event-block:has(.day_placeholder.outside-month) {
    background-color: #d5d5d5;
}

.toastui-calendar-weekday-event-block:has(.day_placeholder.outside-month) .day {
    color: gray!important;
}

.toastui-calendar-weekday-event-block .cosmic-event .day {
    color: yellow!important;
}

.toastui-calendar-weekday-event-block:has(.event_item.cosmic-event.past-event) {
    background-image: none;
    background-color: #adadad;
}

/*.event_item.cosmic-event::after {
    background-image: url('https://chilipeppers.wpenginepowered.com/wp-content/uploads/2025/03/ojo-1.png');
}*/

.event_item.cosmic-event .overlay h6 {
    color: #fff;
}

body.cosmic-mode .toastui-calendar-weekday-event-block {
    background-color: #000;
    border-color: #f503f9;
}

body.cosmic-mode .toastui-calendar-weekday-event-block:has(.day_placeholder.outside-month) {
    background-color: #2e2e2e;
}

body.cosmic-mode .toastui-calendar-weekday-event-block .day {
    color: #fff!important;
}

body.cosmic-mode .day_placeholder.outside-month .day {
    color: #9b9b9b!important;
}

body.cosmic-mode .toastui-calendar-weekday-event-block:has(.event_item.cosmic-event.past-event) {
    background-color: #4d4d4d;
}

.only_home .event_item.location_away .top,
.only_home .event_item.location_away .bottom, 
.only_home .event_item.location_away > a,
.only_home .event_item.location_away::after{
    display: none!important;
}

.only_away .event_item.location_home .top,
.only_away .event_item.location_home .bottom, 
.only_away .event_item.location_home > a,
.only_away .event_item.location_home::after{
    display: none!important;
}

.only_home .toastui-calendar-weekday-event-block:has(.event_item.location_away),
.only_away .toastui-calendar-weekday-event-block:has(.event_item.location_home) {
    background-color: #fff!important;
    background-image: unset!important;
}

body.cosmic-mode .only_home .toastui-calendar-weekday-event-block:has(.event_item.location_away),
body.cosmic-mode .only_away .toastui-calendar-weekday-event-block:has(.event_item.location_home) {
    background-color: #000!important;
    background-image: unset!important;
}

.only_home .toastui-calendar-weekday-event-block:has(.event_item.location_away) .day,
.only_away .toastui-calendar-weekday-event-block:has(.event_item.location_home) .day {
    color: #000!important;
}

body.cosmic-mode .only_home .toastui-calendar-weekday-event-block:has(.event_item.location_away) .day,
body.cosmic-mode .only_away .toastui-calendar-weekday-event-block:has(.event_item.location_home) .day {
    color: #fff!important;
}

p.calendarMonthText {
    font-family: 'Source';
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 0px;
    text-transform: uppercase;
}

body.cosmic-mode p.calendarMonthText {
    text-shadow: 0px 0px 14px white;
}

.toastui-calendar-weekday-event-block:has(.theme-night) {
    padding-top: 0px;
}

.toastui-calendar-template-time .theme-night {
    background-color: #fb0614;
    color: #fff;
    margin-left: -8px;
    margin-right: -12px;
    border-radius: 11px 11px 0 0;
}

.toastui-calendar-template-time .theme-night p {
    position: relative;
    line-height: 100%;
    padding: 3px 3px 5px 3px;
    font-weight: 500;
    font-size: 11px;
}

.toastui-calendar-weekday-event-block:has(.theme-night) .day, .event_item::after {
    top: -16px;
}

.toastui-calendar-weekday-event-block:has(.theme-night) .event_item {
    height: calc(100% - 17px);
}

body.cosmic-mode .toastui-calendar-template-time .theme-night {
    background-color: #f503f9;
    color: #000;
}

body.cosmic-mode .toastui-calendar-template-time .theme-night p {
    /* font-weight: 600; */
}

body.cosmic-mode .toastui-calendar-weekday-event-block:has(.cosmic-event) {
    border-color: #5efb42;
}

body.cosmic-mode .cosmic-event p.game_time, body.cosmic-mode .cosmic-event p.game_stadium {
    color: #5efb42;
}

/* Modal container */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  top: 107px;
}

/* Modal content */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  box-shadow: 0 0 10px 0 #000000a1;
  width: 80%;
  max-width: 700px;
  position: relative;
  background-image: url('https://chilipeppers.wpenginepowered.com/wp-content/uploads/2025/03/hero-schedule.jpg');
  background-size: cover;
  border-radius: 25px;
  background-position: center;
  overflow: hidden;
}

/* Close button */
.close {
  position: absolute;
  top: 0px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}

.modal-content::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffffb0;
    content: "";
    z-index: 0;
}

#modalTitle, #modalDescription {
    z-index: 1;
    position: relative;
}

body.cosmic-mode .modal-content::after {
    background-color: #0000008f;
}

body.cosmic-mode #eventModal {
    color: #fff;
}

body.cosmic-mode .modal-content {
    box-shadow: 0 0 13px 0 #ffffff8c;
}
.open_calendar_details {
    position: absolute;
    top: -15px;
    width: 21px;
    right: -3px;
}

#modalTitle {
    color: red;
    font-family: 'Rhinos Rocks';
    text-align: center;
    margin: 10px 0;
}

p#modalDescription {
    background-color: #ffffff8c;
    border-radius: 10px;
    padding: 5px 10px 8px;
    font-family: 'Source', sans-serif;
    font-weight: 500;
    text-align: center;
}

body.cosmic-mode #modalTitle {
    color: #3fe318;
}

body.cosmic-mode p#modalDescription {
    background-color: #000000a6;
    color: yellow;
}

p#modalDescription:empty {
    background-color: unset!important;
    padding: 0!important;
    margin: 0;
}

body.cosmic-mode .toastui-calendar-weekday-event-block:has(.cosmic-event) .theme-night {
    background-color: #5efb42 !important;
    color: #000;
}