/* ########## DEFAULTS ########## */

@import url('https://fonts.googleapis.com/css?family=Noto+Serif+SC:400,700');

html {
    font-family: 'Noto Serif SC', serif;
    overflow-x: hidden;
}

main {
    min-height: calc(100vh - 250px);
}

main, section:not(.parallax) {
    overflow: hidden;
}

p, ol, ul {
    line-height: 2;
}

h3 {
    margin-bottom: 0;
}

figcaption {
    font-size: 15px;
    font-style: italic;
    text-align: center;
    padding: 5px;
}

section:not(.parallax) {
    max-width: 1500px;
    margin: auto;
    margin-bottom: 50px;
}

section .container {
    padding: 30px;
    padding-top: 0;
}

@media screen and (min-width: 1000px) {
    .col-left {
        float: left;
        width: 50%;
        margin-right: 50px;
    }
    
    .col-right {
        float: right;
        width: calc(50% - 50px);
    }

    section:nth-child(2) {
        margin-top: 50px;
    }
}

.col-left img, .col-right img {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.center {
    max-width: 500px;
    margin: auto;
}

.map {
    width: 100%;
    height: 450px;
}

/* ##### NAV ##### */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    overflow: hidden;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.05);
    background-color: white;
    transition: all 0.5s;
}

nav.top {
    background-color: transparent;
    box-shadow: none;
    transition: all 0.5s;
}

nav ul {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 0;
    margin: 0;
    margin-top: 6px;
    list-style: none;
    width: 884px;
}

nav ul.sidenav {
    display: none;
}

nav ul li {
    display: block;
    float: left;
}

/* Make all other nav items centered */
nav ul li:not(.logo) {
    margin-top: 10px;
}

/* Make all but the last item push the other one right 50px */
nav ul li:not(:last-of-type) {
    margin-right: 50px;
}

nav ul li a {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    color: black;
    padding-bottom: 10px;
    border-bottom: 4px solid transparent;
    transition: all 0.1s;
}

nav ul li:not(.logo):hover a {
    padding-bottom: 5px;
    border-bottom: 4px solid #707070;
    transition: all 0.1s;
}

nav ul li.logo img {
    height: 60px;
    width: 60px;
}

/* Current page settings */
body.home-page nav ul li:not(.logo) a[href="https://www.spudmarrieslatke.com/"],
body.the-wedding nav ul li a[href="https://www.spudmarrieslatke.com/the-wedding"], 
body.your-trip nav ul li a[href="https://www.spudmarrieslatke.com/your-trip"], 
body.rsvp nav ul li a[href="https://www.spudmarrieslatke.com/rsvp"], 
body.what-to-see nav ul li a[href="https://www.spudmarrieslatke.com/what-to-see"], 
body.registry nav ul li a[href="https://www.spudmarrieslatke.com/registry"] {
    border-bottom: 4px solid #707070;
    transition: all 0.1s;
}

/* Hamburger menu settings */

/* Hide hamburger menu */
nav ul li:nth-child(1) {
    display: none;
}

#hamburger-menu {
    width: 30px;
    height: 30px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#hamburger-menu span {
    display: block;
    position: absolute;
    height: 2.2px;
    width: 100%;
    background: #707070;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

#hamburger-menu span:nth-child(1) {
    bottom: 0px;
}

#hamburger-menu span:nth-child(2),#hamburger-menu span:nth-child(3) {
    bottom: 10px;
}

#hamburger-menu span:nth-child(4) {
    bottom: 20px;
}

#hamburger-menu.open span:nth-child(1) {
    bottom: 12px;
    width: 0%;
    left: 50%;
}

#hamburger-menu.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#hamburger-menu.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#hamburger-menu.open span:nth-child(4) {
    bottom: 10px;
    width: 0%;
    left: 50%;
}  

/* ##### PARALLAX ##### */

