/* BASE MOBILE */

body, html {
    font-size: 16px;
    background-color: #ffffff;
    margin: 0;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.5em;
    color: #000000;
    margin: 0;
}

h1 a {
    text-decoration: none;
    color: #000000;
}

h1 .active {
    text-decoration: none;
    color: #246cbe;
}

h1 a:hover {
    text-decoration: underline;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.125em;
    color: #000000;
    margin-top: .3em;
    margin-bottom: .3em;
}


h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 1.063em;
}

p, li, figure, blockquote, label {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    line-height: 1.5em;
    color: #000000;
}

figure {
    font-size: .8em;
    font-style: italic;
    width: 100%;
    margin: 0 auto;
    line-height: 1.6em;
}

figure img {
    width: 100%;
}

p a, li a {
    color: #246cbe;
    text-decoration: none;
}

p b {
    font-weight: 600;
}

hr {
    border: none;
    height: 1px;
    background-color: #979797;
}

nav {
    overflow: hidden;
    position: relative;
}

nav a {
    font-family: 'Open Sans', sans-serif;
    color: black;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: block;
    padding-inline-start: 1.5%;
}

footer {
    width: 100%;
    background-color: dodgerblue;
    margin-bottom:0px !important;
    background-color: transparent;
    border-top: 1px dotted #979797;
}

.newsletter {
    text-align: center;
}

.newsletter p {
    font-family: 'Open Sans', sans-serif;
    color: black;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 10px;
}

.newsletter input {
    border: 0;
    border-bottom: 2px solid #000000;
    color: #222;
    font-size: .9em;
    display: inline-block;
    width: 12em;
}

.newsletter input:focus-visible {
    outline: none;
}

.newsletter button {
    background-color: #e9e9ed;
    border-radius: .1875rem;
    border: 0;
    display: inline-block;
    padding: .3125rem;
    font-size: .75rem;
    color: black;
    cursor: pointer;
}

#newsletterSignUp {
    display: none;
}

#newsletterSignUp.active {
    display: block;
}

#thanks {
    display: none;
}

#thanks.active {
    display: block;
}

#invalid {
    display: none;
    margin-top: 5px;
}

#invalid.active {
    display: block;
}

#links {
    display: none;
}

#links.active {
    display: block;
}

#top-link {
    width: 50%;
    display: block;
}

#top-link.active {
    display: none;
}

#hamburger {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    padding-top: 15px;
    padding-right: 10px;
    cursor: pointer;
}

#hamburger > * {
    width: 20px;
    height: 3px;
    background-color: black;
    margin: 3px 0;
}

main {
    width: 100%;
    margin: 0 auto;
}

#banner {
    width: 100%;
    height: auto;
    margin-bottom: 2%;
}

main section {
    display: block;
    margin: 3%;
}

/* TODO delete this when done with Soundslice demo video */
#lesson {
    display: block;
    position: relative;
    width: 99%;
    margin: 3% auto;
    overflow: hidden;
}

pre.codeblock {
    background-color: #1e90ff38;
    border-radius: 2px;
    padding: 1px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: .8em;
}

/* HOME MOBILE */

aside img {
    display: none;
}

#mobile-diagram {
    display: block;
    width: 25%;
    margin: 0 auto;
}

.counter {
    border: solid #cdd2d6 1px;
    border-radius: 2px;
    width: 100px;
    display: none;
    margin-bottom: 20px;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
}

.counter div:first-child {
    display: flex;
    width: 30%;
    justify-content: center;
    background-color: #ebf0f4;
    border-right: solid #cdd2d6 1px;
}

.counter div:last-child {
    display: flex;
    width: 70%;
    justify-content: center;
    font-weight: 600;
}

#mobile-counter {
    display: flex;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* BIO MOBILE */

#bio-content {
    width: 100%;
}

.bio-row {
    display: block;
    position: relative;
    width: 99%;
    margin: 3% auto;
    overflow: hidden;
}

.bio-row:nth-of-type(2) .bio-box-a {
    width: 47.5%;
    float: left;
}

.bio-row:nth-of-type(2) .bio-box-b {
    width: 47.5%;
    float: right;
}

.bio-box-a, .bio-box-b {
    display: block;
    position: relative;
    width: 90%;
    margin: 0 auto;
}

.bio-row img {
    width: 100%;
}

/* MY-WORK MOBILE */

#work-content {
    width: 100%;
    margin: 0 auto;
}

