#lerning-page {
    display: flex;
    height: 100vh;    
    width: 100%;
    font-family: "Roboto", sans-serif;
    position: relative;
}

#page-content .DatePicker a,
#page-content .DatePicker p,
#page-content .DatePicker span,
#page-content .DatePicker * a,
#page-content .DatePicker * p,
#page-content .DatePicker * span {
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.container.events .blackBackground {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.295);
    height: 100vh;
    width: 100vw;
    display: none;
    z-index: 1010;
}

.container .events:has(#lerning-page) {
    height: 100%;
}

#lerning-page:first-child {
    display: flex;
    justify-content: start;
}

#lerning-page:last-child {
    display: flex;
    justify-content: end;
}

.custom-ec-events {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

.emagic {
    display: flex;
    height: 100%;
    width: 100%;
}

.calendarWrapper {
    display: flex;
    flex-grow: 1;
}

.right-block {
    display: flex;
    height: 100%;
    width: 100%;
}

.eventsFrame {
    display: flex;
    height: 100%;
    width: 100%;
}

.slider-button {
    margin-top: 200px;
    height: 94px;
    width: 14px;
    background-color: #154279;
    border-bottom-left-radius: 25px;
    border-top-left-radius: 25px;
    box-shadow: -2px 0px 4px 0px #00000040;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    display: none;
}

.slider-button img {
    height: 20px;
    width: 7px;
    transform: rotate(180deg);
    transition: transform 0.2s ease-out;
}

.ec-events-content-container {
    width: 100% !important;
    height: 100%;
}

.ec-events-content-container .ec-event-list-square_grid-container {
    display: flex;
    width: 100%;
}

.emagic .ec-events-content-container {
    display: flex;    
}

#lerning-page  .emagic .ec-events .ec-box-card-item:hover {
    box-shadow: none !important;
}

.custom-ec-event-card {
    min-width: 470px;    
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

.card-header-frame {
    display: flex;
    flex-direction: row;
    max-height: 104px;
    min-height: 104px;
    overflow: hidden;
}

.address-frame-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding-top: 8px;
    gap: 6px;
    color: rgb(21, 21, 21);
}

.years-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    line-height: 120%;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #91B1D8;
    color: #91B1D8;
    white-space: nowrap;
    font-weight: bold;
    width: min-content;
}

.address-frame {
    font-size: 15px;
    font-weight: bold;
    line-height: 130%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500 !important;
}

.card-date-frame {
    color: #91B1D8;
    font-weight: bold;
    letter-spacing: -0.05em;
    margin: 0px 20px;
}

.dates-wrapper {
    display: flex;
    justify-content: center;
}

.dates-wrapper-column {
    flex-direction: column;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.day {
    font-size: 48px;
    line-height: 1;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.month {
    font-size: 20px;
    line-height: 1.2;
    max-height: 24px;
    min-height: 24px;
}

.separator {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 6px;
}

.separator-max {
    height: 60px;
}

.separator-mini {
    height: 48px;
}


.dates-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-month {
    font-size: 20px;
    text-align: center;
    width: 100%;
    max-height: 24px;
    min-height: 24px;
    line-height: 1.2;
}

.ec-box-card-image {
    display: flex;
    height: 270px;
    width: 100%;
}

#ec_events_front_views_square_grid .ec-box-card-image img {
    width: 100%;
    height: 100% !important;
}

.custom-ec-event-card.hide-application-button .event-btn-to-event {
    display: none;
}

.custom-calendar-frame {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-ec-events-container {
    display: flex;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    flex-direction: column;
    align-items: start;
}

.events-cards-frame {
    display: flex;
    width: 100%;    
    flex-direction: row;
    gap: 20px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    width: 100%;
}

#all-events-button {
    font-size: 18px;
    font-weight: 700;
    color: #FFF;
    padding: 8px 30px;
    background-color: #91B1D8;
    width: min-content;
    white-space: nowrap;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    margin-right: 8px;
}

.events-cards-frame-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
}

.events-cards-frame-absolute {
    position: absolute;
    overflow: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (max-width: 1020px) {

}

@media (max-width: 860px) {    
   .dates-row span {
        font-size: 48px !important;
   }
}

@media (max-width: 640px) {
    .events-cards-frame {
        max-width: 470px;
    }
}

@media (max-width: 470px) {
    .day {
        font-size: 34px;
    }

    .month {
        font-size: 18px;
    }

    .separator {
        font-size: 34px;
    }

    .dates-row span {
        font-size: 34px !important;
    }

    .years-frame {
       font-size: 12px;
    }

    .ec-box-card-item.ec-border.ec-rounded-1 .ec-box-card-title a {
        font-size: 16px !important;
    }

    .address-frame {
        font-size: 14px;
    }

    .events-cards-frame {
        max-width: 420px;
    }

    .custom-ec-event-card {
        max-width: 420px;
        min-width: 420px;
        cursor: pointer;
    }  
}

@media (max-width: 420px) {
    .custom-ec-event-card {
        max-width: 350px;
        min-width: 350px;
        cursor: pointer;
    }  

    .events-cards-frame {
        max-width: 350px;
    }

}