/*

Writer: Matthew OBrien

Cited:
- Broad Institute Styleguide https://drive.google.com/file/d/0B877YjdN2Vv9ZkdPNElpSTZmTDg/view

Colors:
- Broad Blue:     #006db6
- Yellow:         #ffcd00
- Orange:         #ff6a6a
- Red:            #b12028
- Light Blue:     #00afd7
- Green:          #80bc42
- Grey:           #63666a
- Purple:         #69488e

*/

/*

Basic formatting and styling

*/

* {
    font-size: 16px;
    font-family: sans-serif;
    font-weight: normal;
    text-align: left;
    color: #000000;
}

body {
    margin: 0;
    min-width: 631px;
}

h1 {
    line-height: 60px;
    font-size: 50px;
}

h2 {
    line-height: 40px;
    font-size: 30px;
}

h3 {
    line-height: 30px;
    font-size: 20px;
}

h4 {
    line-height: 20px;
    font-size: 16px;
    margin: 5px;
    text-align: center;
}

a {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    width: max-content;
    color: #005286;
}

table {
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 3px;
    max-width: 700px;
    min-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px
}

th {
    font-weight: bold;
    text-align: center;
    background-clip: border-box;
    background-color: #006db6;
    border-radius: 3px;
    padding: 10px;
    color: #ffffff;
}

tr:nth-child(odd) {
    background-color: #e0e0e0;
}

td {
    padding: 10px;
    background-clip: border-box;
    border-radius: 3px;
    text-align: center;
    min-width: 65px;
}

td.leftjustify {
    text-align: left;
}

td.cell-nodata {
    font-style: italic;
}

/*

Form banner styling

*/


div.impersonate form {
    padding: 5px 0px;
    margin: 10px 0px;
    background-clip: border-box;
    border-radius: 3px;
    background-color: #00afd7;
    line-height: 30px;
    text-align: center;
}

div.impersonate button {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 3px 16px;
    width: 125px;
    height: 30px;
    text-align: center;
    color: #006db6;
    border: 2px solid #006db6;
    background-color: #ffcd00;
}

div.impersonate input {
    width: 125px;
    height: 20px;
    border: 2px solid #006db6;
    border-radius: 3px;
    text-align: center;
}


div.impersonate button:hover {
    color: #ffffff;
    background-color: #006db6;
}

div.impersonate label {
    text-align: center;
    color: #ffffff;
}

.sidebar {
    position: sticky;
    width: 207px;
    top: 10px;
}


/*

Disclaimer banner styling

*/

.banner {
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
}

.banner.red {
    background-color: #ff6a6a;
}

.banner.yellow {
    background-color: #ffcd00;
}

.banner span {
    margin-top: 5px;
    line-height: 20px;
}

.banner p {
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
}

.banner a {
    color: #004a7b;
}

/*

Header styling

*/

.header {
    grid-area: header;
    background-color: #006db6;
    padding: 15px;
    background-clip: padding-box;
    border-radius: 5px;
    margin: 10px;
}

.header h1 {
    color: #ffffff;
    text-align: center;
    margin: 0;
}

/*

Side section styling

*/

.side {
    /* background: linear-gradient(180deg, #006db6 0%, #00afd7 100%); */
    grid-area: side;
    background-color: #ffffff;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    background-clip: padding-box;
    border-radius: 5px;
    min-height: 500px;
    position: relative;
}

/*

Navbar styling

*/

ul.navbar {
    list-style-type: none; /* no bullet points */
    overflow: hidden;
    border-radius: 5px;
    margin: 0 auto;
    padding: 0;
    width: 207px;
}

ul.navbar li a {
    display: block;
    padding: 8px 16px;  /* on button itself */
    width: 100%;
    margin: 0;
    text-align: left;
    text-decoration: none;
}

.nav-inactive {
    color: #ffffff;
    background-color: #00afd7;
}

.nav-active, ul.navbar li a:hover, ul.sidenav li.navitem a:hover {
    color: #ffffff;
    background-color: #006db6;
}


