/*
gray #333333
Background #394a58
White text on darker backgrounds
Highlights
Red #CD202C
Orange #DD4814
Lighter orange #E98300
Yellow #FAC841

Blues: #005a87, #006ba1
*/

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

#top-bar {
    padding-left: 5%;
    padding-right: 2%;
    margin: 0.5em auto;
    min-height: 1.8em;
}

#top-bar > aside {
    position: relative;
    height: 100%;
    width: 14em;
    float: right;
}

#top-bar > aside > button {
    width: 100%;
    color: darkgray;
    background: none;
    text-align: left;
    font-size: 1.2em;
    border: 1px solid black;
}

#top-bar > aside > img {
    position: absolute;
    height: 1.5em;
    padding: 0.5em;
    right: 0;
    top: 0;
    z-index: -1;
}

#top-bar > aside > div {
    position: absolute;
    top: 2.4em;
    left: 0;
    z-index: 1;
    background-color: white;
    height: 0;
    overflow: hidden;
    transition: height 0.5s;
}

#top-bar > aside > div.open {
    height: 9em;
    border: 1px solid black;
}

#top-bar > aside > div > a {
    display: block;
    padding: 0.3em 0.5em;
    margin: 0.2em auto;
    text-align: center;
    width: fit-content;
    background-color: dodgerblue;
    color: white;
    text-decoration: none;
    border-radius: 0.5em;
}

#top-bar > aside > div > a:hover {
    background-color: blue;
}

#top-bar > aside > div > a.warning {
    background-color: orangered;
}

#top-bar > aside > div > a.warning:hover {
    background-color: red;
}

#top-bar button {
    color: #E98300;
}

#top-bar button:hover {
    color: #CD202C;
}

h2 {
    color: #E98300;
    font-size: 1.8em;
		font-weight: 500;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

h3 {
    display: inline-block;
    margin-top: 3em;
    margin-bottom: 0.5em;
}

button {
    border: none;
    padding: 0.1em;
    background-color: white;
    min-height: 2.2em;
    cursor: pointer;
}

/* The switch */
#top-bar > aside > div > label {
    position: relative;
    display: inline-block;
    padding-top: 0.1em;
    padding-left: 4em;
    /*margin-bottom: 1em;*/
    width: 10em;
    font-size: 0.9em;
    height: 2.6em;
}
  
#top-bar > aside > div > label > input {
    opacity: 0;
    width: 0;
    height: 0;
}

#top-bar > aside > div > label > div {
    cursor: pointer;
    text-align: center;
}

#top-bar > aside > div > label > .slider {
    position: absolute;
    cursor: pointer;
    top: 1em;
    left: 0.2em;
    right: 10em;
    bottom: 0;
    background-color: #ccc;
    border-radius: 1.7em;
    transition: .4s;
}
  
#top-bar > aside > div > label > .slider:before {
    position: absolute;
    content: "";
    height: 1.3em;
    width: 1.3em;
    left: 0.3em;
    bottom: 0.2em;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
  
#top-bar > aside > div > label > input:checked + .slider {
    background-color: #E98300;
}
  
#top-bar > aside > div > label > input:checked + .slider:before {
    transform: translateX(1.7em);
}

/* Introduction */
.introduction {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 8em;
    color: black;
    overflow: hidden;
    border-top: 4px solid #F6F6F6;
    border-bottom: 4px solid #F6F6F6;
}

.introduction > div {
    width: 65%;
    text-align: center;
    margin: auto;
}

.introduction > div > p {
    white-space: pre-wrap;
    display: block;
    margin: auto;
    width: fit-content;
    text-align: left;
}

.introduction > img {
    position: absolute;
    transform: translate(0, -50%);
    top: 50%;
    left: 3%;
    max-width: 13%;
    max-height: 105%;
}

.introduction h1 {
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    min-width: 40%;
    padding: 0.3em;
    border-bottom: 2px solid #FAC841;
    margin-bottom: 1em;
}

.introduction h2 {
    color: #394a58;
    font-size: 1.2em;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 1em;
}

.introduction bubble, body > #list-content bubble, .introduction>div>button {
    width: 60%;
    font-size: 1.1em;
    margin: 0 auto;
    padding: 0.4em 0.3em;
    border: 1px solid black;
    border-radius: 0;
    transition: 0.5s;
}

.introduction > div > button {
    margin: 0 auto 1.2em;
}

.introduction bubble:hover, body > #list-content bubble:hover, .introduction>div>button:hover {
    background-color: silver;
    border-color: #FAC841;
}

