@font-face {
    font-family: "one47";
    src: url("../fonts/OneFortySevenRegular.woff2") format("woff2");
}

body {
    /* font-family: 'Courier New', monospace; */
    font-family: "one47";
    background-color: #1d1d1d;
    background-image: url('../media/bookshelf/tile-bg.webp');
    background-size: 150px;
    background-attachment: fixed;
    /* background-repeat: no-repeat; */
}

.box {
    max-width: 1050px;
    margin: 0px auto;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    grid-template-rows: auto max-content 1fr auto;
}

nav, main, .litem1, .litem2, aside.right-sidebar {
    border: #a8bd20 1px solid;
    /* border-style: outset; */
    border-radius: 2px;
    padding: 5px 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.bookshelf {
    border: 15px solid;
    height: 40vh;
    border-image: url("../media/bookshelf/wood2.webp") 30;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url(../media/bookshelf/wood2.webp);
    background-size: cover;
}

.shelf {
    border-bottom: 20px solid;
    /* height: 40vh; */
    border-image: url("../media/bookshelf/wood2.webp") 30;
}

.shelf h1 {
    color: white;
    text-shadow: 1px 1px black;
    /* background: rgba(214, 203, 118, 0.9);
    border-radius: 10px; */
    width: max-content;
    margin: 0 auto;
    padding: 5px;
}

.bottomshelf h1 {
    color: white;
    text-shadow: 1px 1px black;
    /* background: rgba(214, 203, 118, 0.9);
    border-radius: 10px; */
    width: max-content;
    margin: 0 auto;
    padding: 5px;
}

header {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.left-sidebar {
    grid-row: 2 / 4;
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.bookshelf {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    height: max-content;
    margin: 0;
}

main {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
    height: max-content;
    margin: 0;
}

aside.right-sidebar {
    grid-row: 2 / 4;
    grid-column: 3 / 4;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

aside.right-sidebar p {
    margin: 0;
}

header h1 {
    color: #a8bd20;
    margin: 0 auto;
    margin-bottom: -30px;
    margin-right: 8px;
    text-align: center;
    font-family: one47;
    text-shadow: 3px 3px black;
    font-size: 100px;
}

header {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 0 auto;
    width: max-content;
    padding: 10px;
}

main {
    font-family: "one47";
    font-size: 30px;
}

main p {
    margin-top: 0px;
    margin-bottom: 25px;
    color: white;
    text-shadow: 1px 1px black;
    line-height: 1;
}

main h1 {
    margin: 5px 0;
    color: #a8bd20;
    text-shadow: 3px 3px black;
}

main hr {
    border: none;
    height: 1px;
    background-color: #a8bd20;
}

main h5 {
    margin: 10px
}

.bookshelf p {
    margin: 5px 0;
    color: white;
    text-shadow: 2px 2px gray;
    line-height: 1;
}

nav h4 {
    text-align: center;
    text-shadow: 1px 1px gray;
    font-size: 25px;
}

nav {
    font-size: 20px;
}

.litem1 p {
    text-align: center;
    margin: 0;
}

.litem2 p {
    text-align: center;
    margin: 0;
}

footer {
    grid-row: 4 / 5;
    grid-column: 2 / 3;
}

footer p {
    background: #57575780;
    border-radius: 10px;
    width: max-content;
    margin: 0 auto;
    font-weight: bold;
    font-size: 15px;
    padding: 5px;
    color: #a8bd20;
}

ul {
    padding: 0;
    margin: 10px 0;
    
}

ul li::marker {
    content: none;
}

a:link {
    font-weight: bold;
    color: yellow;
}

a:visited {
    color: #a8bd20;
}

a:hover {
    color: orange;
}

a:active {
}

h4 {
    margin: 10px 0;
}

img {
    max-width: 100%;
    display: inline;
    margin: 0 0px;
    vertical-align: bottom;
}

.right {
    float: right;
    margin-left: 10px;
}

.left {
    float: left;
    margin-right: 10px;
}

h6 {
    margin: auto;
    margin-top: 5px;
    font-size: 15px;
    text-align: center;
}

.images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-top: 5px;
}

.images-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
}

li a {
    display: inline-block;
    margin: 3px;
}

[id] {
    display: none;
}

[id]:target {
    display:block;
}

.litem1 ul {
  
    list-style-type:none; /* this removes the bulletpoints */
    /* there is an annoying left padding in the ul element by default */
    padding-left:0; /* this removes it */
}

.litem1 li a {
    display:inline-block; /* this allows us to add margin to each item 
                           so there's space for it to rotate */
    margin:10px;
}

/* this makes stuff happen when you hover! */
.litem1 li a:hover {
    transform:rotate(-15deg); /* play with this 15deg value, works w/ negatives too! */
    /* more CSS transform options: https://developer.mozilla.org/en-US/docs/Web/CSS/transform */
}
