/* Melon's Gallery Maker! - Pixel Shop v0.2 */

@import url("https://melonking.net/styles/fonts/BPdots/BPdotsDiamond.css");
@import url("https://melonking.net/styles/fonts/BPdots/BPdotsDiamondBold.css");

@font-face {
    font-family: "BPdots Diamond";
    src: url(https://melonking.net/styles/fonts/BPdots/BPdotsDiamond.css);
}

 @font-face {
    font-family: "Free Pixel"; 
    src: url(FreePixel.ttf) format(truetype);
}

body {
    font-family: "BPdotsDiamond", monospace;
    color: #f6f4ff;
    font-size: 0.9em;
    background-color: #02000c;
    font-weight: 700;
    background-image: url(stars.gif);
}

p{
    color: aliceblue;
    font-family: "Free Pixel";
    font-size: medium;
}

a,
a:visited {
    color: #4d00c9;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
}

a:hover {
    font-weight: normal;
}

header,
section,
footer {
    margin: 5px;
}

header,
body > section {
    padding-bottom: 5px;
}

h1,
h1 a{
    color: rgb(4, 0, 235);
    text-decoration: none;
    text-align: center;
    font-size: 3rem;
    margin: 20px;
    font-family: "Free Pixel";
    text-shadow: 0 0 10px rgb(76, 0, 255);
}

h2 {
    border-top: 3px solid #190379;
    background-image: linear-gradient(180deg, rgba(24, 12, 190, 0.387) 5%, rgba(163, 137, 255, 0.644) 77%);
}

nav {
    margin: 10px;
    clear: both;
}

ul {
    padding-left: 20px;
}

footer {
    text-align: center;
    padding-top: 30px;
    clear: both;
    font-size: 0.7em;
    color: aliceblue;
}

#wrapper {
    margin: 40px auto;
    max-width: 1200px;
    background-color: #000000;
    padding: 10px;
    border: 3px #0d033a solid;
}
#wrapper a{
  font-family: 'Free Pixel';
  color: #2525e7;
  font-weight: lighter;
  -o-transition: 0.3s;
  -moz-transition: 0.3s;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  text-decoration: none;
}
#wrapper a:hover{
    color: #0003a8;
    text-shadow: 0 0 5px #2f00ff;
}

/* Gallery Pages */

#photos {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

#photos figure {
    margin: 5px;
    max-width: min-content;
}

#photos img {
    /* Enable this for pixel art!! */
    image-rendering: pixelated;
    filter: sepia(100) hue-rotate(200deg) saturate(4);
}

#photos img:hover {
}

#photos span {
    text-align: center;
    display: block;
}

#photos figcaption {
    padding: 10px 0px;
}

.page-links {
    text-align: center;
}
.page-links ul {
    padding: 0px 5px;
    display: inline-block;
}
.page-links li {
    list-style: none;
    display: inline;
    margin: 0px 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(2, 0, 0, 0.815);
    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: 5px solid #130081;
}

#js-viewer span {
    margin-top: 10px;
}

#js-viewer span button {
    font-size: 19px;
    font-family: "Free Pixel";
    border-radius: 0px;
    color: #ffffff;
    border: 2px double #0d033a;
    background-color: #00021f;
    cursor: pointer;
}

#js-viewer span button:hover {
    border: 2px double #2803ad;
    background-color: #070030;
    filter: drop-shadow(0px 0px 10px #3700ff);
}
