body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    background-color: #000000
}

.parent{
    position: relative;
}

.child{
    position: absolute;
}

.fade {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Reusable visible state */
.show {
    opacity: 1;
}

#skipIntro{
    width: 50%;
    height: auto;
    bottom: 5%;
    left: 25%;
    background-color: #333;
    padding: 4px;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 10px;
}

#gameboard {
    aspect-ratio: 9 / 16;
  width: 100dvw;
  height: 100dvh;
  max-width: min(56.25dvh, 100dvw);
  max-height: min(177.78dvw, 100dvh);
    background-color: grey;
    overflow:hidden
}

#bgImage{
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    height: 100%; 
}

#introVideo{
    top:0;
    right: 0;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    height: 100%;
}

#introImgOne{
    top:0;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    height: 100%;
}

/*Ghost Button*/
#startButton{
    width: 50%;
    height: auto;
    bottom: 10%;
    right: 5%;
    animation: moveUpandDown linear 2s infinite;
}

/*Witch*/
#witch{
    -webkit-user-select: none;
    user-select: none;
    width: 75%;
    height: auto;
    bottom: -10%;
    left: -10%;
    animation: moveUpandDown linear 4s infinite;
}

#timeID{
    top: 0;
    left: 10px;
    color: white;
    font-weight: bold;
}

#restart{
  bottom: 0;
  right: 0;
  background-color: black;
  color: white;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 10px 0 0 0;
}

#gameStart{
  width: 101%;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: black;
  color: white;
  padding: 10px;
  font-weight: bold;
  border: none;
}

.grid-container {
  display: grid;
  grid-template-columns: auto auto;
  top: 8%;
}
.grid-item {
  width: 100%;
  text-align: center;
  transform: rotate(-1deg);
  animation-timing-function: ease;
  animation: mymove 5s infinite;
}

@keyframes mymove {
  50% {
    transform: rotate(1deg);
  }
}

.grid-item img {
  width: 80%;
  animation-iteration-count: 1;
  animation-name: start;
  animation-duration: 0.5s;
}

@keyframes start {
  0% {
    width: 0%;
  }
  100% {
    width: 94%;
  }
}

@keyframes doorGrow {
  60% {
    opacity: 1;
  }

  90% {
    opacity: 0;
    transform: scale(2) translate(-20%, -15%);
  }
}


@keyframes moveUpandDown {
  0% {
    transform: translateY(0%);
  }

  50% {
    transform: translateY(-5%);
  }

  100% {
    transform: translateY(0%);
  }
}

@keyframes placeWitch {
  0% {
    transform: translate(0%, 0%);
  }

  40% {
    transform: scale(1) translate(40%, 0%);
  }
  
  50% {
    transform: scale(1) translate(40%, 0%);
  }

  100% {
    transform: scale(0.75) translate(-10%, 50%);
  }
}

@keyframes witchGame {
  0% {
    transform: scale(0.75) translate(-10%, 50%);
  }

  50% {
    transform: scale(0.75) translate(-10%, 47%);
  }

  100% {
    transform: scale(0.75) translate(-10%, 50%);
  }
}