.work-row {
    display: block;
    position: relative;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.work-row:first-of-type {
    text-align: left;
}

.worksamplebut {
    display: inline-block;
    width: 30%;
    margin: 1%;
}

.work-img {
    display: inline-block;
    object-fit: cover;
    object-position: 20% 10%;
    width: 100px;
    height: 100px;
}

#transcriptions {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

#transcriptions p {
    text-align: left;
    font-size: .9em;
}

#transcriptions img {
    width: 15%;
    margin: 5px;
}

#overlay {
    position: fixed;
    display: block;
    top: 100%;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.99);
    z-index: 100;
    transition: top .7s;
}

#overlay.active {
    top: 0%;
}

#work-articles {
    text-align: center;
    height: 89%;
}

.work-essay {
    height: 96%;
    text-align: center;
    margin-top: 2%;
    overflow-y: scroll;
    overflow-x: hidden;
}

.work-essay p, .work-essay ul {
    text-align: left;
    width: 98%;
}

.work-essay p:first-of-type {
    text-align: center;
}

.work-essay iframe {
    width: 100%;
    height: 30%;
}

#work-close {
    display: block;
    text-align: center;
    font-size: .9em;
}

/* BLOG ENTRY EDIT CHORE */
#markdown-cheat-sheet {
    background-color: #eee;
    border-top: solid 1px;
    border-bottom: solid 1px;
    width: 100vw;
    left: 0;
    position: absolute;
  }

#markdown-content {
    width: 60%;
    margin: 0 auto;
    padding: 15px;
    padding-left: 0;
    text-align: center;
}

#cheat-sheet {
    width: 100%;
    display: none;
    margin: 15px;
}

#cheat-sheet.show {
    display: flex;
    border: none;
    padding: 0;
}

.cheat-sheet-group {
    text-align: left;
    width: 25%;
}

.cheat-sheet-group div {
    margin: 20px;
    margin-left: 0;
}

.cheat-sheet-group p {
    font-size: .9em;
    margin: 0;
}

.cheat-sheet-group pre {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

#blog-chore-container {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: nowrap;
}

#blog_edit {
    width: 50%;
    border-right-style: dashed;
    overflow: scroll;
    padding-top: 15px;
    background-color: white;
    z-index: 200;
}

#blog_preview {
    width: 50%;
    overflow: scroll;
    background-color: white;
    z-index: 200;
}

#preview_body {
    width: 100%;
    width: 95%;
    margin: 0 auto;
}

#blog_edit input, #blog_edit select {
    margin: 10px;
    margin-bottom: 20px;
    display: block;
    width: 50%;
}

#blog_edit textarea {
    margin: 0 auto;
    margin-bottom: 20px;
    display: block;
    width: 97%;
    height: 70vh;
    scroll-behavior: auto;
}

#blog_edit label {
    margin: 10px;
}

#blog_edit button {
    display: block;
    margin: 10px;
    padding: 10px;
}


/* BLOG MOBILE */

.blog-header {
    display: flex;
    align-items: center;
    position: relative;
}

.rss-link {
    display: flex;
    align-items: center;
}

.rss {
    position: absolute;
    right: 20px;
}

.entry {
    margin: 20px;
    border-style: solid;
    border-width: 0px 0px 1px 0px;
    border-color: #97979757;
}

.entry:first-of-type {
    border-width: 0px 0px 1px 0px;
}

.entry:last-of-type {
    border-width: 0px 0px 0px 0px;
}

.entry-abstract {
    font-weight: 100;
    font-size: .9em;
    font-family: 'Open Sans', sans-serif;
}

.entry-date {
    color:#000000;
    margin-bottom: 0px;
    font-size: .9em;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

.entry-description {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 0px;
    margin-bottom: 6px;
}

.entry-description a {
    text-decoration: underline;
    color: #000000;
}

#entry-date {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 1em;
    color: #000000;
    margin: 0;
    margin-top: 17px;
}

.footnote {
    vertical-align: super;
    font-size: .7em;
}

#references {
    list-style: none;
    padding-left: 0;
}

#references .footnote {
    vertical-align: initial;
    font-size: 1em;
    padding-right: 6px;
}

article.blog-entry {
    width: 95%;
    margin: 0 auto;
}

article.blog-entry > h1 {
    font-size: 1.6em;
    line-height: 1.4em;
    text-align: left;
    color: #163441;
}

article.blog-entry > h2 {
    font-size: 1.5em;
    line-height: 1.5em;
    text-align: left;
    color: #163441;
}

