/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
  modified slightly for our purposes, but thanks Josh!
*/

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  /* 2. Remove default margin */
  * {
    margin: 0;
  }
  body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  /* 5. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /* 6. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  /* 7. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /* 8. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  /*
    9. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

.cap { text-transform: capitalize; }
.low { text-transform: lowercase; }
.col2 { column-count: 2; }
.col3 { column-count: 3; }
.center {text-align: center;}
.ninja { display: none; opacity: 0; transform: scale(0); }
.warning {padding: 8px; border-radius: 8px; background: #ff9999;}
.callout {margin: 16px; padding: 8px; border-radius: 8px; background: #ffd; box-shadow: 1px 1px 3px black;}
.highlighted {background: #bef; transition: background-color .1s;}
.right {text-align: right;}
.fRight {float: right; }
.left {text-align: left;}
.fLeft {float: left; text-align: left;}
.tiny {font-size: 80% !important;}
.wavy {text-decoration: red wavy line-through;}
.white {color: white;}

[v-cloak] { display:none !important; opacity: 0 !important; visibility: hidden !important;}

.locked {opacity: 0 !important; transform:scale(0); pointer-events: none;}

.blue {color: #1825b0; font-weight: bold;}

body {background-color: #f3f3f3;}

#app {
  width: 1000px;
  height: 682px;
  min-width: 1000px;
  min-height: 682px;
  background: red; /* check for bleed */
  border: 2px solid black;
  position: absolute;
  top: calc(50vh - 341px);
  left: calc(50vw - 500px);
  background: url('backgrounds/bg-diner-2.jpg');
  background-size: cover;
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  box-shadow: 0 0 50px 0 black inset;
}

#app a, #app a:visited {
  color: #7c0bb9; text-decoration: none;
}
#app a:hover {
  color: #a923f2; cursor: pointer; text-decoration: underline;
}

.wait {pointer-events: none !important;}

#app * {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.debug {opacity: .6;}

button {
  cursor: pointer;
  background-image: linear-gradient(to top, #f4eff4, #fff3ff);
  /* background: #fff3ff; */
  border-width: 1px;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid #222;
  border-top-color: #555;
  border-left-color: #555;
  color: #222;
  /* transition: background-image 0.2s; */
}

button:hover:not(:disabled) {
  background-image: linear-gradient(to top, #f4f0f4, white);
  border-color: black;
  border-top-color: black;
  border-left-color: black;
  color: #000;
  box-shadow: 0 0 1px 0 #999;
}

button:active:not(:disabled) {
  background-image: linear-gradient(to bottom, #ddd, white);
  /* border-color: white; */
  box-shadow: 0 1px 3px 0 #777 inset;
  color: #555;
}

button.hero {padding: 2px 10px;}
button:disabled {
  cursor: not-allowed;
  background: #e9e9e9;
  color: #666;
  border-color: #999;
  border-top-color: #aaa;
  border-left-color: #aaa;
}
button:disabled img {
  filter: opacity(0.5);
}


#main {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  bottom: 72px;
  z-index: 1;
  border: 2px solid black;
  border-top: none;
  border-bottom: none;
}

#core {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  /* color: white; */
  background: linear-gradient(0deg, rgba(255,225,255,.9), rgba(255,255,255,1) 60%);
  padding-top: 50px;
  transition: opacity 0.2s;
}

#leftPane {
  /* background: rgba(255,255,255,.5); */
  position: absolute;
  top: 0;
  left: 0;
  right: 80%;
  /* width: 20%; */
  bottom: 72px;
  z-index: 3;
  transform-origin: right center;
}

#leftPane.elevated {
  z-index: 98;
}

#rightPane {
  /* background: rgba(255,255,255,.5); */
  position: absolute;
  top: 0;
  right: 0;
  left: 80%;
  /* width: 20%; */
  bottom: 72px;
  z-index: 3;
  transform-origin: left center;
}

h1 {
  text-align: center; 
  height: 50px; 
  position: relative; 
  z-index: 5;
  /* background: rgba(255,255,255,.95); */
}
p {margin: 16px 0;}

#messages {
  margin: 16px;
}

#gameFunctions {
  background: #f0ffff;
  border-top: 2px solid black;
  padding: 4px 49px 4px 4px;
  /* text-align: right; */
  position: absolute; bottom: 0; right: 0; left: 0; height: 72px;
  z-index: 4;
  font-size: 14px; line-height: 20px;
  color: #777;
  
  /* filter: blur(0.5px); */
}

/* #gameFunctions:hover {color: #2e2e2e;} */

#gameFunctions p {margin: 0;}

#gameFunctions button {margin: 0 2px; padding: 1px 2px; line-height: 14px;}
#gameFunctions button:first-of-type {margin-left: 0;}
#gameFunctions button:last-of-type {margin-right: 0;}

#gameFunctions .saveIndicator {
  font-size: 18px; line-height: 20px;
  vertical-align: -5px;
}

.noInteract {pointer-events: none;}

#survey button {border-width: 2px; border-radius: 8px; margin: 2px 6px; font-size: 20px; outline: none; padding: 4px 20px;}
/* #survey button:hover {background: white; border-width: 3px; margin: 0px 5px; border-color: black;} */

#survey .yesButton.selected {border-color: green; background: #dfd;}
#survey .noButton.selected {border-color: red; background: #fdd;}
#survey .huhButton.selected {border-color: blue; background: #ddf;}

/* #survey button:disabled {border-color: #bbb;} */

#followUp button {margin: 0 4px; padding: 4px 10px;}
/* #followUp button:hover {background: white; border-color: black;} */

#coopShadow {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: calc(50% - 150px);
  filter: drop-shadow(2px 0px 2px #999);
  z-index: 1;
  transform-origin: bottom;
  transform: scale(0.85);
  /* transition: transform 0.2s; */
}
#coop {
  /* background: yellow; */
  height: 300px;
  width: 300px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 80% 50% 0 0/150% 150% 0 0;
  /* border: 2px solid rgba(0,0,0,.5); */
  /* box-shadow: 0 0 50px lightblue inset, 0 0 10px black; */
  clip-path: polygon(0 0%, 100% 0%, 100% 85%, 50% 100%, 0 85%);
}
#coop img {
  height: 100%;
  width: 100%;
}

#wedges {
  height: 110px;
  z-index: 2;
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.2));
}

.wedge { position: absolute; top: 0; bottom: 0; }

#rightWedge {
  right: 0;
  left: 50%;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  background: linear-gradient(45deg, white, blanchedalmond);
}

