*{
    margin:0;
    padding:0;
    box-sizing:border-box;
  }

 body{
  background-color: #fdffb6;
 }

/* Slider Styles */
.slider-container {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  margin-bottom: 40px;
  margin-top: 100px;
  position: relative;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 400px;
}

.slide {
  min-width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none;
}

.slide.active {
  opacity: 1;
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #bdb2ff;
}

#dot {
  display: none;
}
  
  #heading{
    display:block;
    text-align:center;
    font-size:2em;
    margin:10px 0px;
  
  }


.game-container {
    background-color: #fdffb6;
    padding: 0;
    margin: 0;
}

.nav-header{
  display: flex;
position: sticky;
top: 0;
left: 0;
width: 100%;
height: 50px;
background-color: #333;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
z-index: 998;
}

.nav-header nav{
  display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #bdb2ff;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: bold;
    border: white 5px solid;
}

.nav-header nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.nav-header nav ul a{
    text-decoration: none;
    color: #fff;
    margin: 0 20px;
    font-size: 18px;
    /* transition: color 0.3s ease; */
    transition: color .7s ease-in-out, box-shadow .7s ease-in-out;
}

.nav-header nav ul li a:hover{
    color: #fdffb6;
   /* border: #f0f0f0 1px solid; */
   border-radius: 25px;
   padding: 8px;
   color: rgb(0, 0, 0);
    	box-shadow: inset 120px 0 0 0 #fdffb6;
}

.nav-header nav ul li a.active{
 border: #f0f0f0 1px solid; 
 border-radius: 25px;
 padding: 8px;
 color: rgb(0, 0, 0);
 
}

.content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .content .instructions{
        display: flex;
        flex-direction: column;
        text-align: center;
        z-index: 999;
    }

    .instructions{
        background-color: white;
        color: black;
        margin: 0;
    }

    .instruction-label{
        font-weight: bold;
    }

    .game-container {
        position: relative;
        top: 0px;
        bottom: 50px;
        width: 100%;
        height: 100vh; 
        overflow: auto; 

    }

.player {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: cover;
    transition: all 0.2s ease;
    z-index: 10;
}

.player .ghost{
    position: absolute;
    width: 50px;
    height: 50px;
    transition: all 0.2s ease;
    z-index: 10;
}

.player .ghost:hover{
    transform: scale(1.4);
    opacity: 0.8;
    filter: sepia(100%);
}



.room-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
}


.map{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
    
}
.map img{
    height: auto;
    width: 400px;
}

footer {
  background-color: #bdb2ff;
  color: #fff;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  bottom: 0;
  left: 0;
  min-height: 100px;
  border: white 5px solid;
  border-bottom: 0;
  margin-top: 50px;
}

footer .logo {
  max-width: 45px;
  margin-bottom: 10px;
  padding: 0;
  position: absolute;
  left: 20px;
  bottom: 20px;
}

footer .footer-info {
  font-size: 20px;
  margin-bottom: 10px;
  align-self: center;
  text-align: center;
  margin-top: auto;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

footer nav ul li {
  font-size: 25px;
}

footer nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer nav ul li a:hover {
  color: #ffc6ff;
}

.bar img{
  display: none;
  width: 70px;
  height: auto;
}

.return{
  position: fixed;
  z-index: 9999;
  bottom: 40px;
  right: 40px;
  width: 100px;
  background-color: rgb(255, 214, 165, 0.4);
  border-radius: 45px;
  border: #ffadad 1px solid;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.return:hover{
  transform: scale(1.1);
  background-color: rgba(245, 174, 88, 0.6);
  border-radius: 45px;
  border: #fa7575 1px solid;

}



@media (max-width: 900px) {
  footer nav ul {
      flex-direction: column;
      gap: 10px;
  }

  footer .logo {
      max-width: 80px;
  }

   .map img {
    height: auto;
    width: 200px;
  }

  .title img {
    height: auto;
    width: 450px;
  }

}



@media (max-width: 700px) {
  footer nav ul {
      flex-direction: column;
      gap: 10px;
  }

  footer .logo {
      max-width: 80px;
  }

   .map img {
    height: auto;
    width: 150px;
  }

  .title img{
    height: auto;
    width: 350px;
  }
  .hamburger-menu {
    display: flex;
  }

  .nav-header nav ul {
    display: none;
  }

 
  .nav-header.active nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  
  .nav-header {
    display: flex;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 999;
  }
  
  .nav-header nav {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking */
    align-items: center;
    font-size: 18px;
    width: 100%;
  }
  
  /* Hamburger Menu */
  .hamburger-menu {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    position: absolute;
    top: 10px; 
    left: 10px; 
    z-index: 1001; 
  }

  .bar img{
    width: 70px;
    height: auto;
    display: block;
  }


  .nav-header nav ul {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: #bdb2ff; 
    text-align: center;
    padding: 10px 0;
    border: white 5px solid;
  }

  .nav-header.active nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav-header nav ul li {
    padding: 10px;
    width: 100%;
  }

  .nav-header nav ul li a {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    text-decoration: none;
    color: white;
  }
}


/* fullscreen image  */
#loader{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: #fa7575;
}


#ghost-text {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  border-radius: 45px;
  display: none;
  white-space: nowrap;
  font-size: 44px;
  font-weight: bold;
  z-index: 9999;
}

#ghost-info:hover{
  transform: scale(1.2);
  filter: sepia(100%);
  cursor:help;
}
