/* Page structure */

body {
    background-color: #F9F9EC;
}

.topspace{
    height: 10px;
}
.page-container{
    width:70%;
    margin: 0 auto;
    text-align: left;
}
.topmatter{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end; 
    height: 300px;

    text-shadow: -1px 1px 4px #F9F9EC,
                  1px 1px 4px #F9F9EC,
                 1px -1px 4px #F9F9EC,
                -1px -1px 4px #F9F9EC;

    background-image: url("circuit_tree.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;

    border-bottom: 2px solid #A2673A;

}
.title{
    font-family: 'Antic', sans-serif; font-size: 40px;
    color: #339933;
    display: flex;
    text-align: right;
    padding: 0px 10px 0px 0px;
}
.title a {
    text-decoration: none;
    color: #339933;
}
.title a:hover {
    text-decoration: none;
    color: #116611;
}
.subtitle{
    font-family: 'Antic', sans-serif; font-size: 25px;
    color: #116611;
    display: flex;
    text-align: right;
    padding: 0px 10px 10px 0px;
}
@media (max-width:40em) {
    .title {
        text-align: center;
    }
    .subtitle {
        text-align: center;
    }
    .topmatter{
        align-items: center;
    }
}
h1{
    font-family: 'Antic', sans-serif;
    font-size: 30px;
    color: #117711;
}
h2{
    font-family: 'Antic', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #117711;
}
a {
    color: #116611;;
}
a:hover {
    color: #003300;
}

ul {
    margin: 0px;
    padding: 0px;
}
li {
    padding-bottom:10px;
}
li:first-child {
    padding-top:30px;
}
li:last-child {
    padding-bottom:30px;
}
li li:first-child {
    padding-top: 10px;
}
li:last-child li:last-child{
    padding-bottom: 0px;
}

.no-margin li:first-child {
    padding-top:0px;
}
.no-margin li:last-child {
    padding-bottom:0px;
}

.detail-link a {
    text-decoration: none;
    font-weight: bold;
}
.detail-link a div {
    margin: 10px;
    font-style: italic;
    text-decoration: underline;
    font-weight: normal;
    font-size: 70%;
    display: inline;

}
.detail-link a div:before
{   content:"<"; }
.detail-link a div:after
{   content:">"; }


.alternating-images h2 {
    margin-bottom: 0px;
    padding-bottom: 5px;
}
.alternating-images h2 + span {
    display: block;
    font-style: italic;
    margin-bottom: 15px;
}

.alternating-images {
    width: 85%;
}

.alternating-images .glow-button {
    margin-left: 0px;
    margin-right: 0px;
    padding: 10px;
    font-size: 16px;
}
.alternating-images li {
    margin: 0px 0px 20px 0px;
    padding: 0px;
}
.alternating-images li div {
    display: block;
    overflow: hidden;
}
.alternating-images li img {
    width: 20vw;
    margin: 0px 20px 10px 20px;
    border: 2px #007700 solid;
    border-radius: 10px;
}
.alternating-images li:nth-child(odd) img {
    float: left;
    margin-left: 0px;
}
.alternating-images li:nth-child(even) img {
    float: right;
    margin-right: 0px;
}
.separator{
    width:100%;
    height:2px;
    background: #A2673A;
    margin-top: 30px;
}
.decorated-separator{
    width:100%;
    height:35px;;
    display: flex;
    flex-flow: row nowrap;
    margin-top: 20px;
}
.decorated-separator div:nth-child(1), .decorated-separator div:nth-child(3) {
    width:100%;
    height:25px;
    display: flex;
    align-self: flex-start;
    background-image: url('separator_edge.png');
    background-repeat:repeat-x;
    background-position: center left;
    background-size: auto 100%;
}
.decorated-separator div:nth-child(2){
    min-width:150px;
    height:25px;
    display: flex;
    background-image: url('separator.png');
    background-repeat:no-repeat;
    background-position: center center;
    background-size: auto 100%;
}
.content {
    font-family: 'Antic', sans-serif; font-size: 20px;
    color: #003300;
    padding: 10px 10px 10px 10px;
}
.colophon {
    font-family: 'Antic', sans-serif; font-size: 12px;
    color: #336633;
    padding: 30px 40px 40px 40px;
    text-align: center;
}
.links {
    text-align: center;
    font-family: 'Antic', sans-serif; font-size: 25px;
    color: #116611;
    display: block;
    margin: 10px;
}
.links li,a {
    padding: 0px;
}
.wrap-list ul {
    list-style-type: none;
    margin: 0px;
}
.wrap-list li {
    display: inline;
    white-space: pre;
    word-break: normal;
    white-space: normal;
}
.wrap-list li:after {
    color: #116611;
    content: " \2022";
}
.wrap-list li:last-child:after {
    content: none;
}
.wrap-list a {
    text-decoration: none;
}

.headshot {
    float:right;
    width: 50%;
    max-width: 300px;
    margin: 30px 0px 20px 30px; 
}

/* Block quotes */

.q {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 40px;
    margin-inline-end: 40px;
    font-family: Georgia,"Times New Roman",Times,serif;
    clear: both;
    /*margin: 0;*/
    padding: 20px 15px 15px;
    margin: 20px 0;
    font-size: 18px;
    width: 70%;
    border-left: none;
    line-height: 1.5em;
    quotes: "\201C""\201D""\2018""\2019";
}
.q:before {
    content: open-quote;
    font-size: 4em;
    line-height: .1em;
    margin-right: .15em;
    vertical-align: -.4em;
    color: #339933;
}
.q:after {
    content: close-quote;
    font-size: 4em;
    line-height: .1em;
    margin-left: .15em;
    vertical-align: -.7em;
    color: #339933;
}
.q:nth-child(even)
{
    margin-left: 30%;
}

/* Buttons and forms */

.glow-button {
    display: inline-block;
    padding: 15px;
    margin: 20px;
    background-color: #117711;
    border: 0px;
    font-family: 'Antic', sans-serif; font-size: 20px;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .4s, color .2s;

}

.glow-button:hover {
    background-color: #55DD55;
    color: #117711;
    transition: background-color .75s, color .2s;
}

.contact-form {
    border: 1px #007700 solid;
    padding: 10px;
    border-radius: 10px;
    width: 65%;
}

.contact-form input, select, textarea {
    background: #FFFFFF;
    border-radius: 10px;
    border-color: #007700;
    padding: 10px;
    margin: 10px;
    width: 90%;
    border: 1px solid #007700;
    font-family: 'Antic', sans-serif; font-size: 15px;
    transition: border .5s;
}

.contact-form input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #55DD55;
    transition: border .5s;
}
.contact-form textarea {
    height: 10em;
}

