/* Melon's Gallery Maker! - Pixel Shop v0.2 */
@font-face {
    font-family: "LittleDevil";
    src: url(../fonts/LittleDevil.woff);
}

@font-face {
    font-family: "OldNewspaperTypes";
    src: url('../fonts/OldNewspaperTypes.woff');
    size-adjust: 65%;
}

body {
    font-family: "OldNewspaperTypes";
    color: #ffffff;
    font-size: 0.9em;
    background-color: #000000;
    font-weight: 700;
}

a,
a:visited {
    color: white;
    text-shadow: 1px 1px grey;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    font-weight: normal;
}

header,
section,
footer {
    margin: 5px;
}

header,
body > section {
    padding-bottom: 5px;
}

h1,
h1 a,
h1 a:visited {
    font-family: "LittleDevil";
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 3rem;
    margin: 10px;
    text-shadow: 4px 4px grey;
}

h2 {
    border-top: 3px double black;
    background-image: linear-gradient(180deg, rgba(192, 241, 255, 0.387) 5%, rgba(255, 255, 255, 0) 77%);
}

nav {
    margin: 10px;
    clear: both;
}

ul {
    padding-left: 20px;
}

footer {
    text-align: center;
    padding-top: 30px;
    clear: both;
    font-size: 0.7em;
}

#wrapper {
    justify-content: center;
    max-width: 1000px;
}

/* Gallery Pages */

#photos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

#photos figure {
    justify-content: center;
    margin: auto;
    max-width: min-content;
}

#photos img {
    /* Enable this for pixel art!! */
}

#photos img:hover {
}

#photos span {
    text-align: center;
    display: block;
    padding: 10px;
}

#photos figcaption {
    padding: 20px 0;
}

.page-links {
    text-align: center;
}
.page-links ul {
    padding: 0 5px;
    display: inline-block;
}
.page-links li {
    list-style: none;
    display: inline;
    margin: 0 5px;
}
.page-links li:after {
    content: ",";
}

/* Mobile Styling */

@media (max-width: 800px) {
    #photos figure {
        width: 95%;
        max-width: unset;
    }

    #photos img {
        width: 100%;
    }
}

/* Styling for JavaScript viewer (if enabled) */

#js-viewer {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(247, 247, 247, 0.343);
    filter: drop-shadow(0px 0px 50px grey);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

#js-viewer img {
    max-width: 95%;
    max-height: 80%;
    height: auto;
    width: auto;
    border-radius: 10px;
    border: 3px double black;
}

#js-viewer span {
    margin-top: 10px;
}

#js-viewer span button {
    font-size: 1.5em;
    border-radius: 0px;
    color: #ffffff;
    border: 2px double #ffffff;
    background-color: #1f0016;
    cursor: pointer;
}

#js-viewer span button:hover {
    border: 2px double #c9c9c9;
    background-color: #300022;
}