#leftWedge {
  left: 0;
  right: 50%;
  clip-path: polygon(0 0%, 100% 100%, 0 100%);
  background: linear-gradient(135deg, blanchedalmond, white);
}

#leftRibbon {
  left: 0; right: 50%;
  top: -50px;
  height: 160px;
  clip-path: polygon(0 0%, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgb(235, 215, 185), white);
}

#leftRibbon p {
  transform-origin: top left;
  transform: translateX(15px) translateY(4px) rotate(24deg);
}

#stats, #hideGame {
  position: absolute; bottom: 0;
  padding: 8px 8px 2px 8px;
  line-height: 24px;
}
#stats { left: 0; }
#hideGame {right: 0; }
#stats p, #hideGame p {margin: 0;}
#hideGame input, #hideGame label {cursor: pointer;}
#hideGame input {vertical-align: -1px;}

.resource {
  /* float: right; */
  height: 82px; margin: 4px; 
  /* background: #fefefe;  */
  position: relative;
  transition: background-color 0.2s;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}
.resource.empty {pointer-events: none;}
.resource.empty .notif {display: none;}
.resource:not(.empty):hover *:not(.notif) {
  background: #ffefff;
}
.resource:not(.empty):active {
  transform:scale(0.98);
}
.resource.r1 {
  cursor: url(icons/pole-6.png), pointer !important;
}
.rCount {
    position: absolute;
    left: 0; width: 47px;
    top: 0; height: 41px;
    background: #fefefe;
    text-align: center;
    line-height: 41px;
    transition: left 0.2s;
    font-size: 95%;
    /* border-radius: 2px 0 0 0; */
  }
.rIcon {
  position: absolute; 
  left: 0; bottom: 0;
  height: 41px; width: 47px;
  transition: left 0.2s;
  /* border-radius: 0 0 0 2px; */
  background: #fefefe;
  text-align: center;
}
.rIcon img {width: 41px; margin: 0 auto;}
.rName {
  position: absolute;
  left: 47px; right: 0; 
  top: 0; bottom: 41px;
  line-height: 41px;
  padding-left: 4px;
  background: #fefefe;
  overflow: hidden;
  transition: left 0.2s;
  /* text-transform: capitalize; */
  letter-spacing: -0.5px;
}
.rDesc {
  position: absolute;
  left: 47px; right: 0;
  top: 41px; bottom: 0;
  padding: 2px 6px;
  /* padding-left: 6px; padding-right: 6px; */
  font-size: 12px; line-height: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  background: #fefefe;
  overflow: hidden;
  transition: left 0.2s;
  /* text-align: center; */
}

#rightPane.collapsed {z-index: 99; pointer-events: none !important;}

.collapsed .resource {background: transparent;}
.collapsed .rCount, .collapsed .rIcon {left: calc(100% - 47px);}
.collapsed .rIcon {background: #fefefe;}
.collapsed .rName, .collapsed .rDesc {left: 100%; } 

.building { 
  height: 41px; margin: 4px; 
  background: #fefefe; 
  position: relative; border-radius: 2px;
  width: calc(100% - 8px);
  transition: width 0.2s;
}
.bIcon {
  position: absolute;
  left: 0; top: 0; bottom: 0; height: 41px; width: 41px;
}
.bName {
  position: absolute;
  left: 41px; top: 0; bottom: 13px; 
  padding-left: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bCount {
  position: absolute;
  left: 41px; bottom: 0; top: 24px; 
  padding-left: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
}
.bBuy {
  position: absolute;
  right: 4px; top: 0; bottom: 0; width: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.bBuy button {
  display: flex;
  justify-content: right;
  align-items: center;
  text-align: right;
  padding: 0;
  width: 100%;
  height: 33px;
  font-size: 95%;
}
.bBuy img {width: 24px; height: 24px; display: inline;}

.elevated .building {width: 120px;}
.elevated .bBuy {display: none;}

/* TOOLTIPS */
#tooltip {
  display: inline-block;
  position:fixed;
  z-index: 99;
  background: #2d2d2d;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 90%;
  /* transition: opacity 1s, display 1s; */
}
#tooltip img {
  display: inline;
  filter: invert(1);
  height: 24px; width: 24px;
  vertical-align: -5px;
}

.tooltip-enter-active {
  transition: opacity 0.3s ease;
}

.tooltip-enter-from,
.tooltip-leave-to {
  opacity: 0;
}

#tooltip.black {opacity: 0; transform: scale(0); color: #2d2d2d;}

/* UPGRADES */
.thought {
  display:block;
  background-color:#fefefe;
  padding:20px;
  border-radius:30px;
  min-width:40px;
  max-width:220px;
  min-height:40px;
  margin:20px;
  position:relative;
  /* align-items:center;
  justify-content:center; */
  text-align:center;
}
.thought:before,
.thought:after {
  content:"";
  background-color:#fefefe;
  border-radius:50%;
  display:block;
  position:absolute;
  z-index:-1;
}
.thought:before {
  width:44px;
  height:44px;
  top:-12px;
  left:28px;
  box-shadow:-50px 30px 0 -12px #fefefe,
    -50px 30px 0 -12px #fefefe;
}
.thought:after {
  bottom:-10px;
  right:26px;
  width:30px;
  height:30px;
  box-shadow:40px -34px 0 0 #fefefe,
    -28px -6px 0 -2px #fefefe,
    -24px 17px 0 -6px #fefefe,
    -5px 25px 0 -10px #fefefe;
  
}

#boxShadow {
  position: absolute;
  bottom: 0;
  filter: drop-shadow(0px 2px 4px rgba(200,200,255,.8));
  z-index: 98;
}

#blueBox {
  background: url('blue-box.png') no-repeat;
  background-size: contain;
  background-position: center;
  width: 192px;
  height: 192px;
  color: white;
  font-size: 26px;
  text-shadow: 0 0 12px black;
  cursor: pointer;
  clip-path: polygon(50% 0%, 97% 15%, 94% 80%, 50% 100%, 7% 78%, 4% 15%);
  filter: saturate(20%);
  transition: filter 0.2s, transform 0.2s;
  transform: scale(1);
  position: absolute; bottom: 0;
}

#blueBox:hover {
  filter:saturate(100%);
  transition: filter 5s, transform 0.2s;
  transform: scale(1.03);
}

#blueBox:active {
  /* filter:invert(1); */
  transform: scale(1);
  transition: filter 5s, transform 0.1s;
}

