/* CODE BY OOPS.LOL 
READ BELOW FOR A HEADSTART ON EDITING


this layout uses CSS flexbox and grid for most positioning
the guides below have great visual aids

FLEXBOX: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
GRID: https://css-tricks.com/snippets/css/complete-guide-grid/

it also uses a media quesry for mobile responsiveness:
https://www.w3schools.com/css/css_rwd_mediaqueries.asp

*/

/* CSS RESET below, basically makes code less annoying to deal with by default */

@font-face {
font-family: "victor mono";
font-style: normal;
font-weight: 400;
src: url('fonts/victor mono.ttf') format('truetype');
}

@font-face {
  font-family: 'victoritalic';
  font-weight: 100;
  src: url('fonts/victor mono italic.ttf') format('truetype');
}

@font-face {
font-family: "sylmono";
font-style: normal;
font-weight: 400;
src: url('fonts/sylmono.ttf') format('truetype');
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
  max-width: 80%;
  height: auto;
  margin: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 10%;
}

.imgbtn {
  float: none;
  width: 88px;
  display: inline-block;
  border-radius: 0%;
  padding-top: 0px;
}

/* main body & text details.nav */
body {
    background: url(images/background.png);    
    color: #000;
    font-size: 14pt;
    font-family: victor mono, Courier, monospace;
    text-align: center;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    min-height: 100dvh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}

a,
a:visited {
    color: #000;
    text-decoration: underline;
}

a:hover {
    text-decoration: overline;
}

strong {
    font-weight: bold;
    color: #2a173b;
}

em {
    font-style: italic;
    color: #1e1a4a;
}

p {
    max-width: 95%;
    margin: auto;
}

details.nav summary::-webkit-details-marker,
details.nav summary::marker {
    content: "\2261";
    font-size: 1.5em;
    font-weight: bold;
}

details.nav[open] summary {
    position: absolute;
    background: none;
    -webkit-backdrop-filter: blur(0px);
    z-index: 2;
    left: 3px;
    top: 3px;
}

details.nav[open] {
    border: 0px outset #0004;
}

details.nav summary {
    font-family: victor mono, Courier, monospace;
    background: #544e9a3d;
    text-align: left;
    padding-left: 4px;
    color: #00000058;
}

details.nav {
    margin: 5px auto;
    position: relative;
    border: 4px outset #0004;
}

/* grid */
#grd {
    display: grid;
    grid-template-areas: "side   top " "side   main" "xtra   main" "footer footer" ;
    grid-template-columns: 1fr 3fr;
    height: 90dvh;
    width: 76vw;
    -moz-column-gap: 0.5em;
    column-gap: 0.5em;
    border: 1px outset #00000021;
    padding: 0.3em;
    background: #e5def9;
    -webkit-backdrop-filter: blur(2px);
}

/* top & main body */
header {
    grid-area: top;
}

main {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: auto;
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
   	background: RGB(239, 233, 246, 0.8);
    border: 4px outset #00000024;
    gap: 0.5em;
}

/* sidebar 1 */
#sidebar {
    width: 100%;
    overflow: auto;
    grid-area: side;
    border: 4px oute5def9set #00000030;
    height: 40vh;
    border: 1px dotted;
    font-size: 0.8em;

}

/* sidebar 2 */
#extra {
    width: 100%;
    overflow: auto;
    grid-area: xtra;
    -webkit-backdrop-filter: blur(10px);
    height: 40vh;
    border: 1px dotted;
    margin-top: 0.5em;
}

/* text box */
.bloop {
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    width: 84%;
    margin: 0 auto 0.5em;
    overflow: auto;
    padding: 10px 0;
    flex-shrink: 0;
    -webkit-backdrop-filter: blur(5px);
}

/* no bg box */
.blip {
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    width: 100%;
    margin: auto;
  line-height: 1.2;
}

/* nav */
nav {
    background-color: #e5def9;
    -webkit-backdrop-filter: blur(5px);
    width: 100%;
    padding: 10px 0;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
   text-transform: uppercase;
    gap: 0;
    border: 4px outset #00000026;
}

nav a,
nav a:visited {
    color: #a191d4;
    flex-grow: 1;
    letter-spacing: 2px;
    -webkit-text-decoration: underline dotted;
 text-transform: uppercase;
 font-size: 1em;
    font-family: victor mono, Courier, monospace;
    font-weight: bold;
    font-variant-caps: titling-caps;
}

nav a:hover {
    color: #a191d4;
    flex-grow: 1;
    letter-spacing: 2px;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
    font-size: 1em;
    font-weight: bold;
    background-color: #e5def9;
}

/* footer */
footer {
    grid-area: footer;
    width:100%;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    font-family: victor mono, Courier, monospace;
    overflow: hidden;
    color: #000;
}

/* header presets */
h1 {
   font-family: victoritalic, Courier, monospace;
    color: #e794c7;
    font-size: 2.3em;
    font-weight: bold;
    margin: auto;
    -webkit-backdrop-filter: blur(5px);
    border: 4px outset #0003;
    padding-bottom: 8px;
}

h2 {
    font-family: victor mono, Courier, monospace;
    color: #e794c7;
    font: 2em courier;
    margin: 0 auto;
    text-decoration: underline;
    -webkit-text-decoration-style: double;
    text-decoration-style: double;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
    width: 100%;
    padding: 3px 0 5px;
}

h3 {
    color: #a191d4;
     background: #fff;
    font-size: 1em;
    margin: 0px auto 10px;
    -webkit-text-decoration: underline 4px dotted;
   font-family: victor mono, Courier, monospace;

}

/* mobile mode */
@media (orientation: portrait) and (max-width: 955px) {

    /* change grid to a single column */
    #grd {
        display: grid;
        grid-template-areas: "top" "side" "main" "xtra" "footer";
        grid-template-rows: -webkit-min-content auto auto auto auto;
        grid-template-rows: min-content auto auto auto auto;
        grid-template-columns: 100%;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        width: 100vw;
        row-gap: 10px;
    }

    /* change nav to a column */
    nav {
        flex-direction: column;
        width: 100%;
        margin: auto;
        gap: 0.3em;
    }

    #sidebar,
    #extra {
        height: fit-content;
        min-height: fit-content;
    }

    main {
        max-height: 500px;
    }
}