/* ----------- */
/* GENERAL CSS */
/* ------------*/

.header_bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.header_bar>.button {
    margin-left: 1rem;
}

.header {
    width: auto;
    text-align: center;
}

.navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.2rem;
}

body {
    max-width: 60rem;
    display: block;
    float: none;
    margin: 1rem;
    padding: 0.5rem;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12pt;
}

/* MAIN CONTENT */

main {
    padding: 1.5rem;
}

.center_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center {
    text-align: center;
}

.bold {
    font-weight: bold;
}

.link {
    text-decoration: none;
    margin: auto;
    color: blue;
    font-weight: bold;
}

/* FOOTER */

footer {
    padding: 2rem;
}

.footer_icons {
    display: flex;
}

.footer_icons>a>img {
    height: 20px;
    filter: #0ff;
}

.footer_icons>a {
    display: block;
    padding: 0.4rem;
    text-decoration: none;
    border: 1px solid #fff;
}

.footer_icons>a:hover {
    border: 1px solid #000;
}

/* BUTTONS USED FOR NAVIGATIONS AND INLINE */

.button {
    border: 1px;
    border-style: solid;
    box-shadow: 2px 2px black;
    margin: 0.5rem;
    padding: 0.5rem;
    list-style-type: none;
    text-align: center;
}

.button a {
    text-decoration: none;
    color: black;
    font-style: italic;
}

.button:hover {
    background-color: black;
}

.button:hover a {
    color: white;
    font-weight: bold;
}

/* BANNERS */
.banner {
    border: 1px;
    width: 100%;
    border-style: dashed;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
}

.banner p {
    text-align: center;
    width: 100%;
}

.banner img {
    height: 2rem;
    padding: 0.5rem;
}

/* TABLE OF CONTENT */

.toc {
    list-style-type: none;
}

.toc li {
    list-style-type: none;
    border-left: 2px solid #000;
    margin-left: 1em;
}

.toc li span {
    padding: 0.5rem;
    padding-left: 2rem;
    position: relative;
    display: inline-block;
}

.toc li span a {
    border: 1px;
    border-style: solid;
    box-shadow: 2px 2px black;
    padding: 0.2rem;
    text-decoration: none;
    color: black;
    font-style: italic;
}

.toc li span a:hover {
    color: white;
    background-color: black;
    font-weight: bold;
}

.toc li span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    bottom: 50%;
    width: 1.75rem;
    border: 2px solid #000;
    border-top: 0 none transparent;
    border-right: 0 none transparent;
}

.toc li:last-child {
    border-left: 2px solid transparent;
}

/* BLOG COMMENTS / SIDENOTES */

.comment {
    font-size: 80%;
    font-style: italic;
    border: 1px;
    border-style: dashed;
    padding: 0.5rem;
}

.comment * {
    margin: 0.5rem;
}

@media (min-width: 1300px) {
    .comment {
        float: right;
        width: 10vw;
        margin-right: -12vw;
    }
}

/* BLOG LIST */

.bloglist {
    flex-direction: column;
    list-style: none;
    padding-left: 0;
}

.blogitem {
    display: flex;
    flex-direction: row;
}

.blogitemimage {
    display: flex;
    height: 10rem;
    aspect-ratio: 1;
    border: 1px;
    border-style: solid;
    box-shadow: 2px 2px black;
    margin: 0.5rem;
    padding: 0.5rem;
}

@media (max-width: 750px) {
    .blogitemimage {
        display: none;
    }
}

.blogitembody {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 10rem;
    border: 1px;
    border-style: solid;
    box-shadow: 2px 2px black;
    margin: 0.5rem;
    padding: 0.5rem;
    text-decoration: none;
    color: black;
}

.blogitembody:hover {
    color: white;
    background-color: black;
    font-weight: bold;
}

.blogitembody h2 {
    margin: 0.5rem;
}

.blogitembody p {
    margin: 0.5rem;
}

/* CIRCUIT VIZ */
.circuitline {
    stroke: black;
    fill: none; 
    stroke-width: 3px;
}

/* ----------------- */
/* PAGE-SPECIFIC CSS */
/* ----------------- */

/* index.html */

.about_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1rem;
    justify-content: space-between;
    width: 100%;
}

.about_row>div {
    margin: auto;
    padding: 0.5rem;
    min-width: 20rem;
    flex: 1;
}

/* .about_row p {
    text-align: justify;
} */

.about_top_table {
    list-style: none;
    margin: 0.5rem;
    padding: 0;
}

.about_top_table>li {
    border-top: 2px solid #000;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.about_top_table>li:last-of-type {
    border-bottom: 2px solid #000;
}

.about_top_table>li>* {
    margin: auto;
    margin-top: 0;
    flex: 1;
}

.about_top_table>li>span {
    font-weight: bold;
    padding: 0.5rem;
    text-align: right;
}

.about_side_table {
    list-style: none;
    padding: 0;
}

.about_side_table>li {
    padding: 0.5rem;
}

.about_side_table>li + li {
    border-top: 1px dashed #000;
}

/* TABLE FOR INSTRUCTIONS PAGE */

.instruction_table,
.instruction_table th,
.instruction_table td {
    border: 1px solid;
}

.instruction_table {
    width: 100%;
    border-collapse: collapse;
}

.instruction_table th {
    padding: 0.5rem;
}

.instruction_table td {
    padding: 0.5rem;
}