@font-face {
    font-family: 'handwriting';
    src: url('handwriting.woff2') format('woff2'),
        url('handwriting.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* CSS RESET */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}button,input[type=submit]{padding:0;border:none;outline:0;font:inherit;color:inherit;background:0 0;cursor:pointer;-webkit-appearance:none;-webkit-border-radius:none;border-radius:none}*{box-sizing:border-box}body,html{scroll-behavior:smooth}
img {max-width: 100%;}
/*************/

/* RSVP PAGE*/
body {
    --white: #d0d0be;
    --black: #123323;
    --green: #00a564;
    --olive: #838b3a;
    --red: #d53b4f;
    --bg: #4e5398;

    --textOutline: 0.05em 0.05em var(--black), -0.05em 0.05em var(--black), 0.05em -0.05em var(--black), -0.05em -0.05em var(--black);
    --textOutlineMinor: 0.025em 0.025em var(--black), -0.025em 0.025em var(--black), 0.025em -0.025em var(--black), -0.025em -0.025em var(--black);

    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 7.5vmin;

    font-family: handwriting;
    font-size: calc(1em + 1.25vmin);
    color: var(--white);
    background-color: #464b89;
    background-image: url(/img/bluebg.jpg);
    background-size: cover;
}

body::before, body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body::before {
    position: fixed;
    background: url(/img/pillarbottom.jpg), url(/img/pillarright.jpg), url(/img/pillarleft.jpg), url(/img/pillartop.jpg);
    background-repeat: repeat-x, repeat-y, repeat-y, repeat-x;
    background-position: bottom, top right, top left, top;
    background-size: auto 5vmin, 5vmin auto, 5vmin auto, auto 5vmin;
    z-index: 2;
}

body::after {
    background: var(--bg);
    opacity: 0.5;
    z-index: -1;
}

/* flexxers */
[class*="flex"] { display: flex; }
[class*="vflex"] { flex-direction: column; }
[class*="hflex"] { flex-direction: row; }
[class*="flex-cen"] {
    justify-content: center;
    align-items: center;
}
[class*="flex-spa"] {
    justify-content: space-around;
    align-items: flex-start;
}

.wrap {
    flex-wrap: wrap;
}
/***********/

main {
    text-align: center;
    text-shadow: var(--textOutline);
}

@media only screen and (min-width: 1000px) {
    main::before, main::after {
        content: "";
        position: absolute;
        height: 100%;
        width: 20vw;
        background-image: url(/img/leavesleft.png);
        background-repeat: repeat-y;
        background-position: top left;
        background-size: auto 150vw;
        left: 5vmin;
        top: 0;
    }

    main::after {
        left: unset;
        right: 0;
        transform: rotateY(180deg);
        background-position: bottom;
    }
}

header {
    margin-bottom: 1.5em;
}

#logo {
    max-height: 30vh;
    display: block;
    margin: auto;
}

h2 {
    max-width: 600px;
    margin: auto;
}

button, .button, input[type="submit"] {
    display: inline-block;
    text-shadow: var(--textOutlineMinor);
    font-size: 1.5em;
    letter-spacing: 0.1em;
    margin: 0.5em auto;
    padding: 0.33em 0.5em;
    background: var(--olive);
    border-radius: 20px;
    transition: all 100ms ease-in-out;
}

button:hover, .button:hover, input[type="submit"]:hover {
    transform: scale(1.1);
    background-color: var(--green);
}

.dates {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.dates section {
    padding: 1em;
    margin-top: 2vmin;
}

.details {
    position: relative;
    z-index: 1;
}

.details::before {
    content: "";
    position: absolute;
    background-image: url(/img/separator1.png);
    background-size: contain;
    background-position: center;
    padding-top: 100px;
    width: 100%;
    top: 0;
    left: 0;
}

.details::before {
    background-repeat: no-repeat;
    transform: translateY(-50%);
    z-index: -1;
}

section ~ section .details::before {
    background-image: url(/img/separator2.png);
}  

.details h3 {
    text-transform: uppercase;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    background: #494e91c2;
    display: inline-block;
    border-radius: 20px;
}

.details h4 {
    color: var(--green);
}

section li {
    color: var(--red);
    list-style: none;
}

@media only screen and (min-width: 1000px) {
    .dates {
        flex-direction: row;
        justify-content: space-around;
    }

    .dates section {
        flex-basis: 50%;
    }

    section li {
        font-size: 1.25em;
    }

    .mobile {
        display: none;
    }
}

/*RSVP*/
#rsvp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

.showrsvp #rsvp {
    display: flex;
}

#rsvp::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: -1;
    opacity: 0.8;
}

#contactform {
    width: 400px;
    max-width: 100%;
    background: var(--black);
    border-radius: 25px;
}

#contactform {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
    border: 1px solid;
    padding: 1em 1em 0;
    position: relative;
}


#contactform .rsvpButton {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    text-transform: uppercase;
    font-size: 1.5em;
    border-top-right-radius: 20px;
    overflow: hidden;
    padding: 0.15em;
    cursor: pointer;
    border-bottom-left-radius: 20px;
    background: var(--olive);
}  

#contactform > input, #contactform > select {
    margin-bottom: 1em;
    padding: 1em;
}

#contactform > .button {
    font-size: 1em;
    padding: 0.25em 0.25em;
}

#contactform > input[type="textarea"] {
    min-height: 100px;
}

#contactform > label {
    margin-bottom: 0.25em;
    text-align: center;
}

#contactform.submitted input {
    opacity: 0.5;
    pointer-events: none;
}

.formstatus {
    margin-bottom: 1em;
    text-align: center;
}

.formstatus::empty {
    display: none;
}

/* MAP AREA */
.map {
    max-width: 1250px;
    margin: auto;
    width: 90%;
    margin-top: 5vh;
}