#blueBox p, #blueBoxOpen p {
  display:block; 
  position: absolute; bottom: 80px; right: 0;
  text-align: center;
  width: 192px;
  }

#blueBoxOpen p {
  display:block; left: 14px;
  }
.notif {
  background: #4e5e9e; border-radius: 100%; height: 40px; width: 40px;
  box-shadow: 0 0 2px 0 black;
  position: absolute;
  bottom: 50px;
  left: calc(50% - 28px);
  color: white;
  text-align: center;
  line-height: 40px !important;
  pointer-events: none;
  z-index: 99;
}
.notif.affordables {background-color: red;}


.inventoryButton .notif, .resource .notif {
  background-color: red;
  height:20px; width: 20px; 
  line-height: 20px !important;
  font-size: 16px;
  text-align: center;
}

.inventoryButton .notif { bottom: 52px; left: 52px; }
.resource .notif { bottom: 52px; left: 160px; }

#blueBoxOpen {
  background: url('blue-box-open.png') no-repeat;
  background-size: contain;
  background-position: center bottom;
  width: 210px;
  left: -14px;
  /* bottom: -4px; */
  /* filter: brightness(2.5); */
  height: 276px;
  color: white;
  font-size: 26px;
  text-shadow: 0 0 12px black;
  /* cursor: pointer; */
  /* clip-path: polygon(50% 0%, 97% 15%, 94% 80%, 50% 100%, 7% 78%, 4% 15%); */
  /* filter: saturate(20%); */
  transition: filter 0.2s, transform 0.2s;
  /* transform: scale(0.95); */
  position: absolute; bottom: 0;
  z-index: 99;
  /* cursor: pointer; */
}

#blueBoxOpen::after {
  content: "";
  display: block;
  position: absolute;
  left: 63%;
  bottom: 60%;
  height: 30px; width: 30px;
  background: white;
  border-radius: 100%;
  box-shadow: -18px 20px 0 -8px #fefefe, 28px -36px 0 9px #fefefe, 78px -90px 0 25px #fefefe;
  pointer-events: none;
}

.upgradeMask {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.8);
  z-index: 96;
}

/* #rightPane .upgradeMask {right: 51px;} */

#upgrades {
  position: absolute;
  top: 0px;
  right: 56px;
  bottom: 102px;
  left: 178px;
  max-width: none;
  z-index: 98;
}

#upgrades h2 {
  line-height: 36px;
  position: absolute;
  top: 10px;
  height: 36px;
}
#upgrades h2:first-of-type { left: 0; right: 50%; }
#upgrades h2:last-of-type { left: 50%; right: 0; }

#availableUpgrades, #purchasedUpgrades {
  position: absolute;
  top: 46px;
  bottom: 18px;
  overflow-y: scroll;
  padding: 0
}
#availableUpgrades { left: 0; right: 50%; }
#purchasedUpgrades { left: 50%; right: 0; }

#closeUpgrades {
  position: absolute;
  z-index: 2;
  background: #fefefe;
  border-radius: 100%;
  border: none;
  height: 40px;
  width: 40px;
  right: -10px;
  top: -10px;
  transform: scale(1);
  transition: transform 0.2s;
  cursor: pointer;
  font-size: 30px;
}

#closeUpgrades:hover {
  transform: scale(1.1);
}
#closeUpgrades:active {
  transform: scale(0.9);
}

.upgrade {
  display: inline-block;
  background: #bef;
  margin: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow:  0 0 2px 0px black;
  width: calc(100% - 16px);
  /* min-width: 25%;
  max-width: 33%; */
}
.upgrade.unaffordable {filter: hue-rotate(150deg) saturate(0.8);}
#purchasedUpgrades .upgrade {background: #bfc;}
.upgrade.locked {display: none;}

.upgrade:first-child {margin-top: 2px;}
.upgrade:last-child {margin-bottom: 2px;}

.uName {font-weight: bold;}

.uDesc {font-size: 14px; line-height: 18px;}
.uDesc img {
  display: inline;
  /* filter: invert(1); */
  height: 24px; width: 24px;
  vertical-align: -5px;
}

.uBuy {
  width: 72px;
  margin: 0 auto;
  justify-content: right;
  align-items: right;
}
.uBuy button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  width: 100%;
  height: 33px;
}
.uBuy img {width: 24px; height: 24px; display: inline;}


/* MINIGAMES */

#minigame {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(-135deg, rgba(80,59,89,.9), rgba(0,0,0,.9));
  z-index: 98;
  opacity: 1;
  transition: opacity 0.2s;
}

#minigame.imploding {
  opacity: 0;
  transition: opacity 2s;
}

#closeMinigame {
  position: absolute;
  z-index: 2;
  background: #fefefe;
  border-radius: 100%;
  border: none;
  height: 40px;
  width: 40px;
  right: calc(10% - 10px);
  top: calc(9% - 10px);
  transform: scale(1);
  transition: transform 0.2s;
  cursor: pointer;
  font-size: 30px;
}

#closeMinigame.closeInventory {background: red; color: white;}

#closeMinigame:hover {
  transform: scale(1.1);
}
#closeMinigame:active {
  transform: scale(0.9);
}

.miniScreen {
  position: absolute;
  top: 9%;
  right: 10%;
  bottom: 9%;
  left: 10%;
  background: #fefefe;
  border-radius: 4px;
  overflow: hidden;
}

#minigame h2 {text-align: center; height: 55px; line-height: 55px}
#minigame h3 {text-align: center;}

#minigame .score {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  justify-content: center;
  align-items: center;
}

#minigame .score div:not(.fill) {display: inline-block; text-align: center; vertical-align: middle;}

/* R2 PIE MINIGAME */

#pieEating {text-align: center;}
#pieEating p img {width: 24px; height: 24px; display: inline; vertical-align: -5px;}
#pieEating button img {width: 24px; height: 24px; display: inline-block; vertical-align: -5px;}

#pieEating .score div { width: 50%; }

#pieBG {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  position: relative;
  background: url('backgrounds/bg-pie.png') center no-repeat;
  background-size: contain;
  margin: 0 auto;
  overflow: hidden;
}

.pieMask {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  transition: opacity 1s;
}

.pieMasks-enter-active,
.pieMasks-leave-active {
  transition: all 0.3s ease;
}
.pieMasks-enter-from,
.pieMasks-leave-to {
  opacity: 0;
  /* transform: translateX(30px); */
}

