/* Base reset */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App container */
#app {
  text-align: center;
  position: relative;
  cursor: pointer;
}

/* Main word display area */
#word-display {
  background: url(./bgpattern.png);
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(100px + 2vmin);
  color: white;
  user-select: none;
}

/* Word text */
#word-text {
  margin: 0;
}

/* Play button */
#play-btn {
  background-color: transparent;
  color: #888888;
  font-size: 1rem;
  box-shadow: none;
  border: 2px solid #888888;
  border-radius: 10px;
  padding: 5px 50px;
  margin-top: 2rem;
  cursor: pointer;
}

#play-btn:hover,
#play-btn:active {
  background-color: #888888;
  color: #282c34;
}

/* Fullscreen toggle button */
#fullscreen-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#fullscreen-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: scale(1.05);
}

#fullscreen-btn:active {
  transform: scale(0.95);
}

/* Mobile */
@media (max-width: 768px) {
  /* Hide fullscreen button on mobile — Fullscreen API is blocked on iOS */
  #fullscreen-btn {
    display: none;
  }

  #word-display {
    font-size: calc(60px + 4vmin);
    padding: 20px;
  }

  #play-btn {
    padding: 8px 40px;
    font-size: 0.9rem;
    margin-top: 1.5rem;
  }
}
