@font-face {
    font-family: 'Open Sauce';
    src: url('/fonts/OpenSauceSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tan Nimbus';
    src: url('/fonts/tan-nimbus.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    font-family: "Open Sauce", sans-serif;
    background-color: #ead1ba;
    color: black;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 400px;
    margin: 0 auto;
}

.event-card {
    background-color: #f4e9d9;
    border-radius: 10px;
    overflow: hidden;
}


.event-image-container {
    position: relative;
    overflow: hidden;
}


.event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.instagram-link {
    position: absolute;
    top: 10px;
    right: 10px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease;
}


.instagram-link img {
    width: 24px;
    height: 24px;
    display: block;
}


.event-header {
    padding: 10px 15px;
    text-align: center;
}

.event-header h2 {
    font-family: "Tan Nimbus", sans-serif;
    margin: 0;
    font-size: 38px;
}

.event-header .date {
    margin: 0 auto;
    font-size: 20px;
}

#event-date {
    padding-bottom: 5px;
}


.event-details {
    font-size: 16px;
    margin: 12px 0 0;
    display: flex;
    justify-content: space-between;
}

#event-description {
    font-size: 16px;
    padding: 0 15px;
}

.event-name-container {
    display: flex;
    justify-content: center;

}

#event-name {
    padding: 10px 0;
    letter-spacing: 3px;

}

.event-details a {
    text-decoration: underline;
}


.event-content {
    padding: 0 15px 10px;
    margin: 0 auto;

}

.event-content p {
    margin: 5px;
    line-height: 1.2;
    text-align: none;
    /* justify*/
    hyphens: none;
    word-break: normal;
    word-wrap: normal;
    overflow-wrap: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.event-content a {
    text-decoration: underline;
}

.rating {
    position: absolute;
    top: 10px;
    left: 10px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.star {
    color: gold;
    margin-right: 5px;
}

.members img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: -10px;
    border: 2px solid black;
}


/* Ticket styles */
.available-tickets {
    display: none;
    text-align: center;
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.available-tickets.running-low {
    color: #FF6B6B;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes soldOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.sold-out-message {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #FF6B6B;
    animation: soldOut 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: center;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.available-tickets.running-low {
    color: #FF6B6B;
    /* or any attention-grabbing color that fits your theme */
    animation: pulse 2s infinite ease-in-out;
}

.ticket-selection {
    padding: 20px;
}

.ticket-header,
.email-field {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: space-between;
}

.ticket-header label {
    font-size: 16px;
    text-align: left;
}

.quantity-wrapper {
    display: flex;
    align-items: right;
    max-width: 150px;
    padding: 0;
}

.quantity-btn {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: #8b4513;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

/* .quantity-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
} */

.consent-option {
    margin-top: 1.5em;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}


.consent-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    /* background: transparent; */
}

.consent-option input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.consent-option input[type="checkbox"]:checked {
    /* background-color:black; */
    border-color: #8b4513;
}

.consent-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8b4513;
    font-size: 24px;
}

.consent-option label {
    color: black;
    font-size: 0.9em;
    line-height: 1.5;
    cursor: pointer;
}

.consent-option a {
    color: black;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}


.emoji-wrapper {
    display: inline-block;
    transform: translateY(1px);
    margin: 0 2px;
}

.quantity-input {
    background: transparent;
    border: none;
    color: #8b4513;
    height: 40px;
    text-align: center;
    font-size: 18px;
    margin: 0 10px;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: #8b4513;
    color: white;
    cursor: pointer;
    font-family: "Open Sauce", sans-serif;
    font-size: 20px;
    width: 100%;
    transition: all 0.2s;
}

.action-button:disabled {
    background-color: #8b4513;
    cursor: wait;
    opacity: 0.9;
}

@keyframes dots {

    0%,
    20% {
        content: "";
    }

    40% {
        content: ".";
    }

    60% {
        content: "..";
    }

    80% {
        content: "...";
    }

    100% {
        content: "";
    }
}

.action-button.loading::after {
    content: "";
    animation: dots 1.5s infinite;
    margin-left: 4px;
}

.price-options {
    display: none;
    /* Hidden by default */
    margin: 15px 0;
}

.price-options.visible {
    display: block;
}

.discount-option {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.discount-option label {
    font-size: 16px;
    text-align: left;
}

.discount-button {
    display: flex;
    gap: 10px;
}

.discount-wrapper {
    display: flex;
    align-items: right;
    max-width: 150px;
    padding: 0;
}

/* Custom checkbox styling */
.discount-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
    margin: 0;
}

/* Checkmark */
.discount-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: #8b4513;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-button {
    background: none;
    border: 1px solid #8b4513;
    color: #8b4513;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-style: italic;
    padding: 0;
}

.info-container {
    position: relative;
    display: inline-block;
}

.info-tooltip {
    display: none;
    position: absolute;
    background-color: #8b4513;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    top: 100%;
    left: 50%;
    transform: translateX(-20%);
    margin-top: 10px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Arrow for tooltip */
.info-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50px;
    transform: translateX(-20%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

.info-container:hover .info-tooltip {
    display: block;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: #ead1ba;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.imprint-link,
.privacy-link {
    color: #fff;
    text-decoration: none;
}

.footer-img {
    display: flex;
    align-items: center;
    gap: 8px;
}

.imprint-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

.instagram-link-footer {
    color: white;
    display: flex;
    align-items: center;
}


.instagram-link-footer img {
    width: 24px;
    height: 24px;
    display: block;
}

.footer-logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

@media (max-width: 400px) {
    .event-header h2 {
        font-family: "Tan Nimbus", sans-serif;
        margin: 0;
        font-size: 32px;
    }
}

.payment-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.payment-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: #8b4513;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.payment-button:hover {
    background-color: white;
}

.payment-button.loading {
    opacity: 0.7;
    cursor: wait;
}


.payment-button img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}





.email-input {
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border: none;
    width: 60%;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #8b4513;
    font-size: 16px;
    transition: background-color 0.3s;
}

.email-input::placeholder {
    color: rgba(139, 69, 19, 0.4);
    font-style: italic;
    font-size: 12px;
}

.email-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.7);
}

.email-input.invalid {
    border: 1px solid #ff3860;
    background-color: rgba(255, 150, 150, 0.2);
}

.email-error {
    color: #ff3860;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.email-error.visible {
    display: block;
}