@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Variables */
:root {
  --pink: #EA0AEF;
  --lighter-pink:  #f5a2f7;
  --yellow: yellow;
  --black: rgb(22, 22, 22);
  --spacing-small: 15px;
  --spacing-med: 30px;

  --shadow: drop-shadow(4px 4px 4px rgb(22, 22, 22));
  --selection-effect: drop-shadow(3px 3px 3px var(--yellow)) drop-shadow(-3px -3px 3px var(--yellow));
  --selection-effect-inventory: drop-shadow(3px 3px 3px var(--pink)) drop-shadow(-3px -3px 3px var(--pink));
}



html {
    font-size: 62.5%; /* 10px */
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  background-image: url(../assets/background.jpg);
  background-position: center;
  background-size: cover;
  height: 100vh;
  width: 100%;
  overflow: hidden;

  font-size: 2rem;
  color: white;
  font-family: 'VT323', monospace;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 var(--black);
}




/* STRIPPING STYLES */
body, 
h1,
h2,
h3,
h4,
h5,
h6,
ul,
p,
button {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    max-height: 100%;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 2.5rem;
    text-shadow: inherit;
    filter: var(--shadow);
}


fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
/* END OF STRIPPING STYLES */


/* BANNER FOR MOBILE */
.mobile-only {
  display: none;
}



