/* Countdown CSS */
.countdown {
    text-align: center;
    margin-top: 40px;
    display: none; /* Initially hidden */
}
.countdown h2 {
    color: #ffa202!important;
    font-weight: bold;
    font-size: 60px;
    line-height: 1 !important;
    display: inline;
}
.countdown br {
    content: "";
    display: block;
    font-size: 100%;
}
.countdown {
    font-size: 38px;
    letter-spacing: 2px;
    color: white;
}
@media (max-width: 600px) {
    .countdown {
        padding: 0 53px;
    }
    
    .countdown h2 {
        font-size: 38px;
        line-height: 1;
        display: block;
    }
    .countdown br {
        font-size: 75%;
    }
    .countdown {
        line-height: .8;
    }
}

/* Ensure countdown colors override ticket-sales !important rules */
.ticket-sales .countdown {
    color: white !important;
    letter-spacing: 2px !important;
    font-size: 38px !important;
}
.ticket-sales .countdown h2 {
    color: #ffa202 !important;
    font-weight: bold !important;
    font-size: 60px !important;
    display: inline !important;
}

/* On-sale state uses the existing green */
.countdown.on-sale h2 {
    color: #b9ff2c !important;
}
.ticket-sales .countdown.on-sale h2 {
    color: #b9ff2c !important;
}

@media (max-width: 600px) {
    .ticket-sales .countdown {
        padding: 0 53px;
    }
    
    .ticket-sales .countdown h2 {
        font-size: 38px;
        line-height: 1;
        display: block;
    }
    .ticket-sales .countdown br {
        font-size: 75%;
    }
    .ticket-sales .countdown {
        line-height: .8;
    }
}

/* Touring Image Styling */
#touring-image {
    max-width: 763px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}
#touring-image img {
    width: 763px;
    margin-left: auto;
    margin-right: auto;
}
@media only screen and (max-width: 780px) {
    #touring-image {
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #touring-image img {
        max-width: 90%;
        /*content: url('/wp-content/uploads/2024/06/WA-Shrek-Tour-Mobile-1280x340.webp');*/
    }
}


 /* Ticket Sales Styling */
 .ticket-sales {
    text-align: center;
    color: #000000 !important;
    line-height: 1;
    padding-top: 12px;
}
.ticket-sales h2 {
    color: #ff5900 !important;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 24px;
    line-height: 1.8;
}
.ticket-sales p, .ticket-sales .facebook-event {
    font-size: 50px;
    /*margin-bottom: 13px;*/
    margin-bottom:26px;
    padding-bottom: 0px;
    color: white;
    text-decoration: none;
}
.ticket-sales a:hover {
    text-decoration: underline;
}
.ticket-sales b {
    color: #b9ff2d;
    font-weight: bold;
}
/* Booking Button Styles */
.booking-button-link {
    display: none; /* Initially hidden */
    position: relative;
    width: 262px; /* Updated width */
    height: 67px; /* Updated height */
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 40px;
}
.booking-button, .booking-button.hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/uploads/2024/07/Buy-Now.webp');
    background-size: 262px 135px; /* Updated background size */
    transition: opacity 0.3s ease;
}
.booking-button {
    background-position: 0 0;
}
.booking-button.hover {
    background-position: 0 -68px; /* Updated to correct hover position */
    opacity: 0;
}
.booking-button-link:hover .booking-button.hover {
    opacity: 1;
}
/* Mobile specific styles */
@media (max-width: 600px) {
    .ticket-sales p, .ticket-sales facebook-event {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 39px;
        padding-bottom: 34px;
    }
    .booking-button-link {
        width: 214px; /* 35% of original width for mobile */
        height: 59px; /* 35% of original height for mobile */
        margin-top: 0px;
        display: none; /* Initially hidden for mobile */
    }
    .booking-button, .booking-button.hover {
        background-size: 214px 118px; /* Adjusted background size for 35% scale */
    }
    .booking-button.hover {
        background-position: 0 -60px; /* Correct hover position for 35% scale */
    }
    .ticket-sales h2 {
        font-size: 21px;
        line-height: 1.6;
        display: block;
    }
}
@media (max-width: 600px) {
    .ticket-sales p:last-child {
        padding-bottom: 0;
    }
}


#upcoming-shows {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.booking-title {
    font-size: 56px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: solid 4px #b9ff2d;
    max-width: 316px;
    margin-left: auto;
    margin-right: auto;
}

.outer-wrapper {
    position: relative;
    width: 94%;
    margin: 0 auto;
    overflow: visible; /* Allows buttons to overflow */
}

.carousel-wrapper {
    overflow: hidden; /* Hides overflow of the show cards */
    width: 100%;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 25%;
    box-sizing: border-box;
    padding: 10px;
}

