body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Adjust based on the height of the h1 element */
    box-sizing: border-box; /* Include padding and borders in the width and height */
}

.title-bar {
    background-color: #333; /* Dark grey background */
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Align items vertically */
    justify-content: center; /* Center items horizontally */
}

.back-button {
    position: absolute;
    left: 20px; /* Adjust as needed */
    background-color: #f5f5f5; /* Light grey background for the button */
    color: black; /* Button text color */
    border: none;
    padding: 10px 15px;
    margin-right: 20px; /* Space between button and title */
    border-radius: 5px; /* Optional: Rounded corners */
    font-size: 1em; /* Adjust as needed */
}

h1 {
    margin: 0; /* Remove margin */
    flex-grow: 1; /* Ensures title takes up remaining space */
    /* Other styles remain the same... */
}

.container {
    width: 80%;
    margin: auto;
}
.field {
    margin-bottom: 20px;
}
.label {
    font-weight: bold;
    margin-bottom: 20px;
}
.label_simple {
    font-weight: semi-bold;
    margin-bottom: 10px;
}

.payment-button {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 25px; /* Larger font size */
    padding: 15px 30px; /* Larger padding */
    background-color: #4dd2ff; /* Light blue background */
    color: #0000FF; /* Blue text, similar to hyperlink color */
    border: none; /* Optional: remove border if present */
    border-radius: 5px;
}

.payment-button:hover {
    background-color: #0abaff; /* Slightly darker blue on hover for visual feedback */
    /* Other hover effects as needed */
}

.event-image {
    position: relative;
    display: inline-block; /* This makes the div fit the image size */
    border: 1px solid black;
    border-radius: 5px;
    margin-bottom: 30px;
    box-sizing: border-box; /* Include padding and borders in the width and height */
    width: 75%; /* Set width to 75% of the screen width */
}

.event-image .logo {
    position: absolute;
    top: 0; /* Aligns the logo to the top of the container */
    right: 0; /* Aligns the logo to the right of the container */
    height: 20%;
    width: auto; /* Adjusts width to maintain aspect ratio */
    z-index: 10; /* Ensures the logo stays on top of other elements */
}

.event-thumbnail, .event-details {
    flex-basis: 100%; /* Makes each thumbnail and its details take full width of their container */
    max-width: 75%; /* Set max-width to 75% of the screen width */
    margin: auto; /* Centers the thumbnails if they are smaller than the page width */
}

.event-image img {
    display: block; /* Removes any extra space below the image */
    width: 100%; /* Ensures the image is responsive and fits the container */
    height: auto;
    box-sizing: border-box; /* Include padding and borders in the width and height */
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Ensures it matches the image width */
    background-color: rgba(101, 101, 101, 0.735);
    color: white;
    text-align: left;
    box-sizing: border-box; /* Prevents padding from affecting width */
    font-size: 14px; /* Reduce font size */
    padding: 10px;
}

.event-name {
    font-size: 1.2em; /* Smaller font */
    padding: 5px;
    text-transform: uppercase;
}

.event-description {
    font-size: 1em;
    padding: 5px;
}

.event-details {
    padding: 10px; /* Example padding */
    text-align: left; /* Center the text, if desired */
    /* Other styles as needed */
}

@media screen and (max-width: 800px) {
    body {
        font-size: 18px; /* Increase font size */
    }

    /* You can add specific styles for other elements as well */
    .label {
        font-size: 20px; /* Example for label class */
    }

    .event-thumbnail, .event-image {
        width: 100%; /* Make thumbnails and images full width on small screens */
        max-width: 100%;
    }

    .text-overlay {
        padding: 5px; /* Reduce padding */
    }
}
