@font-face {
    font-family: america;
    src: url(../fonts/GT-America-Standard-Black.woff2);
    font-weight: 900;
}

@font-face {
    font-family: america;
    src: url(../fonts/GT-America-Standard-Bold.woff2);
    font-weight: bold;
}

@font-face {
    font-family: america;
    src: url(../fonts/GT-America-Standard-Regular.woff2);
    font-weight: 400
}


* {
    --dark-color: RGB(50,50,50);
    --form-blue: #0075ff;
    --form-blue-darker: #0059b2;
    --min-width: 280px;
    color: var(--dark-color);
    font-family: 'america';
    padding: 0;
    margin: 0;
}

/* breakpoint 1 */
@media (min-width: 1200px) {
    * {
        --header-height: 3.5em;
    }
    body {
        font-size: 14pt;
    }
    header {
        justify-content: space-between;
        height: var(--header-height);
        padding-left: 3em;
    }
    nav a {
        height:3.5em;
        align-items: center;
    }
    main.info, main.request, main.work {
        width: 840px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 7em;
    }
    #work-navigation-pane {
        right: 0;
    }
}

/* breakpoint 2 */
@media (max-width: 1199px) and (min-width: 625px) {
    * {
        --header-height: 3.5em;
    }
    body {
        font-size: 12pt;
    }
    header {
        justify-content: space-between;
        height: var(--header-height);
        padding-left: 3em;
    }
    nav a {
        height: var(--header-height);
        align-items: center;
    }
    main.info, main.request, main.work {
        margin-left: 15%;
        margin-right: 15%;
        margin-top: 7em;
    }
    #work-navigation-pane {
        right: 0;
    }
}

/* breakpoint 3 */
@media (max-width: 624px) {
    * {
        --header-height: 7em;
    }
    body {
        font-size: 12pt;
    }
    header {
        flex-direction: column;
        justify-content: space-between;
        padding-top: 1.5em;
        padding-left: 2em;
        height: var(--header-height);
    }
    nav a {
        padding-top:.5em;
        align-items: flex-end;
        padding-bottom: 1em;
    }
    main.info, main.request, main.work {
        margin-left: 5%;
        margin-right: 5%;
        margin-top: 10.5em;
    }
    .project-category-label {
        padding-top:1em;
    }
    #work-navigation-pane {
        width: 100%;
        text-align: center;
        align-items: center;
    }
}

header {
    position: fixed;
    box-sizing: border-box;
    top: 0;
    width: 100%;
    min-width: var(--min-width);
    display: flex;
    align-items: center;
    padding-right: 2em;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    background-color: rgb(255, 255, 255);
    z-index: 3;
}

nav {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    list-style: none;
}

nav a {
    cursor: pointer;
    display: flex;
    padding-left: .5em;
    padding-right: .5em;
    margin-right: .25em;
    margin-left: .25em;
    text-decoration: none;
    color: var(--dark-color);
}

nav a:hover, nav a:active {
    background-color: var(--dark-color);
    color: white;
}

#work-btn.clicked {
    background-color: var(--dark-color);
    color: white;
}

#work-chevron::before {
	border-style: solid;
	border-width: 0.15em 0.15em 0 0;
	content: '';
	display: inline-block;
	height: 0.35em;
	width: 0.35em;
	position: relative;
	transform: rotate(135deg);
	left: 0.35em;
    top: -.125em;
    margin-right: .5em;
}

#work-btn:hover > #work-chevron::before {
    border-color: white;
}

#work-btn.clicked > #work-chevron::before {
    transform: rotate(315deg);
    border-color: white;
    top: 0em;
}

h1 {
    padding: 0;
    margin: 0;
    font-family: 'america';
    font-weight: 900;
    font-size: 1.5em;
}

#CC {
    text-decoration: none;
}

h2 {
    font-size: 2.5em;
}

h3 {
    margin-bottom: 1em;
}

h3.date-and-firm {
    margin-top: .5em;
    margin-bottom: 2em;
}

p.publication {
    margin-bottom: 1em;
    margin-left: 1em;
    text-indent: -.5em;
}

span.publication {
    font-weight: bold;
    position: relative;
    left: -.5em;
    color: rgb(200,200,200);
}

