/* Melon's Gallery Maker! 0.0.2+ */
/*fonts*/
@font-face {
  font-family: "zelda";
  src: url("https://faescape.neocities.org/fonts/zeldadxt.ttf") format("TrueType");
}

@font-face {
  font-family: "simsun";
  src: url("https://faescape.neocities.org/fonts/SIMSUN.ttf") format("TrueType");
}

@font-face {
  font-family: "bitmapgothic";
  src: url("https://faescape.neocities.org/fonts/Bitmgothic.ttf") format("TrueType");
  src: url("https://faescape.neocities.org/fonts/Bitmgothic.woff") format("woff");
}
@font-face {
  font-family: "alagard";
  src: url("https://faescape.neocities.org/fonts/alagard.ttf") format("TrueType");
}
@font-face {
	font-family: "Spectral";
	src: url("https://faescape.neocities.org/fonts/Spectral/Spectral-Regular.ttf") format("TrueType");
}
@font-face {
	font-family: "Oceanside Typewriter";
	src: url("https://faescape.neocities.org/fonts/Oceanside-Typewriter.ttf") format("TrueType");
}
body {
    font-family: Spectral;
  background-color: #000000;
  background-image: url("https://faescape.neocities.org/assets/bgs/dark-mosaic.png"); /* background image */
  color: #fff;
  letter-spacing: 1px;
  font-size: 16px;
  font-family: Spectral;
  --sb-track-color: #232e33;
  --sb-thumb-color: #af6b6b;
  --sb-size: 10px;
}
::-webkit-scrollbar {
  width: var(--sb-size)
}

::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 8px;
  border: 2px solid #232e33;
}

a {
    color: #CA75FF;
    text-decoration: none;
    transition: 1s ease 0s;
}

a:hover {
    font-size: 18px;
    color: #FD75FF;
    text-decoration: none;
    text-shadow: 0 0 5px #FD75FF; /* pink */
}

h1 {
  padding: 0px;
  font-family: simsun;
  letter-spacing: 3px;
  text-shadow: 0 0 5px #CA75FF; /* purple */
  text-align: center;
}

h2 {
  padding: 0px;
}

h3 {
  color: #CA75FF; /* purple */
  padding: 0px;
  font-family: alagard;
}

header,
body > section,
footer {
    padding: 5px;
}

nav {
    margin: 10px;
    clear: both;
    width:500px;
}

footer {
    clear: both;
    font-size: 0.7em;
    padding-top: 30px;
}

/* Gallery Pages */

#photos {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

#photos figure {
    margin: 10px;
    max-width: min-content;
}
#photos figcaption {
  position: absolute; 
  bottom: 0; 
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1; 
  width: 100%;
  transition: 1s ease 0s;
  opacity:0;
  color: white;
  font-size: 14px;
  padding: 10px 0px;
  text-align: center;
}

#photos img {
    opacity: 0.7;
	transition: 1s ease 0s;
    /* Enable this for pixel art!! */
    /* image-rendering: pixelated; */
}

#photos img:hover {
    opacity: 1;
}
#photos img:hover figcaption {
	opacity: 1;
	bottom: 50%;
}
#photos span {
    text-align: center;
    display: block;
}

#photos figcaption {
    padding: 10px 0px;
}

.page-links {
    text-align: center;
}

.page-links ul {
    padding: 0px 5px;
    margin: 10px 0px;
    display: inline-block;
}
.page-links li {
    list-style: none;
    display: inline;
    margin: 0px 3px;
}

/* Mobile Styling */

@media (max-width: 800px) {
    body {
        padding: 10px;
    }

    #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(0, 0, 0, 0.612);
    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: 3px ridge #c3c3c3;
}

#js-viewer span {
    margin-top: 10px;
}

#js-viewer span button {
    border-radius: 0px;
    border: 2px outset #cecece;
    background-color: #e2e2e2;
    cursor: pointer;
}

#js-viewer span button:hover {
    border: 2px inset #cecece;
    background-color: #b8b8b8;
}