/* Accordions, adapted from https://accordionmenu.com/ */

.accordion {
    box-sizing: border-box;
    display: flex;
    font-family: 'Antic', sans-serif; font-size: 25px;
    overflow: hidden;
    width: 100%;

    border: 0px;
    flex-direction: column;
    height: auto;
}

.accordion-select {
    cursor: pointer;
    margin: 0;
    opacity: 0;
    z-index: 1;

    margin-bottom: -45px;
    margin-right: 0;

    background-color: #F9F9EC;
    width: 100%;
    height: 45px;
}

.accordion-title {
    position: relative;
    width: 100%;
    height: 45px;

    font-size: 20px;
    font-weight: bold;
    color: #117711;

}

.accordion-title span {
    bottom: 0px;
    box-sizing: border-box;
    display: block;
    /*position: absolute;*/
    white-space: nowrap;
    width: 100%;
    background-color: #F9F9EC;
    line-height: 45px;
    float: left;
}

.accordion-title span span {
    display: inline;
    width: 1.4em;
    padding-left: 0;
    transition: padding-left 0.75s ease 0.2s;
}
.accordion-select:hover + .accordion-title span span {
    padding-left: .5em;
    transition: padding-left 0.75s ease 0.2s;
}

.accordion-select:checked + .accordion-title span span {
    padding-left: 0.5em;
    animation: none;
    /*-webkit-animation: none;*/
}

.accordion-content {
    box-sizing: border-box;
    overflow: auto;
    position: relative;
    transition: max-height 0.3s ease 0.1s, padding 0.3s ease 0.1s;

    background-color: #F9F9EC;
/*    height: 270px;
    margin-bottom: -270px;*/
    max-height: 0px;
    padding: 0px;
    overflow:hidden;

    margin-right: 0;
    width: 100%;

    font-family: 'Antic', sans-serif; font-size: 20px;
    color: #003300;
}

.accordion-select:checked + .accordion-title + .accordion-content {
/*    margin-bottom: 0;
    margin-right: 0;*/
    max-height: 9000px;
    padding: 30px;
    padding-top: 0px;

    transition: max-height 0.3s ease 0.1s, padding 0.3s ease 0.1s;
}



