:root {
    --black: #000;
    --blue-dark: #003648;
    --blue: #005a7b;
    --blue-gray: #7BA6A4;
    --blue-lite: #e1f2f4;
    --red: #B7121D;
    --red-light: #F92626;
    --water-lightest: #d6e8ee;
    --water-lighter: #97cadb;
    --water-dark: #018abe;
    --water-darker: #02457a;
    --water-darkest: #001b48;
    --blue-brighter: #0ff;
    --blue-bright: #09C;
    --white: #fff;
    --spacing: 14px;
}

html {
    font-family: 'roboto', sans-serif;
    font-size: 18px;
    line-height: 1.3;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
}

.hide {
    display: none;
}

button {
    display: block;
    border: none;
    background: none;
    overflow: hidden;
    line-height: 9999;
    background-size: 100% 100%;
    cursor: pointer;
}

button:disabled {
    opacity: .6;
}

strong,
b {
    font-weight: 700;
}

p {
    margin: 0 0 var(--spacing);
}

ul {
    margin-left: var(--spacing);
    padding-left: var(--spacing);
}

.red {
    color: var(--red);
}

#firstwrapper {
    background-color: var(--blue);
    color: var(--white);
    width: 1025px;
    height: 550px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

#intro,
#game {
    width: 100%;
    height: 100%;
    position: relative;
}

#intro {
    background-color: #0067bf;
}

#divebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(181deg,
            rgba(150, 159, 171, 1) 0%,
            rgba(197, 201, 205, 1) 17%,
            rgba(197, 201, 205, 1) 34%,
            rgba(118, 129, 143, 1) 100%);
    color: var(--black);
    z-index: 20;
}

#divebar>.inner {
    height: 30px;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    flex-flow: row;
    align-items: center;
    line-height: 30px;
}

#intro .input {
    background: var(--black);
    color: var(--red-light);
    padding: 0 5px;
    border: solid 1px var(--white);
    border-radius: 3px;
    height: 100%;
    font-size: 16px;
    line-height: inherit;
    font-weight: bold;
    width: 100px;
    box-sizing: border-box;
}

#intro #zone,
#intro #depth {
    width: 140px;
}

.bolt {
    width: 24px;
    height: 24px;
    background-image: url('../images/intro_bolt.svg');
    background-size: contain;
}

#divecontrol {
    position: absolute;
    height: auto;
    width: 120px;
    top: 60px;
    left: 890px;
    z-index: 20;
    background: linear-gradient(268deg,
            rgba(150, 159, 171, 1) 0%,
            rgba(197, 201, 205, 1) 10%,
            rgba(197, 201, 205, 1) 91%,
            rgba(118, 129, 143, 1) 100%);
}

#divecontrol>.inner {
    padding: 5px;
    display: flex;
    justify-content: space-between;
    flex-flow: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

#divecontrol .input {
    width: 100px;
}

#up,
#down {
    width: 100px;
    height: 43px;
    background-size: contain;
}

#up {
    background-image: url('../images/button_up.png');
}

#down {
    background-image: url('../images/button_down.png');
}

#up:hover {
    background-image: url('../images/button_up_roll.png');
}

#down:hover {
    background-image: url('../images/button_down_roll.png');
}

#up.pressed {
    background-image: url('../images/button_up_press.png');
}

#down.pressed {
    background-image: url('../images/button_down_press.png');
}

.anim-layer {
    position: absolute;
    top: 0;
    left: 0;
}

#diveanim,
#fish1,
#fish2,
#fish3,
#jellyfish1,
#jellyfish2,
#biolum1,
#biolum2,
#seafloor,
#darkfish,
#darkfishglow {
    width: 1500px;
    height: 900px;
    background-size: 100%;
}

#fish1 {
    background-image: url('../images/intro_fish1.svg');
    z-index: 13;
}

#fish2 {
    background-image: url('../images/intro_fish2.svg');
    z-index: 12;
}

#fish3 {
    background-image: url('../images/intro_fish3.svg');
    z-index: 11;
}

#darkfishglow {
    background-image: url('../images/intro_darkfishglow.svg');
    z-index: 11;
}

#diveanim {
    z-index: 10;
}

#diveanim>div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#diveanim #speechbubble {
    background: var(--blue-bright);
    border: solid 4px var(--blue-brighter);
    border-radius: 10px;
    font-size: 16px;
    padding: 8px;
    width: 15%;
    margin-left: 100px;
    height: auto;
    bottom: 39%;
    top: auto;
    left: 19%;
    z-index: 30;
}

#speechbubble:before {
  content: "";
  position: absolute;
  bottom: 10px;
  left: -100px;
  width: 0;
  border-right: 100px solid var(--blue-brighter);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