/*Drop down menu*/
/* @media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
} */
/* ul.sidenav {
    position: fixed;
    z-index: 1;
    background-color: #00afd7;
    overflow-x: hidden;
    transition: 0.5s;
    list-style-type: none;
    overflow: hidden;
    border-radius: 5px;
    margin: 0 auto;
    padding: 0;
    width: max-content;
}


ul.sidenav li a {
    display: block;
    padding: 8px 16px;
    margin: 0;
    text-align: left;
    width: 250;
    text-decoration: none;
    font-size: 20px;
}

ul.sidenav li.titlebar a {
    font-weight: bold;
    color: #ffcd00;
    background-color: #006db6;
    border-bottom: solid #ffcd00;
}

ul.sidenav li.titlebar a:hover {
    color: #006db6;
    background-color: #ffcd00;
    border-bottom: solid #006db6;
}
*/

/*Drop down menu*/
.sidenav {
    height: max-content;
    width: 0;
    z-index: 1;
    background-color: #00afd7;
    overflow-x: hidden;
    transition: 0.2s;
}

.sidenav a {
    padding: 10px 35px;
    margin: 0;
    text-decoration: none;
    font-size: 20px;
    text-align: left;
    color: #ffffff;
    background-color: #00afd7;
    display: block;
    width: 100%;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #ffffff;
    background-color: #006db6;
}

.side span.opennav {
    position: fixed;
    top: 175px;
    left: 15px;
    font-size: 20px;
}

/* a.closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
} */


/*

Main section styling

*/

.main {
    grid-area: main;
    padding: 15px;
    margin: 10px;
    background-clip: padding-box;
    border-radius: 5px;
    text-align: center;
    left: 0;
}

.main h2 {
    margin: 15px;
    font-size: 30px;
    text-align: center;
}

.main h3 {
    font-size: 20px;
    font-style: italic;
    text-align: center;
}

/*

Footer styling

*/

.footer {
    background-color: #00afd7;
    grid-area: footer;
    padding: 25px;
    background-clip: padding-box;
    border-radius: 5px;
    margin: 10px;
}

.footer p {
    color: #ffffff;
    text-align: center;
    font-style: italic;
    margin-top: 0px;
    margin-bottom: 20px;
}

/*

Button styling

*/

button, a.broad-button {
    transition-duration: 0.2s;

    background-clip: border-box;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 16px 32px;

    color: #006db6;
    text-align: center;
    text-decoration: none;
    font-style: normal;
}

button:hover, a.broad-button:hover {
    color: #ffffff;
    background-color: #006db6;
}

a.broad-button-preauth {
    transition-duration: 0.2s;

    background-clip: border-box;
    color: #ffffff;
    background-color: #006db6;
    text-align: center;
    text-decoration: none;
    border: 2px solid #006db6;
    border-radius: 5px;
    padding: 16px 32px;
    font-style: normal;
}

a.broad-button-preauth:hover {
    color: #006db6;
    background-color: #ffffff;
}


/*

Table styling

*/

.table-title {
    background: #ffffff;
    background-clip: padding-box;
    padding-top: 5px;
}

.table-title-background {
    padding-top: 5px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    max-width: 65%;
    min-width: 600px;
    background-clip: border-box;
    background: linear-gradient(90deg, #ffffff 15%, #00afd7 40%, #006db6 50%, #00afd7 60%, #ffffff 85%);
}

.table-desc {
    background-color: #00afd7;
    padding: 10px 20px;
    width: 520px;
    background-clip: padding-box;
    border-radius: 5px;
    margin: 10px auto;
}

.table-desc h4 {
    color: #ffffff;
    font-weight: 600;
}


/*

Action button styling

*/

button.action {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 6px 16px;
    text-align: center;
    color: #ffffff;
    border: 2px solid #006db6;
    background-color: #00afd7;
}

button.action:hover {
    color: #006db6;
    border: 2px solid #006db6;
    background-color: #ffcd00;
}



/*

Grid styling

*/

.grid-noauth {
    display: grid;
    grid-template-areas: "header header header" "main main main" "footer footer footer";
}

.grid {
    display: grid;
    grid-template-areas: "header header header" "side main main" "footer footer footer";
    grid-template-columns: 215px;
}

/*

Miscellaneous

*/

.center {
    /* must also set a width in class */
    display: block;
    margin: 0 auto;
}

.italics {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

.green {
    background-color: #a1ffa2;
}

.yellow {
    background-color: #fffd80;
}

.orange {
    background-color: #ffcd00;
}

.red {
    background-color: #ff8c8c;
}

.grey {
    background-color: #9c9c9c;
}