.pie0 { background-image: conic-gradient(#d3d4d5 0%, transparent 0%, transparent 100%); }
.pie1 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 12%, black 12.5%, transparent 12.5%, transparent 100%); }
.pie2 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 24.5%, black 25%, transparent 25%, transparent 100%); }
.pie3 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 37%, black 37.5%, transparent 37.5%, transparent 100%); }
.pie4 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 49.5%, black 50%, transparent 50%, transparent 100%);}
.pie5 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 62%, black 62.5%, transparent 62.5%, transparent 100%); }
.pie6 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 74.5%, black 75%, transparent 75%, transparent 100%); }
.pie7 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 87%, black 87.5%, transparent 87.5%, transparent 100%); }
.pie8 { background-image: conic-gradient(black 0%, #d3d4d5 0.5%, #d3d4d5 100%, transparent 100%, transparent 100%); }

/* R1 COFFEE MINIGAME */

#fishing .score div {width: 25%; }

#percolator {
  position: absolute;
  top: 150px;
  right: 10%;
  height: 340px;
  /* bottom: 70px; */
  left: 10%;
  /* background: rgba(139,69,19,.8); */
  overflow: hidden;
  cursor: url(icons/pole-6.png), pointer;
  border-radius: 50%/100%;
  border: 4px solid black;
}

#coffee {
  position: absolute;
  top: 30px;
  right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(0deg, #5e3e2e, rgba(139,69,19,.8));
}

#coffeeLid {
  display: block;
  position: absolute;
  background: url('coffee-lid.png');
  background-size: contain;
  height: 110px;
  width: 400px;
  left: calc(50% - 205px);
  top: 46px;
}

#coffeeHandle {
  display: block;
  position: absolute;
  background: url('coffee-handle.png');
  height: 345px;
  width: 200px;
  left: calc(100% - 150px);
  top: 100px;
}

.fish {
  position: absolute;
  /* background: red; */
  transform-origin: center;
  transition: left 0.1s;
  /* border: 1px solid red; */
  transition: left 0.1s, transform 0.1s;
}

.fish .fishie {  filter: drop-shadow(0 0 2px #aef); 
  opacity: 1;
  transition: opacity 0.5s;
}

.fish.junk .fishie { filter: drop-shadow(0 0 2px #faa); }
.fish.caught {pointer-events: none;}
.fish.caught .fishie { opacity: 0; }
.fish .points {text-align: center; font-size: 36px; color: rgba(255,255,0,0); opacity: 1; transition: color 0.1s, top 1s, opacity 1s;}
.fish.caught .points {color: rgba(255,255,0,1); top: -60px; opacity: 0;}
.fish.caught.junk .points {color: rgba(255,0,0,1);}
.fish.caught.special .points {color: rgba(0,100,255,1);}
.fish div {position: absolute; top: 0; right: 0; bottom: 0; left: 0;}
.fish.dirLeft div.fishie { transform:scaleX(-1); }
/* .fish.dirLeft div span { transform:scaleX(-1); } */

.fish.caught {
  animation: none !important;
}

.fish:not(.jellyfish):not(.shrimp):not(.junk) { animation: gentleBob 2s linear infinite; }
@keyframes gentleBob {
  0%, 100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fish.jellyfish { animation: gradualBob 30s linear infinite; }
@keyframes gradualBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-250px);
  }
}

.fish.shrimp { animation: shrimpFloat 1s linear infinite; }
@keyframes shrimpFloat {
  0%, 100% {
    transform: translateX(30px);
  }
  50% {
    transform: translateX(-30px);
  }
}

.fish.anglerfish div.fishie {background: url('icons/anglerfish.png') center no-repeat; background-size: contain;}
.fish.carwheel div.fishie {background: url('icons/carwheel.png') center no-repeat; background-size: contain;}
.fish.clownfish div.fishie {background: url('icons/clownfish.png') center no-repeat; background-size: contain;}
.fish.eel div.fishie {background: url('icons/eel.png') center no-repeat; background-size: contain;}
.fish.fedora div.fishie {background: url('icons/fedora.png') center no-repeat; background-size: contain;}
.fish.flatfish div.fishie {background: url('icons/flatfish.png') center no-repeat; background-size: contain;}
.fish.flyingtrout div.fishie {background: url('icons/flyingtrout.png') center no-repeat; background-size: contain;}
.fish.jellyfish div.fishie {background: url('icons/jellyfish.png') center no-repeat; background-size: contain;}
.fish.key div.fishie {background: url('icons/key.png') center no-repeat; background-size: contain;}
.fish.leatherboot div.fishie {background: url('icons/leatherboot.png') center no-repeat; background-size: contain;}
.fish.log div.fishie {background: url('icons/log.png') center no-repeat; background-size: contain;}
.fish.mantaray div.fishie {background: url('icons/mantaray.png') center no-repeat; background-size: contain;}
.fish.piranha div.fishie {background: url('icons/piranha.png') center no-repeat; background-size: contain;}
.fish.porcupinefish div.fishie {background: url('icons/porcupinefish.png') center no-repeat; background-size: contain;}
.fish.salmon div.fishie {background: url('icons/salmon.png') center no-repeat; background-size: contain;}
.fish.seahorse div.fishie {background: url('icons/seahorse.png') center no-repeat; background-size: contain;}
.fish.shrimp div.fishie {background: url('icons/shrimp.png') center no-repeat; background-size: contain;}
.fish.tropicalfish div.fishie {background: url('icons/tropicalfish.png') center no-repeat; background-size: contain;}

/* bubble animations from a Cody Pearce tutorial https://codinhood.com/micro/animate-octocat-sprite-css/ */
.bubble {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  position: absolute;
  background-color: white;
  bottom: -30px;
  opacity: 0.2;
  animation: bubble 15s ease-in-out infinite,
    sideWays 4s ease-in-out infinite alternate;
}

@keyframes bubble {
  0% {
    transform: translateY(0%);
    opacity: 0.06;
  }
  100% {
    transform: translateY(-120vh);
  }
}

@keyframes sideWays {
  0% {
    margin-left: 0px;
  }
  100% {
    margin-left: 200px;
  }
}

.bubble--1 { left: 10%; animation-delay: 0.5s; animation-duration: 16s; opacity: 0.2; }
.bubble--2 { width: 15px; height: 15px; left: 40%; animation-delay: 1s; animation-duration: 10s; opacity: 0.1; }
.bubble--3 { width: 10px; height: 10px; left: 30%; animation-delay: 5s; animation-duration: 20s; opacity: 0.3; }
.bubble--4 { width: 25px; height: 25px; left: 40%; animation-delay: 8s; animation-duration: 17s; opacity: 0.2; }
.bubble--5 { width: 30px; height: 30px; left: 60%; animation-delay: 10s; animation-duration: 15s; opacity: 0.1; }
.bubble--6 { width: 10px; height: 10px; left: 80%; animation-delay: 3s; animation-duration: 30s; opacity: 0.4; }
.bubble--7 { width: 15px; height: 15px; left: 90%; animation-delay: -7s; animation-duration: 25s; opacity: 0.3; }
.bubble--9 { width: 20px; height: 20px; left: 50%; bottom: 30px; animation-delay: -5s; animation-duration: 19s; opacity: 0.2; }
.bubble--10 { width: 40px; height: 40px; left: 30%; bottom: 30px; animation-delay: -21s; animation-duration: 16s; opacity: 0.3; }
.bubble--11 { width: 30px; height: 30px; left: 60%; bottom: 30px; animation-delay: -13.75s; animation-duration: 20s; opacity: 0.3; }
.bubble--11 { width: 25px; height: 25px; left: 90%; bottom: 30px; animation-delay: -10.5s; animation-duration: 19s; opacity: 0.3; }

/* R3 MILKSHAKE MINIGAME */

#shaking button img {width: 24px; height: 24px; display: inline-block; vertical-align: -5px;}
#shaking p img {width: 24px; height: 24px; display: inline; vertical-align: -5px;}
#shaking .score div {width: 50%;}

#shake, #wisdom {
  position: absolute;
  top: 55px;
  bottom: 70px;
}
#shake { left: 0; right: 67%; }
.shakeStage0 { background: url(backgrounds/shake-0.png) center no-repeat; background-size: contain; }
.shakeStage1 { background: url(backgrounds/shake-1.png) center no-repeat; background-size: contain; }
.shakeStage2 { background: url(backgrounds/shake-2.png) center no-repeat; background-size: contain; }
.shakeStage3 { background: url(backgrounds/shake-3.png) center no-repeat; background-size: contain; }
.shakeStage4 { background: url(backgrounds/shake-4.png) center no-repeat; background-size: contain; }
#wisdom { left: 34%; right: 0; }
#wisdom {text-align: center; padding: 32px 16px 0 16px;}
#notepad { 
  background: url(backgrounds/notepad-horizontal.png) center no-repeat; background-size: contain; 
  height: 300px;
  width: 350px;
  padding: 78px 8px 0 7px;
  font-weight: bold;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  text-shadow: 0 0 2px white, 0 0 2px white;
  color: #128;
  font-style: italic;
  font-size: 16px;
  margin: 0 auto;
  line-height: 22px;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,.4));
}

