/* change the colors here! */
:root {
    --bgcolor: #e8c4c4;
    --lightcolor: #fef7dd;
    --popcolor: #ebc061;
    --darkcolor: #56263e;
    --darkestcolor: #361626;
}

/* the rest of the layout vv */
@font-face {
  font-family: "Other Hand";
  src: url('/assets/font/OtherHand-Medium.woff2');
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bgcolor);
    color: var(--darkestcolor);
    font-family: system-ui;
    z-index: 1;
}

table {
  width: 100%;
}

table, th, td {
  border: thin solid;
  border-collapse: collapse;
  padding: 0.4rem;
}

blockquote {
  font-style: italic;
}

::selection {
    background-color: var(--popcolor)
}

h1 {
    color: var(--lightcolor);
    font-family: "Bagel Fat One", "Arial Black", sans-serif;
    font-size: 50pt;
    font-weight: normal;
    text-shadow: 2px 2px var(--darkcolor);
    max-width: 600px;
    margin: auto;
    margin-bottom: -25px;
    position: relative;
    z-index: 4;
}

a {
    color: var(--darkestcolor);
    border-radius: 5px;
    font-weight: bold;
    text-decoration: dotted underline 1px;
    text-shadow: var(--bgcolor) 1px 1px;
}

a:hover {
    color: var(--popcolor)
}

img {
    max-width: 100%;
}

button {
    border: var(--darkcolor) 2px solid;
    background-color: var(--lightcolor);
    box-shadow: var(--bgcolor) 3px 3px;
    border-radius: 3px;
    font-family: inherit;
    font-weight:bold;
    font-size: 14pt;
    color: inherit;
}

button:active {
    box-shadow: none;
    border-color: var(--darkestcolor)
}

button:hover,
button:focus {
    border-color: var(--popcolor)
}

.box {
    border: var(--darkcolor) 6px solid;
    border-radius: 6px;
    width: 600px;
    max-width: 100%;
    height: 80vh;
    margin: auto;
    position: relative;
}

.innerbox {
    width: 100%;
    height: 100%;
    background-color: var(--lightcolor);
    overflow: auto;
    line-height: 1.2;
    position: relative;
    z-index: 3;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--popcolor) var(--lightcolor);
}

.leftcorner {
    position: absolute;
    bottom: -75px;
    left: -75px;
    max-height: 150px;
    z-index: 5;
}

.rightcorner {
    position: absolute;
    bottom: -75px;
    right: -75px;
    max-height: 150px;
    z-index: 5;
}

/* modifications for smaller screens - most notably changing the navigation tab's location and appearance so it moves to the bottom of the box. */

@media only screen and (max-width: 889px) {
    .sidebox {
        top: unset;
        right: 75px;
        bottom: -23px;
        border-top-right-radius: unset;
        border-bottom-left-radius: 20px;
        border-left: none;
        border-top: 6px var(--darkcolor) solid;
        box-shadow: 0px 5px 5px inset var(--darkestcolor);
        padding: unset;

    }

    .sidebox p {
        transform: unset;
        bottom: 5px;
        top: unset;
        right: unset;
        left: 26%;
    }

    .sidebox:hover,
    .sidebox:focus {
        right: 75px;
        bottom: -200px;
    }

    .sidebox ul {
        height: 160px;
        margin: 5px;
        margin-left: 5px;
    }

}

@media only screen and (max-width: 760px) {
    .leftcorner {
        display: none;
    }

    .rightcorner {
        display: none;
    }

}

.typo {
  text-decoration: underline wavy red;
}

/* === css for kramdown anchor links === */
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
  position: relative;
  width: fit-content;
}

h2[id] > a:first-child,
h3[id] > a:first-child,
h4[id] > a:first-child,
h5[id] > a:first-child,
h6[id] > a:first-child {
  position: absolute;
  inset: 0;
}

h2[id]:hover,
h3[id]:hover,
h4[id]:hover,
h5[id]:hover,
h6[id]:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* === lightbox code === */
.lightbox {
  /* Default to hidden */
  display: none;

  /* Overlay entire screen */
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* A bit of padding around image */
  padding: 1em;

  /* Translucent background */
  background: rgba(0, 0, 0, 0.8);
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
  display: block;
}

.lightbox span {
  /* Full width and height */
  display: block;
  width: 100%;
  height: 100%;

  /* Size and position background image */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

