body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  transition: background 0.5s ease;
}

.image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  will-change: transform, opacity;
  z-index: 100;
}

.image img {
  display: block;
  max-width: 400px;
  height: auto;
}

.image img:hover {
  transform: scale(1.02);
}

.word {
  position: fixed;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 500;
  font-family: "Arial Narrow", Arial, sans-serif;
  color: #ffffff;
  pointer-events: auto;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
  transition: color 0.5s ease, opacity 0.5s ease;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.word.faded {
  opacity: 0.2;
  animation: none;
  text-shadow: none;
}

.word.faded:hover {
  opacity: 1;
}

.color-tile {
  position: fixed;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  pointer-events: auto;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
  transition: opacity 0.3s ease;
}

.color-tile.faded {
  opacity: 0.2;
  animation: none;
}

.color-tile.faded:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .word {
    font-size: 18px;
  }
  
  .image img:hover {
    transform: none;
  }
  
}