/* The Modal (background) */
.tourminator-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.tourminator-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 40%; /* Adjust as per your requirement */
    max-width: 400px; /* Adjust as per your requirement */
    box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    z-index: 1001; /* Ensure it sits over the overlay */
    display: flex; /* new */
    flex-direction: column; /* new */
    justify-content: center; /* new */
    align-items: center; /* new */
}

/* The Close Button */
.tourminator-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute; /* new */
    top: 10px; /* new */
    right: 10px; /* new */
}

.tourminator-modal-close:hover,
.tourminator-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* The Submit Button */
.tourminator-modal-content .update-event-button {
    display: block;
    margin: 10px auto 0; /* top margin of 10px, auto left-right margins */
}




.nav-tab-wrapper {
    margin-right: 20px;
}





/* The Event List Table */
.event-list-table {
    margin-right: 20px;
    width: calc(100% - 20px); /* Full width minus left and right margin */
    table-layout: fixed;
    border-collapse: collapse;  
    border: 1px solid #c3c4c7; 
}

.event-list-table thead th {
    border-top: 1px solid #c3c4c7;  /* Add top border to all th */
    border-bottom: 1px solid #c3c4c7;  /* Add bottom border to all th */
}

/* Add left border to the first th element */
.event-list-table thead th:first-child {
    border-left: 1px solid #c3c4c7;
}

/* Add right border to the last th element */
.event-list-table thead th:last-child {
    border-right: 1px solid #c3c4c7;
}

.event-list-table td, .tourminator-table th {
    padding: 10px;  /* adjust this value to increase or decrease the space around the text */
    vertical-align: middle;  /* centers the text vertically */
}


/* The Event List Header */
.event-list-table th {
    background-color: #ffffff;  /* optional: this gives a different background color to the header row */
    text-align: left;
    padding: 10px;
}

/* The Event List Every Other Row */
.event-list-table tr:nth-child(odd) {
    background-color: #f6f7f7; /* Change this to the color you want */
}

.event-list-table tr:nth-child(even) {
    background-color: #ffffff; /* Change this to the color you want */
}




/* Proper Spacing For Edit & Delete Buttons */
    .event-list-table .edit_event {
        margin-right: 5px;
    }

@media only screen and (max-width: 768px) {
    .event-list-table .edit_event {
        margin-bottom: 10px;
    }



