.event_panel {
    padding-top: 76px; 
    position: relative;
}

.event_panel_background {
    height: 606px;
    left: 0; 
    top: 0; 
    position: absolute; 
    width: 100%; 
}
 
.event_panel_background::after {
    background: linear-gradient(-180deg,#00162b00,#00162b5e 44%,#252525);
    content:""; 
    height: 100%; 
    left: 0; 
    top: 0; 
    width: 100%; 
    position: absolute;
}

.image_view {
    position: relative; 
    height: 100%; 
    overflow: hidden;
}

.image_container {
    position: relative; 
    top: -7px; 
    left: -7px; 
    height: calc(100% + 14px);
    width: calc(100% + 14px);
}

.image_event {
    width: 100%; 
    height: 100%; 
    display: block;
    object-fit: cover;
}

.event_panel_title {
    position: relative; 
}

.event_panel_title h2 {
    border: solid #ff232b;
    border-width: 0 0 0 8px;
    padding-left: 18px;
    font-family: "Formula1-Bold";
    color: #ffffee;
}

.picker_rail {
    position: relative;
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    top: 30px; 
}

.picker_rail_item {
    width: 86px;
    flex: 1 0 auto;
    height: 76px;
    transition: width .6s cubic-bezier(0, .32, .32, 1);
}

.picker_item_card {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    position: relative; 
    text-align: center;
    width: 100%;
    height: 100%;
}

.picker_item_card::after {
    position: absolute;
    content: ""; 
    background-color: #ff0008;
    height: 4px; 
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity .6s cubic-bezier(0, .32, .32, 1);
}

.picker_item_card:hover::after {
    opacity: 1;
}

.picker_item_day, .picker_item_month {
    color: #ffffffc0;
    font-family: "Formula1-Bold";
}

.picker_item_day {
    font-size: 22px;
    line-height: 28px;
}

.picker_item_month {
    font-size: 14px;
    line-height: 18px;
}

.picker_event {
    position: relative;
    height: 550px;
}

.picker_event_container {
    position: absolute;
    left: 0;
    top: 40px;
    right: 0;   
}

.picker_event_container_active {
    opacity: 1;
    transition: all 1s;
}

.picker_event_container_hidden {
    opacity: 0;
    transition: all 1s;
    z-index: -1;
}

.event_panel_rail {
    display: block; 
    position: relative; 
    top: 125px; 
    width: 100%;
    overflow: hidden;
}

.rail_items {
    height: 700px;
    transform: translateX(350px);
    align-items: center;
    display: flex;
    max-width: 1440px;
    transition: transform .6s cubic-bezier(0,.32,.32,1)
}

.rail_item {
    display: flex; 
    flex-direction: column;
    flex-shrink: 0;
    width: 13%;
    height: 300px;
    justify-content: center;
    position: relative; 
    transition: width .6s cubic-bezier(0, .32, .32, 1), height .6s cubic-bezier(0, .32, .32, 1);
}

.rail_item:not(.expended) {
    cursor: pointer;
}

.rail_item::before {
    content: "";
    position: absolute;
    height: 100%; 
    width: 100%;
    top: 0px; 
    background: radial-gradient(150px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s;
}

.rail_item:hover::before {
    opacity: 1;
}

.rail_item::after {
    border: solid #ffffff28;
    border-width: 0 1px 0 0;
    content: "";
    height: 300px;
    position: absolute; 
    left: 100%;
}

.rail_item:last-child::after {
    border: none;
}

.expended, .collapsed {
    transition-property: transform, opacity;
}

.expended-hidden {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 40px));
    visibility: hidden;
}

.collapsed-hidden {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 40px));
    visibility: hidden;
}

.collapsed, .expended {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute; 
    left: 50%;
    top: 50%; 
    transform: translate(-50%, -50%);
    transition: all .3s cubic-bezier(0, .32, .32, 1);
    width: calc(100% - 8px); 
    opacity: 1;
    transition-property: transform;
}

.collapsed {
    height: 236px;
}

.expended_event_card, .picker_event_card {
    display: flex; 
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 32px 36px 28px; 
}

.expended_track_layout, .picker_track_layout {
    height: 96px;
    width: 164px; 
    object-fit: scale-down;
}

.title_expended_card, .title_picker_card {
    font-family: "Formula1-Bold";
    text-align: center;
    font-size: 22px;
    line-height: 28px;
    padding-top: 20px;
}

.date_expended_card, .date_picker_card {
    font-family: "Formula1-Bold";
    margin-top: 36px; 
    text-align: center;
    font-size: 18px; 
    line-height: 24px;
}

.location_expended_card, .location_picker_card {
    align-items: center;
    display: flex;
    padding-top: 8px;
}

.location_expended_card::after {
    border-bottom: solid 1px #ffffff28;
    content: "";
    top: 72%; 
    position: absolute; 
    width: 250px;
}

.location_expended_flag, .location_picker_flag {
    align-self: flex-start;
    height: 14px;
    width: auto;
    margin-right: 8px;
    margin-top: 5px; 
}

