/* TO REMOVE */
.img-placeholder {
    background:
        url('./assets/cat.jpeg')
        no-repeat center center / cover;
}

/**/

a {
    color: inherit;
}

body {
    margin: 0;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: 
        minmax(85vh, max-content) /*landing screen*/
        minmax(100vh, max-content) /*welcome*/
        min-content /*embedded google form*/
        repeat(9, minmax(100vh, max-content)) /*the rest of the screens*/
        min-content; /*the footer*/
    background-color: var(--bg-colour);
}

button {
    border: none;
    text-decoration: none;
    font-family: inherit;
}

details {
    margin: 0.5rem 0
}

div.maps-box {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    justify-content: space-evenly;
}

footer {
    padding: 1rem 1rem 3rem 1rem; /* allow space for scroll button */
    font-size: 0.8rem;
    color: var(--bg-colour);
    background-color: var(--text-colour);
    text-align: center;
}

h1, h2, p.subtitle {
    text-align: left;
    line-height: 1.2;
    font-weight: 600;
}

h1, p.subtitle {
    font-family: 'Merriweather', serif;
}

h2 {
    font-family: 'Macondo Swash Caps', cursive;
}

h2::before {
    /*content: url(./assets/favicon-33x33.png);*/
    content: '✶';
    display: inline;
    width: 2rem;
    height: 1.8rem;
    margin-right: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2, p.subtitle {
    font-size: 2rem;
}

iframe.google-form {
    width: 100%;
    min-height: 500px;
}

nav {
    font-weight: bold;
    z-index: 2;
}

nav.is-sticky {
    position: fixed;
    top: 0px;
    left: 0px;
    background: linear-gradient(rgba(35, 35, 35, 1), rgba(35, 35, 35, 0));
    margin: 0;
    padding: 0 1rem;
    width: 100vw;
}

nav ul {
    padding: 0;
    text-align: left;
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    padding: 0.1em 0.4em;
    margin: 0.2em 0;
    border: 2px solid #ebebeb;
    border-radius: 0.2em;
    background-color: rgb(35 35 35 / 0.6);
    color: inherit;
}

nav ul li:hover {
    background-color: #ebebeb;
    color: #333;
}

nav ul li#rsvp-nav-item {
    background-color: #ebebeb;
    color: #333;
}

nav ul li#rsvp-nav-item:hover {
    background-color: rgb(35 35 35 / 0.6);
    color: #ebebeb;
}

nav ul li a {
    text-decoration: none;
}

:root {
    font-size: 24px;
    font-family: 'Cormorant Garamond', Garamond, serif;
    line-height: 1.5;
    text-align: justify;
    scroll-behavior: smooth;
    /*--col1: rgb(87, 68, 135);*/
    --col1: rgb(145, 56, 93);
    --col2: rgb(35, 76, 46);
    --col3: #603e6b;
}

.screen {
    padding: 1rem;
    background-color: var(--bg-colour);
    color: var(--text-colour);
}
.screen#home {
    background:
        linear-gradient(rgb(35 35 35 / 0.4)), url("./assets/cover-image.jpeg")
        no-repeat 0  20% / cover;
    color: #ebebeb;
}

.screen.pic-container {
    padding: 0;
    height: 100vh; /* On desktop, resized by JS if side-by-side content is taller than 100vh */
}

.pic {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.screen.col {
    color: #F5F4E6;
}

.screen.col.col1 {
    background-color: var(--col1);
    z-index: 1;
}

.screen.col.col2 {
    background-color: var(--col2);
    z-index: 1;
}

.screen.col.col3 {
    background-color: var(--col3);
}


#scroll-to-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    background-color: var(--text-colour);
    color: var(--bg-colour);
    font-weight: bold;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2rem;
    cursor: pointer;
    display: none; /*appears/disappears through js per scroll state*/
}

.sig {
    float: left;
    margin-right: 1rem;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-colour: #333;
        --text-colour: #F5F4E6;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-colour: #F5F4E6;
        --text-colour: #232323;
    }
}

@media (prefers-reduced-motion) {
    :root {
        scroll-behavior: auto;
    }
}

@media (min-width: 1100px) {
    body {
        grid-template-rows: 
        minmax(85vh, max-content) /*landing screen*/
        max-content /*welcome*/
        min-content /*embedded google form*/
        repeat(9, minmax(85vh, max-content)) /*the rest of the screens*/
        min-content; /*the footer*/
    }
    .screen {
        padding: 1rem 20%;
    }
    .screen#home {
        padding: 2.5rem;
    }
}