/*
	-------------------------------------------------------		GENERAL
*/

* {
    box-sizing: border-box;
}

body {
    background-color: rgb(249, 255, 250);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', 'Lato', 'Open Sans', sans-serif;
    font-size: 14pt;
    color: #0A0B0D;
}

sup {
    font-size: 60%;
}

#APP {
    background-color: #0A0B0D;
    width: 960px;
    height: 540px;
    border: 1px solid #4D3B77;
    position: relative;
    overflow: hidden;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.app-state {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 960px;
    height: 540px;
}

#DEBUG {
    color: gray;
    text-align: right;
    font-family: monospace;
}

.bonk {
    animation-name: bonk-animate;
    animation-duration: 0.25s;
    animation-timing-function: cubic-bezier(0, .68, .03, 1.18);
    transform-origin: 50% 50%;
}

@keyframes bonk-animate {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(0.9925);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes balloon-animate-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
        opacity: 1.0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.balloon,
.balloon-like {
    animation-name: balloon-animate-in;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0, .68, .03, 1.18);
    transform-origin: 0% 95%;
    transform-origin: 50% 50%;
}

@keyframes fade-in-animation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-in {
    animation-name: fade-in-animation;
    animation-duration: 0.5s;
    animation-timing-function: ease;
}

/*
	Handy animations
	Example:
	animation: floatRotation 10s ease-in-out infinite;
	animation: floatUpDown 10s ease-in-out infinite;
	animation: shakeUpDown 2s ease-in-out once;
	animation: strobeOpacity 1s ease-in-out infinite;
	animation: shimmy 0.5s step-end infinite;
*/

@keyframes floatRotation {
    0% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(-10deg);
    }
}

@keyframes floatUpDown {
    0% {
        transform: translatey(10px);
    }

    50% {
        transform: translatey(-10px);
    }

    100% {
        transform: translatey(10px);
    }
}

@keyframes blinkAnimation {
    0% {
        opacity: 1.0;
    }

    49% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    99% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

@keyframes strobeOpacity {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotation(90deg);
    }
}

.lab-state button[onclick*="didHome()"] {
    border-radius: 0px 0px 10px 0px !important;
    position: absolute;
    left: 0px !important;
    top: 0px !important;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-items: center;
}

#current-state {
    float: right;
    color: white;
    margin-top: 1em;
    font-family: monospace;
    font-size: 75%;
}

@keyframes scale-up {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

@keyframes move-up {
    0% {
        transform: scale(1.2) translate(-50px, 150px);
    }

    100% {}
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.2);
    }

    80% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.move-down-animation {
    animation: move-down .5s ease-out 1;
    animation-fill-mode: forwards;
}

@keyframes move-down {
    0% {
        transform: scale(1) translate(10px, -200px);

    }

    100% {
        transform: scale(1.2);
    }
}

#option-container {
    position: absolute;
    right: 0px;
    top: 0px;
}