.location_expended_text, .location_picker_text {
    display: block;
    font-size: 12px; 
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more_expended_card {
    padding-top: 40px;
}

.more_info {
    display: inline-block;
    margin-top: 60px;
    padding: 10px 25px;
    background-color: #ff232b;
    border: solid 2px transparent;
    border-radius: 10px;
    font-family: "Formula1-Regular";
    font-size: 14px;
    color: #ffffee;
    text-decoration: none; 
    transition: all 0.4s ease 0s;
}

.more_info:hover {
    animation: pulsate 1s ease-in-out; 
}

.overlay {
    position: absolute; 
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
    opacity: 0;
    visibility: hidden;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.overlay:target .popup {
    animation: popup 0.5s linear; 
}

.popup {
    width: 400px;
    padding: 20px; 
    background: #ffffee;
    border-radius: 5px; 
    position: absolute;
    left: 50%;
    top: 17%; 
    transform: translate(-50%, 0); 
    -webkit-transform: translate(-50%, 0);
}

.popup p {
    font-family: "Formula1-Regular";
    font-size: 14px;
    line-height: 24px; 
    margin: 0;
    color: #252525;
}

.popup .close {
    position: absolute;
    top: 10px; 
    right: 20px; 
    transition: all 0.4s;
    font-size: 30px; 
    line-height: 30px; 
    text-decoration: none;
    font-family: "Formula1-Bold";
    color: #252525;
}

.popup .close:hover {
    color: #ff0008; 
}

.popup .close {
    animation: popout 1s ease-out; 
    -webkit-animation: popout 1s ease;
}

.collapsed_event_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
    padding: 0 16px;
    cursor: pointer;
}

.date_card {
    display: flex;
    flex-direction: column;
    position: relative;    
    justify-content: center;
    text-align: center;
}

.date_card_day, .date_card_month {
    color: #ffffff70; 
}

.date_card_day {
    font-family: "Formula1-Bold";
    font-size: 26px;
    line-height: 40px;
}

.date_card_month {
    font-size: 20px;
    line-height: 28px;
    margin-top: 6px;
}

.location_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 36px;
    max-height: 52px;
    width: 100%; 
    overflow: hidden;
}

.location_flag {
    width: auto; 
    height: 20px;
    margin-bottom: 8px;
    align-self: center;
}

.location_text {
    overflow: hidden; 
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    font-size: 14px;
    line-height: 24px;
}

.rail_timing {
    transform: translate(0);
    transition: transform 50ms;
}

@keyframes pulsate {
    0% {
        box-shadow: 0 0 20px #ff0008, 0 0 30px #fd545a;
    }
}

@keyframes popup {
    from { 
        top: 0;
        opacity: 0;
    }
    to { 
        top: 100px; 
        opacity: 1;
    }
}

@keyframes close {
    from{
        transform:scale(0)
    }
    80%{
        transform:scale(1.2)
    }
    to{
        transform:scale(1)
    }
}

.rail_navigation {
    display: flex;
    justify-content: space-between;
    left: 0; 
    position: absolute; 
    top: 50%; 
    width: 100%; 
}

.rail_navigation_arrow_box {
    display: flex; 
    align-items: center;
    justify-content: center;
    background-color: #ffffee; 
    width: 48px;
    height: 64px;
    top: 50%;
    position: absolute;
    transform: translateY(-50%); 
}

.rail_navigation_arrow_box:first-child {
    visibility: hidden;
}

.rail_navigation_item_next {
    border-radius: 0 7px 7px 0; 
    left: 0;
}

.rail_navigation_item_prev {
    border-radius: 7px 0 0 7px; 
    right: 0;
}

.rail_navigation_arrow {
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmV9LmNscy0ye2ZpbGw6IzAwMH08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNCAwdjI0SDBWMCIgZGF0YS1uYW1lPSJCb3VuZGluZyBhcmVhIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJtNy41NiAxMi4wOSA1LjgzIDUuODJhLjUuNSAwIDAgMCAuNzEgMGwuMzUtLjM1YS41MS41MSAwIDAgMCAwLS43MWwtNS4xMi01LjEyIDUuMTItNS4xMWEuNTEuNTEgMCAwIDAgMC0uNzFsLS4zNS0uMzVhLjUuNSAwIDAgMC0uNzEgMGwtNS44MyA1LjgyYS41MS41MSAwIDAgMCAwIC43MXoiLz48L3N2Zz4=) no-repeat 50%; 
    height: 20px;
    width: 20px;
}

.left_arrow {
    transform: rotate(0deg);
}

.right_arrow {
    transform: rotate(180deg);
}

/* Tablett mode */
@media only screen and (max-width: 1023px) {
    .event_panel_title {
        margin-left: 40px; 
        width: calc(99.99% - 80px); 
    }

    .event_panel_title h2 {
        font-size: 28px;
    }

    .event_panel_picker {
        display: block;
        position: relative;
        overflow-x: hidden;
    }

    .event_panel_rail {
        display: none; 
    }
}

/* Desktop mode under 1440px */
@media only screen and (min-width: 1024px) {
    .event_panel_picker {
        display: none; 
    }

    .event_panel_title {
        margin-left: 64px; 
        width: calc(99.99% - 128px); 
    }

    .event_panel_title h2 {
        font-size: 30px;
    }

    .location_expended_card::after {
        left: 15%;
    }
}

/* Desktop mode above 1440px */
@media only screen and (min-width: 1440px) {
    .event_panel_title h2 {
        font-size: 34px;
    }

    .location_expended_card::after {
        left: calc(100% - 75%); 
    }
}