:root {
    --background: #f2e8de;
    --light-background: #fff4eb;
    --primary: #125e62;
    --primary-dark: #125e62;
    --secondary: #E21212FF;
    --title-font: "Handlee";
    --second-font: "Caveat";
}

*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
}

.architects-daughter-regular {
    font-family: "Architects Daughter", serif;
    font-weight: 400;
    font-style: normal;
}

.caveat-400 {
             font-family: "Caveat", cursive;
             font-optical-sizing: auto;
             font-weight: 400;
             font-style: normal;
 }

.handlee-regular {
    font-family: "Handlee", cursive;
    font-weight: 400;
    font-style: normal;
}


.ms-madi-regular {
    font-family: "Ms Madi", cursive;
    font-weight: 400;
    font-style: normal;
}

.indie-flower-regular {
    font-family: "Indie Flower", serif;
    font-weight: 400;
    font-style: normal;
}

.zeyada-regular {
    font-family: "Zeyada", cursive;
    font-weight: 400;
    font-style: normal;
}

.caveat-brush-regular {
    font-family: "Caveat Brush", cursive;
    font-weight: 300;
    font-style: normal;
}

.atma-light {
    font-family: "Atma", system-ui;
    font-weight: 300;
    font-style: normal;
}

.atma-regular {
    font-family: "Atma", system-ui;
    font-weight: 400;
    font-style: normal;
}

.atma-medium {
    font-family: "Atma", system-ui;
    font-weight: 500;
    font-style: normal;
}

.atma-semibold {
    font-family: "Atma", system-ui;
    font-weight: 600;
    font-style: normal;
}

.atma-bold {
    font-family: "Atma", system-ui;
    font-weight: 700;
    font-style: normal;
}


html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    font-family: var(--second-font), sans-serif;
    font-weight: 300;
}

.main {
    background-color: var(--background);
    margin: 2rem;
    border:solid 5px var(--primary);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    display: flex;
    min-height: 92svh;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--primary-dark);
    font-size: 1.6rem;
}

article {
    margin: 2rem 0 0 0;
    padding: 0;
}

h1 {
    margin: 2rem;
    font-size: 5rem;
    font-weight: 700;
    font-family: var(--title-font), sans-serif;
    color: var(--primary);
}

h2 {
    font-family: var(--second-font), sans-serif;
    font-weight: 700;
}

h3, h4 {
    margin: 0.5rem;
    font-weight: bold;
}

h5 {
    margin: 0.3rem;
}

a {
    text-decoration: none;
    color: var(--primary-dark);
}

table {
    color: var(--primary);
    margin: 3rem auto;
    padding: 0.3rem;
    min-width: 80vw;

    & td, th {
        text-align: center;
        border-radius: 0.2rem;
        padding: 0.5rem 0;
        background-color: var(--light-background);
    }

    & th {
        font-size: 1.1rem;
    }
}

.no {
    color: rgba(188, 188, 188, 0.79);
}

a:hover {
    color: var(--secondary);
}

label {
    display: block;
}

.flexRow {
    display: flex;
    margin: 0 auto;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

input, textarea {
    background-color: var(--light-background);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    border: solid 1px var(--primary);
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-family: var(--second-font), sans-serif;
}

input[type='submit']{
    padding: 0.4rem 0.8rem;
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: 0.5rem;

    &:hover {
        background-color: var(--primary-dark);
        color: var(--background);
        border-color: var(--background);
        cursor: pointer;
        transform: scale(1.1);
    }
}

input[type='text'], textarea {
    width: 250px;
    text-align: center;
    font-size: 1.5rem;
}

input[type='text'] {
    padding: 0.4rem;
}

input[type='radio'] {
    margin-inline: 0.6rem;
    transform: scale(1.4);
    accent-color: var(--primary);
    outline-color: var(--primary-dark);
    color: var(--primary-dark);
}

input[type='number'] {
    padding-left: 0.3rem;
    text-align: center;
    font-size: 1.5rem;
}

#nameTitle {
    max-width: 75%;
    max-height: 70vh;
    margin: 2rem 0 1rem 0;
}

.address {
    font-size: 2.2rem;
}

.innerNameContainer {
    display: flex;
    flex-direction: column;
}

.outerNameContainer, .radioContainer {
    display: flex;
    gap: 2rem;
    padding: 1rem 1rem 0 1rem;
    justify-content: center;
    align-items: center;
}

.underlined {
    text-decoration: underline;
    margin-top: 1rem;
}

.directions {
    font-size: 1rem;
    padding: 0.5rem;
}

.photoWrapper{
    display: flex;
    justify-content: center;
    margin: 0 auto;
    overflow: clip;
}

.photo {
    max-height: 50vh;
    border-radius: 1rem;
}

.attendingCount {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0 0 0;
    color: var(--primary);
}

#nameDiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.newGuestDiv {
    padding: 1.2rem 0;
    border-bottom: solid 1px rgba(198, 198, 198, 0.78);
}

.newNameInput {
    width: 250px;
}

.newDietInput {
    margin-bottom: 1rem;
}

.newNameLabel, .newDietLabel {
    width: 250px;
    text-align: left;
    font-size: 1.2rem;
}

.rsvpDiv {
    margin: 1.5rem 0;

    & h3 {
        font-size: 1.3rem;
    }
}

.removed {
    display: none;
}

.smallText {
    font-size: 1rem;
}

/* GALLERY */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.thumbnail {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail img:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    align-items: center;
    justify-content: center;
    gap: 2%;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* Modal navigation buttons */
.navBtn {
    font-size: 36px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
}

.navBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* END GALLERY */


@media screen and (max-width: 620px) {

    .outerNameContainer {
        flex-direction: column;
    }
  
    .flexRow {
        display: flex;
        margin: 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        text-align: left;
    }
}
