body {
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.badge {
    height: 15px;
}

.is-horizontal {
    display: flex;
    flex-direction: column;
}

.is-horizontal .card-image {
    flex: 1.25;
    flex-shrink: 1;
}

.is-horizontal .card-image .image {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.is-horizontal .card-image .image img {
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.is-horizontal .card-content {
    flex: 3;
}

.is-horizontal .card-content .content {
    flex: 1;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.is-cursor-pointer {
    cursor: pointer !important;
}

.transform {
    -webkit-transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.is-duration-300 {
    transition-duration: 0.3s;
}

/* Adding these mobile styles next */
@media screen and (max-width: 768px) {
    .mobile-padding {
        padding: 0.5rem !important;
    }

    .is-horizontal {
        flex-direction: column;
    }

    .section {
        padding: 0 !important;
        height:100vh;
    }

    .floating-content .performances-section {
        width: 100%;
        background-color: white;
    }

    .floating-content .card-footer {
        width: 100%;
        padding: 1rem;
    }

    .floating-content {
        position: relative;
        margin-top: -50px;
    }

    .info-card {
        margin: 0 15px;
        border-radius: 8px;
        padding: 20px;
        width: 90%;
        box-sizing: border-box;
    }

    /* Add responsive font scaling */
    .info-card .card-content .is-size-3 {
        font-size: 1.3rem !important;  /* Smaller size for event name */
        /* white-space: nowrap; */
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .info-card .card-content .is-size-5 {
        font-size: 1rem !important;    /* Smaller size for short text */
    }

    .info-card .card-content .is-size-6 {
        font-size: 0.875rem !important; /* Smaller size for description */
    }

    .info-card .card-content .is-size-7 {
        font-size: 0.75rem !important;  /* Smaller size for date range */
    }

    .performances-section {
        /* margin: 15px; */
    }
}

/* Adding card-image styles */
.card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .is-horizontal .card-image .image img {
        border-top-left-radius: 0.25rem;
        border-top-right-radius: 0;
        border-bottom-left-radius: 0.25rem;
        border-bottom-right-radius: 0;
    }
}

/* Adding header and card layout styles */
.main-header-title-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header-title {
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.2rem;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
    display: inline-block;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
}

@media screen and (min-width: 768px) {
    .main-header-title {
        font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    }
}

.card-footer {
    padding: 1.5rem;
    display: block;
}

.date-group {
    margin-bottom: 1.5rem;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
}

.date-group .subtitle {
    color: #363636;
    border-bottom: 2px solid #dbdbdb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.columns.is-multiline {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column.is-4-tablet.is-3-desktop {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0.75rem;
}

@media screen and (max-width: 768px) {
    .column.is-4-tablet.is-3-desktop {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .next {
        margin-right: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .column.is-4-tablet.is-3-desktop {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 0;
    }

    .card {
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .card-image {
        height: 250px;
    }

    .card-content {
        padding: 2rem;
    }

    .card-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem 2rem;
    }

    .card-footer-item {
        flex: 1;
        margin: 0 0.5rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 849px) {
    .columns.is-desktop {
        position: relative;
        margin: 0;
        /* min-height: 400px; */
    }
    
    .column.is-5 {
        position: absolute;
        right: 0;
        top: -15%;
        bottom: 0;
        width: 45%;
        padding: 0;
    }
    
    .column.is-5 > div {
        height: 100%;
        background-size: cover;
        background-position: center;
        border-radius: 0.25rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .column.is-7 {
        position: relative;
        z-index: 1;
        width: 65%;
    }
}

/* Desktop view - terug naar origineel */
@media screen and (min-width: 850px) {
    .columns.is-desktop {
        position: relative;
        margin: 0;
    }
    
    .column.is-5 {
        position: absolute;
        right: 0;
        top: -20%;
        bottom: 0;
        width: 41.66666%;
        padding: 0;
    }
    
    .column.is-5 > div {
        height: 120%;
        background-size: cover;
        background-position: center;
        border-radius: 0.25rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* Mobile Event View Styles */
.mobile-container {
    position: relative;
}

.event-image {
    position: relative;
    z-index: 0;
}

.floating-content {
    position: absolute;
    top: 5em;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

.info-card {
    width: 75%;
    margin-left: 1rem;
}

#addToCartButtons-mobile {
    width: 100%;
    margin-top: 1rem;
    background-color: white;
}

@media screen and (min-width: 769px) {
    #addToCartButtons-desktop {
        margin-top: 5em;
    }
}