* {
    font-family: raleway, Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
}

#logo {
    max-width: 100px;
    /* position: fixed;*/
    margin: 1em;
}

.sorry_header {
    margin-top: 15%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
}

.top_section {
    margin-bottom: 2%;
    display: block;
    width: 80%;
    line-height: 2;
}


.event_title {
    margin-top: 1%;
}

.hello_header {
    margin: 2%;
}

.add_event_name {
    margin: 2%;
}

.add_event_form_title {
    margin-top: 1em;
}

#add_event_description {
    line-height: 1.5;
}

table {
    text-align: center;
}

.img_container {
   width: 100vw;
}

img {
    width: 700px;
    border-radius: 5px;
    margin: 1em;
}

#info_text p {
    margin: 0;
}

.info_text_end {
    margin-bottom: 2% !important;
}

p {
    font-size:large;
    margin-bottom: 0;
}

img:hover {
    opacity: .9;
}

.form_container > p {
    font-size: x-large;
}

#rsvp_form {
    margin-top: 1rem;
}

.radio_wrapper {
    margin-top: 1em;
}

.submit_button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5%;
}

.confirmation_header {
margin-top: 5%;
}


.no_query>p {
    margin-top: 40%;
}

.no_show {
    display: none;

}

.show {
    display: block;
}


#guest_array {
    margin: auto;
    margin-bottom: 4%;
}

.modal {
    max-width: 50%;
    display: none; 
    position: fixed;
    z-index: 1;
    margin-left: 45%;
    margin-top: 15%;
    box-shadow: 0 10px 20px rgba(black, 0.2);
   /* background-color: rgba(0,0,0,0.4); */

}

.modal-content {
    font-size: smaller;
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 10px;
    border: 1px solid #888;
    width: 80%; 
}

.close {
    text-align: left;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
   
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#input_guest_names_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;   
}

#add_event_wrapper {
    margin-bottom: 1em;
}

.guest_radio_buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.form_container {
    line-height: 2em;
}


@media only screen and (max-width: 600px) {
    
    .img_container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
    }

    img {
        width: 100vw;
    }

    .modal {
        position: absolute;
        margin: 0;
        top: 0;
        width: 100%; /* Full width */
        max-width: 100vw;
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        display: none; 
        z-index: 1;
        box-shadow: 0 10px 20px rgba(black, 0.2);
        background-color: rgba(0,0,0,0.4);
}   
}

.footer_wrapper {
    position: absolute;
    bottom: 0;
    text-align: center;
    left: 50%;         
    transform: translateX(-50%); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 5em;
}

.footer {
    display: flex;
    height: 5em;
}

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