main {
    padding: 2rem;
}

/* Apply a border to the table for visibility */
table {
    border-collapse: collapse;
    max-width: 100vw; /* set maximum table width to 100% of the viewport width */
    border: 1px solid #ccc;
    width: 100%;
  }

/* Style table header cells */
th {
    background-color: #f2f2f2;
    padding-bottom: 8px;
    padding-top: 8px;
    text-align: center;
    width: calc(100% / 13);
}

/* Style table body cells */
td {
    padding-bottom: 8px;
    padding-top: 8px;
    text-align: center;
}

/* Apply background color to alternating rows for better readability */
tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Style table input */
.tableInput {
    text-align: center;
    margin: 0 auto; /* Center the input field horizontally within the parent container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    padding-top: 8px; /* Add padding to the input fields */
    padding-bottom: 8px; /* Add padding to the input fields */
    border: none;
    background: inherit; /* Inherit the background color from the parent element */
    outline: none; /* Remove the default outline style */
    text-overflow: ellipsis;
}

.tableInput:hover {
    /*border-color: #97a1a0;*/
    border: 1px solid #97a1a0; /* Add a border to the input fields */
    border-radius: 4px; /* Add rounded corners to the input fields */
    background: #ffffff;
}


/* Style table input ENDS*/

/* Style buttons */
.delete-btn {
    padding: 4px 8px;
    margin-right: 4px;
    cursor: pointer;
    border: none;
    background-color: #366f36ff;
    color: white;
    border-radius: 4px;
    margin-top: 2px;
}

/* Style footer */
/* footer {
    background-color: #f2f2f2;
    padding: 16px;
    text-align: center;
    margin-top: 20px;
} */

/* Style main section */
/* .main {
    padding: 20px;
} */

/* Center align text within header */
header {
    text-align: center;
}

.red-btn {
    background-color: #E2725B;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* Style for the "Add Guest" button */
.add-guest-btn {
    background-color: #366f36ff;
    color: white;
    padding: 5px 10px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.add-guest-btn:hover {
    background-color: #366f36ff;
}


/* Style for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Style for the modal content */
.modal-content {
    background-color: #fefefe;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 50vw;
    max-height: 80vh;
    overflow-y: auto;
}

.add-guests-type {
    border-bottom: solid 1px #eee;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 0 25px;
}

.guest-option {
    display: inline-block;
    border: solid 2px #ccc;
    border-radius: 44px;
    width: 60px;
    height: 60px;
    margin: 0 20px;
    position: relative;
    vertical-align: top; /* Adjust the vertical alignment */
}

.guest-option:hover {
    border: solid 2px #000000;
}

.guest-option img {
    margin-top: 25%;
    margin-bottom: 25%;
    max-height: 50%;
    opacity: .4;
    display: inline-block; /* Make sure the image behaves as a block element */
}

.guest-option span {
    margin-top: 30px;
}

.check {
    display: none;
    width: 56px;
    height: 56px;
    background: url('../images/checkmark.svg') no-repeat center center;
    background-size: cover;
    top: 5px;
    right: 5px;
}

/* Style for the close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #666;
}

/* Style for input fields */
input[type="text"],
input[type="email"] {
    width: 80%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Style for the submit button */
#submit-guest {
    background-color: #366f36ff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#submit-guest:hover {
    background-color: #366f36ff;
}

.input-container {
    margin-bottom: 15px; /* Add some vertical spacing between input containers */
    display: flex;
    flex-direction: column;
}

.input-container label {
    margin-bottom: 5px; /* Add spacing between label and textarea */
}

#guest-notes {
    width: 100%; /* Make the textarea match the width of the parent container (modal) */
    padding: 10px;
    box-sizing: border-box;
}

/* Media queries for tablet and phone sizes */
@media (max-width: 768px) { /* Adjust the breakpoint as needed */
    .modal-content {
        max-height: 90vh; /* Adjust this value for smaller screens */
        width: 90%;
        margin: 0 auto; /* Center the modal horizontally */
    }

    #guest-notes {
        padding: 8px; /* Adjust the padding for smaller screens */
    }
}


/* Style for the container that holds the Up and Down buttons */
.move-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers buttons horizontally */
}

/* Optional styling for the buttons if needed */
.move-btn {

    cursor: pointer;
    margin: 5px; /* Adjust as needed */
    padding: 0;
}

.toggle-button-pressed {
    background-color: green; /* Change the background color to indicate pressed state */
    color: white; /* Change the text color for better visibility */
}

/* Styles for the modal */
.modalForImage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* z-index: 9999; Higher z-index to ensure it appears on top of other elements */
}

/* Styles for the modal label */
.modal-label {
    position: absolute;
    top: 10%;
    font-size: 25px;
    color: #ffffff;
    margin-bottom: 20px; /* Add margin between label and image */
    z-index: 9999;
}

/* Styles for the modal content (image) */
.modalForImage .modal-content {
    max-width: 50%; /* Set a maximum width to ensure the modal doesn't get too wide */
    max-height: 50%; /* Set a maximum height to ensure the modal doesn't get too tall */
    width: auto; /* Automatically adjust width to fit the image */
    height: auto; /* Automatically adjust height to fit the image */
    object-fit: contain; /* Maintain aspect ratio of the image */
    border: 2px solid white; /* Optional: Add a border around the image */
    border-radius: 8px; /* Optional: Add border radius for a rounded look */
}

/* Styles for the close button */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    color: black;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    outline: none;
}

.hidden-name {
    visibility: hidden;
    position: absolute;
    left: -9999px;
}
