@font-face {
    font-family: 'Cedarville Cursive';
    src: url('/fonts/CedarvilleCursive-Regular.ttf') format('truetype');
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Cedarville Cursive', monospace;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#logo { 
    position: absolute;
    z-index: 100;
    right: 15px;
    top: 5px;
    margin: 0;
    font-size: 24px;
}

img {
    width: 512px;
    max-width: 100%;
    height: auto;
}

.single img {
    width: 690px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cedarville Cursive', monospace;
}

a,
a:visited {
    color: #ff0000;
    text-decoration: none;
}

a:hover,
a:hover span {
    text-decoration: underline;
}

.grid {
    column-count: 4;
    column-gap: 1px;
}

.piece {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 1px;
    display: flex;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
}

.piece .caption {
    position: absolute;
    left: 15px;
    top: 15px;
}

.piece img {
    width: 100%;
    height: auto;
    display: block;
}

.piece-detail, .page {
    font-family: monospace;
}

footer {
    float: left;
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 15px;
}

@media all and (max-width: 1424px) {
    .grid {
        column-count: 3;
    }
}

@media all and (max-width: 1024px) {
    .grid {
        column-count: 2;
    }
}

@media all and (max-width: 768px) {
    .grid {
        column-count: 1;
    }
}

@media all and (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
}