.show-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 10px;
}

.show-card .selling-fast {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
   /* background-color: #b9ff2d;
    color: #000;*/
    color:white;
    background-color:red;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.show-card .city,
.show-card .dates,
.show-card .venue {
    margin-bottom: 10px;
}

.show-card .alternate-booking-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
}

.show-card .alternate-booking-button:hover {
    background-color: #469fff;
}

.show-card .facebook-link {
    position: absolute;
    bottom: 15px;
    right: 13px;
    width: 32px;
    height: 32px;
    background-color: #3b5998; /* Facebook blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
}

.show-card .facebook-link:hover {
    background-color: #5f93ff;
}

.show-card .alternate-booking-button:hover,
.show-card .facebook-link:hover {
    -webkit-transition: background-color 200ms linear;
    -ms-transition: background-color 200ms linear;
    transition: background-color 200ms linear;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Ensures buttons don't block interaction with carousel items */
}

.carousel-button {
    background-color: white;
    border: none;
    color: black;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    pointer-events: all; /* Re-enables button interaction */
    opacity: 1;
}

.carousel-button#prevBtn {
    margin-left: -20px; /* Adjusts position */
}

.carousel-button#nextBtn {
    margin-right: -20px; /* Adjusts position */
}

.carousel-button#nextBtn:hover,
.carousel-button#prevBtn:hover {
    opacity: 0.8 -webkit-transition: opacity 200ms linear;
    -ms-transition: opacity 200ms linear;
    transition: opacity 200ms linear;
}

.city {
    font-size: 36px;
}

.dates {
    font-size: 22px;
    font-weight: bold;
    padding-top: 7px;
}

.venue {
    font-size: 21px;
    padding-top: 3px;
}

.city,
.dates,
.venue {
    margin-left: 3px;
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 100%;
    }
}

#upcoming-shows {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.booking-title {
    font-size: 56px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: solid 4px #b9ff2d;
    max-width: 316px;
    margin-left: auto;
    margin-right: auto;
}

.outer-wrapper {
    position: relative;
    width: 94%;
    margin: 0 auto;
    overflow: visible; /* Allows buttons to overflow */
}

.carousel-wrapper {
    overflow: hidden; /* Hides overflow of the show cards */
    width: 100%;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 25%;
    box-sizing: border-box;
    padding: 10px;
}

.show-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 10px;
}

.show-card .selling-fast {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    /*background-color: #b9ff2d;
    color: #000;*/
    color:white;
    background-color:red;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.show-card .city,
.show-card .dates,
.show-card .venue {
    margin-bottom: 10px;
}

.show-card .alternate-booking-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
}

.show-card .alternate-booking-button:hover {
    background-color: #469fff;
}

.show-card .facebook-link {
    position: absolute;
    bottom: 15px;
    right: 13px;
    width: 32px;
    height: 32px;
    background-color: #3b5998; /* Facebook blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
}

.show-card .facebook-link:hover {
    background-color: #5f93ff;
}

.show-card .alternate-booking-button:hover,
.show-card .facebook-link:hover {
    -webkit-transition: background-color 200ms linear;
    -ms-transition: background-color 200ms linear;
    transition: background-color 200ms linear;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Ensures buttons don't block interaction with carousel items */
}

.carousel-button {
    background-color: white;
    border: none;
    color: black;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    pointer-events: all; /* Re-enables button interaction */
    opacity: 1;
}

.carousel-button#prevBtn {
    margin-left: -20px; /* Adjusts position */
}

.carousel-button#nextBtn {
    margin-right: -20px; /* Adjusts position */
}

.carousel-button#nextBtn:hover,
.carousel-button#prevBtn:hover {
    opacity: 0.8 -webkit-transition: opacity 200ms linear;
    -ms-transition: opacity 200ms linear;
    transition: opacity 200ms linear;
}

.city {
    font-size: 36px;
}

.dates {
    font-size: 22px;
    font-weight: bold;
    padding-top: 7px;
}

.venue {
    font-size: 21px;
    padding-top: 3px;
}

.city,
.dates,
.venue {
    margin-left: 3px;
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 100%;
    }
}

/*Sold Out Homepage CSS */
.show-container {
    position: relative;
    /* Ensure that each show has a relative position */
    padding:20px;
    margin-bottom:30px;
}

.sold-out-overlay {
    border: rgb(0 163 255 / 0.3) 5px solid;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(135deg, rgba(0, 432, 0, 0.27), rgba(255, 255, 255, 0.1)); /* Black to white gradient */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    display: none; /* Hidden initially */
    border-radius:80px;
}

.show-container.sold-out .sold-out-overlay {
    display: flex; /* Show overlay when the 'sold-out' class is added */
}