#shakeDregs {
  position: absolute;
  /* background: yellow; */
  bottom: 86px;
  right: 103px;
  left: 106px;
  height: 16px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  cursor: pointer;
}
#shakeDregs:hover {
  background: rgba(255,255,150,0.2);
  transition: background-color 0.5s;
}


.wisdom-enter-active,
.wisdom-leave-active {
  transition: opacity 1s linear;
}

.wisdom-enter-from,
.wisdom-leave-to {
  opacity: 0;
}

/* R4 COW MINIGAME */

#grazing .score div { width: 33%; }

#pasture {
  height: 360px; width: 600px;
  background: lightgreen;
  position: relative;
  margin: 24px auto;
}

.pastureRow { height: 60px; width: 100%; }
.pastureCell { display: inline-block; height: 60px; width: 60px;background: #DEB887;}
.pastureCell.verdant { 
  background: lightgreen;
  /* background: url('icons/grass.png') center no-repeat; background-size: contain;  */
}
.pastureCell img {display: none;}
.pastureCell.verdant img {display: block; width: 100%; height: 100%;}

.grazer {
  width: 60px; height: 60px; 
  position: absolute; z-index: 2; 
  background: url('icons/r4.png') center no-repeat; background-size: contain;
  transition: all 4s;
  filter: drop-shadow(0 0 4px white) drop-shadow(0 0 0px white) drop-shadow(0 0 2px white) drop-shadow(0 0 1px white);
}
.grazer.faceRight {
  transform: scaleX(-1);
}

#bigCow {
  height: 360px; width: 600px;
  position: absolute;
  background: url('icons/r4.png') center no-repeat; background-size: cover;
  top: 75px;
  left: calc(50% - 300px);
  right: calc(50% - 300px);
  /* margin: 0 auto; */
  z-index: 5;
  animation: bigCowShake 0.4s linear;
  filter: drop-shadow(0 0 4px white) drop-shadow(0 0 0px white) drop-shadow(0 0 2px white) drop-shadow(0 0 1px white);

}

@keyframes bigCowShake {
  0% {transform: rotate(0deg);}
  20% {transform: rotate(50deg);}
  40% {transform: rotate(-50deg);}
  60% {transform: rotate(30deg);}
  75% {transform: rotate(-30deg);}
  100% {transform: rotate(0deg);}
}

#grazing button {
  font-size: 12px;
  margin-right: 4px;
}
#grazing button img {width: 16px; height: 16px; display: inline; vertical-align: -3px;}

#grassProgress {
  height: 14px; width: 140px !important; margin: 0 auto;
  border-radius: 4px;
  border: 1px solid black;
  position: relative;
  background: #f5f5f0;
  overflow: hidden;
}

#grassProgress .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 0;
  transition: width 0.05s;
  box-shadow: 1px 4px 10px rgba(255,255,255,.5) inset;
}

#grassProgress .fill.eating {background: darkgreen;}
#grassProgress .fill.moving {background: darkblue;}

/* R5 DREAM MINIGAME */

#dreaming h2 {overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding-left:60px; margin-right: 60px;}
#dreaming .score div {width: 50%;}

.dreamBox {
  display: inline-block;
  height: 225px;
  width: 50%;
  position: relative;
}

.dreamToggle label, .dreamToggle input {cursor: pointer;}
.dreamBox input {vertical-align: -2px;}
.neutral .dreamLength {margin-left: 30px}
.neutral .dreamToggle {margin-right: 30px;}
.sidelined .dreamLength {margin-left: 20px;}
.sidelined .dreamToggle {margin-right: 20px;}
.progressing .dreamLength {margin-left: 30px;}
.progressing .dreamToggle {margin-right: 30px;}

.currentLength {display: none;}
.progressing .currentLength {display: block; width: 200px; margin: 0 auto;}
.progressing .dreamWindow {cursor: pointer; transform: scale(1); transition: transform 0.1s;}
.progressing .dreamWindow:hover {transform: scale(1.03);}
.progressing .dreamWindow:active {transform: scale(0.98);}