#lightcones {
    background-image: url('../images/intro_lightcones.svg');
    z-index: 4;
}

#bubbles {
    z-index: 3;
}

#submersible {
    background-image: url('../images/intro_submersible.svg');
    z-index: 2;
}

#darkmask {
    background-image: url('../images/intro_darkmask.svg');
    z-index: 1;
}

#jellyfish1 {
    background-image: url('../images/intro_jellyfish1.svg');
    z-index: 3;
}

#jellyfish2 {
    background-image: url('../images/intro_jellyfish2.svg');
    z-index: 4;
}

#darkfish {
    background-image: url('../images/intro_darkfish.svg');
    z-index: 4;
}

#biolum1,
#biolum2 {
    background-image: url('../images/intro_biolum.svg');
    z-index: 2;
}

#seafloor {
    width: 100%;
    background-image: url('../images/intro_seafloor.jpg');
    background-position: left bottom;
    background-repeat: no-repeat;
    z-index: 2;
}

#water {
    height: 6000px;
    width: 100%;
    background: linear-gradient(180deg,
            var(--water-lightest) 0%,
            var(--water-lighter) 1%,
            var(--water-dark) 3%,
            var(--water-darker) 8%,
            var(--water-darkest) 15%,
            var(--black) 25%);
    z-index: 1;
}

#explorepanel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 137px;
    margin-left: -140px;
    margin-top: -68px;
    background: linear-gradient(261deg,
            rgba(150, 159, 171, 1) 0%,
            rgba(197, 201, 205, 1) 10%,
            rgba(150, 159, 171, 1) 34%,
            rgba(150, 159, 171, 1) 64%,
            rgba(197, 201, 205, 1) 91%,
            rgba(118, 129, 143, 1) 100%);
    z-index: 24;
    text-align: center;
}

#explorepanel>.inner {
    padding: 3px;
    display: flex;
    justify-content: space-between;
    flex-flow: row;
    align-items: center;
}

#explore {
    width: 220px;
    height: 77px;
    background-image: url('../images/button_explore.png');
    margin: auto;
}

#explore:hover {
    background-image: url('../images/button_explore_roll.png');
}

#skip {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 36px;
    box-sizing: content-box;
    font-size: 14px;
    font-weight: bold;
    line-height: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    z-index: 25;
}

#skip span {
    font-size: 140%;
    font-weight: normal;
    line-height: 1;
}

/* GAME */
#controlpanel {
    width: 100%;
    height: 100%;
    background-image: url('../images/controlpanel.png');
    background-size: contain;
    position: relative;
    z-index: 2;
}

#look {
    width: 100%;
    height: 100%;
    background-image: url('../images/intro_speechbubble.png');
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1.4;
    z-index: 4;
}

#look .inner {
    position: absolute;
    left: 648px;
    top: 37px;
    padding: 20px;
    width: calc(334px - 40px);
    height: calc(342px - 40px);
    color: var(--blue-dark);
}

#go {
    position: absolute;
    width: 62px;
    height: 62px;
    bottom: 12px;
    right: 12px;
    background: url('../images/button_go.png') no-repeat top left;
    background-size: 100%;
}

#blacksmoker,
#markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 434px;
    height: 450px;
}

#blacksmoker {
    background-color: var(--black);
    background-image: url('../images/blacksmoker.jpg');
    background-size: contain;
    z-index: 1;
}

#markers {
    z-index: 5;
}

#screen {
    position: absolute;
    top: 23px;
    left: 515px;
    width: 487px;
    height: 415px;
    z-index: 3;
    color: var(--blue);
}

#buttonbar {
    bottom: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: auto;
    background: var(--blue-lite);
    font-size: 27px;
    font-weight: 700;
    color: var(--blue-dark);
}

#buttonbar>.inner {
    padding: var(--spacing);
    background: var(--blue-lightest);
}

#howto .inner,
#data .inner {
    padding: var(--spacing);
}

#howto .inner {
    font-size: 18px;
    padding: 42px;
}

#howto h2 {
    font-size:
        line-height: 1.3;
    margin-bottom: var(--spacing);
}

#howto h3 {
    margin: 25px 0;
    padding: 4px 6px;
}

#keeplooking {
    font-size: 22px;
    text-align: center;
}

#congrats {
    font-size: 24px;
    text-align: center;
}

.pulse {
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1);
    }

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

h2 {
    font-weight: 700;
    font-size: 27px;
    line-height: 1;
    color: var(--blue-dark);
}