body > .introduction > div > #openOutcomes {
    margin-top: 2em;
    margin-bottom: 0;
    border: none;
}

body > .introduction > div > #openOutcomes:hover {
    background-color: white;
    color: #CD202C;
}

body > .introduction > div > div {
    height: 0;
    overflow: hidden;   
}

body > .introduction > div > div.open {
    height: auto;
}

#search {
    position: absolute;
    transform: translate(0, -50%);
    text-align: center;
    right: 0;
    top: 50%;
    width: 17%;
}

#search input {
    height: 1.7em;
    font-size: 1.2em;
    width: Calc(100% - 2em);
    top: 0;
    border: none;
}

#search button {
    height: 2em;
    width: 2em;
    padding: 0;
    background-image: url(https://roadmap.mining3.com/wp-content/uploads/2021/01/SearchIcon.png);
    background-size: cover;
}

#search:hover > input::placeholder, #search:active > input::placeholder {
    color: #FAC841;
}

#search:hover button, #search:active button {
    background-image: url(https://roadmap.mining3.com/wp-content/uploads/2021/01/SearchIcon-Hover.png);
}
/* Login stuff */
body > p {
	text-align: center;
	margin-top: 2em;
}


#wppb-loginform #wppb-submit {
		display: block;
    padding: 0.5em 0.4em;
    margin: auto;
		min-width: 6em;
    text-align: center;
    background-color: #82B366;
		border-color: #82B366;
    color: white;
    border-radius: 0.5em;
}

/* Sticky section (Used to be stuck to top on full table) */
#sticky {
    width: 15%;
    position: relative;
    float: left;
    top: 0;
    text-align: center;
    margin: 2em auto;
    margin-top: 1em;
    background-color: white;
}

/*#sticky.full {
    position: -webkit-sticky;
    position: sticky;
    z-index: 1;
    margin: 2em auto;
    width: 100%;
}*/

#sticky > .filters {
    display: flex;
    flex-wrap: wrap;
    flex-flow: space-evenly;
    width: 75%;
    margin: 0.5em auto;
}

#sticky > .filters label {
    display: block;
    margin: auto;
    position: relative;
    cursor: pointer;
    font-size: 1em;
    width: 80%;
    padding: 1em;
    padding-left: 2em;
}

/*#sticky.full > .filters label {
    font-size: 1.2em;
    width: 26%;
    padding: 0.5em;
    padding-left: 2em;
}*/

#sticky > .filters input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#sticky > .filters input + .check {
    position: absolute;
    top: 0.5em;
    left: 2%;
    height: 1.2em;
    width: 1.2em;
    border-radius: 0.5em;
}

#sticky > .filters input:checked + .check {
    border: 0.2em solid black;
}

#sticky > .filters input + .check:after {
    content: "";
    position: absolute;
    display: none;
}

#sticky > .filters input:checked + .check:after {
    display: block;
}

#sticky > .filters input:checked + .check:after {
    left: 0.35em;
    top: 0.15em;
    width: 0.3em;
    height: 0.6em;
    border: solid black;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

#sticky > section > div.select > h3 {
    color: black;
    display: block;
    font-size: 1.2em;
    font-weight: 800;
    margin: 1em;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#sticky > section > div.select > select {
    font-size: 1.1em;
    padding: 0.2em 0.1em;
    border-radius: 0.2em;
    min-width: 60%;
}

#sticky > section > div.select > select:hover {
    border-color: black;
}

/*#sticky.full > section {
    display: flex;
    justify-content: space-evenly;
}

#sticky.full > section > div.select {
    width: 33%;
}*/

#table-nav {
    /*position: -webkit-sticky;
    position: sticky;
    z-index: 1;
    top: 0;*/
    text-align: center;
    margin: auto;
    margin-top: 2em;
    background-color: white;
}

#table-nav label {
    text-align: center;
    display: inline-block;
    margin: 0 1em;
}


/*Roadmap table*/
table {
    border-collapse: collapse;
    display: block;
}

table tr:first-of-type th {
    /*font-size: 1.1em;*/
    padding: 0 0.2em;
    white-space: pre;
}

#roadmap tr:first-of-type th {
    position: -webkit-sticky;
    position: sticky;
    z-index: 3;
    top: 0;
    background-color: white;
}

#roadmap {
    margin-top: 3em;
    width: 82.9%;
    width: Calc(83% - 1px);
    margin-right: 2%;
    margin-bottom: 3em;
    float: right;
}

#roadmap.full {
    margin-top: 1em;
}