.dreamBox.neutral img, .dreamBox.sidelined img {
  transform: scale(0.95);
  transition: transform 0.1s;
}
.dreamBox.neutral img:hover, .dreamBox.sidelined img:hover { transform: scale(1); }
.dreamBox.neutral img:active, .dreamBox.sidelined img:active { transform: scale(0.9); }

.dreamBox h3 {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  color: #fefefe;
  text-shadow: 0 0 1px black;
  filter: drop-shadow(0 0 1px black) drop-shadow(0 0 1px black);
  font-size: 24px;
  pointer-events: none;
}

.dreamBox p {margin: 0; text-align: center;}

.dreamBox img {
  border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,.7);
  display: block;
  width: 90%; margin: 0 auto;
  cursor: pointer;
  /* height: 200px; width: 400px; */
}

.dreamBox.progressing {
  display: block;
  position: absolute;
  top: 60px; right: 0; left: 0; width: 100%; height: 290px;
}

.dreamBox.progressing h3, .dreamBox.progressing img {display: none;}

.dreamBox.progressing .dreamWindow {
  margin: 0 auto 9px auto;
  width: 270px;
  height: 270px;
  border-radius: 8px; overflow: hidden; 
  box-shadow: 0 0 20px 2px #fefefe inset;
}

.dreamBox.progressing .dreamWindow { animation: backgroundScroll 20s linear infinite; }
@keyframes backgroundScroll {
  0% {
    background-position-x: 0%;
  }
  100% {
    background-position-x: 200%;
  }
}
.dreamBox.progressing.diner .dreamWindow { animation: dinerScroll 20s linear infinite; }
@keyframes dinerScroll {
  0% {
    background-position-x: 0%;
    background-position-y: 0px;
  }
  100% {
    background-position-x: 200%;
    background-position-y: 270px;
  }
}
.dreamBox.progressing.bed .dreamWindow { animation: bedScroll 20s linear infinite; }
@keyframes bedScroll {
  0% {
    background-position-x: 0%;
    background-position-y: -50px;
  }
  10% { background-position-y: -100px; }
  20% { background-position-y: -150px; }
  30% { background-position-y: -200px; }
  40% { background-position-y: -250px; }
  50% { background-position-y: -300px; background-position-x: 100%;}
  60% { background-position-y: -250px; }
  70% { background-position-y: -200px; }
  80% { background-position-y: -150px; }
  90% { background-position-y: -100px; }
  100% { 
    background-position-x: 200%;
    background-position-y: -50px;
  }
}

.dreamBox.progressing.diner .dreamWindow {
  background: url('backgrounds/dream-diner.png');
  background-size: 540px 270px;
  background-position-x: 0;
  background-position-y: 0;
}
.dreamBox.progressing.ranch .dreamWindow {
  background: url('backgrounds/dream-ranch.png');
  background-size: 540px 270px;
  background-position-x: 0;
  background-position-y: 0;
}
.dreamBox.progressing.bed .dreamWindow {
  background: url('backgrounds/dream-bed.png');
  background-size: 540px 270px;
  background-position-x: 0;
  background-position-y: 0;
}
.dreamBox.progressing.armchair .dreamWindow {
  background: url('backgrounds/dream-armchair.png');
  background-size: 540px 270px;
  background-position-x: 0;
  background-position-y: 0;
}

.dreamBox.sidelined {
  display: inline-block;
  margin-top: 340px;
  height: 80px;
  width: 33%;
}

.dreamBox.sidelined img { height: 60px; }
.dreamBox.sidelined h3 { font-size: 16px; top: 20%; }

/* R6 MEDITATION MINIGAME */

#meditating h2 {position: relative; z-index: 1;}
#meditating h2 .white {transition: color 3s;}

#meditating {text-align: center;}
#meditating p {
  margin: 12px 0;
  font-size: 15px; line-height: 22px;
  /* font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
}

.meditations-enter-active {
  transition: all 1s ease;
}
.meditations-enter-from,
.meditations-leave-to {
  opacity: 0;
  /* transform: translateX(30px); */
}

#meditating h2 button {
  margin-left: 12px;
  height: 36px;
  line-height: 30px;
  padding: 0 12px;
}

#subOcean {
  position: absolute;
  top: 30px;
  right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(130deg, rgba(09,59,140,.8), rgba(29,139,100,.8));
  background-size: 200% 200%;
  animation: oceanShift 10s ease infinite;
}

@keyframes oceanShift {
  0% {
    background-position:10% 0%;

  }
  50% {
    background-position:91% 100%;

  }
  100% {
    background-position:10% 0%;

  }
}

#diverLynch {
  height: 64px;
  width: 54px;
  background: url(icons/david-lynch-diver.png);
  background-size: cover;
  background-position: -7px;  position: absolute;
  animation: diverBob 1s linear infinite;
}

@keyframes diverBob {
  0% {transform: rotate(0);}
  25% {transform: rotate(2deg);}
  75% {transform: rotate(-2deg);}
  100% {transform: rotate(0);}
}

.divingShields {
  position: absolute;
  bottom: 100%;
  left: -20px; right: -20px;
  /* left: 8px; bottom: 200px; */
  color: white;
}
.divingDepth {
  position: absolute;
  left: 8px; bottom: 8px;
  color: white;
}
.divingScore {
  position: absolute;
  right: 8px; bottom: 8px;
  color: white;
}

.divingMultiplier {
  position: absolute;
  top: 50px;
  left: 0; right: 0;
}

.divingInstructions {
  position: absolute;
  width: 200px;
  color: white;
  bottom: 8px;
  left: calc(50% - 100px);
  text-align: center;
}
.divingInstructions .material-symbols-outlined {vertical-align: -6px;}

.oceanThought {
  position: absolute;
  font-size: 12px;
  background: darkblue;
  border-radius: 5px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: left 0.1s, right 0.1s;
  box-shadow: 0 0 4px 0px white;
}

.oceanThought.positive {
  background: rgba(30,100,50);
}
.oceanThought.negative {
  background: rgba(60,20,30);
}

/* R7 VISION MINIGAME */

#envisioning {text-align: center;}
#envisioning .score div {width: 33%;}

#visionChapter {
  position: absolute;
  overflow-y: visible;
  top: 45px;
  padding-top: 10px;
  bottom: 110px; left: 16px; right: 16px;
  overflow-x: auto; white-space: nowrap;
}

