@charset "UTF-8";

@font-face {
    font-family: porson;
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
    src: url('fonts/GFSPorson-Regular.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
    src: url('fonts/charter_regular.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: italic;
    font-weight: normal;
    font-stretch: normal;
    src: url('fonts/charter_italic.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: normal;
    font-weight: bold;
    font-stretch: normal;
    src: url('fonts/charter_bold.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: italic;
    font-weight: bold;
    font-stretch: normal;
    src: url('fonts/charter_bold_italic.woff2') format('woff2');
}

@font-face {
    font-family: cooperhewitt;
    font-style: normal;
    font-weight: 600;
    font-stretch: normal;
    src: url('fonts/CooperHewitt-Semibold.woff') format('woff');
}

html {
    font-size: 13px;
}

body {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10%;
    font-family: charter, serif;
    background-color: #fffff8;
    color: #111;
    overflow-y: scroll; 
}

#logo {
    font-family: cooperhewitt, sans;
    font-weight: 600;
    font-size: 2rem;
    border: 4px solid #111;
    padding: 6px;
    float: right;
    margin-left: 3rem;
}

#nav {
    font-family: cooperhewitt, sans;
    font-weight: 600;
    font-size: 1.6rem;
    padding: 1rem;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: #fffff875;
    z-index: 1;
}

.toggle {
  position: relative;
  box-sizing: border-box;
  float: left; 
}
.toggle input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}
.toggle label {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.toggle label:after {
  content: '';
  margin-left:.5rem;
  margin-top:1px;
  width: 35px;
  height: 20px;
  background: #fff;
  border: 1px solid #DDD;
  box-shadow: inset -15px 0 0 #CCC;
  position: relative;
  display: inline-block;
  border-radius: 10px;
  box-sizing: border-box;
  transition: 0.1s ease-in-out;
}
.toggle input[type="checkbox"]:checked + label:after {
  box-shadow: inset 15px 0 0 #13bf11;
}
.segmented{
  background-color: #dedede70;
  padding: 5px 5px;
  display: inline-block;
  border-radius: 8px;
  margin-top:-11px;
}
.segmented-sel{
  padding: 5px 13px;
  display: inline-block;
  border-radius: 6px;
}
.segmented .current-view {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.06);
  transition: 0.1s ease-in-out;
}
#nav2 {
    font-size: 1.4rem;
    position: fixed;
    right: 2rem;
    top: 2rem;
    z-index: 1;
}

#menu {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: #dedede70;
  height: 50px;
  width: 50px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 9999;
  border-radius: 5px;
}

#menu span {
  position: absolute;
  height: 3px;
  width: 25px;
  background-color: #111;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  transition: 0.3s;
}

#menu span:before {
  content: '';
  position: absolute;
  top: -8px;
  background-color: #111;
  height: 3px;
  width: 25px;
  transition: 0.3s;
}

#menu span:after {
  content: '';
  position: absolute;
  top: 8px;
  background-color: #111;
  height: 3px;
  width: 25px;
  transition: 0.3s;
}

#menu.active span { background-color: transparent; }
#menu.active span:before { transform: rotate(45deg);top: 0; }
#menu.active span:after { transform: rotate(-45deg);top: 0; }

#menu-c {
  position: relative;
  top: -12px;
  right: 50px;
  height: 22px;
  transform: translateY(-80px);
  transition: 0.3s;
  padding: 1rem;
  background: #fffff8e3;
  border-radius:7px;
}

#menu-c.active { transform: translateY(0);transition: 0.3s; }

#menu-c > span {
    margin-left: 1rem;
    float:left;
}

.link:hover, .current-view {
  cursor: pointer;
  /*border-bottom: 3px solid #111;*/
}

#menu-c > .dis {
  pointer-events: none;
  cursor: default;
}

#menu-c > .dis {
  color: #ddd;
}
/* Adds dark mode 
@media (prefers-color-scheme: dark) {
    body {
        background-color: #151515;
        color: #ddd;
    }
    #logo {
        border-color:#ddd;
    }
} */

h1 {
    font-weight: 400;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
    line-height: 1;
}

h2 {
    font-style: italic;
    font-weight: 400;
    margin-top: 2.1rem;
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
    line-height: 1;
}

h3 {
    font-weight: 400;
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: .7rem;
    line-height: 1;
}

article {
    padding: 5rem 0rem;
    display: grid;
    grid-template-areas:    "title title title"
                            "greek english comments"
                            "glossary glossary comments";
    grid-auto-columns: 500px 525px 1fr;
    grid-template-rows: auto 1fr;
}

section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}


#greek {
    font-family: porson, serif;
    grid-area: greek;
    line-height: 2.2rem!important;
    width: max-content;
    white-space: nowrap;
}

#greek .spanbr, #english .spanbr {
  margin-bottom: 1.4rem;
}

#english {
    grid-area: english;
}
#title {
    grid-area: title;
    font-size: 1.35rem;
}

#title a, #title span.alike{
    font-style: italic;
    text-decoration: underline;
}

#title span.alike:hover, #title span.alike{
    cursor: pointer;
}

#title p, #title ul{
    width: 81rem;
    line-height: 1.6rem;
    font-size: 1.25rem;
    margin-top:1rem;
    margin-bottom:1.3rem;
}
#title ul{
    width: 78rem;
}
#title li{
    margin-bottom:.5rem;
}

#comments {
    grid-area: comments;
}

#glossary {
    grid-area: glossary;
    font-size: 1.35rem;
}

#glossary span {
    font-family: porson, serif;
}

#glossary .sub {
    margin-left: 1rem;
    margin-top: -.8rem;
}

#comments p {
    font-size: 1.1rem;
    line-height: 1.5rem;
    max-width: 30rem;
    background: wheat;
    padding: .5rem .9rem;
    margin-right: 1rem;
    display: none;
}

#comments p br{
    margin-bottom:.5rem;
}

#comments p:after {
    content: "";
    position: absolute;
    border-left: 15px solid rgba(0, 0, 0, 0);
    border-top: 15px solid rgba(0, 0, 0, 0);
    border-bottom: 15px solid rgba(0, 0, 0, 0);
    border-right: 15px solid wheat;
    top: 15px;
    left: -27px;
}

#english p,.stephanus,#greek {
    font-size: 1.4rem;
    line-height: 2.01rem;
}

#english .stephanus{
    display: none;
}

#greek .stephanus{
    font-size: 1.2rem;
    padding-top: 2px;
}

#greek .hl{
    padding: 2px 0px;
}

.hl{
    background: #ffe4c48f;
}

.hl:hover, .hl.hovered, .current{
    background: wheat!important;
    cursor: pointer;
}

p {
    margin-top: .7rem;
    margin-bottom: 1.4rem;
    padding-right: 2rem;
    vertical-align: baseline;
}

span.stephanus {
    margin-left:-7rem;
    float:left;
    text-align:right;
    width:6rem;
}

a:link,a:visited {
    color: inherit;
}
