@import url('https://fonts.googleapis.com/css?family=Shadows+Into+Light|Rokkitt&display=optional');

body {
    font-family: 'Rokkitt', serif;
    font-size: 20px;
    margin: 0;
}

a {
    text-decoration: none;
    color: #7C4375;
}

ul {
    padding-left: 20px;
}

.spots a {
    padding: 12px 0;
}

.spots li {
    margin: 12px 0;
}

.opened {
    color: #8FBDB9;
    text-transform: uppercase;
    font-size: 0.8em;
}

.closed {
    color: #B9B9B9;
    text-transform: uppercase;
    font-size: 0.8em;
}

main {
    margin: 100px 0;
    padding: 10px;
    min-height: calc(100vh - 340px);
    transition: all ease 0.2s;
}

header {
    font-family: 'Shadows Into Light', cursive;
    font-weight: 900;
    font-size: 3em;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 0px;
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    border-bottom: 2px solid #8FBDB9;
    background-color: white;
    z-index: 1999;
    transition: all ease 0.2s;
}

header h1 {
    text-align: center;
}

header a {
    text-decoration: none;
    color: #8FBDB9;
}

#logo {
    height: 80px;
    overflow: hidden;
    transition: all ease 0.2s;
}

header img {
    height: 100px;
    vertical-align: top;
    transition: all ease 0.2s;
}

.mini header {
    height: 40px;
}

.mini header #logo {
    height: 40px;
}

.mini header img {
    height: 50px;
    width: 50px;
}

nav {
    position: fixed;
    left: 0;
    top: 80px;
    background-color: white;
    padding: 5px;
    width: 100%;
    z-index: 1999;
    transition: all ease 0.2s;
}

nav a {
    text-decoration: underline;
}

.mini nav {
    top: 40px;
}

h1,
h2 {
    font-family: 'Shadows Into Light', cursive;
}

h2 {
    font-size: 42px;
}

h1,
h2 {
    font-weight: 500;
    text-align: center;
    line-height: 40px;
    margin: 0 0 20px 0;
}

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

h2 a:hover {
    text-decoration: underline;
}

/* .form label {
    margin-top: 30px;
    display: block;
    color: #555;
    text-transform: uppercase;
    font-size: 0.8em;
}

input,
select {
    border: none;
    border-bottom: 2px solid #aaa;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1em;
}

textarea {
    width: 100%;
    height: 200px;
}

.button,
input[type="submit"] {
    display: block;
    border-radius: 40px;
    border: 2px solid #8FBDB9;
    font-size: 0.8em;
    padding: 10px 30px 10px 30px;
    font-family: inherit;
    text-transform: uppercase;
}

.button:hover,
.button.primary,
input[type="submit"] {
    background-color: #3a5250;
    color: white;
    text-decoration: none;
}

.button-bar {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 0 15px;
}

.button-bar a {
    margin: 5px 5px;
}

input[type="submit"] {
    width: 80%;
    margin: 40px 10% 20px 10%;
}

button.button {
    margin: 5px;
}

.button,
.button.primary:hover,
input[type="submit"]:hover {
    cursor: pointer;
    background-color: inherit;
    color: #8FBDB9;
    text-decoration: none;
}
 */

form {
    display: flex;
    flex-direction: column;
}

form div.grid div {
    display: flex;
    flex-wrap: wrap;
}

form div div div {
    padding: 5px;
    width: 150px;

}

form div.line {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 10px;
}

form div.line label {
    margin-right: 20px;
}

form div.line .preview img {
    width: 150px;
}

form div.required label::after {
    content: "*";
    color: red;
}

form div.buttons {
    max-width: 500px;
    display: flex;
    align-content: center;
    justify-content: space-evenly;
}

.spot .address {
    font-weight: bold;
}

.spot p {
    font-style: italic;
}

a.website {
    text-decoration: underline;
}

.leaflet-control-attribution {
    font-size: 9px !important;
}

.spot .images {
    margin-left: -10px;
    width: calc(100% + 20px);
    display: flex;
}

.spot .images img {
    width: 33.3%;
}

.spot .images a {
    cursor: pointer;
}

.galleryContainer {
    width: calc(100% + 20px);
    margin-left: -10px;
    overflow-x: hidden;
}

.gallery {
    --n: 1;
    width: 100%;
    width: calc(var(--n)*100%);
    display: flex;
    align-items: center;
    transform: translate(calc(var(--i, 0)/var(--n)*-100%));
    transition: transform .5s ease-out;
}

.gallery img {
    pointer-events: none;
    width: 100vw;
}


#map {
    height: 50vh;
}


svg.icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    vertical-align: text-top;
}

svg.bigicon {
    width: 3rem;
    height: 3rem;
    fill: currentColor;
    vertical-align: text-top;
}


.hours .today {
    font-weight: bold;
}

div.error {
    color: red;
    font-size: 0.8em;
}

input.error {
    border-color: red;
}

body {
    color: #7C4375;
    font-size: 1.2em;
}


footer {
    background-color: #333;
    padding: 10px;
    margin: 20px 0 0 0;
    display: flex;
    flex-flow: wrap;
    position: relative;
    height: 100px;
    justify-content: space-evenly;
}

footer div {
    margin: 20px 20px 0 20px;
}

footer, footer a {
    color: white;
    text-decoration: none;
    padding: 12px 0;
}

footer a:hover {
    text-decoration: underline;
}

footer div.copyright {
    width: 100%;
    color: #D2D0D1;
    font-size: 16px;
    text-align: center;
}


footer div.copyright a {
    text-transform: uppercase;
    color: black;
    background-color: white;
    transition: all 1s ease;
}

footer div.copyright a:hover {
    color: white;
    background-color: black;
    text-decoration: none;
}

.heart {
    color: red;
}

.error-404 {
    font-size: 48px;
}

#search #question {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

form#search .button-bar {
    margin-left: auto;
}

form#search input:focus {
    outline: none;
}

@media screen and (min-width: 768px) {

    body {
        font-size: 20px;
    }

    h1,
    h2,
    footer div.copyright {
        text-align: left;
    }

    a:hover {
        text-decoration: underline;
    }

    header {
        position: absolute;
    }

    nav {
        position: absolute;
        width: auto;
    }

    .spot .images img {
        width: 25%;
    }

    .spot p {
        padding: 0 10px;
    }

    .gallery {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        transform: none;
    }

    .gallery img {
        pointer-events: none;
        width: 33%;
        margin: 1px;
        box-sizing: border-box;
    }

    #map {
        margin: 0 30px;
        width: 50%;
    }

    #map.singleSpot {
        width: calc(100% - 60px);
        float: none;
    }

    footer {
        justify-content: left;
    }

    form.delete {
        width: 0px;
    }

    input {
        width: 300px;
    }

    .nearSpots {
        margin-left: 50%;
    }


    input[type="submit"] {
        width: 300px;
    }

    .button-bar {
        justify-content: center;
        flex-direction: row;
        align-items: center;
    }

}