#editable-chart {
    margin-top: var(--header-height);
}

.work p {
    margin-bottom: 1em;
}

.work p:last-child {
    margin-bottom: 0;
}

.work p.work-description {
    margin: 2em 0 4em 0;
    padding: .25em 0 0 0;
    border-style: solid;
    border-width: 1px 0 0 0;
    border-color: var(--dark-color);
    color: var(--dark-color);
}

.work img {
    width: 100%;
}

.work .gray-bg {
    background-color: rgb(245,245,245);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 0 0 0;
}

.work .gray-bg img {
    margin-bottom: 2em;
    width: 90%;
}

section {
    padding-bottom: 2em;
    margin-bottom: 2em;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

section.work-section {
    padding-bottom: 0;
    margin-bottom: 4em;
    border-bottom-style: none;
    border-bottom-width: 0;
}

section:last-child {
    border: none
}

#timeline {
    width: 100%;
    border-collapse: collapse;
    --table-gray-1: rgb(200,200,200);
    margin-bottom: .5em;
}

tr.event-row td{
    border-style: none dotted none dotted;
    border-width: 1px;
    border-color: rgb(235,235,235);
}

tr.event-row td:first-child{
    border-left-style: none;
}

tr.event-row {
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: var(--table-gray-1);
    height: 2.5em;
}

tr.event-row:last-child{
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--table-gray-1);
}

td.active {
    border: 1px solid #59b6ef !important;
    background-color: #59b6ef;
}

td.projected {
    border: 0px solid #59b6ef !important;
    background-color: #59b6ef;
    opacity: 50%;
}

td.seasons {
    width: auto;
    height: .5em;
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: var(--table-gray-1);
    margin-bottom: 20px;
}

td.seasons:last-child{
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: var(--table-gray-1)
}

.events {
    width: 8.5em;
}

.years {
    height: 2em;
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: var(--table-gray-1);
    text-align: center;
    font-size: .5em;
}

.years:last-child{
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: var(--table-gray-1)
}

p.event-1{
    font-size: .6em;
    font-weight: bold;
}

p.event-2 {
    font-size: .6em;
    color: rgb(127,127,127)
}


body {
    display: flex;
    min-height: 100vh;
    min-width: var(--min-width);
    flex-direction: column;
}

footer {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    height: 1.5em;
    border-style: solid none none none;
    border-color: rgb(200,200,200);
    border-width: 1px;
    padding-bottom: 1.5em;
    padding-top: .5em;
    clear: both;
    background-color: white;
    z-index: 1;
}

footer p {
    font-size: .5em;
    text-align: center;
    color: rgb(200,200,200);
}

body.missing-page {
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    background-color: rgb(245,245,245);
}

body.login {
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    background-color: rgb(245,245,245);
}

#login-form {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgb(200,200,200);
    padding: 2em;
    text-align: center;
    border-radius: .5em;
    width: 50%;
    max-width: 350px;
    background-color: white;
}

#login-button {
    width: 6em;
    height: 2.5em;
    padding: 0;
}

#password-input {
    margin: 1.5em 0 2em 0;
    width: 100%;
    text-align: center;
}

form {
    margin-bottom: 7em;
}

.form-section {
    margin-top: 1.5em;
}

label, legend {
    font-weight: bold;
}

input[type=text], input[type=date], input[type=password], textarea {
    all: unset;
    display: block;
    box-sizing: border-box;
    padding: .5em;
    border-style: solid;
    border-width: 1px;
    border-color: var(--dark-color);
    border-radius: 3px;
    margin-top: .5em;
}

input[type=text]:focus, input[type=date]:focus, input[type=password]:focus, textarea:focus {
    border-color: var(--form-blue);
    border-width: 2px;
}

input[type=text] {
    width: 100%;
}

textarea {
    height: 5em;
    width: 100%;
}

input[type=date] {
    box-sizing: border-box;
    display: block;
    width: 10em;
    color: rgb(200,200,200);
    padding: .5em;
    border-radius: 3px;
}

input[type=date]:focus {
    color: var(--dark-color);
}

input[type=submit] {
    display: block;
    width: 100%;
    border: none;
    border-radius: 3px;
    color: white;
    background-color: var(--form-blue);
    font-weight: bold;
    font-size: 1em;
    padding: .75em;
}

