:root {
    --text-color: #000000;
    --bg-color: #ffffff;
    --accent-color: #565656;
    --link-color: #0066cc;
}

[data-theme="dark"] {
    --text-color: #ffffff;
    --bg-color: #000000;
    --accent-color: #a4a4a4;
    --link-color: #72e6fd;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

hr {
    border-top: 0px;
    border-bottom: 1px solid var(--accent-color);
    margin: 40px 100px;
}

p {
    margin: 15px 0px;
}

a {
    /* If you're looking for the color for the glossary words, it's in glossary.js with a note */
    text-decoration: none;
    color: var(--link-color);
}

a[href="#"] {
    /* This sets a custom color for links that lead to placeholder # URLs, so you can put placeholders for chapters that aren't out yet */
    color: var(--accent-color);
}

ol {
    list-style-type: lower-roman;
}

h2, h3, h4 {
    margin: auto;
    max-width: 650px;
}

h1 {
    margin: 5px;
}

h3 {
    font-style: italic; 
    text-align: center;
}

/* dark mode toggle */
.theme-switch-wrapper {
  display: flex;
  align-items: center;

  em {
    margin-left: 10px;
    font-size: 1rem;
  }
  margin-bottom: 20px;
}
.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display:none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.index-supertitle {
    text-align: center;
    margin: 20px 0px 0px 0px;
    font-size: .8rem;
}

.index-supertitle a {
    color: var(--accent-color);
}

.indent-sidebar {
    padding-left: 20px;
    max-width: 650px;
    margin: auto;
    border-left: 1px var(--accent-color) solid;
}

.container {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap;
}

.content {
    flex: 3;
    padding: 20px;
}

.sidebar-left, .sidebar-right {
    flex: 1;
    text-align: center;
    min-width: 200px;
    margin-top: 40px;
}

.sidebar-left a[href="#"] {
    font-size: 0px;
}

.sidebar-right a[href="#"] {
    font-size: 0px;
}


.sidebar-left a, .sidebar-right a {
    display: block;
    padding: 50px 0px 0px 0px;
}

.column {
    flex: 1;
    max-width: 50%;
    padding: 10px;
    box-sizing: border-box;
}





@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .column {
        max-width: 100%;
    }
    
    .sidebar-left {
        margin-top: 44px;
    }

    .sidebar-right {
        margin-top: 0px;
        margin-bottom: 44px;
    }
    
    .sidebar-left a {
    display: block;
    padding: 40px 0px 0px 0px;
    }
    
    .sidebar-right a {
    display: block;
    padding: 3px 0px 0px 0px;
    }
}