@font-face {
    font-family: parisienne;
    src: url(./fonts/Parisienne/Parisienne-Regular.ttf);
}

@font-face {
    font-family: space_mono;
    src: url(./fonts/Space_Mono/SpaceMono-Regular.ttf);
}

html {
    --olive_green: #6B775C;
    --sage_green: #B2B7A5;
    --cream: #FBF9F0;

    /* Mobile */
    --small-font: 1rem;
    --medium-font: 1.5rem;
    --large-font: 2.5rem;


    /* Computer */
    --csmall-font: 1.5rem;
    --cmedium-font: 2rem;
    --clarge-font: 3rem;

}

body {
    margin: 0;
    background-color: var(--cream);
}

h1 {
    font-family: parisienne;
}

#home img, #home figure {
    width: 90vw;
    height: auto;
}

@media screen and (min-width: 1024px) {
    #home img, #home figure {
        width: 15vw;
        height: auto;
    }

    header ul {
        gap: 3.5vw;
    }

    details > summary {
        font-size: var(--cmedium-font);
    }

    h1 {
        font-size: var(--clarge-font);
    }

    h2 {
        font-size: var(--cmedium-font);
    }

    h3 {
        font-size: var(--csmall-font);
    }
}

#home {
    padding: 5vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}
.photosG {
    display: flex;
    flex-direction: row;
}

ul a {
    text-decoration: none;
    color: var(--olive_green);
    text-shadow: 2px 2px 2px var(--cream);
    font-family: space_mono;
}

header ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 2.5vh 0;
    position: fixed;
    top: -20px;
    width: 100%;
    background-color: var(--cream);
    z-index: 100;
    justify-content: center;
    align-items: center;
    border-bottom: #6B775C 1px solid;
}

header  {
    text-align: center;
}

h3 {
    font-family: space_mono;
    color: var(--olive_green);
    margin: 0;
    padding: 0;
    font-size: var(--csmall-font);
    text-align: center;
}

#faq h3 {
    padding: 2vh 0;
}

#faq, #our-story, #rsvp {
    padding-top: 7.5vh;
}

#faq {
    background-color: var(--sage_green);
    padding-bottom: 7.5vh;
    display: grid;
    grid-template-columns: repeat(3, minmax(min(300px, 100%), 1fr));;
    gap: 2rem;
    align-items: start;
    justify-content: center;
}

.faq-column {
  box-sizing: border-box;
  width: 100%;
  padding: 0 2.25vw;
}

#faq h2 {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
  justify-self: center;
}

h2 {
    font-family: parisienne;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 0 2.5vw;
}
#our-story {
    min-height: 80vh;
    padding-bottom: 7.5vh;
}

#rsvp {
    min-height: 80vh;
    padding-bottom: 7.5vh;
}  

p {
    font-family: space_mono;
    font-size: var(--small-font);
    padding: 0 10vw;
    text-align: center;
}  

details > summary {
    text-align: center;
    font-family: parisienne;
    list-style: none; /* Removes default marker */

}

details > summary, details > p {
    text-transform: lowercase;
}



details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  content: "";
}

details summary::before {
  content: "+";
  font-weight: bold;
  margin-left: 0.5rem;
  color: var(--olive_green);
  transition: all 0.3s ease;
  font-size: 5vh;
  align-items: center;
}

details[open] summary::before {
  content: "–";
}

a {
    text-decoration: none;
    color: inherit;
}

.contact-us {
    background-color: var(--sage_green);
    color: var(--cream);
    padding: 0 1rem;
}

#contact {
    background-color: var(--olive_green);
    color: var(--cream);
    height: 20vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

#contact h2{
    margin: 0;
}
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: var(--sage_green);

  /* Flexbox centering */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 300px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px var(--olive_green);
}

.modal-content p {
  padding: 0;
}

.modal button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#yesButton { background-color: #4CAF50; color: white; }
#noButton { background-color: #f44336; color: white; }
#maybeButton { background-color: #2196F3; color: white; }



@media screen and (max-width: 1024px) {
    header ul {
        gap: 1vw
    }

    .hidden {
        display: none;
    }

    header img {
        max-height: 50vh;
        width: auto;
    }
    
    details > summary {
        font-size: var(--medium-font);
    }

    h2 {
        font-size: var(--medium-font);
    }

    h3 {
        font-size: var(--small-font);
    }

    #faq {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
        padding: 0 5vw;
    }
    .faq-column {
        width: 100%;
        padding: 0;
    }

    #contact {
        padding: 15vh 0
    }
}