@font-face {
    font-family: "Pixelta";
    src:
        url("fonts/Pixelta-Regular.woff2") format("woff2"),
        url("fonts/Pixelta-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "RuneScape UF";
    src:
        url("fonts/RuneScape-UF.woff2") format("woff2"),
        url("fonts/RuneScape-UF.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "The Lowly Scribe";
    src:
        url("fonts/TheLowlyScribe.woff2") format("woff2"),
        url("fonts/TheLowlyScribe.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alagard";
    src:
        url("fonts/Alagard.woff2") format("woff2"),
        url("fonts/Alagard.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    margin: 0;

}

h1 {
    font-family: "Pixelta";
    color: #bad131;
    display: block;
}

h2 {
    font-family: "RuneScape UF";
}

a.nav:link, a.nav:visited {
    border-bottom: 2px dotted #bad131;
    background-color: #1f1d1d;
    font-family: "Alagard";
    font-size: 18px;
    text-decoration: none;
    text-transform: lowercase;
    padding: 5px;
    border-radius: 5px;
    color: #b56b68;
}

a.nav:hover {
    display: block;
    border-bottom: 2px dotted black;
    background-color: #1f1d1d;
}

a.nav:active {
    display: block;
    border-bottom: 2px dotted pink;
    background-color: chartreuse;
    text-decoration: none;
}

.box21 {
    margin: 1em 0;
}

.u01 {
    background: url(f-ue.gif) repeat-x;
    height: 23px;
    margin: 0 23px;
}

.s01 {
    background: url(f-sita.gif) repeat-x;
    height: 23px;
    margin: 0 23px;
}

.box-top {
    background-image: url(f-kado1.gif), url(f-kado2.gif);
    background-position:
        top left,
        top right;
    background-repeat: no-repeat, no-repeat;
    height: 23px;
}

.box-center {
    background-image: url(f-migi.gif), url(f-hidari.gif);
    background-position:
        top right,
        top left;
    background-repeat: repeat-y, repeat-y;
    margin: 0;
    padding: 0;
}

.box-inner {
    background: #000;
    margin: 0 23px;
}

.box-bottom {
    background-image: url(f-kado3.gif), url(f-kado4.gif);
    background-position:
        top left,
        top right;
    background-repeat: no-repeat, no-repeat;
    height: 23px;
}

.wrapper {
    display: flex;
    flex-flow: row wrap;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    gap: 0;
    padding: 50px;
}

.inner-flex {
    display: flex;
    flex-flow: row wrap;
    margin: 0 auto;
    border: none;
}

/* We tell all items to be 100% width, via flex-basis */
.wrapper>* { flex: 1 100%; }

@media all and (max-width: 600px) {
  /* We tell both sidebars to share a row */
  .sidebar { flex: 1 auto;
order: 2; }
  .main { flex: 1 auto; }
  .flex-nav {  width: 90%; }
}

/* Large screens */
@media all and (min-width: 601px) {
    .main { flex: 2 0px; }
    .sidebar { order: 1; }
    .main { order: 2; }
    .footer { order: 3; }
      .flex-nav {  width: 50%; }
} 

.header {
    margin: 10px 0 0 10px;
    width: 100%;
}

.flex-nav {
display: flex;
flex-flow: row wrap;
  gap: 15px;
  justify-content: space-between;
    padding-inline: 0;
    padding: .25rem;
    margin: 0 auto;
}

.main {
    background: #f0f0f0;
    border: 1px dashed #4d4747;
    box-shadow: 0 0 0 5px #f0f0f0;
    box-sizing: border-box;
    margin: 15px;
    padding: 0.5em;
}

.sidebar {
    background: #f0f0f0;
    border: 1px dashed #999;
    box-shadow: 0 0 0 5px #f0f0f0;
    box-sizing: border-box;
    margin: 15px;
    padding: 0.5em;
}

.footer {
    background: #1f1d1d;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 0.5em;
    margin: 5px 10px 0 10px;
    color: #b1b59a;
    font-family: "Alagard";
    text-align: center;
}

.sbox {
    background: #fff;
    border: solid 1px #000;
    box-shadow: 5px 5px 5px #ccc;
    box-sizing: border-box;
    margin: 1em 0;
    padding: 0.5em;
    width: 80%;
}

.dbox {
    background: #8c8673;
    border: 1px dashed #fff;
    box-shadow: 0 0 0 5px #8c8673;
    box-sizing: border-box;
    color: #fff;
    margin: 15px 0 25px;
    padding: 0.5em;
    width: 80%;
}