/* General container styling */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Styling for form groups */
.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

/* Styling for input fields and select dropdown */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
    outline: none;
}

/* Event list styling */
.event-list {
    list-style: none;
    padding: 0;
}

/* Event item styling */
.event {
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.event:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Thumbnail container styling */
.event-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    flex-shrink: 0;
    width: 35%;
    margin-right: 1rem;
}

/* Thumbnail image styling */
.event-thumbnail img {
    width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure the image fits within the container without distortion */
}

/* Event details styling */
.event-details {
    flex: 1;
}

.event-details h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
}

.event-details p {
    margin: 5px 0;
    color: #555;
}

.event-details a.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.event-details a.button:hover {
    background-color: #005177;
}

/* Event image styling */
.event-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Event tags styling */
.event-tag {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

.event-tag:hover {
    background-color: #005177;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination li {
    display: inline;
}

.pagination ul {
    list-style-type: none;
}

.pagination a,
.pagination span {
    margin: 0 5px;
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: rgb(112, 0, 75);
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .active>.page-link, .pagination .page-link.active {
    background-color: rgb(112, 0, 75);
    color: #ffffff !important;
    border-color: rgb(146, 0, 97);
}

.pagination .spacer {
    color: #000000;
    display: inline-block;
    padding: 5px 15px 11px 13px;
}

/* Loading spinner styling */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.loading-spinner .spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #ddd;
    border-top: 4px solid rgb(112, 0, 75);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Styling for the share button */
.share-button {
    margin-left: 10px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.share-button:hover {
    background-color: #5a6268;
}

/* Modal styling */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-left: calc(50vw - 200px);
    margin-top: calc(50vh - 150px);
}

.share-modal-content h3 {
    margin-bottom: 15px;
}

.share-modal-content .share-url {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.share-modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.share-modal-buttons .btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.share-modal-buttons .btn-primary {
    background-color: #0073aa;
    color: #fff;
}

.share-modal-buttons .btn-primary:hover {
    background-color: #005177;
}

.share-modal-buttons .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.share-modal-buttons .btn-secondary:hover {
    background-color: #5a6268;
}

.share-modal-buttons .btn-light {
    background-color: #f8f9fa;
    color: #000;
}

.share-modal-buttons .btn-light:hover {
    background-color: #e2e6ea;
}

#wpfooter {
    display: none;
}

span.select2-selection.select2-selection--multiple {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
    min-height: 50px;
}

span.select2-dropdown.select2-dropdown--below {
    margin-top: 32px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-group {
        min-width: 100%;
    }

    .event-thumbnail {
        width: 100%;
        height: auto;
    }
    .event-thumbnail img {
        max-width: 100%;
        height: auto;
    }
}

/* Siteimprove fix - "Is it clear which page element has focus from the keyboard?" - SB*/
.select2-selection:has(.select2-search__field:focus),
.select2-selection:focus-within {
    color: #495057;
    background-color: #fff;
    border-color: #9ca2b7;
    outline: 0;
    box-shadow: 0 0 0 .25rem #70004B40;
}

/* Siteimprove fix - "Interactive element does not meet minimum size nor spacing" - SB*/
.select2-selection__choice{
    margin: 5px;
}
.select2-selection{
    padding: 0px !important;
}
.select2-search__field{
    min-height: 44px;
    min-width: 44px;
}