article.blog-entry > h3 {
    font-size: 1.375em;
    line-height: 1.5em;
    text-align: left;
    text-decoration: underline;
}

article.blog-entry > p {
    font-size: 1.1em;
    line-height: 1.5em;
}

.blog-img-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.blog-img {
    width: 100%;
}

/* Hides on blog page, shows on newsletter. */
.video-thumbnail {
    display: none;
}

article.blog-entry > pre {
    background-color: #f5f2f0;
    color: #00305f;
    overflow-x: scroll;
}

blockquote {
    border-left: 6px solid #163441;
    padding-left: 15px;
    margin-left: 5%;
    margin-right: 5%;
}

.blog-tag, .blog-tag-editor {
    background-color: rgb(242, 242, 242);
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 100px;
    color: rgb(117, 117, 117);
}

.tag-active {
    opacity: 100%;
}

.tag-inactive {
    opacity: 50%;
}

#editor-tags p {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.blog-tag-editor {
    cursor: pointer;
    line-height: .5em;
    padding: 6px 9px;
    margin-bottom: 9px;
}

.blog-tag-editor:hover {
    opacity: 100%;
}


/* SHOWS MOBILE */

#show-h1 {
    margin-left: 20px;
    margin-bottom: 10px;
}

.show {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    font-family: 'Open Sans', sans-serif;
    border-style: solid;
    border-width: 0px 0px 1px 0px;
    border-color: #97979757;
}

.show:first-of-type {
    border-width: 0px 0px 1px 0px;
}

.show:last-of-type {
    border-width: 0px 0px 0px 0px;
}

.date {
    display: block;
}

.day {
    font-size: 60px;
    letter-spacing: -5px;
    margin-right: 4px;
}

.month {
    font-size: 30px;
    font-weight: 600;
}

.weekday {
    font-size: 30px;
    font-weight: 100;
}

.show-description {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.show-description a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.63);
}

.show-description a:hover {
    text-decoration: underline;
}

.show-description::after {
    content: ' / ';
}

.venue-info {
    font-size: 16px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.63);
}

.venue-info a {
    text-decoration: underline;
    color: rgba(0, 0, 0, 0.63);
}

/* LANDSCAPE QUERY */
@media screen and (min-width: 660px) {

    /* MY WORK LANDSCAPE */

    #work-content {
        width: 95%;
    }

    .work-row {
        width: 100%;
    }

    .worksamplebut {
        display: inline-block;
        width: 27%;
        margin: .5%;
    }

    .work-img {
        display: inline-block;
        width: 100%;
        height: 100%;
    }

    /* The following staggers the width of the thumbnails so that one in each row is extra-wide. */
    .work-row:nth-of-type(2) .worksamplebut:nth-of-type(2), .work-row:nth-of-type(3) .worksamplebut:nth-of-type(1), .work-row:nth-of-type(4) .worksamplebut:nth-of-type(3) {
        width: 40%;
    }

    .work-essay iframe {
        width: 100%;
        height: 330px;
    }

    /* BLOG LANDSCAPE */

    .blog-img {
        max-width: 420px;
        max-height: 420px;
        width: auto;
    }
}

