/* Melon's Gallery Maker! 0.0.2+ */

#main-doc {
    background: repeating-linear-gradient(
        #4a92ff60 0%,
        #4a92ff60 0.2%,
        #69a5ff60 0.5%,
        #69a5ff60 0.7%
    );
    padding: 30px;
}

@font-face {
    font-family: pixelFont;
    src: url(../fonts/pixel-font-v1-5.ttf);
}

#index {
    width: 150px;
    padding-left: 15px;
    margin-top: 30px;
}

#index-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

#index-list li a {
    color: #0a1158;
}

#index-list li a:hover {
    text-decoration: underline;
}

#back {
    position: absolute;
    top: 250px;
    left: 500px;
}

/* Gallery Pages */

#photos {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

#photos figure {
    margin: 10px;
    max-width: min-content;
}

#photos img {
    border: 3px ridge #c3c3c3;
    /* Enable this for pixel art!! */
    /* image-rendering: pixelated; */
}

#photos img:hover {
    border-color: #ffda00;
}

#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;
}

#js-viewer-desc {
    font-size: 28px;
    font-family: pixelFont;
    color: #dbe1ff;
    background-color: #0a1158;
    padding: 0 10px;
}