@font-face {
    font-family: HauntingAttraction;
    src: url(HauntingAttraction.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: HauntingAttraction;
}

body {
    user-select: none;
    background-color: #000;
    color: #fff;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.main-img {
    width: 90vw;
    height: 40vh;
    border: solid 1px #36AE7C;
    border-radius: 5px;
}

.main-txt {
    height: 10vh;
}

.main-txt, .heading {
    margin: 1vh 5vw;
    text-align: center;
    letter-spacing: 1.2px;
}

.heading {
    color: #36AE7C;
    z-index: 2;
}

/* animated line */

.line {
    background-color: #fff;
    width: 90vw;
   visibility: hidden;
   border-color: #36AE7C;
   opacity: 0;
   display:block;
   width:0%;
   text-align:center;
 }
 
 @keyframes line {
   from {
     left:50%;
     width:0%;
   }
   to {
     left:5%;
     width:90%;
   }
 }

 .animate {
    animation: line 2s linear forwards;
 }

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90vw;
    margin-top: 5vh;
   visibility: hidden;
   opacity: 0;
}

.arrows {
    font-size: 20vh;
    position: relative;
}

.arrows, .look, .take, .use, .hide {
    cursor: pointer;
}

ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    width: 45vw;
}

.icons {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 15vh;
}

.hide {
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    width: 90vw;
    height: 40vh;
    position: absolute;
    top: 0;
    margin-top: 2.8rem;
   visibility: hidden;
}

.grid-field1, .grid-field2, .grid-field3, .grid-field4, .grid-field5, .grid-field6, .grid-field7, .grid-field8, .grid-field9 {
    position: relative;
}

button {
    padding: 1vh 2vh;
    font-size: 4vh;
    cursor: pointer;
    color: #fff;
    background-color: #36AE7C;
    border-radius: 5px;
    bottom:0;
    margin-bottom: 3vh;
    position: absolute;
    z-index: 2;
}

.up {
    height: 9vh;
    width: 8vh;
    position: absolute;
    top: 0;
    left: 6vh;
}

.down {
    height: 9vh;
    width: 8vh;
    position: absolute;
    bottom: 0;
    left: 6vh;
}

.left {
    height: 9vh;
    width: 6vh;
    position: absolute;
    top: 6vh;
    left: 0;
}

.right {
    height: 9vh;
    width: 6vh;
    position: absolute;
    top: 6vh;
    right: 0;
}

/* items */

.crowbar {
    position: absolute;
    width: 5vh;
    height: 5vh;
    top: 0;
    right: 0;
    visibility: hidden;
}

.key {
    position: absolute;
    width: 1vh;
    height: 1vh;
    bottom: 0;
    right:0;
    visibility: hidden;
}

.hammer {
    position: absolute;
    width: 6vh;
    height: 4vh;
    bottom: 0;
    right:0;
    padding-right: 0.5vh;
    visibility: hidden;
}

.flashlight {
    position: absolute;
    width: 11vh;
    height: 5vh;
    bottom: 0;
    right:0;
    visibility: hidden;
}

.jumpscare {
    position: absolute;
    width: 1vh;
    height: 3vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    z-index: 2;
}

.jumpscare-class {
    transform: scale(23);
    visibility: visible;
    transition: all .1s ease-in-out;
}

.black-screen {
    height: 100vh;
    width: 100vw;
    position: absolute;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

/* disable highlight when clicked */

.no-select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.no-select:focus {
    outline: none !important;
}

/* fade in-out */

.fade-in {
    opacity: 1;
    transition: opacity 3s linear;
    visibility: visible;
}

.fade-out {
    opacity: 0;
    transition: opacity 3s linear;
}

/* increase z-index */

.zindex-increase {
    z-index: 2;
}

/* shake image */

.shake {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.5s;
  
    /* When the animation is finished, start again */
    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); }
  }

.click, .song, .forest, .earthquake, .grass, .growl, .monster-howl, .jumpscare-sound, .walk, .climb, .drawer, .lock, .hall, .sewer, .break, .water {
    display: none;
}