/* VARIABLES */

:root {
    --main-font: Arial, Helvetica, sans-serif;
    --header-background: #B2B2B2 url(../images/header.jpg) top center no-repeat;
    --max-site-width: 1200px;
    --left-basis: 60%;
    --left-min: 400px;
    --right-basis: 40%;
    --right-min: 300px;
    --link-color: #185A77;
    --link-color-hover: #2f6dbd;
    --nav-color: white;
    --nav-background: #03162d;
    --mobile-nav-min: 200px;
    --mobile-nav-color: white;
    --mobile-nav-background: #03162d;
    --heading-color: white;

}

/* BASIC LAYOUT */

*, ::before, ::after {
  box-sizing: border-box;
}

html {
    font-family: var(--main-font);
    line-height: 1.5em;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
}

header {
    height: 200px;
    background: var(--header-background);
    background-size: cover;
    padding: 0 1rem;
}

main {
    flex-grow: 1;
    transition: margin-left .4s linear;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
}

footer {
    min-height: 100px;
    background: #dbdbdb;
}

.max-wrap {
    width: 100%;
    height: 100%;
    max-width: var(--max-site-width);
    margin: auto;
    position: relative;
}

#left {
    flex-basis: var(--left-basis);
    min-width: var(--left-min);
    flex-grow: 1;
    padding: 1rem;
}

#right {
    flex-basis: var(--right-basis);
    min-width: var(--right-min);
    padding: 1rem;
}

footer .max-wrap {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

footer p {
    margin-bottom: 5px;
}

@media screen and (max-width: 800px) {
    main {
        flex-wrap: wrap;
    }

    #left,
    #right {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    footer .max-wrap {
        flex-wrap: wrap;
    }

    footer .max-wrap > * {
        width: 100%;
        margin-bottom: 1rem;
    }
}



@media screen and (min-width: 1216px) {
    #left {
        padding: 1rem 1rem 1rem 0;
    }
    #right {
        padding: 1rem 0 1rem 1rem;
    }

    footer {
        padding: 1rem 0;
    }
}

/* ACCESSIBILITY */

:focus {
  outline: 3px solid #3d68a7;
}

::-moz-focus-inner {
  border: 0;
}

/* RESPONSIVE */

.mobile {
    display: none;
}

@media screen and (max-width: 700px) {
    .mobile {
        display: initial;
    }
}

/* GENERAL ELEMENTS */

h1, 
h1 a {
    color: var(--heading-color);    
    text-decoration: none;
    line-height: 1.4em;
}

p {
    margin: 0 0 1rem 0;
    max-width: 700px;
}

a {
    color: var(--link-color);
    font-weight: bold;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--link-color-hover);
}

img {
max-width: 100%;
}

/* NAVIGATION */

nav {
    min-height: 58px;
    background: var(--nav-background);
    margin-bottom: 2rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    display: block;
    color: var(--nav-color);
    text-decoration: none;
    padding: .8rem;
}

nav .current a,
nav a:hover {
    background: var(--link-color);
    color: white;
}

@media screen and (max-width: 700px) {

    body.nav-open {
        display: fixed;
        overflow: hidden;
    }

    #hambutton {
        z-index: 100;
        position: fixed;
        height: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--nav-background);
        border: none;
        box-shadow: none;
        cursor: pointer;
        margin: 4px;
    }

    .hamburger-lines {
        display: block;
        height: 26px;
        width: 32px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger-lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: white;
    }

    .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }

    .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }

    .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    button[aria-expanded="true"] .hamburger-lines .line1 {
        transform: rotate(45deg);
    }

    button[aria-expanded="true"] .hamburger-lines .line2 {
        transform: scaleY(0);
    }

    button[aria-expanded="true"] .hamburger-lines .line3 {
        transform: rotate(-45deg);
    }

    #hambutton .label {
        color: var(--nav-color);
        padding: .5rem;
    }

    nav {
        min-width: var(--mobile-nav-min);
        max-width: 100%;
        color: var(--mobile-nav-color);
        background: var(--mobile-nav-background);
        overflow: hidden;
        position: fixed;
        height: 100%;
        transition: left .4s linear;
        z-index: 10;
        top: 0;
        left: -100%;
        padding: 58px 1rem 1rem 32px;
        margin: 0;
    }

    .mobile-hidden {
        display: none;
    }

    nav.open {
        left: 0;
    }

    nav ul {
        display: initial;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    nav a {
        border-top: 1px solid #ccc;
        font-size: 1.1rem;
        line-height: 1.5em;
        height:auto;
    }

    nav li:first-child a {
        border: none;
    }

    #title {
        padding-top: 4rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}



/* SITE SPECIFIC STYLES */

h1 {
    margin-top: 5px;
    text-transform: uppercase;
}

h1 a {
    color: #91cae6;
}

.demanet {
    color: white;
    margin: 1rem 0 0 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

h1,
.demanet {
    padding-left: .8rem;
}

h2 {
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-top: 0;
}

h3 {
    margin-top: 0;
}

#about {
    padding: 1rem;
    background: #bee0f0;
    margin-bottom: 3rem;
}

.research-item {
    display: flex;
    margin: 1rem 0;
    padding: 1rem .5rem;
    background: #f6f6f6;
    box-shadow: -1px 1px 3px #cecece;
}

.research-item .image {
    margin-right: 2rem;
    width: 150px;
}

.research-item img {
    width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    background: var(--link-color);
    border: none;
    color: white;
    padding: 5px 10px;
}

button a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

button:hover {
    background: var(--link-color-hover);
}

