
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fcefee;
}
.pastel-bg {
  /*background-color: #fef6f9;*/
  padding: 60px 0;
}
.home-image {
  max-width: 300px;
  border: 4px solid #ffdee9;
  border-radius: 15px;
}
.puzzle-container {
  background-color: #c28958;
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-gap: 1px 25px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 35px 15px 15px ; /* Small padding for a border effect */
  border-radius: 8px;
}
.tile {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background-color: #000;
  overflow: hidden;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15),
    inset 0 0 5px rgba(255, 255, 255, 0.15);
  transform: perspective(800px) rotateX(5deg) rotateY(-5deg);
  transition: transform 0.3s ease;
  position: relative;
}
.tile:hover {
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1.05);
}

.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  pointer-events: none;
  z-index: 1;
}

/* Update this to apply to img inside .tile */
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s ease;
  z-index: 1;
  position: relative;
}

.tile img:active {
  transform: scale(1.1);
  cursor: grabbing;
}

/* Snap animation for image tiles */
.tile img.snap {
  animation: snapEffect 0.3s ease;
}

@keyframes snapEffect {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.tile img.scaling {
  transition: transform 0.2s ease-in-out;
  transform: scale(0.8);
}

.tile img.scaled-up {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}


.tile img.snap {
  animation: snapEffect 0.1s ease;
}

@keyframes snapEffect {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.tile img.scaling {
  transition: transform 0.2s ease;
  transform: scale(0.8);
}

.tile img.scaled-up {
  transition: transform 0.2s ease;
  transform: scale(1.1);
}

.puzzle-container img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.puzzle-container img:active {
  transform: scale(1.1);
  cursor: grabbing;
}
#checkBtn {
  font-size: 18px;
  padding: 10px 25px;
}
/* Container to hold icon and button */
.nav-auto-toggle {
  position: relative;
  display: flex;
  justify-content:center;
  align-items: center;
  margin-left: 15px;
}

/* Lightbulb icon styling */
#revealToggle {
  font-size: 20px;
  cursor: pointer;
  justify-content:center;
  color: #fdd835; /* yellow glow */
  padding: 4px;
  transition: transform 0.2s ease;
}

#revealToggle:hover {
  transform: scale(1.2);
}

/* Hidden by default */
.nav-auto-btn {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.2s ease;
  margin-left: 10px;
  opacity: 0;
  pointer-events: none;
}

/* Shown when toggled */
.nav-auto-btn.show {
  opacity: 1;
  pointer-events: auto;
}



/* Smooth auto-solve transition */
.autosolve-animate {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0.8);
  opacity: 0.5;
}
.surprise-bg{
	background-color:#ffd67924;
	margin:5px;
	border-radius:15px;
	border: solid rgb(82 191 166 / 16%) 5px;
}

.surprise-bg2{
	background-color:#bce8e8;
	margin:5px;
	border-radius:15px;
	border: solid rgb(82 191 166 / 16%) 5px;
}
.gallery-img {
  width: 100px;
  height: 100px;
  margin: 5px;
  border-radius: 10px;
  animation: float 3s ease-in-out infinite alternate;
}
@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}
.person-image {
	  filter: drop-shadow(0 0 0 #67f0d9) drop-shadow(0 0 12px #f288d0);
      float: left;
      width: 250px;
      height: auto;
      shape-outside: url('images/cpl2.png');
      shape-image-threshold: 0.4;
      shape-margin: 20px;
      margin: 0 30px 30px 0;
      -webkit-shape-outside: url('images/cpl2.png');
      -webkit-shape-image-threshold: 0.4;
      -webkit-shape-margin: 20px;
    }

    .ptext {
      font-family: "Sofia", cursive;
      font-size: 25px;
      line-height: 1.5;
      color: #1a00d6;
      text-shadow: 2px 2px 0 #ffffff, 1px 1px 2px #ababab;
      max-width: auto;
    }


@keyframes popEffect {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.tile img.pop {
  animation: popEffect 0.15s ease-in-out;
}


@media (max-width: 1080px) {
  .puzzle-container {
    grid-template-columns: repeat(5, 60px);
    grid-gap: 1px;
    padding: 5px;
  }

  .tile {
    width: 60px;
    height: 60px;
  }

  .puzzle-container img {
    width: 60px;
    height: 60px;
  }

  #checkBtn, #autoSolveBtn {
    font-size: 16px;
    padding: 8px 20px;
  }

  .nav-auto-toggle {
    margin-left: 5px;
  }

  .person-image {
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 10px auto;
    float: none;
    shape-outside: none;
  }

  .ptext {
    font-size: 20px;
    padding: 10px;
    text-align: center;
  }

  .music-details audio {
    width: 100%;
  }

  .music-item {
    flex-direction: column;
    align-items: center;
  }

  .disc {
    margin-bottom: 10px;
  }
}