.visionFragment {
  display: inline-flex;
  background: lavender;
  border-radius: 100%;
  height: 380px; width: 380px;
  white-space: normal;
  padding: 0 40px;
  font-size: 14px; 
  line-height: 24px;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  margin: 0 calc(50% - 190px);
  border: 2px solid rgba(100,0,100,0.5);
  box-shadow: none;
  transition: box-shadow 0.5s;
}

.visionFragment.subsequent {
  box-shadow: 70px 0 10px 0px #f99;
}

.visionFragment.previous {
  box-shadow: -70px 0 10px 0px #99f;
}

.visionFragment.subsequent.previous {
  box-shadow: 70px 0 10px 0px #f99, -70px 0 10px 0px #99f;
}

#envisioning button {
  margin-top: 400px;
}


/* INFO PANEL */

.infoLeft, .infoRight {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 0 16px;
  font-size: 13px;
}

.infoLeft {left: 0; right: 50%;}
.infoRight {left: 50%; right: 0;}

#gameInfo details {
  padding-left: 16px;
  margin: 4px 0;
}
#gameInfo summary {margin-left: -16px;}

/* PRODUCTION SUMMARY */

#producedResources {
  display: flex;
  justify-content: center;
  align-items: center;

}
.producedResource { flex-grow: 1; }
.producedResource img {
  display: inline-block; height: 24px; width: 24px; vertical-align: -5px;
}

/* UI ALERTS */

#uiAlert {
  position: absolute;
  z-index: 100;
  top: 480px;
  left: 209px;
  right: 209px;
  bottom: 80px;
  background: linear-gradient(-135deg, rgba(80,59,89,1), rgba(0,0,0,1));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px 1px rgba(255,255,255,0.8);
}

.uiAlert-enter-active,
.uiAlert-leave-active {
  transition: opacity 0.2s linear;
}

.uiAlert-enter-from,
.uiAlert-leave-to {
  opacity: 0;
}

#uiAlert.bumpUp {
  top: 320px;
  bottom: 240px;
}

#uiAlert .speaker {
  height: 100px; width: 100px; vertical-align: middle;
  position: absolute;
  left: 0px;
  top: 10px;
}

#uiAlert .speaker + p {
  margin-left: 100px; padding: 0 10px;
}

/* FONTS */

.sura-bold, h1, h2, h3, .uName, .header {
  font-family: "Sura", serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: normal;
}

.sura-light, .fancy, .mono, .rName {
  font-family: "Sura", serif;
  font-weight: 400;
  font-style: normal;
}

.nunito-300, body {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}



.inventoryButton {
  height: 64px; width: 64px;
  background-color: #f4eff4;
  background-image: url('icons/knapsack.png');
  background-size: contain;
  cursor: pointer;
  border-radius: 4px;
  margin: 16px auto;
  position: relative;
  /* filter: drop-shadow(0 0 2px white); */
}
.inventoryButton:hover {background-color: white;}

#inventorying {
  border: 8px solid red;
  background: black;
  padding: 16px;
  /* position: relative; */
  color: white;
}

.item {
  height: 64px; width: 64px;
  display: inline-block;
  margin: 8px;
  position: relative;
  /* background: black; */
  z-index: 1;
  cursor: help;
}

.itemCount {
  position: absolute;
  right: 0; bottom: 0;    
  background: rgba(0, 0, 0, .8);
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
}

.item.clickable { cursor: pointer; }

.item img {
  height: 64px; width: 64px;
  background: black;
  border-radius: 2px;
}

.item:hover::after {
  content: "";
  display: block;
  position: absolute;
  left: -4px;
  top: -4px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: darkred;
  z-index: -1;
  box-shadow: 56px 0 0 0 darkred, 56px 56px 0 0 darkred, 0 56px 0 0 darkred;
}

.item.clickable:hover::after {
  background: red;
  box-shadow: 56px 0 0 0 red, 56px 56px 0 0 red, 0 56px 0 0 red;
}

.item.clickable:active::after {
  background: white;
  box-shadow: 56px 0 0 0 white, 56px 56px 0 0 white, 0 56px 0 0 white;
}

#itemDescription {
  position: absolute;
  bottom: 0; left: 32px; right: 32px;
  height: 96px;
  border-top: 4px solid red;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 30px;
}

#beholdingGame {
  background: url('backgrounds/gameFound.png');
  background-size: cover;
  background-position: center;
}

.escapeButton button {
  font-size: 14px;
  margin: 16px 10px 0 10px;
  width: calc(100% - 20px);
  display: block;
}

.room {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  perspective-origin: 50% 0; perspective: 200px;
  overflow: hidden;
  /* height: 200px; width: 200px; */
}
.room, .room * {
  transform-style: preserve-3d;
}
.wall {background: red;     box-shadow: 0 10px 0px rgba(0, 0, 0, .6);}
.ceiling {background: green;}
.floor {
  background:url('backgrounds/zigzag.png');
}
.wall, .ceiling, .floor {height: 100%; width: 100%; position: absolute;}
.floor {
  /* height: 300%; width: 300%; */
  left: 0; top: 0;
  transform: rotateX(125deg) rotateZ(10deg) scale(1);
  background-size: 20%;
  animation: floorMove 200s linear infinite;
}
.wall.back {
  bottom: 50%;
  background: url('backgrounds/curtain.png');
  background-position: bottom;
  background-size: 50%;
  box-shadow: 0 2px 0px rgba(0, 0, 0, .6);
}
.wall.left { 
  right: 55%;
  height: 135%;
  transform: rotateY(45deg);
  background: url('backgrounds/curtain.png');
  background-position: bottom;
  background-size: 150%;
  animation: wallMoveLeft 100s linear infinite;
}
.wall.right {
  left: 55%;
  height: 135%;
  transform: rotateY(-45deg); 
  background: url('backgrounds/curtain.png');
  background-position: bottom;
  background-size: 150%;
  animation: wallMoveRight 100s linear infinite;
}

.escapeGame {
  position: absolute;
  top: 70%;
  right: 20%;
  bottom: 4px;
  left: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(215, 235, 255, 0.95);
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255,255,255,.5);
}

.escapePrompt {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0; left: 10px; right: 10px; bottom: 40px;
  /* width: 100%; */
  text-shadow: 0 0 2px white, 0 0 2px white, 0 0 10px white, 0 0 10px white;
  line-height: 1.2;
  color: black;
}

.escapePrompt img, img.demure {display: inline; height: 24px; vertical-align: -5px;}

.escapeProceed {
  position: absolute;
  bottom: 4px;
}