button a:hover {
    color: white;
}

.more::after {
    content: '';
    display: inline-block;
    margin-left:5px;
    width: 0; 
    height: 0; 
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid white;
}

.open + .more:after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid white;
    margin-bottom: 3px;
}

.news-item {
    padding-top: 1rem;
    border-top: 2px dotted #d7dbde;
}

.news-item h3 {
    font-size: 1rem;
    margin-bottom: 0;
}

#signup {
    padding: 0 0 1rem 0;
}

#signup button {
    font-size: 1.2rem;
    padding: 0.6rem 2rem;
}

.flex {
    display: flex;
}

.container {
    width: 100%;
}

.people h2 {
    font-size: 1.2rem;
    padding-top: 1rem;
}

h2 span {
    font-size: 1.1rem;
    text-transform: none;
}

.contact {
    padding: 1rem;
    background: #f6f6f6;
    box-shadow: -1px 1px 3px #cecece;
}

#left img {
    box-shadow: -1px 1px 3px #cecece;
}

.side-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav a {
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 0.5rem;
    border-top: 1px dashed #CCC;
    max-width: 335px;
}

.side-nav a:hover {
    background: #bee0f0;
}

.profile h3 {
    grid-area: name;
}

.profile img {
    grid-area: photo;
}

.profile p {
    grid-area: bio;
}

.profile {
    display: grid;
    grid-template-areas:
        "photo name name"
        "photo bio bio"
        "photo bio bio";
    grid-column-gap: 1rem;
    margin-bottom: 2rem;
}

hr {
    margin: 2rem 0;
}

table {
    border-collapse: collapse;
    margin-bottom: 2rem;
}

td, th {
    padding: .5rem;
}

tr {
    border-bottom: 1px solid #CCC;
}

th {
    font-weight: bold;
    text-align: left;
    vertical-align: top;
}

ul {
    margin-bottom: 1rem;
}

.blocklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blocklist > li {
    padding: .5rem;
    border-top: 1px dashed #CCC;
}

.blocklist > li > p {
    margin: 0;
}

.blocklist .title {
    font-weight: bold;
}

/* ------------------------------
/* Slide Toggle                */

.click-open {
    font-weight: bold;
    color: var(--link-color);
    cursor: pointer;
}

.click-open:after {
    content: "►";
    margin-left: 5px;
    font-size: 0.8em;
}

.click-open.open:after {
    content: "▼";
    font-size: 0.8em;
}

.click-open + div {
    display: none;
}

.click-open.open + div {
    display: block;
}

@media screen and (max-width: 700px) {
    .demanet {
        font-size: 1.2rem;
    }

    .flex {
        flex-wrap: wrap;
    }

}

@media screen and (max-width: 600px) {
    .research-item {
        flex-wrap: wrap;
    }

    .research-item .image {
        margin: 0 auto 1rem auto;
        height: 100px;
        text-align: center;
    }

    .research-item img {
        width: auto;
        height: 100%;
    }

    .research-item h3 {
        text-align: center;
    }

    .profile {
        grid-template-areas:
            "name"
            "photo"
            "bio";
        grid-column-gap: 1rem;
        margin-bottom: 2rem;
    }

    .profile img {
        margin-bottom: .5rem;
    }
}


@media screen and (max-width: 500px) {
    tr {
        display: flex;
        flex-direction: column;
    }

    td {
        padding: 3px .5rem;
    }

    th {
        padding: 1rem .5rem 3px .5rem;
        font-size: 1.3rem;
    }

    tr:first-child {
        display: none;
    }
}
/*
    

    h1 {
    margin: 0;  
    }

    .main-right {
    padding-left: 4em;  
    }

    .menuOpen {
        left: 0;
    }

    .overlay {
    position: fixed;
    z-index: 8;
    top: 0;
    right: 0;
    left: var(--side-panel);
    bottom: 0;
    background: rgba(0,0,0,.2);
    height: 100%;
    } 

*/



/*

header > *,
footer > * {
    max-width: 1000px;
    padding: 0 1rem;
    margin:auto;
}

main > * {
    width: 100%;
    max-width: 1000px;
    padding: 0 1rem;
}



header .mobile {
  padding: 0;
  margin-top: -1rem;
}

#title h1 {
    margin: 5px 0 0 0;
}

#title h1 a {
    color: #91cae6;
    padding-top: 10px;
    text-decoration: none;
    margin: 0;
}

#title h2 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    padding-top: 2rem;
}

h2 {
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-top: 2rem;
}

h3 {
  margin-top: 0;
  color: #073a62;
}



main {
  display: flex;
}

.left {
max-width: 700px;
}

#about {
  padding: 1rem;
  background:#a2d1ea;
}





@media screen and (max-width: 600px) {

  #title h2 {
      padding-top: 1rem;
  }

  .research-item {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .research-item .image {
    width: 100px;
    margin:auto;
    padding-bottom: 1rem;
  }

}

nav ul {
    list-style: none;
}


nav.desktop ul {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 0;
}

nav.desktop li a {
    display:block;
    padding: 0 2rem 0 0;
    text-decoration: none;
    color: white;
  height: 45px;
  line-height: 45px;
}

nav .current {
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 2px;
}


@media screen and (max-width: 600px) {
    .desktop {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    nav.desktop ul {
        flex-wrap: wrap;
    }

    #title h1 a {
        font-size: 1.6rem;
    }

    #title h2 {
        font-size: 1.2rem;
    }

    main {
      flex-wrap: wrap;
    }
}

*/