@import url(https://fonts.bunny.net/css?family=cormorant-garamond:300,600,900|great-vibes:400|Allura:400|playwrite-no:400|gfs-didot:400);

:root {
    /* --green: #395B50;
    --pink: #ff99b9;
    --yellow: #fdfcdcff;
    --blue: #92afd7ff;
    --gray: #9197aeff;
    --purple: #4b2e39;
    --orange: #C57E57; */

    --brown: #8a6552;
    --purple: #b8a0dbff;
    --yellow: #e3d7caff;
    --green: #73aba3ff;
    --gray: #455E66ff;
    --black: #21283Bff;
    --blue: #40798cff;
    --dark-green: #305f4eff;

    /* Fonts */
    --handwriting: "Great Vibes", cursive;
    --general: 'GFS Didot', serif;
    --funny: "Playwrite NO", cursive;

    /* Sizes */
    --header-height: 4rem;
}

html, body {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blue);
    font-family: var(--general);
    font-size: 1.4rem;
}

.navmenu {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--blue);
    z-index: 99;
}

.navmenu ul {
    height: 100%;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    font-size: 22px;
    font-weight: 300;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
    font-style: italic;
}

.navmenu ul li a {
    color: var(--yellow);
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: var(--header-height);
    height: var(--header-height);
    display: inline-block;
    border-radius: 5px;
    white-space: nowrap;
    padding-inline: 1rem;
}

.navmenu ul li a:hover {
    color: var(--green);
    background-color: #ffffff20;
    background-color: var(--yellow);
    opacity: 0.7;
    /* text-shadow: currentColor 0px 0px 5px; */

}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: 100lvh;
    overflow: hidden scroll;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scroll-margin-top: var(--header-height);
}

.topsection {
    flex: 0 0 calc(100svh - var(--header-height));
    height: calc(100svh - var(--header-height));
    width: 100%;
    background-image: url("images/jl4.jpg");
    filter: grayscale(40%);
    background-position: 20% 40%;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    position: sticky;
    top: var(--header-height);
    margin-top: var(--header-height);
}

.topsection .blur {
    width: 100%;
    height: 100%;
    background-color: #395B5096;
    backdrop-filter: blur(2px) brightness(80%);
    mask: linear-gradient(to right,
                        rgba(0,0,0,0) 0%,
                        rgba(0,0,0,0) 20%,
                        rgba(0,0,0,100) 50%);
    z-index: 1;
    display: grid;
    justify-items: end;
    align-content: center;

}
.topsection .blur h1 {
    /* mask: linear-gradient(rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.8) 15%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0.8) 85%,
    rgba(0, 0, 0, 0) 100%); */
    /* width: 100%; */
    /* text-transform: capitalize; */
    /* padding-block: 8rem; */
    /* padding-left: 3rem; */
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 6rem);
    color: var(--yellow);
    font-family: var(--funny);
    font-weight: 400;
    line-height: 2;
    max-width: 50%;
    padding: 1rem;
}


.arrow {
    position: absolute;
    width: 50px;
    height: 50px;
    right: 50px;
    bottom: 50px;
    z-index: 2;
    animation: bounce 1400ms linear infinite;
  }
@keyframes bounce {
  0%, 100% {
    transform: translateY(-4px);
  }

  50% {
    transform: translateY(4px);
  }
}

.mainsection {
    z-index: 2;
    --bg-col: var(--blue);
    color: var(--yellow);
    width: 100%;
    /* display: grid;
    justify-content: center; */
    flex: 0 0 250px;
    padding: 2rem;
    background-color: var(--bg-col);
    font-weight: 300;
}

.mainsection:nth-of-type(3n) {
    --bg-col: var(--green);
    color: var(--black);
}
.mainsection:nth-of-type(3n+1) {
    --bg-col: var(--dark-green);
    color: var(--yellow);
}


.mainsection h2{
    font-family: var(--handwriting);
    font-size: 4.5rem;
    position: sticky;
    top: var(--header-height);
    padding-block: 25px;
    margin: 0;
    background-image: linear-gradient(to top, transparent 0%, var(--bg-col) 30%);
    z-index: 1;
    font-weight: 400;

}

