body {
  /* banner.png is local to page (specified in res/header.html) */
  font-family: sans-serif;
  background-repeat: no-repeat;
  background-size: 100%;
  /*
  background-position: 0rem 7rem;
  background-position-x: left;
  */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.content {
  display: inline-block;
  background-color: #eee8;
  padding:           1rem;
  margin:            1rem;
  border-radius:     1rem;
  padding-bottom:    4rem;
  margin-top:        2rem;
  margin-bottom:     4rem;
}

.turn:hover {
 transition: all 0.1s;
 transition-timing-function: ease-in;
 transform: rotate(-90deg);
}

.logo {
  cursor: pointer;
}

#title-block-header {
  color: darkblue;
}

em {
  color:     darkblue;
}

h1 {
  font-size: 32px;
}

h1,h2,h3,h4,h5,h6 {
  color:     darkblue;
  padding-left: 1rem;
  padding-right: 1rem;
}

p {
  color:     darkblue;
  font-size: 1.1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

li {
  margin: 0.5rem 0;
  color: darkblue;
  font-size: 1.2rem;
}

a {
  color: blue;
  text-decoration:none;
}

/* for Collapsible text with "%detail: xy" tag */
details {
  padding-left: 2rem;
}
summary {
  color:     darkblue;
  font-size: 1.1rem;
  margin-left: -1rem;
  padding-right: 1rem;
}

.button {
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 1rem;
    padding: 1rem;
    padding-left: 4rem;
    padding-right: 4rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: gray;
}
.button:hover {
    background-color: #dfdfdf;
    color: white;
}

button {
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 1rem;
    padding: 1rem;
    padding-left: 4rem;
    padding-right: 4rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: gray;
}
button:hover {
    background-color: #dfdfdf;
    color: white;
}

input,textarea {
  font-size:     1.2rem;
  margin-top:    0.5rem;
  margin-bottom: 2rem;
  padding:       0.5rem;
  font-family:   sans-serif;
  width:         80%;
}

.btn-small {
    font-size: unset;
    margin: 0.5rem;
    padding: 1rem;
}

/** Site header */

img.nav-logo {
  float: left;
  margin: 0.5rem;
  max-height: 83px;
  object-fit: contain;
}

img.nav-right-logo {
  padding: 20px;
  max-height: 83px;
}

.site-header { 
    border-top: 5px solid darkblue;
    position: relative;
 }

.site-title { 
  color: darkblue;
  font-size: 48px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: 16px;
  margin-top: 12px;
  float: left;
}

.title {
    /* 1st %line in md 
     * font-size: 28px;
     * */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.author {
    /* 2nd %line in md */
}
.date {
    /* 3rd %line in md */
    font-style: italic;
}

.navPages {
  float: right;
}

.site-title, .site-title:visited { color: darkblue; }

.site-nav {
  float:       right;
  padding:     5px;
}

.site-nav .nav-trigger { display: none; }

.site-nav .menu-icon { display: none; }

.page-link-active { font-weight: 700; margin-left: 20px; }

.home-link {
  display: inline-block;
  background: darkblue;
  color:       white;
  margin:        2px;
  padding:       5px;
  min-width:    40px;
  border-radius: 3px;
}

.folder-link {
  display: inline-block;
  background: #90CAF9;
  margin:        2px;
  padding:       5px;
  min-width:    80px;
  border-radius: 3px;
}

.page-link {
  display: inline-block;
  background: lightblue;
  margin:        2px;
  padding:       5px;
  min-width:    80px;
  border-radius: 3px;
  float: right;
}

@media screen and (max-width: 600px) { 
    .site-nav { 
        position: absolute;
        top: 9px;
        right: 15px;
        background-color: #e8e8e8;
        border: 1px solid #e8e8e8;
        border-radius: 5px;
        text-align: right;
    } 
    .site-nav label[for="nav-trigger"] { 
        display: block;
        float: right;
        width: 36px;
        height: 36px;
        z-index: 2;
        cursor: pointer;
    } 
    .site-nav .menu-icon { 
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center;
    } 
    .site-nav .menu-icon > svg { 
        fill: #424242;
        }
    .site-nav input ~ 
    .trigger { 
        clear: both;
        display: none;
    } 
    .site-nav input:checked ~ .trigger { 
        display: block;
        padding-bottom: 5px;
    } 

    .site-nav .page-link { 

        display: block;
        padding: 5px 10px;
        margin-left: 20px;
    } 
    .site-nav .page-link:not(:last-child) { 
        margin-right: 0;
    } 
}

a:link.flex-link {
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.flex-container {
  width:         100%;
  display:       flex;
  flex-direction: row;
  flex-wrap:     wrap;
}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media screen and (max-width: 600px) { 
  .flex-container {
    flex-direction: column;
  }
}


.flex-top {
  height: 10px;
  background: linear-gradient(to top right, lightblue -20%, darkblue 160%);
  border-radius: 10px 10px 0px 0px;
  margin: -10px;
  margin-bottom: 10px;
}

.lab {
    background: linear-gradient(to top right, yellow -20%, orange 160%);
}

.forensic {
    background: linear-gradient(to top right, #ff7070 -20%, #aa2222 160%);
}

.observatory {
    background: linear-gradient(to top right, #70ff70 -20%, #22aa22 160%);
}

.Eng {
    background: linear-gradient(to top right, #7070ff -20%, #1010ee 160%);
}
.ECI {
    background: linear-gradient(to top right, #70a0ff -20%, #80c0dd 160%);
}

.UCL {
    background: linear-gradient(to top right, orange -20%, darkorange 160%);
}


.Imperial {
    background: linear-gradient(to top right, #70a0ff -20%, #80c0dd 160%);
}

.Edinburgh {
    background: linear-gradient(to top right, gray -20%, darkgray 160%);
}

.flex-item {
  background-color: #eeec;
  padding:          10px;
  margin:           10px;
  border-radius:    10px;
  width:           15rem;
}

figure {
  max-width: 50vw;
  margin-left: auto;
  margin-right: auto;
}

img {
  max-width: 50vw;
}

img.home {
  height: 1rem;
  padding-right: 0.5rem;
}

img.right {
  float: right;
  margin: 0.5rem;
  max-width: 20%;
  width: 200px;
}

img.right-up {
  float: right;
  margin: 0.5rem;
  height: unset;
  max-width: 25%;
  width: 250px;
  margin-top: -100px;
  border-radius: 10% 50%;
  border: solid gray 2px;
}

img.banner {
  min-width: 600px;
  max-width: unset;
  width: 100vw;
  padding: unset;
  border-radius: unset;
  filter: unset;
  position: absolute;
  left: 0px;
  z-index: -1;
  top: 9rem;
  opacity: 0.5;
}


img.toggle {
  transition: width 0.5s, position 0.5s;
}

img.icon {
  max-width: 80vw;
  float: unset;
  margin: unset;
  padding: unset;
  border-radius: unset;
  filter: unset;
}

img.inline {
  height: 1rem;
  float: unset;
  margin: unset;
  padding: unset;
  width: unset;
  min-width: unset;
}

img.person {
  border-radius: 50%;
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  float: right;
  margin: 0.5rem;
  max-width: 20%;
  width: 200px;
  margin-top: -150px;
}

img.big {
  border-radius: 20px;
  width:         100%;
  max-width:    unset;
  transition: width 0.5s, position 0.5s;
}

.preview-box {
  height:     200px;
  margin:    -10px;
  overflow: hidden;
}

img.preview {
  float:     unset;
  margin:    unset;
  min-width: unset;
  max-width:  unset;
  max-height: unset;
  border-radius: unset;
  border: unset;
  width: 100%;
}

/* for header */
img.img-logo {
  max-width: 4rem;
  padding-right: 10px;
  float: unset;
  margin-bottom: unset;
}

/* for partner logos in footer */
img.partner {
  float: unset;
  width: unset;
  border-radius: unset;
  max-height: 60px;
  padding: 20px;
}

.footer {
    border-top: 5px solid darkblue;
}

.footer-text {
  font-size: 12px;
  color: #666;
}

/*******************/
/* Table.js styles */
/*******************/


div.table {
  display: grid;
  gap:     10px;
  padding: 10px;
}
div.table-header {
  font-weight: 800;
}

span.column-hide {
  color:  gray;
  cursor: pointer;
}
span.column-show {
  color:  blue;
  cursor: pointer;
}

div.hiddenCols {
  padding: 10px;
}

div.showCol {
  display: inline;
  color:  gray;
  cursor: pointer;
  font-weight: 800;
  margin: 0px 10px 20px 0px;
}

div.table-line {
  grid-column: 1/-1;
}

hr.table-line {
  grid-column: 1/-1;
  margin-block-start: 0em;
  margin-block-end: 0em;
  border: 0.5px solid #eee;
}

div.newrow {
  grid-column-start: 1;
  overflow-wrap: break-word;
}

div.table-cell {
  overflow-wrap: break-word;
}