fieldset {
    all: unset;
}

.multi-choice {
    display: block;
    margin-top: .5em;
}

#branching-question {
    display: none;
}

input[type=submit]:hover {
    cursor: pointer;
    background-color: var(--form-blue-darker);
}

.invalid {
    border-color: red !important;
}

.error-message {
    margin-top:.5em;
    margin-bottom: .5em;
    color: red;
}

#submitted h3 {
    background-color: rgb(180, 255, 228);
    text-align: center;
    padding: 2em;
}

main.work-flex-container {
    box-sizing: border-box;
    margin: var(--header-height) auto 0 auto;
    padding: 1em;
    width: 100%;
    display: flex;
    /* background-color: #0075ff; */
    flex-wrap: wrap;
    flex-direction: row;
    /* justify-content: center;
    overflow-x: scroll; */
}

a.work-article {
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 1em;
    box-sizing: border-box;
    width: 350px;
    flex-grow: 1;
    min-width: 200px;
    max-width: 600px;
    border-width: 1px;
    text-decoration: none;
}
a.work-article > img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

div.work-article-text{
    padding: 1em 0 1em 0em;
    border-style: solid;
    border-width: 0 0 2px 0;
}

p.work-category {
    font-size: .75em;
    text-transform: uppercase;
}

p.work-title {
    font-weight: bold;
}

a.work-article:hover {
    background-color: #59b6ef;
    cursor: pointer;
}

/*a.work-article:hover > img{*/
/*    filter: brightness(1.03);*/
/*}*/

a.work-article:hover p {
    color: white;
}

a.work-article:hover > div.work-article-text {
    border-color: white;
}

#work-navigation-pane {
    min-width: var(--min-width);
    box-sizing: border-box;
    top: var(--header-height);
    display: flex;
    flex-direction: column;
    bottom: 0;
    position: fixed;
    /* background-color: rgba(0,10,60,.8); */
    background-color: rgba(0,0,0,.85);
    overflow-y: scroll;
    /* padding-right fits scroll bar */
    padding: 1em 1.25em 2em 2em;
    z-index: 3;
}

#work-navigation-pane::-webkit-scrollbar {
width: .75em;
}
  
#work-navigation-pane::-webkit-scrollbar-track {
/* box-shadow: inset 0 0 5px grey; */
background-color: rgba(0,0,0,0); 
border-radius: .375em;
}
   
#work-navigation-pane::-webkit-scrollbar-thumb {
background-color: rgba(255,255,255,.5); 
border-radius: .375em;
}
  
#work-navigation-pane::-webkit-scrollbar-thumb:hover {
background-color: rgba(255,255,255,.9); 
}

#work-navigation-pane p.work-nav-category {
    font-size: 1.5em;
    color: white;
    font-weight: bold;
    border-style: solid;
    border-width: 0 0 2px 0;
    padding-bottom: .125em;
    margin-bottom: .5em;
    margin-top: 1em;
}

#work-navigation-pane p.work-nav-title {
    margin-bottom: .5em;
    color: white;
}

#work-navigation-pane a:hover {
    color: #59b6ef;
    cursor: pointer;
    text-decoration: underline;
}

#work-navigation-pane a {
    margin-bottom: .5em;
    color: white;
    text-decoration: none;
}

#chart-body {
    margin-top: var(--header-height);
    background-color: rgb(245,245,245);
}

#matrix {
    display: block;
    background-color: white;
}

#chart-flex-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*align-items: center;*/
    margin-left: 2em;
}

#control-panel {
    display: flex;
    flex-direction: row;
    width: 100%;
    /*justify-content: center;*/
    margin: 2em 0 2em 0;
}

#control-col-1 {
    margin-right: 2em;
}

#control-col-2 {
    margin-left: 2em;
    display: flex;
    flex-direction: column;
    justify-content:space-between
}

#control-width-div, #control-height-div {
    margin-bottom: .5em;
}

#control-cities-div, #control-colors-div, #control-min-div, #control-max-div {
    width: 100%;
}

#control-col-1 input[type="range"] {
    display: block;
    width: 17em;
}

#control-col-2 label {
    display: inline-block;
    width: 3.5em;
}

#min, #max {
    width: 3em;
}
