@font-face {
    font-display: swap;
    font-family: "Zen Maru Gothic";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/zen-maru-gothic.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Bangers";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/bangers.woff2") format("woff2");
}

body {
    background-color: #000000;
    background-image: url('../layout/background.png');
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Zen Maru Gothic", sans-serif;
    margin: 0;
    color: #ECA7F2;
    line-height: 1.6em;
    font-size: 1.1em;
}

a, a:visited {
    color: #EC82F5;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    font-weight: bold;
}
a:hover {
    background: #EC82F5;
    text-decoration: none;
    color: #000000;
}

* {
    box-sizing: border-box;
}

#container {
    max-width: 700px;
    margin: 3em auto;
    width: 90%;
}

#navbar {
    background-color: #000000;
    width: 100%;
    padding: 0 5%;
    font-weight: bold;
    margin-bottom: 10px;
    outline-width: 2px;
    outline-style: solid;
    outline-color: #8047C9;
}
#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}
#navbar li {
    font-family: Bangers;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 1.5em;
    display: inline-block;
    margin-right: 1.5em;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
}
#navbar li a, #navbar li a:visited {
    color: #EC82F5;
    text-decoration: none;
    padding: 3px;
}
#navbar li a:hover {
    background-color: #EC82F5;
    color: #2C0B38;
    text-decoration: none;
}

#flex {
    display: flex;
}

article {
    padding: 10px 5% 20px 5%;
    width: 700px;
    margin-bottom: 10px;
    background-color: #000000;
    outline-width: 2px;
    outline-style: solid;
    outline-color: #8047C9;
}

article p {
    text-indent: 1em;
}

footer {
    background-color: #000000;
    width: 100%;
    padding: 10px;
    text-align: center;
    outline-width: 2px;
    outline-style: solid;
    outline-color: #8047C9;
}

hr {
    border: solid #8047C9;
    border-width: 2px 0 0 0;
}

h1, h2, h3, h4 {
    color: #EC82F5;
    font-family: "Bangers", system-ui;
    line-height: 1.6em;
    filter: drop-shadow(2px 2px #8047C9);
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.6em;
}

strong {
    color: #F5BDE6;
}

em {
    color: #F5BDE6;
}

blockquote {
    background-color: #2C0B38;
    padding: 0 20px;
    margin-left: 0;
    margin-right: 0;
    border-left: 2px solid #8047C9;
    font-size: 1.1em;
    line-height: 1.6em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}

img {
    max-width: 100%;
    height: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    outline-width: 2px;
    outline-style: solid;
    outline-color: #8047C9;
}

img.noborder {
    outline: none;
}

img.button {
    outline: none;
    image-rendering: pixelated;
}

.right {
    float: right;
    margin-left: 1em;
}
.left {
    float: left;
    margin-right: 1em;
}
.center {
    display: block;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

details {
    background-color: #2C0B38;
    outline-width: 2px;
    outline-style: solid;
    outline-color: #8047C9;
    padding: 1em; 
}

summary {
    font-weight: bold;
    font-size: larger;
    color: #EC82F5;
}

ul.none {
    padding: 0;
    list-style-type: none;
}

li.archives {
    margin-top: 1em;
}

.caption {
    margin-top: 0;
    font-size: 0.9em;
    text-align: center;
    text-indent: 0;
    margin-top: -0.5em;
    background-color: #2C0B38;
    outline-width: 2px;
    outline-style: solid;
    outline-color: #8047C9;
}

#recentpostlistdiv ul {
    padding: 0;
    font-size: 1.1em;
    list-style-type: none;
}
.moreposts {
    font-size: 0.8em;
}
#nextprev {
    text-align: center;
    margin-top: 1.4em;
    font-size: 0.9em;
}

@media only screen and (max-width: 900px) {
    #flex {
        flex-wrap: wrap;
    }

    #navbar ul {
        flex-wrap: wrap;
    }

    body {
        font-size: 14px;
    }
}

/* Top button */
#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    background-color: #000000;
    color: #EC82F5;
    cursor: pointer;
    padding: 15px;
    font-size: 18px;
    font-family: "Bangers", monospace;
    outline-style: solid;
    outline-color: #8047C9;
    outline-width: 2px;
}
#topBtn:hover {
    color: #000000;
    background-color: #EC82F5;
}

/* Post Grid */
.post-grid {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 5px;
    width: 100%;
    margin: 0 auto;
}
.post-grid .post-grid-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: initial;
    outline-width: 2px;
    outline-style: solid;
    outline-color: #8047C9;
    padding: 5px;
    width: 312px;
    height: 200px;
}
.post-grid-image {
    max-height: 200px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.post-grid-title {
    background-color: #1E2030;
    padding: 5px;
}
.post-grid .post-grid-item .post-grid-title {
    font-weight: bold;
    background-color: #2C0B38;
    outline-style: solid;
    outline-color: #8047C9;
    outline-width: 1px;
    color: #F5BDE6;
    padding: 8px;
    overflow: hidden;
    text-decoration: none;
}
.post-grid .post-grid-item .post-grid-date {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 5px;
    gap: 5px;
    text-align: center;
}
.post-grid .post-grid-item .post-grid-date  {
    padding: 4px;
    box-sizing: border-box;
    display: inline-block;
}
.post-grid .post-grid-item .post-grid-date {
    background-color: #2C0B38;
    outline-style: solid;
    outline-color: #8047C9;
    outline-width: 1px;
    color: #F5BDE6;
    width: 100px;
    background-size: auto;
}

.postMetadata {
    background-color: #2C0B38;
    outline-style: solid;
    outline-color: #8047C9;
    outline-width: 2px;
    color: #F5BDE6;
    width: 100%;
    padding: 5px;
    text-align: center;
}