@media (max-width: 1000px) {
  .mobile-only {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url(../assets/loading1.jpg);
    background-position: center left;
    background-size: cover;
    font-size: 3rem;
    text-align: center;
  }
  
  .mobile-only-inner {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mobile-only-inner img {
    margin-top: var(--spacing-med);
  }
}
/* END OF BANNER FOR MOBILE */

/* COMMON STYLES */
.grass-button {
  color: white;
  padding: 15px 30px;
  background: url(../assets/button.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: inherit;
  font-size: 2.5rem;
  text-shadow: inherit;
  filter: var(--shadow);
}
  .grass-button:hover,
  .grass-button:focus {
    filter: var(--selection-effect);
  }

.wrapper {
  width: 70%;
  margin: 0 auto;
  max-width: 1200px;
}

.close {
  background: none;
  width: 50px;
  position: absolute;
  top: 50px;
  right: 50px;
}

.close:hover,
.close:focus {
  transform: scale(1.1);
}

.flex-parent {
  /* height: 100%; */
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.back {
  position: absolute;
  bottom: var(--spacing-small);
  left: var(--spacing-small);
}

.continue {
  position: absolute;
  bottom: var(--spacing-small);
  right: var(--spacing-small);
}

.full-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

.full-screen p,
.full-screen h2,
.full-screen h3 {
  margin-bottom: 30px;
}

.full-screen h1 {
  font-size: 5rem;
}

.full-screen h2 {
  font-size: 4rem;
}
/* END OF COMMON STYLES */


/* LOADING SCREEN STYLES */
.preloader {
  background: white;
  color: black;
  text-shadow: none;
  opacity: 1;
  text-align: center;
}

.preloader h2 {
  font-size: 3rem;
}

.preloader img {
  width: 30%;
  margin: var(--spacing-med);
}

.land-ackn {
  background: linear-gradient(rgba(20, 20, 20, 0.4), rgba(20, 20, 20, 0.4)), url(../assets/loading1.jpg);
  color: var(--yellow);
  background-size: cover;
  background-position: center;
}

.title {
  background:  url(../assets/loading2.jpg);
  font-size: 5rem;
  color: white;
  background-size: cover;
  background-position: center;
}

.intro {
  background: linear-gradient(rgba(20, 20, 20, 0.4), rgba(20, 20, 20, 0.4)), url(../assets/loading1.jpg);
  background-size: cover;
  background-position: center;
  overflow-y: scroll;
}

.intro h2 {
  color: var(--yellow);
}

.current-screen {
  visibility: visible;
  opacity: 1;
  transition: opacity 1s;
}

/* hides the other two scenes */
.loading > div:not(.current-screen) {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s;
}
/* END OF LOADING SCREEN STYLES */



/* CONTAINER/INVENTORY */
.container {
  height: 100vh;
  width: 100%;
  padding: var(--spacing-small);
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  grid-template-rows: repeat(6, 1fr);
  grid-gap: 12px;
}

.dig-site {
  grid-row: 2 / 6;
  grid-column: 5 / 14;
  position: relative;
}



/* OBJECTS */
.objects {
  position: absolute;
  top: 47%;
  left: 47%;
  transform: translate(-50%, -50%);
  width: 77%;
  height: 75%;
  padding: 15px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-template-areas:
  "c1  c2  c3  c4"
  "c5  c6  c7  c8"
  "c9  c10 c11 c12"
  "c13 c14 c15 c16"
}

.item {
  filter: var(--shadow);
  transition: opacity 0.5s;
  height: inherit;
  max-height: 120px;
}

.item,
.artifact {
  user-select: none;
}

/* styles for item interactions */
.found-item {
  filter: var(--selection-effect);
  opacity: 1;
}

.artifact {
  opacity: 0.3;
  filter: grayscale(100%) brightness(0%);
  height: inherit;
  max-height: 100px;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.in-inventory {
  filter: grayscale(0);
}

.in-inventory:hover,
.in-inventory:focus {
  z-index: 50;

}

.in-inventory img {
  filter: var(--shadow);
}

.in-inventory:hover img,
.in-inventory:focus img {
  filter: var(--selection-effect-inventory);
  transform: scale(1.1);
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  max-width: 120px;
  background-color: #312d27;
  color: white;
  text-align: center;
  padding: 5px;
  position: absolute;
  top: 100px;
  transition: opacity 0.3s;
  border-radius: 5px;
}

.in-inventory:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
/* END OF OBJECTS */



/* CANVASES/SCENES */
.canvas {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1s;

  clip-path: polygon(16.5% 7.6%, 19.2% 7.5%, 21.8% 7.6%, 23.9% 7.9%, 26.4% 7.7%, 28.4% 7.3%, 31.4% 7.0%, 34.7% 7.9%, 38.0% 8.6%, 43.3% 8.6%, 47.1% 8.2%, 48.4% 8.1%, 51.2% 7.8%, 52.7% 7.5%, 55.2% 7.0%, 58.4% 6.0%, 64.5% 4.0%, 69.9% 02.2%, 73.5% 01.0%, 77.6% 0.8%, 80.9% 1.4%, 83.9% 2.0%, 85.4% 2.2%, 88.4% 3.2%, 90.7% 4.2%, 91.8% 5.0%, 93.1% 6.8%, 94.2% 9.7%, 94.5% 14.9%, 93.7% 18.1%, 93.4% 18.9%, 93.7% 22.0%, 94.6% 23.4%, 96.2% 26.0%, 97.6% 28.5%, 98.0% 29.7%, 98.7% 35.4%, 99.2% 40.7%, 99.4% 44.2%, 99.3% 48.5%, 98.5% 54.2%, 98.1% 56.1%, 97.7% 57.9%, 97.6% 59.0%, 96.7% 64.5%, 95.9% 66.5%, 94.7% 69.0%, 92.7% 70.8%, 91.6% 71.0%, 89.0% 72.7%, 88.2% 74.3%, 87.7% 77.2%, 87.0% 81.8%, 86.6% 83.4%, 84.6% 86.6%, 81.7% 88.3%, 77.6% 89.6%, 74.2% 90.1%, 71.8% 90.7%, 69.4% 91.5%, 68.2% 91.6%, 65.5% 91.6%, 62.8% 91.6%, 61.8% 91.4%, 59.9% 91.1%, 58.6% 90.9%, 56.2% 91.0%, 55.8% 91.0%, 54.1% 92.4%, 53.6% 93.2%, 51.3% 95.5%, 51.1% 95.5%, 50.0% 96.1%, 48.6% 96.9%, 44.0% 98.7%, 40.6% 99.5%, 38.0% 99.3%, 36.9% 99.2%, 33.7% 97.9%, 31.1% 96.1%, 28.1% 94.5%, 24.3% 94.5%, 20.9% 95.4%, 18.4% 96.0%, 13.3% 96.4%, 10.6% 95.8%, 8.6% 94.9%, 7.0% 93.0%, 6.6% 92.4%, 6.5% 92.3%, 5.9% 91.2%, 5.7% 90.9%, 5.1% 90.0%, 4.2% 88.5%, 3.8% 87.7%, 3.6% 87.3%, 2.9% 86.3%, 2.7% 85.9%, 2.4% 85.3%, 2.1% 83.9%, 1.8% 82.7%, 1.5% 81.4%, 0.9% 75.8%, 1.7% 71.4%, 2.4% 70.3%, 3.0% 69.5%, 4.2% 66.9%, 5.3% 62.7%, 6.6% 60.3%, 7.2% 59.8%, 7.9% 57.5%, 7.8% 55.2%, 7.3% 49.8%, 7.1% 46.2%, 7.3% 43.2%, 7.3% 39.2%, 6.8% 37.1%, 5.8% 34.3%, 5.4% 33.1%, 4.8% 29.6%, 4.5% 25.5%, 4.3% 24.0%, 4.1% 21.3%, 4.5% 18.5%, 5.3% 14.9%, 5.5% 14.3%, 6.6% 11.9%, 7.5% 10.8%, 8.1% 9.9%, 8.7% 9.1%, 9.5% 8.4%, 11.4% 8.0%, 15.4% 7.7%, 16.5% 7.6%, 16.5% 7.6%);
  -webkit-clip-path: polygon(16.5% 7.6%, 19.2% 7.5%, 21.8% 7.6%, 23.9% 7.9%, 26.4% 7.7%, 28.4% 7.3%, 31.4% 7.0%, 34.7% 7.9%, 38.0% 8.6%, 43.3% 8.6%, 47.1% 8.2%, 48.4% 8.1%, 51.2% 7.8%, 52.7% 7.5%, 55.2% 7.0%, 58.4% 6.0%, 64.5% 4.0%, 69.9% 02.2%, 73.5% 01.0%, 77.6% 0.8%, 80.9% 1.4%, 83.9% 2.0%, 85.4% 2.2%, 88.4% 3.2%, 90.7% 4.2%, 91.8% 5.0%, 93.1% 6.8%, 94.2% 9.7%, 94.5% 14.9%, 93.7% 18.1%, 93.4% 18.9%, 93.7% 22.0%, 94.6% 23.4%, 96.2% 26.0%, 97.6% 28.5%, 98.0% 29.7%, 98.7% 35.4%, 99.2% 40.7%, 99.4% 44.2%, 99.3% 48.5%, 98.5% 54.2%, 98.1% 56.1%, 97.7% 57.9%, 97.6% 59.0%, 96.7% 64.5%, 95.9% 66.5%, 94.7% 69.0%, 92.7% 70.8%, 91.6% 71.0%, 89.0% 72.7%, 88.2% 74.3%, 87.7% 77.2%, 87.0% 81.8%, 86.6% 83.4%, 84.6% 86.6%, 81.7% 88.3%, 77.6% 89.6%, 74.2% 90.1%, 71.8% 90.7%, 69.4% 91.5%, 68.2% 91.6%, 65.5% 91.6%, 62.8% 91.6%, 61.8% 91.4%, 59.9% 91.1%, 58.6% 90.9%, 56.2% 91.0%, 55.8% 91.0%, 54.1% 92.4%, 53.6% 93.2%, 51.3% 95.5%, 51.1% 95.5%, 50.0% 96.1%, 48.6% 96.9%, 44.0% 98.7%, 40.6% 99.5%, 38.0% 99.3%, 36.9% 99.2%, 33.7% 97.9%, 31.1% 96.1%, 28.1% 94.5%, 24.3% 94.5%, 20.9% 95.4%, 18.4% 96.0%, 13.3% 96.4%, 10.6% 95.8%, 8.6% 94.9%, 7.0% 93.0%, 6.6% 92.4%, 6.5% 92.3%, 5.9% 91.2%, 5.7% 90.9%, 5.1% 90.0%, 4.2% 88.5%, 3.8% 87.7%, 3.6% 87.3%, 2.9% 86.3%, 2.7% 85.9%, 2.4% 85.3%, 2.1% 83.9%, 1.8% 82.7%, 1.5% 81.4%, 0.9% 75.8%, 1.7% 71.4%, 2.4% 70.3%, 3.0% 69.5%, 4.2% 66.9%, 5.3% 62.7%, 6.6% 60.3%, 7.2% 59.8%, 7.9% 57.5%, 7.8% 55.2%, 7.3% 49.8%, 7.1% 46.2%, 7.3% 43.2%, 7.3% 39.2%, 6.8% 37.1%, 5.8% 34.3%, 5.4% 33.1%, 4.8% 29.6%, 4.5% 25.5%, 4.3% 24.0%, 4.1% 21.3%, 4.5% 18.5%, 5.3% 14.9%, 5.5% 14.3%, 6.6% 11.9%, 7.5% 10.8%, 8.1% 9.9%, 8.7% 9.1%, 9.5% 8.4%, 11.4% 8.0%, 15.4% 7.7%, 16.5% 7.6%, 16.5% 7.6%);

}

.scene_a .canvas {
  cursor : url('../assets/cursors/cursor_a.png')5 5, auto;
}

.scene_b .canvas {
  cursor : url('../assets/cursors/cursor_b.png') 25 85, auto;
}

.scene_c .canvas {
   cursor : url('../assets/cursors/cursor_c.png') 35 90, auto;
}

.current-scene {
  visibility: visible;
  opacity: 1;
  transition: opacity 1s;
}

/* hides the other two scenes */
.scene:not(.current-scene) {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s;
}


.last-layer {
  display: flex; 
  justify-content: center;
  align-items: center;
}

.move-on {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  width: 75%;
}

.move-on h3 {
  font-size: 3rem;  
  color: var(--yellow);

}

.move-on p {
  margin-bottom: 20px;
}

.you-worm {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.you-worm img {
  width: 100%;
}
/* Keeping these styles in case we add text to the winning screen in the future */
/* 
.you-worm-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.you-worm h4 {
  font-size: 4rem;
} */




/* END OF CANVASES/SCENES */


/* MISC BUTTONS */
.misc-buttons {
  display: flex;
  justify-content: space-around;
  position: absolute;
  bottom: var(--spacing-small);
  left: var(--spacing-small);
}

.misc-button {
  /* margin-left: 30px; */
  padding: 10px 30px;
  color: white;
  margin: var(--spacing-small);
}
/* END OF MISC BUTTONS */


/* CREDITS AND INSTRUCTIONS */
.misc-screen {
  visibility: hidden;
  opacity: 0;
}

.guide {
  background: linear-gradient(rgba(20, 20, 20, 0.4), rgba(20, 20, 20, 0.4)), url(../assets/loading1.jpg);
  background-size: cover;
  background-position: center;
  font-size: 2rem;
  overflow-y: scroll;
}


.credits {
  background: linear-gradient(rgba(20, 20, 20, 0.4), rgba(20, 20, 20, 0.4)), url(../assets/loading1.jpg);
  background-size: cover;
  background-position: center;
  color: white;
  font-size: 2.3rem;
}

.credits h2 {
  font-size: 4rem;
}

.credits h2,
.credits h3 {
  color: var(--pink);
}

.credits .flex-parent {
  align-items: flex-start;
  width: 50%;
}

.credits p {
  margin-bottom: 10px;
}

.credits a {
  color: var(--lighter-pink);
}
  .credits a:hover,
  .credits a:focus {
    text-decoration: underline;
  }

.credits-section {
  margin-bottom: calc(var(--spacing-small) * 3)
}
/* END OF CREDITS AND INSTRUCTIONS */



/* MODAL */
.modal {
  display: none; 
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10,10,10,0.75);
  justify-content: center;
  align-items: center;
}

.open {
  display: flex;
}

.modal-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: var(--spacing-med) 0;
}

.modal-text {
  color: white;
  font-size: 2.3rem;
  margin-left: 50px;
  width: 70%;
}

.modal-text p {
  margin: 10px 0;
}

.modal-text a {
  color: yellow;
}
  .modal-text a:hover,
  .modal-text a:focus  {
    text-decoration: underline;
  }


/* REALM BUTTONS */
.realm-buttons-outer {
  position: absolute;
  right: 0;
  bottom: var(--spacing-small);
  filter: var(--shadow);

  background: url(../assets/realm-buttons-bg.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  width: 390px;
  text-align: center;
}

.realm-buttons-inner {
  display: flex;
  justify-content: center;
  filter: var(--shadow);
}

.realm-button {
  opacity: 0;
}
.realm-button + img {
  width: 80px;
}
  .realm-button:hover + img,
  .realm-button:focus + img,
  .realm-button:checked + img {
    filter: var(--selection-effect);
  }
/* END OF REALM BUTTONS */


/* Animation styles */
.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s;
}
.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 1s;
}



/* Z-INDEXES */

.mobile-only {
  z-index: 100;
}

.preloader {
  z-index: 80;
}

.modal {
  z-index: 70;
}

.land-ackn {
  z-index: 61;
}

.note {
  margin-top: 20px;
  width: 70%;
  text-align: center;
}

.loading > *,
.guide,
.credits {
  z-index: 60;
}

.you-worm {
  z-index: 40;
}

/* Layer 1 */
.canvas_01 {
  z-index: 39;
}
.objects_01 {
  z-index: 38;
}

/* Layer 2 */
.canvas_02 {
  z-index: 37;
}
.objects_02 {
  z-index: 36;
}

/* Layer 3 */
.canvas_03 {
  z-index: 35;
}
.objects_03 {
  z-index: 34;
}

/* Layer 4 */
.canvas_04 {
  z-index: 33;
}
.objects_04 {
  z-index:32;
}

/* Layer 5 */
.canvas_05 {
  z-index: 31;
}
.objects_05 {
  z-index: 30;
}

/* Layer 6 */
.canvas_06 {
  z-index: 29;
}
.objects_06 {
  z-index: 28;
}

/* Layer 7 */
.canvas_07 {
  z-index: 27;
}
.objects_07 {
  z-index: 26;
}

/* Layer 8 */
.canvas_08 {
  z-index: 25;
}
.objects_08 {
  z-index: 24;
}

/* Layer 9 */
.canvas_09 {
  z-index: 23;
}
.objects_09 {
  z-index: 22;
}

/* Layer 10 */
.canvas_10 {
  z-index: 21;
}
.objects_10 {
  z-index: 20;
}

/* Layer 11 */
.canvas_11 {
  z-index: 19;
}
.objects_11 {
  z-index: 18;
}

/* Layer 12 */
.canvas_12 {
  z-index: 17;
}
.objects_12 {
  z-index: 16;
}

/* Layer 13 */
.canvas_13 {
  z-index: 15;
}
.objects_13 {
  z-index: 14;
}

/* Layer 14 */
.canvas_14 {
  z-index: 13;
}
.objects_14 {
  z-index: 12;
}

/* Layer 15 */
.canvas_15 {
  z-index: 11;
}
.objects_15 {
  z-index: 10;
}

.move-on {
  z-index: 2;
}

.last-layer {
  z-index: 1;
}