h3 {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    padding: 3px 4px;
    margin: 10px 0;
    background: var(--blue-lite);
    color: var(--blue-dark);
}

#start {
    width: 403px;
    height: 60px;
    margin: 40px auto 0;
    background-image: url('../images/button_start.png');
}

#start:hover {
    background-image: url('../images/button_start_roll.png');
}

.specimen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-size: contain;
}

.specimen img {
    width: 100%;
    height: 100%;
}

.marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('../images/marker_redtriangle.png');
    z-index: 4;
}

button[data-id='bacteria'] {
    top: 45%;
    left: 44%;
}

button[data-id='clams'] {
    top: 80%;
    left: 25%;
}

button[data-id='crab'] {
    top: 62%;
    left: 46%;
}

button[data-id='deepseafish'] {
    top: 51%;
    left: 34%;
}

button[data-id='fissure'] {
    top: 54%;
    left: 16%;
}

button[data-id='jellyfish'] {
    top: 33%;
    left: 26%;
}

button[data-id='mineralcrystals'] {
    top: 55%;
    left: 57%;
}

button[data-id='mineralrichsediment'] {
    top: 81%;
    left: 50%;
}

button[data-id='mud'] {
    top: 64%;
    left: 22%;
}

button[data-id='pillows'] {
    top: 71%;
    left: 82%;
}

button[data-id='plume'] {
    top: 15%;
    left: 45%;
}

button[data-id='seastar'] {
    top: 83%;
    left: 64%;
}

button[data-id='seawater'] {
    top: 29%;
    left: 73%;
}

button[data-id='skate'] {
    top: 58%;
    left: 66%;
}

button[data-id='snails'] {
    top: 68%;
    left: 30%;
}

button[data-id='talus'] {
    top: 78%;
    left: 77%;
}

button[data-id='tubeworms'] {
    top: 67%;
    left: 53%;
}

#data>.inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing);
    flex-direction: row;
    justify-content: space-between;
    align-content: space-between;
    font-size: 16px;
}

#data #closeup {
    flex: 1;
    width: 30%;
}

#closeup h3 {
    margin-bottom: 0;
}

#closeup img {
    width: 100%;
    height: auto;
}

#data .header {
    display: flex;
    gap: 0 var(--spacing);
    align-items: baseline;
    width: 100%;
}

.header .question {
    font-weight: 500;
    font-size: 18px;
}

#data h3 {
    margin-top: 0;
}

#data .fieldnotes,
#data .moreinfo {
    width: 60%;
}

#data .labresults {
    width: 100%;
}

#data .moreinfo {
    font-size: 15.5px;
}

#buttonbar .question>.inner,
#answers>.inner {
    display: flex;
    justify-content: center;
    gap: 0 var(--spacing);
}

#true,
#false {
    width: 145px;
    height: 34px;
}

#true {
    background-image: url('../images/button_collect1.png');
}

#false {
    background-image: url('../images/button_leave1.png');
}

#true:hover {
    background-image: url('../images/button_collect1_roll.png');
}

#false:hover {
    background-image: url('../images/button_leave1_roll.png');
}

#collect,
#leave {
    width: 120px;
    height: 33px;
}

#collect {
    background-image: url('../images/button_collect2.png');
}

#leave {
    background-image: url('../images/button_leave2.png');
}

#collect:hover {
    background-image: url('../images/button_collect2_roll.png');
}

#leave:hover {
    background-image: url('../images/button_leave2_roll.png');
}

#checkmark {
    width: 40px;
    height: 40px;
    background-image: url('../images/checkmark_correct.png');
    background-size: 100%;
}

.gradient {
    background: linear-gradient(to right, var(--blue-dark) 10%, #57d75b 50%, var(--blue-dark) 90%);
    background-size: auto auto;
    background-clip: border-box;
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 1s linear infinite;
}

@keyframes textclip {
    to {
        background-position: 200% center;
    }
}

#collectbar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

#collectbar .inner {
    padding: 14px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
}

#reset {
    width: 82px;
    height: 50px;
    background-image: url('../images/button_reset.png');
}

#reset:hover {
    background-image: url('../images/button_reset_roll.png');
}

#collectbar .label {
    width: 200px;
    padding: 0 10px;
}

.collected {
    background: var(--blue-gray);
    background-size: cover;
    border: solid 1px var(--black);
    box-sizing: border-box;
    height: 50px;
    width: 67px;
}

.redpulse {
    animation: redborder 1s linear 3;
}

@keyframes redborder {
    0% {
        border-color: var(--black);
    }

    50% {
        border-color: var(--red);
    }

    100% {
        border-color: var(--black);
    }
}

.collected.active {
    border-color: var(--white);
}