#roadmap > tr:first-child > th button {
    /*position: absolute;
    top: 0;*/
    width: 4em;
    font-size: 1em;
    background-color: rgb(231, 231, 231);
    border-radius: 0.5em;
    min-height: 100%;
    padding: 0;
}

#roadmap > tr:first-child > th button:hover {
    color: #FAC841;
}

#roadmap.full > tr:first-child > th button {
    display: none;
}

td {
    border: 1px black solid;
    padding: 0 0.2em;
}

table td.empty {
    border: none;
    padding: 0;
}

table .band > td:first-child {
    position: relative;
    background-color: #394a58;
    color: white;
    width: 2.5em;
    height: 17em;
    overflow: hidden;
}

table .band > td:first-child, table .section td:first-child, table .subsection td:first-child {
    text-align: center;
}

table .band > td > h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 1em;
    white-space: nowrap;
    font-size: 1.7em;
}

table .band > td > .rotate {
    transform: translate(-50%, -50%) rotate(-90deg);
    -webkit-transform: translate(-50%, -50%) rotate(-90deg);
}

table .section > td > img {
    width: 8vw;
}

table .subsection > td, table .section > td:first-child {
    padding-top: 1em;
    padding-bottom: 1em;
}

table .subsection > td > div {
    display: flex;
    flex-wrap: wrap;
}

#roadmap > .subsection > td {
    min-width: 55vw;
}

#roadmap.full > .subsection > td {
    min-width: auto;
}

#roadmap > .subsection > td.closed:first-child {
    border: 1px solid black;
}

#roadmap > .subsection > td.closed {
    min-width: auto;
    padding: 0;
    border: none;
    overflow: hidden;
}

#roadmap > .subsection > td.closed > div {
    height: 0;
    width: 0;
    min-width: auto;
}

#roadmap > tr:first-child > th.closed {
    font-size: 0;
    min-width: auto;
}

#roadmap > .section + .subsection {
    border-top: 1px solid black;
}

#roadmap > .subsection > td {
    border-top: none;
    border-bottom: none;
}

#roadmap > tr.subsection:last-of-type > td {
    border-bottom: 1px solid black;
}

bubble {
    display: block;
    position: relative;
    text-align: center;
    cursor: pointer;
    color: black;
    background-color: white;
    min-width: min-content;
    width: 45%;
    margin: 2% auto 2%;
    padding-bottom: 0.5em;
    border: 0.3em solid;
    border-radius: 0.5em;
    transition: border 0.5s, opacity 0.5s;
}

.subsection > td > div > bubble:only-child {
    width: 90%;
}

.subsection > td > div > bubble:hover {
    border-color: black !important;
}

.subsection > td > div > bubble:active {
    border-style: dashed;
}

bubble > aside {
    position: absolute;
    overflow: hidden;
    z-index: 2;
    transform: translate(-50%, 0);
    background-color: white;
    font-size: 0.9em;
    top: 100%;
    left: 50%;
    height: 0;
    width: 20em;
    transition: 0.2s;
}

bubble:hover > aside, bubble > aside:hover {
    height: 8em;
    border: 0.2em solid black;
    transition-delay: 0.8s;
}

.subsection > td > div > bubble > span, .introduction bubble > span {
    position: absolute;
    font-size: 1.1em;
    font-weight: bolder;
    bottom: -0.3em;
    right: 0;
    color: #333;
}

.subsection > td > div > bubble.hasProject > span::after {
    content: "P";
    font-size: 0.7em;
}

.subsection > td > div > bubble.hasRoadmap > span::before {
    content: "↝";
}

.subsection > td > div > bubble.disabled {
    opacity: 0.2;
    cursor: default;
}

.subsection > td > div > bubble.disabled > aside {
    height: 0;
    border: none;
}

/* Compact setting */
#roadmap.compact > .subsection > td > div > bubble.disabled {
    height: 0;
}


/* Commercialisation pathway */
#roadmap > .subsection.commercialisation > td {
    padding: 0;
    position: relative;
    border: none;
    height: 6.8em;
}

#roadmap > .subsection.commercialisation:last-child > td {
    border-bottom: 1px solid black;
}

#roadmap > .subsection.commercialisation > td > bubble {
    position: absolute;
    top: 7.5%;
    left: 0;
    width: 100%;
    height: 85%;
    margin: 0;
    background: transparent;
    border: none !important;
    border-radius: 0;
}

#roadmap > .subsection.commercialisation > td:last-child {
    overflow: hidden;
    border-right: 1px solid black;
}

#roadmap > .subsection.commercialisation > td > bubble > span {
    display: block;
    position: absolute;
    padding-left: 1.5em;
    width: 85%;
    width: Calc(100% - 0.95em);
    top: 50%;
    transform: translate(0, -50%);
    z-index: 1;
}