/*	.shake - Shake an element quickly, like it took a hit.	*/
.shake {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.bonk {
    animation: bonk 0.5s;
    animation-iteration-count: 1;
}

@keyframes bonk {
    0% {
        transform: translate(0px, 0px);
    }

    10% {
        transform: translate(-2px, 0px);
    }

    20% {
        transform: translate(2px, 0px);
    }

    30% {
        transform: translate(-2px, 0px);
    }

    40% {
        transform: translate(2px, 0px);
    }

    50% {
        transform: translate(-2px, 0px);
    }

    60% {
        transform: translate(2px, 0px);
    }

    70% {
        transform: translate(-2px, 0px);
    }

    80% {
        transform: translate(2px, 0px);
    }

    90% {
        transform: translate(-2px, 0px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

.tab-highlighted {
    border-radius: 10px;
    box-shadow:
        
        0 0 2px 1px rgba(255,255,255,.9),
        0 0 4px 4px rgba(250,250,0,.9);
}


.centerer {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 960px;
    height: 540px;
    display: grid;
    align-items: center;
    justify-items: center;
}

.notification {
    background-color: #E1F0E9;
    padding: 0px;
    border-radius: 20px;
    box-shadow: 0px 10px 10px rgba(20, 0, 20, .5);
    display: flex;
    flex-flow: column;
    align-items: center stretch;
    justify-items: center stretch;
    max-width: 720px;
}

.notification > div {
    padding: 20px;
}

.notification > .category-header {
    display: flex;
    align-items: center;
    border-radius: 16px 16px 0px 0px;
    font-weight: bold;
    padding: 5px 20px 2px 20px;
    font-size: 1rem;
}

.notification > .category-header .material-icons {
    margin-right: 5px;
}

.notification > .category-body {

    font-size: 1.3rem;
    line-height: 1.8rem;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    background-color: #8932E2;
    color: white;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
}

.notification h1 {
    font-size: 25px;
    text-align: center;
}

.instructions {
    position: absolute;
    left: 200px;
    right: 200px;
    top:10px;
    padding: 10px;
    background-color: rgba(255,255,255,.9);
    color: #0A0B0D;
    font-size: 18px;
    text-align: center;
    font-family: sans-serif;
    border: 0px solid #0A0B0D;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px 10px 10px 10px;
}

/*
	============================================================================ MAIN MENU SCENE
*/

.main-menu {
    width: 960px;
    height: 540px;
    position: absolute;
    left: 0px;
    top: 0px;
    background-image: url('images/mainmenu.png');
}

#welcome {
    position: absolute;
    display: flex;
    flex-flow: column;
    align-items: center;
    top: 20%;
    bottom: 20%;
    /*    height:50%;*/
    left: 15%;
    right: 15%;
    top: 100px;
    border-radius: 20px;
    background: #E1F0E9;
    overflow: hidden;
}

.welcome-header {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: 40%;
    background: white;
    width: 100%;
    margin: 0;
    padding: 10px;
}

.welcome-body {
    height: 60%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 10px 10px;
}

#title {
    font-size: 1rem;
    margin: auto;
    padding: 0;

}

#subtitle {
    margin: auto auto auto auto;
    display: flex;
    flex-flow: row;
    align-items: center;
    font-size: 1.3rem;
    line-height: 2rem;
}

#subtitle > span {
    display: flex;
    margin: auto;
    font-weight: bold;

}

#subtitle > ol {
    margin: auto;
}
#subtitle > ol { 
    list-style: none;
    padding-left:10px;
}

#subtitle li { 
 display:flex;
    flex-direction: row;
    align-items: center;
}

#subtitle li .material-icons {
    margin-right:5px;
} 

#welcome #proceed {
    margin: auto;
    width: 50%;
}

#credits {
    position: absolute;
    right: 10px;
    bottom: 10px;
}


/*
	============================================================================ EXPLORATION SCENE
*/

:root {
    --category-0: #5f8;
    --category-1: #8df;
    --category-2-old: #d7f;
    --category-2: #e8f;
}

#facility-scene {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 960px;
    height: 540px;
    background-image: url('images/backdrop.png');
}

.letter-button {
    position: absolute;
    background-color: rgba(255,255,255,.9);
    border: 2px solid #0A0B0D;
    border-radius: 17px;
    height: 34px;
    width: 34px;
    display: grid;
    align-items: center;
    justify-items: center;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 22px;
    color: #0A0B0D;
    transform: translate(-15px, -45px);
}

#back-button {
    position: absolute;
    left: 4px;
    top: 4px;
}

#risk-roster {
    position: absolute;
    right: 0px;
    bottom: 0px;
    background-color: #0A0B0D;
    /*    background-color:rgba(255,255,255,.9);*/
    border-radius: 20px 0px 0px 0px;
    padding: 5px 20px 20px 20px;
    display: grid;
    width: 50%;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    text-align: center;
    font-size: 15px;
}