.escapeStats {
  color: white;
  font-weight: bold;
  /* padding: 4px; */
}
.escapeStats p {margin: 4px;}

/* .room * {transform: rotateY(30deg);} */

@keyframes floorMove {
  0% {
    background-position-y: 0%;
  }
  100% {
    background-position-y: 200%;
  }
}
@keyframes wallMoveLeft {
  0% {
    background-position-x: 0%;
  }
  100% {
    background-position-x: 200%;
  }
}
@keyframes wallMoveRight {
  0% {
    background-position-x: 200%;
  }
  100% {
    background-position-x: 0%;
  }
}

.shrinking {
  animation: trembleTowardCenter 10s linear;
  /* display: none; */
}

@keyframes trembleTowardCenter {
  0% { transform: scale(1) rotate(5deg); }
  5% { transform: scale(1) rotate(-5deg); }
  10% { transform: scale(1) rotate(10deg); }
  15% { transform: scale(1) rotate(-10deg); }
  20% { transform: scale(1) rotate(15deg); }
  25% { transform: scale(1) rotate(-15deg); }
  30% { transform: scale(1) rotate(20deg); }
  35% { transform: scale(1) rotate(-20deg); }
  40% { transform: scale(0.95) rotate(25deg); }
  45% { transform: scale(0.9) rotate(-25deg); }
  50% { transform: scale(0.85) rotate(30deg); }
  55% { transform: scale(0.8) rotate(-30deg); }
  60% { transform: scale(0.75) rotate(35deg); }
  65% { transform: scale(0.7) rotate(-35deg); }
  70% { transform: scale(0.6) rotate(40deg); }
  75% { transform: scale(0.5) rotate(-40deg); }
  80% {
    transform: scale(0.4) rotate(45deg);
    left: 50%;
    top: calc(50% - 36px);
    bottom: calc(50% + 36px);
    right: 50%;
  }
  85% { transform: scale(0.3) rotate(-45deg); }
  90% { transform: scale(0.2) rotate(50deg); }
  95% { transform: scale(0.1) rotate(-50deg); }
  100% {
    transform: scale(0) rotate(0);
    left: 50%;
    top: calc(50% - 36px);
    bottom: calc(50% + 36px);
    right: 50%;
  }
}

#warp {
  position: absolute;
  top: 0; right: 0; bottom: 72px; left: 0;
  animation: darken 3s ease;
  background: rgba(0,0,0,1);
}

.particle {
  position: absolute;
  height: 10px; width: 200px;
  background: white;
  border-radius: 100%;
}

.particle:nth-child(1) {
  top: 0; left: 0; right: 100%; bottom: 100%;
  transform: rotate(30deg);
  animation: blackHole 0.77s ease infinite;
  animation-delay: 90ms;
}

.particle:nth-child(2) {
  top: 0; right: 0; left: 100%; bottom: 100%;
  transform: rotate(150deg);
  animation: blackHole 0.91s ease infinite;
}

.particle:nth-child(3) {
  bottom: 0; left: 0; top: 100%; right: 100%;
  transform: rotate(150deg);
  animation: blackHole 0.69s ease infinite;
  animation-delay: 40ms;
}

.particle:nth-child(4) {
  bottom: 0; right: 0; top: 100%; left: 100%;
  transform: rotate(-150deg);
  animation: blackHole 0.78s ease infinite;
}
.particle:nth-child(5) {
  top: 0; left: 49%; right: 49%; bottom: 100%;
  transform: rotate(100deg); 
  animation: blackHole 0.82s ease infinite;
  animation-delay: 100ms;
}

.particle:nth-child(6) {
  top: 100%; right: 49%; left: 49%; bottom: 0%;
  transform: rotate(-100deg);
  animation: blackHole 0.91s ease infinite;
}

.particle:nth-child(7) {
  bottom: 49%; left: 0; top: 49%; right: 100%;
  transform: rotate(0);
  animation: blackHole 1.03s ease infinite;
  animation-delay: 150ms;
}

.particle:nth-child(8) {
  bottom: 49; right: 0; top: 49%; left: 100%;
  transform: rotate(-0);
  animation: blackHole 0.99s ease infinite;
}

@keyframes darken {
  0% {background: rgba(0,0,0,0);}
  100% {background: rgba(0,0,0,1);}
}

@keyframes blackHole {
  0% {}
  100% {
    left: 50%; top: 50%; right: 50%; bottom: 50%;
    height: 0; width: 0;
  }
}

.particle.faster:nth-child(1) { animation-duration: 0.51s; }
.particle.faster:nth-child(2) { animation-duration: 0.53s; }
.particle.faster:nth-child(3) { animation-duration: 0.52s; }
.particle.faster:nth-child(4) { animation-duration: 0.57s; }
.particle.faster:nth-child(5) { animation-duration: 0.59s; }
.particle.faster:nth-child(6) { animation-duration: 0.49s; }
.particle.faster:nth-child(7) { animation-duration: 0.54s; }
.particle.faster:nth-child(8) { animation-duration: 0.58s; }
.particle.fastest:nth-child(1) { animation-duration: 0.21s; }
.particle.fastest:nth-child(2) { animation-duration: 0.33s; }
.particle.fastest:nth-child(3) { animation-duration: 0.19s; }
.particle.fastest:nth-child(4) { animation-duration: 0.26s; }
.particle.fastest:nth-child(5) { animation-duration: 0.30s; }
.particle.fastest:nth-child(6) { animation-duration: 0.28s; }
.particle.fastest:nth-child(7) { animation-duration: 0.23s; }
.particle.fastest:nth-child(8) { animation-duration: 0.25s; }

#prestigeButton {
  display: block;
  position: absolute;
  top: 50%; right: 50%;
  font-size: 200%;
  padding: 10px;
  z-index: 99;
  top: 57%;
  right: calc(50% - 100px);
  width: 200px;
}
#prestigeButton:active {
  animation: pullHarder 0.2s linear infinite;
  color: black;
}

@keyframes pullHarder {
  0% {transform: scale(1) rotate(0deg);  
    box-shadow: 0 0 4px 4px white;  
    filter: drop-shadow(0 0 5px white);
}
  33% {transform: rotate(5deg);}
  50% {  
    box-shadow: 0 0 40px 4px white; 
    filter: drop-shadow(0 0 0px white);
  }
  66% {transform: rotate(-5deg);}
  100% {transform: scale(1) rotate(0deg);
     
    box-shadow: 0 0 4px 4px white; 
    filter: drop-shadow(0 0 5px white);
  }
}

.ignore, .ignore * {
  pointer-events: none;
}