#roadmap > .subsection.commercialisation > td > bubble:after,
#roadmap > .subsection.commercialisation > td > bubble:before {
  position: absolute;
  content: '';
  left: 0;
  height: 49%;
  height: Calc(50% - 1px);
  width: 100%;
  border-top: none;
  border-bottom: none;
  border-left: 3px solid; /* thicker border as skew makes them look thin */
  border-right: 3px solid;
  transition: background-color 0.5s;
}

#roadmap > .subsection.commercialisation > td > bubble:before {
  transform: skew(30deg);
  top: 0;
  transform-origin: top left;
  border-top: 2px solid black;
}

#roadmap > .subsection.commercialisation > td > bubble:after {
  transform: skew(-30deg);
  bottom: 0;
  transform-origin: bottom left;
  border-bottom: 2px solid black;
}

/* Overlay */
.overlay {
	display: none;
	width: 100%;
	height: 100%;
	position: fixed;
  z-index: 4;
  top: 0;
  right: 0;
  overflow-x: hidden;
  background: rgba(0, 0, 0, 0.8);
}

.overlay.open {
    display: block;
    animation: fade-in ease 0.5s;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        height: 0;
    }
    100% {
        opacity: 1;
        height: 100%;
    }
}

.overlay>div:nth-child(1) {
    width: 100%;
	height: 100%;
    padding: 0;
    margin: 0;
	position: fixed;
  	z-index: -1;
  	top: 0;
  	left: 0;
}


.overlay>div:nth-child(2) {
    position: relative;
    width: 80%;
    background-color: white;
    padding: 2em;
	margin: 2em auto;
    overflow: hidden;
}

.overlay .introduction > h1 {
    width: 80%;
}

.overlay .closebutton {
    position: absolute;
    top: 3em;
    right: 2.5em;
    z-index: 1;
    color: #f1612a;
    background: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all .3s linear;
    align-items: center;
    display: flex;
}

.overlay .closebutton:hover {
    opacity: .5;
}

.overlay > div table {
    width: fit-content;
    margin: auto;
}

.overlay .overlaycontent p {
    white-space: pre-wrap;
}

.overlay .overlaycontent h3:first-of-type {
    margin-top: 0.5em;
}

.overlay aside > button, body > #list-content > button {
    display: block;
    position: relative;
    margin: 0.5em auto;
    min-width: 40%;
    font-size: 1.2em;
    color: white;
    background-color: #394a58;
    border: 1px solid #FAC841;
    transition: 0.2s;
}

.overlay aside > button:hover, body > #list-content > button:hover {
    color: black;
    border-color: #005A87;
    background-color: white;
}

/*.overlay aside>button::after {
    content: "-";
    font-size: 1.5em;
    display: block;
    position: absolute;
    width: 2em;
    height: 100%;
    top: 0;
    right: -1em;
    background-color: #FAC841;
    color: black;
}

.overlay aside>button:hover::after {
    content: "+";
    color: white;
    background-color: #005a87;
}*/

.overlay > div > * :not(table) h3, body > #list-content h3 {
    width: 100%;
    padding-bottom: 0.5em;
    border-bottom: 1px solid black;
}

body > #list-content > table {
    width: fit-content;
    margin: auto;
}

.overlay > div table > tbody th, body > #list-content table > tbody th {
    min-width: 7vw;
    padding: 0.2em 0;
}

.overlay > div .charcoal tr:first-child th, body > #list-content > table tr:first-child th {
    cursor: auto;
    transition: none;
    background-color: #394A58;
    color: white;
}

.overlay > div .charcoal tr > *, body > #list-content > table tr > * {
    background: none;
    border: none;
    border-right: 1px solid white;
    border-left: 1px solid white;
}

.overlay > div .charcoal tr:nth-child(2n), body > #list-content > table tr:nth-child(2n) {
    background-color: #D9D9D9;
}

.overlay > div #projects tr > td, body > #list-content > table tr > td {
    cursor: pointer;
    transition: 0.5s;
}

.overlay > div .charcoal tr td, body > #list-content > table tr td {
    font-size: 1.1em;
    padding: 0.4em 0.3em;
    text-align: center;
}

.overlay > div .charcoal tr td.left, body > #list-content > table tr td.left {
    text-align: left;
}

.overlay > div #projects tr:hover > td, body > #list-content > table tr:hover > td {
    background-color: silver;
    border-color: #FAC841;
}

/* Search results*/

body > #list-content {
    width: 90%;
    margin: auto;
}