#risk-roster .found {
    font-size: 18px;
    font-weight: bold;
}

#risk-roster .found-count {
    font-size: 28px;
    font-weight: bold;
}

#risk-roster > div {
    display: flex;
    flex-flow: column;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#risk-roster .label {
    display: flex;
    line-height: 1.1;
    padding-top: 5px;
    border-top: 1px solid white;
    text-align: left;
    justify-content: flex-start;
    align-items: center stretch;
    margin: auto;
}

#risk-roster .label span {
    display: block;
    margin: auto auto auto 0;
}

#risk-roster .label .material-icons {
    font-size: 200%;
    margin: auto 5px auto 0;
}

#contact-surfaces {
    color: var(--category-0);
}

#contact-surfaces .label {
    border-color: var(--category-0);
}

#cross-contamination {
    color: var(--category-1);
}

#cross-contamination .label {
    border-color: var(--category-1)
}

#other-risks {
    color: var(--category-2);
}

#other-risks .label {
    border-color: var(--category-2)
}

.found {
    background-color: #0A0B0D;
}

.found-0 {
    color: var(--category-0);
}

.found-1 {
    color: var(--category-1);
}

.found-2 {
    color: var(--category-2);
}

/*
	============================================================================ REASON DIALOG
*/

.category-header {
    font-size: 80%;
    border-bottom: 1px solid #0A0B0D;
    /*	text-align: right;*/
    text-transform: uppercase;
    color: #0A0B0D;
}

.congratulations-notification .category-header h1 {
    text-transform: none;
    font-size: 24px;
    text-align: center;
    margin: auto;
    display: inline-flex;
    align-items: center;
}
.congratulations-notification .category-header h1 .material-icons {
    margin:auto 4px;
}
.category-0-header {
    background-color: var(--category-0);
}

.category-1-header {
    background-color: var(--category-1);
}

.category-2-header {
    background-color: var(--category-2);
}

.congratulations-notification .category-body h2 {
    font-size:22px;
}

/*
	============================================================================ CREDITS SCREEN
*/

::-webkit-scrollbar {
    width: 20px;
    /* width of the entire scrollbar */
}

::-webkit-scrollbar-track {
    background: black;
    /* color of the tracking area */
}

::-webkit-scrollbar-thumb {
    background-color: #999;
    /* color of the scroll thumb */
    border-radius: 20px;
    /* roundness of the scroll thumb */
    border: 2px solid white;
    /* creates padding around scroll thumb */
}

#backdrop {
    background-image: url(images/credits-backdrop.png );
}

#credits-content {
    width: 800px;
    height: 540px;
    font-size: 24px;
    padding: 40px;
    overflow: hidden scroll;
    color: white;
    background: rgb(8,1,13);
background: radial-gradient(circle, rgba(8,1,13,.9) 0%, rgba(8,1,13,0) 86%);
/*    box-shadow: 0 0 100px 10px rgba(0,0,0,.5);*/
    position: absolute;
    right: 10px;
    top: 0px;
    bottom: 0px;
    font-size:1.1rem;
}
#credits-content h2 {
    font-size:1.8rem;
    margin:.5rem auto;
}
#credits-content h3 {
    text-transform:uppercase;
    font-size:1.1rem;
    margin:1.5rem auto .5rem;
}
#credits-content ul{
    list-style:none;
    margin:.5rem auto 1.5rem;
    padding-left:1rem;
}
#credits-content li{
    margin:0 auto .3rem;
}
#credits-back {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 130px;
}

#credits-back > div {
    position: absolute;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.credits-logos {
    background: rgba(255,255,255,.9);
    padding:10px;
    text-align:center;
    display:flex;
    flex-flow:column;
}
.credits-logos img {
    max-width:500px;
    height:auto;
    margin:15px auto;
}
.credits-logos img.sm {
    max-width:250px;
}
.credits-logos img.md {
    max-width:350px;
}