.mainsection .contentcontainer {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin-inline: auto;

}

#what img {
    margin: 0 auto;
    width: 300px;
    height: 300px;
    min-width: 300px;
    font-size: 0;
}

.contentcontainer .textcontainer {
    flex-grow: 1;
}


.textcontainer td {
    padding: 0.5rem;
}
.textcontainer table {
    border-collapse: collapse;
}

.contentcontainer hr {
    border: 1px solid var(--black);
}
.mainsection:nth-of-type(2n+1) .contentcontainer{
    flex-direction: row-reverse;
}

.mainsection img {
    min-width: 400px;
    width: 400px;
    vertical-align: middle;
    border-radius: 30px;
    margin-bottom: 3rem;

}


/* Division of sections */
.mainsection {
    margin-bottom: -4.5rem;
    border-top: 2px solid white;
    padding-bottom: 8rem;
    transform: skew(0, -2deg); /* makes the section slanted/skewed */
    /* mask: conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/60px 100% */
}
.mainsection > * {
    transform: skew(0, 2deg); /* makes the section slanted/skewed */
}
/* Slant into alternating directions */
.mainsection:nth-of-type(2n) {
    transform: skew(0, 2deg);
}
.mainsection:nth-of-type(2n) > * {
    transform: skew(0, -2deg);
}
/* First section underneath topsection */
.topsection + .mainsection {
    --bg-col: white;
    color: var(--brown);
    border: none;
    transform: none;
}
.topsection + .mainsection >* {
    transform: none;
}

/* RSVP Form */

form legend {
    margin: auto;
}

#rsvpform input[type="radio"]{
    appearance: none;
    width: 20px;
    height: 20px;
    box-shadow: inset 0 0 0 1.5px var(--yellow);
    border-radius: 100%;
    transition: all 0.5s ease;
    cursor: pointer;
}
#rsvpform input[type="radio"]:checked{
    box-shadow: inset 0 0 0 6px var(--yellow);
}

#radios {
    display: flex;
}

#radios label{
    margin: 1rem;
    cursor: pointer;
    position: relative;
}
#radios label::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  margin: 0;
  height: 1px;
  width: 0px;
  background: var(--yellow);
  transition: width .5s ease;
}
#radios label:has(input:checked)::after {
    width: 100%;
}

#rsvpform .formgroup {
    margin: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    gap: 15px;
}
#musicform .formgroup {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-block: 1rem;
}

#rsvpform input,
#rsvpform textarea,
#musicform input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    background-color: inherit;
    color: inherit;
    font-size: 1.5rem;
    transition: border-color 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
}

#rsvpform input:focus,
#rsvpform textarea:focus,
#musicform input:focus {
    border-color: currentColor;
    outline: 0;
    box-shadow: 0 0 0.2rem 0.2rem currentColor;
}
#rsvpform .numbercontrol{
    display: flex;
    align-items: center;
    /* justify-content: center; */
    font-family: 'Courier New', Courier, monospace;
}
#rsvpform .numbercontrol>.quantity,
#rsvpform .numbercontrol>.plus-btn,
#rsvpform .numbercontrol>.minus-btn
{
    display: inline;
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
    line-height: 0;
    padding: 0;
    text-align: center;
    background-color: inherit;
    color: inherit;
    border: none;
}
#rsvpform .numbercontrol>.plus-btn:hover,
#rsvpform .numbercontrol>.minus-btn:hover {
    font-size: 3rem;
    cursor: pointer;
}

#rsvpform .numbercontrol>.quantity{
    -moz-appearance: textfield;
    appearance: textfield;
}

#rsvpform .quantity::-webkit-inner-spin-button,
#rsvpform .quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

#extraguest_template, #extrakid_template {
    display: none;
}

#rsvpform .extras > .extraguest {
    grid-column: 2;
}

.formsendbutton,
.textcontainer a {
    display: block;
    padding: 10px;
    margin: 5px auto;
    font-size: 2rem;
    background-color: unset;
    color: currentColor;
    border: none;
    font-weight: 500;
    cursor: pointer;
    border-block: 1px solid currentColor;
    transition: all 0.25s linear;
}
.formsendbutton:hover,
.textcontainer a:hover {
    letter-spacing: 10px;
    border-color: currentColor;
    font-weight: 800;
}
.response-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

#spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    display: none;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.frc-captcha {
    text-align: start;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.response-message.success {
    background-color: #d4edda;
    color: #155724;
}

.response-message.failure {
    background-color: #f8d7da;
    color: #721c24;
}

/* FAQs */

#faq h3 {
    /* font-family: var(--funny); */
    text-transform: uppercase;
    font-style: italic;
    font-weight: 300;
}

#directions .textcontainer a,
#faq .textcontainer a {
    all: unset;
    cursor: pointer;
    text-decoration: underline;
}
#gallery .textcontainer a {
    margin-bottom: 5rem;
}
#gallery .textcontainer a:hover {
    letter-spacing: unset;
}

.textcontainer ul {
    text-align: left;
}
.hamburger-container {
    display: none;
}

/* Footer */
footer {
    z-index: 2;
    background-color: var(--gray);
    color: var(--black);
    width: 100%;
    margin-top: 2.5rem;
    padding: 1rem;
    border-top: 2px solid white;
}


/* Picture Gallery */

div#gallerydeluxe {
    margin-top: var(--header-height);
    max-height: calc(100vh - var(--header-height));
    overflow-y: scroll;
}
div#gd-modal {
    z-index: 999;
}
#gd-modal .gd-modal-close {
    font-size: 80px;
    line-height: 1;
    right: 30px
}


@media (max-width: 768px) {
    :root{
        --burger-width: 50px;
    }
    body {
        font-size: 1.25rem;
    }
    .hamburger-container {
        display: block;
        position: fixed;
        cursor: pointer;
        background-color: var(--purple);
        border-radius: 50%;
        width: calc(2*var(--burger-width));
        height: calc(2*var(--burger-width));
        left: calc(-1*var(--burger-width));
        top: calc(-1*var(--burger-width));
        z-index: 99;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    .plus, .hamburger {
        width: 22px;
        height: 22px;
        border-top: 3px solid #fff;
        cursor: pointer;
        position: absolute;
        top: var(--burger-width);
    }
    .hamburger {
        margin: 13px 8px;
        left: var(--burger-width);
    }
    .plus {
        transform: rotate(45deg);
        margin: 15px -10px;
        left: calc(0.5 * var(--burger-width) - 5px);
    }
    .hamburger:after, .hamburger:before, .plus:after {
        content: "";
        display: block;
        border-top: 3px solid #fff;
        margin-top: 4px;
      }

    .plus:after{
        transform: rotate(90deg);
        margin-top: -2px;
    }

    .hamburger-container.open {
        transform: rotate(-90deg);
    }

    #main.open {
        transform: rotate(-30deg);
        max-height: 200vh;
    }
    #main {
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        transition: all 0.3s ease;
        transform-origin: 0 0;
        margin-top: 0;
    }
    .navmenu {
        display: block;
        height: 100vh;
        width: 35vw;
        min-width: 250px;
        z-index: 0;
        padding: 0;
    }
    .navmenu ul {
        flex-direction: column;
        height: 100vh;
        background-color: unset;
        justify-content: end;
        align-items: start;
    }
    .topsection {
        top: 0;
        margin-top: 0;
        flex: 0 0 100svh;
    }


    .navmenu ul li {
        margin: 0.5rem 0;
    }

    #main .mainsection .contentcontainer{
        flex-direction: column-reverse;
        align-items: center;
    }

    .mainsection h2 {
        top: 0;
        margin-top: 0;
    }

    .mainsection img {
        min-width: unset;
        max-width: 100%;
    }


    #rsvpform .formgroup,
    #musicform .formgroup {
        margin: 1.5rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    #rsvpform .extras > .extraguest {
        grid-column: 1 / 2;
      }

    #rsvpform .extras.extrakid {
        grid-template-columns: 1.5fr 1fr;
    }
    .extrakid input[type="number"]::placeholder {
        font-size:0.75rem;
    }
    #rsvpform #radios{
        flex-direction: column;
        align-items: center;
    }
    #rsvpform .numbercontrol{
        justify-content: center;
    }
}