section.parallax {
    z-index: 1;
    display: flex;
    height: 100vh;
    width: 100vw;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

section.parallax.short {
    max-height: 800px;
}

.parallax-window {
    z-index: 2;
    height: 105vh;
    width: 100vw;
    background: transparent;
}

section.parallax.short .parallax-window {
    max-height: 800px;
}

/* ##### RSVP FORM ##### */

form input:not([type="radio"]), textarea {
    -webkit-appearance: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea {
    background-color: #fff;
    border-color: #eee;
    transition: .4s;
    padding: .75rem;
    margin-bottom: 10px;
    outline: none;
    border: 2px solid #eee;
    box-shadow: 0;
    box-sizing: border-box;
    color: #40484a;
    width: 100%;
    border-radius: 0;
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

textarea {
    height: 200px;
    width: 100%;
    resize: none
}

input[type="number"] {
    width: 50px;
    -moz-appearance: textfield;
    margin: 10px;
    margin-right: 0px;
    cursor: text;
}

.radio {
    display: block;
    margin-bottom: 10px;
}

input:hover,
textarea:hover {
    border-color: #bfbfbf;
    transition: 0.4s;
}

input:focus,
textarea:focus {
    border-color: #999;
    transition: 0.4s;
}

.action {
    border: none;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    padding: 15px;
    text-decoration: none;
    font-size: 20px;
    color: rgb(112, 112, 112);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.3);
    transition: all 0.2s;
    background-color: #eee;
}

.action:hover {
    color: #000; /* Fallback for older browsers */
    color: rgba(0, 0, 0, 0.6);
    color: rgb(112, 112, 112);
    box-shadow: 0px 5px 25px -10px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.donate {
    border-radius: 40px;
    height: 50px;
    width: 300px;
    border: 1px solid #3d3c3c;
    color: #000;
    background-color: #fff;
    transition: all 0.2s;
    padding: 15px;
    padding-left: 120px;
    padding-right: 120px;
    text-decoration: none;
    font-size: 18px;
}

.donate:hover {
    background-color: #3d3c3c;
    color: #fff;
    transition: all 0.2s;
}

@media screen and (min-width: 1100px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="datetime-local"],
    textarea {
        max-width: 50%;
    }
}

table {
    border-spacing: 0;
}

table td {
    text-align: left;
    vertical-align: top;
}

td, th {
    padding: 0.5em;
    padding-right: 0.75em;
    padding-left: 0.75em;
}

tr:nth-child(odd) {
    background-color: #f2f2f2
}

.sql-table {
    overflow: auto;
}

.sql-table table {
    display: block;
    line-height: 1.5;
    table-layout: fixed;
    max-height: 600px;
    min-width: 750px;
    max-width: 1500px;
    table-layout: fixed;
}

/* ##### FOOTER ##### */

footer {
    background-color: #292929;
    color: #fff;
    height: 335px;
}

footer .container {
    max-width: 1500px;
    margin: auto;
}

footer .container .container-2 {
    padding: 30px;
    margin: auto;
}

footer a {
    text-decoration: none;
    color: #fff;
}

footer a.watermark {
    text-decoration: underline;
}

footer a.watermark-logo img {
    height: 40px;
    fill: white;
    margin-top: 10px;
}

footer ul {
    float: left;
    list-style: none;
    padding-left: 0;
}

footer ul li {
    padding-bottom: 10px;
}

footer ul li a:not(.watermark-logo):hover {
    opacity: 0.6;
}

footer ul:last-of-type {
    float: right;
}

/* ########## RESPONSIVE ########## */

@media screen and (max-width: 1000px) {
    section.parallax {
        z-index: 1;
        display: flex;
        height: 420px;
        width: 100vw;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    
    .parallax-window {
        z-index: 2;
        height: 420px;
        width: 100vw;
        background: transparent;
    }

    nav ul.topnav li:not(.logo) {
        display: none;
    }

    nav ul.topnav li.logo {
        float: right;
        transform: translateX(-50vw);
        margin-right: -5vw;
    }

    nav ul.topnav li:nth-child(1) {
        display: block;
        margin-left: 5%;
        margin-top: 10px;
    }

    nav ul.topnav {
        width: 100%;
        margin-top: 8px;
    }

    nav.open {
        top: -475px;
        transform: none;
        height: 1050px;
        background: #fff;
        transition: all 0.5s;
    }

    nav.open ul.sidenav {
        display: block;
        transform: none;
        left: 5%;
        height: fit-content;
        margin-top: 40px;
        transition: all 0.5s;
    }

    nav.open ul.sidenav li {
        display: block;
        float: none;
        transform: none;
        top: 100px;
        margin-top: 15px;
        transition: all 0.5s;
        font-size: 30px;
    }

}

@media screen and (max-width: 450px) {
    footer {
        height: 500px;
    }

    footer ul:first-of-type {
        margin-right: 40px;
    }

    footer ul:last-of-type {
        float: left;
    }
}