@use 'sass:color';

$base_colour: #FDF2D1;
$font_colour: #1A1110;
$box_shadow: grey;
$dark_box_shadow: #674834 ;

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

/* remove default spacing */
/* force styling of type through styling, rather than elements */
* {
  margin: 0;
  padding: 0;
  font: inherit;
  border: 0;
  list-style: none;
  text-decoration: none;
  border: none;
}

/* dark mode user-agent-styles */
html {
  color-scheme: dark light;
  font-family: monospace;
  font-size: 16px;
}

/* responsive images/videos */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

header {
    padding: 1.6rem 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    & h1 {
        font-size: 2.2rem;
        text-align: right;
    }
    & img {
        border-radius: 50%;
        width: 64px;
        height: 64px;
    }
}

nav {
    padding: 12px;
    border: 1px dashed white;
    border-radius: 12px;
    font-size: 1.4rem;
    & ul {
        text-align: center;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-evenly;
        & li {
            min-width: 100px;
            &:before {
                content: "≫ ";
            }
        }
    }
}

body {
    width: 95vw;
    margin: auto;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

main {
    & article {
        margin: 12px 0;
        border: 1px dashed white;
        padding: 12px;
        border-radius: 12px;
        & > a {
            display: block;
            text-align: right;
            padding: 0.4rem;
        }
        & h2 {
            text-align: center;
        }
        & p {
            padding: 0.4rem 0;
        }
    }
}

.prose_section {
    // margin: 1.2rem;
    border: 1px solid lightcoral;
    & h2 {
        text-align: center;
        text-decoration: underline;
    }
    & p {
        margin: 16px;
    }
    & blockquote {
        border-left: solid red;
        margin: auto;
        width: 80%;
        padding: 0.5rem;
        text-align: justify;
        font-style: italic;
    }
}

.lists {
    border: 1px solid lightgreen;
    & h2 {
        text-align: center;
        text-decoration: underline;
        margin-bottom: 0.4rem;
    }
    & h3 {
        font-weight: bold;
        margin: 0 1rem;
    }
    & section {
        margin: 0.2rem 2.5rem;
    }
    & ol,
      ul  {
        margin: 0 2rem;
    }
}
.ol_item {
    list-style: lower-roman;
}
.ul_item {
    list-style: disc;
}

.tables {
    border: 1px solid goldenrod;
    margin: 0.8rem auto;
    padding: 0.1rem;
    border-radius: 12px;
    & h2 {
        text-align: center;
    }
    & table {
        margin: 0.4rem auto 1.2rem;
        border: 1px solid goldenrod;
        border-radius: 4px;
        & thead {
            letter-spacing: 2px;
            border: 1px dashed white;
            & tr {
                font-size: 1.8rem;
                text-align: center;
                color: black;
                & td {
                    background-color: lightpink;
                    border-radius: 4px;
                    width: 33%;
                }
            }
        }
        & tbody {
            color: black;
            & td {
                padding: 0 0.4rem;
            }
            & tr:nth-child(odd) {
                background-color: lightgreen;
            }
            & tr:nth-child(even) {
                background-color: lightskyblue;
            }
        }
        & tfoot {
            text-align: center;
            font-weight: bold;
            font-style: italic;
            background-color: lightpink;
            color: black;
        }
    }
}

.span_two {
    text-align: right;
}

.images {
    border: 1px solid $dark_box_shadow;
    padding: 0.4rem;
    & section {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-evenly;
        align-items: normal;
        gap: 12px;
        margin: 10px auto;
    }
    & img {
        width: 95%;
        border-radius: 12px;
        box-shadow: 1px 2px 4px grey;
    }
}


footer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

@media only screen and (min-width: 980px) {
    header {
        width: 80vw;
        margin: auto;
    }
    nav {
        width: 80vw;
        margin: auto;
    }
    main {
        width: 80vw;
        margin: auto;
    }
    .images img {
        width: 45%;
    }
}

@media (prefers-color-scheme: dark) {
    .images img {
        box-shadow: 1px 2px 4px $dark_box_shadow;
    }
}