/* DESKTOP QUERY */
@media screen and (min-width: 990px) {

    /* BASE DESKTOP */

    html {
        height: 100%;
        margin: 0;
    }

    body {
        min-height: 100%;
    }

    #content {
        width: 60%;
        margin: 0 auto;
    }

    nav {
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    
    #links {
        display: inline-block;
        position: absolute;
        right: 0;
        height: 53px;
        padding-top: 6.5px;
    }

    nav a {
        display: inline-block;
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        font-size: 1em;
        text-decoration: none;
        color: #000000;
        padding-inline-start: 1.125em;
    }

    /* Corey Richardson 'logo.' */
    nav > a {
        font-size: 1.4em;
        float: left;
        padding-inline-start: 0;
    }

    #links a:last-child {
        padding-inline-end: 0;
    }

    #top-link {
        display: inline-block;
    }

    #hamburger {
        display: none;
    }

    h1 {
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        font-size: 1.313em;
        color: #000000;
        margin-top: .3em;
        margin-bottom: .3em;
    }

    h2 {
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        font-size: 1.125em;
        color: #000000;
        margin-top: .3em;
        margin-bottom: .3em;
    }


    h3 {
        font-family: 'Open Sans', sans-serif;
        font-weight: 500;
        font-size: 1.063em;
    }

    p, li {
        font-family: 'Raleway', sans-serif;
        font-size: 1.1em;
        line-height: 1.5em;
        color: #000000;
    }

    p a, li a {
        color: #246cbe;
        text-decoration: none;
    }

    p b {
        font-weight: 600;
    }

    /* HOME DESKTOP */

    main {
        width: 100%;
        margin: 0 auto;
    }

    #banner {
        width: 100%;
        height: auto;
        margin-bottom: 2%;
    }

    #home-content {
        width: 100%;
        margin: 0 auto;
        display: flex;
    }

    #home-copy {
        width: 75%;
    }

    aside {
        width: 25%;
    }

    main section {
        margin: 0;
    }

    aside img {
        display: block;
        width: 80%;
        height: auto;
        float: right;
    }

    #mobile-diagram {
        display: none;
    }

    #counter {
        display: flex;
    }

    #mobile-counter {
        display: none;
    }

    /* BIO DESKTOP */

    #bio-content {
        width: 100%;
        margin: 0 auto;
    }

    #bio-content p, #bio-content li {
        font-size: .95em;
        line-height: 1.5em;
    }

    #bio-content h2 {
        margin-top: 0;
    }

    .bio-row {
        display: block;
        position: relative;
        width: 100%;
        margin: 3% auto;
        overflow: hidden;
    }

    .bio-row:first-of-type {
        margin: 0 auto;
    }

    .bio-box-a {
        width: 47.5%;
        float: left;

    }

    .bio-box-b {
        width: 47.5%;
        float: right;
    }

    .bio-row img {
        width: 100%;
    }

    /* The following two styles stagger the left/right placement of every other bio section. */
    .bio-row:nth-of-type(3) .bio-box-a, .bio-row:nth-of-type(5) .bio-box-a, .bio-row:nth-of-type(7) .bio-box-a {
        float: right;
    }

    .bio-row:nth-of-type(3) .bio-box-b, .bio-row:nth-of-type(5) .bio-box-b, .bio-row:nth-of-type(7) .bio-box-b {
        float: left;
    }

    /* MY-WORK DESKTOP */

    #work-content {
        width: 85%;
        margin: 0 auto;
    }

    #overlay {
        width: 60%;
        height: 100vh;
        margin: 0 auto;
    }

    #work-articles {
        margin: 0 auto;
        width: 85%;
    }

    .work-essay {
        width: 100%;
    }

    .work-essay iframe {
        width: 100%;
        height: 400px;
    }

    .work-essay figure {
        width: 70%;
    }

    #transcriptions {
        width: 60%;
        margin-bottom: 2%;
    }
    
    #transcriptions p {
        text-align: left;
        font-size: .9em;
    }
    
    #transcriptions img {
        width: 10%;
        margin: 0;
    }

    /* SHOWS DESKTOP */

    #show-h1 {
        margin-left: 0;
    }

    .show {
        display: inline-block;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .date {
        display: inline-block;
    }

    .day {
        font-size: 40px;
    }

    .month {
        font-size: 18px;
    }

    .weekday {
        font-size: 18px;
    }

    .venue-info a:hover {
        color: rgb(0, 0, 0);
    }

    /* BLOG DESKTOP */

    .rss {
        right: 0;
    }

    article.blog-entry {
        width: 85%;
        margin: 0 auto;
    }

    article.blog-entry > h1 {
        font-size: 2.188em;
        line-height: 1.3em;
    }

    article.blog-entry > h2 {
        line-height: 2em;
    }

    article.blog-entry > h3 {
        font-size: 1.375em;
        line-height: 1.875em;
        text-align: left;
        text-decoration: underline;
    }

    article.blog-entry > p {
        font-size: 1.1em;
        line-height: 1.5em;
    }

    .entry {
        margin: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .entry-abstract {
        font-family: 'Open Sans', sans-serif;
    }

    .entry-date {
        color:#000000;
        font-size: 1em;
    }

    .entry-description {
        font-size: 1.1em;
    }

    .entry-description a {
        text-decoration: underline;
        color: #000000;
    }

    #references {
        padding-left: 30px;
    }

    /* WIDE DESKTOP QUERY */
    @media screen and (min-width: 1160px) {

        /* SHOWS */
        .description {
            display: block;
            font-size: 15px;
            width: 100%;
            position: relative;
        }

        .venue-info {
            right: 0px;
            position: absolute;
        }

        .show-description::after {
            content: '';
        }
    }
}
