/* ================== */
/* Base & Reset Styles */
/* ================== */
body {
  margin: 0;
  height: 100vh;
  background-color: #000;
  overflow: hidden;
  position: relative;
  z-index: 0; /* Background layer */
}

/* ================== */
/* Watermark Styles */
/* ================== */
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 100px;
  font-family: 'Times New Roman', Times, serif;
  color: rgba(255, 255, 255, 0.08); /* Transparent white */
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

/* ================== */
/* Centered Container */
/* ================== */
.center-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ================== */
/* Heading */
/* ================== */
h2 {
  margin-top: 0;
  color: lime;
}

/* ================== */
/* Maze Styles */
/* ================== */
#maze {
  display: grid;
  grid-template-columns: repeat(10, 30px);
  grid-template-rows: repeat(10, 30px);
  gap: 2px;
  margin: 20px auto;
}

/* Maze Cells */
.cell {
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 1px solid #444;
}

.wall {
  background-color: #111;
}

.path {
  background-color: limegreen;
}

.start {
  background-color: blue;
}

.end {
  background-color: red;
}

/* ================== */
/* Button Styles */
/* ================== */
button {
  position: relative;
  z-index: 2;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background-color: #ff5733;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #ff7043;
  transform: scale(1.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ================== */
/* Footer Styles */
/* ================== */
.footer {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: bold;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 10px;
  color: orangered;
  background-color: rgba(0, 0, 0, 0.6);
  border-top-left-radius: 10px;
  z-index: 3;
}

/* ================== */
/* Floating Icon Animation */
/* ================== */
span {
  background: url("https://cdn4.iconfinder.com/data/icons/general-office/91/General_Office_54-512.png") no-repeat center;
  background-size: cover;
  width: 100px;
  height: 100px;
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: animate 6s linear;
  z-index: 2;
}

/* Floating Animation Keyframes */
@keyframes animate {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
    filter: hue-rotate(0);
  }
  100% {
    transform: translate(-50%, -5000%);
    opacity: 0;
    filter: hue-rotate(720deg);
  }
}
