/* Reset & Base styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}

body {
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #222;
  color: white;
  transition: background 0.3s, color 0.3s;
}

/* Header Title */
header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: #ff7f50;
  animation: float 4s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255, 127, 80, 0.7);
}

/* Wrapper for the language select and mode toggle */
header .header-items {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between language selector and mode toggle */
  margin-left: auto; /* Push everything to the right */
}

/* Language Selection */
#language-select {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#language-select:hover {
  background-color: #555;
}

/* Night Mode Button */
.mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  transition: filter 0.3s ease;
}

.mode-toggle:hover {
  filter: drop-shadow(0 0 5px #ff7f50);
}

/* Light/Dark Themes */
.light-mode {
  background: #ffffff;
  color: #000000;
}

.light-mode header {
  background: #eee;
  color: #222;
}

.dark-mode {
  background: #121212;
  color: #ffffff;
}

/* Hero Section */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  text-align: center;
  padding: 50px;
}

/* Buttons */
button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #ff7f50;
  color: white;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e66e3d;
}

button:focus {
  outline: 2px dashed #ff7f50;
  outline-offset: 4px;
}

/* Animation Container */
#animation-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 20px;
}

#spammer {
  position: absolute;
  left: 80%;
  font-size: 2rem;
}

#hedgehog {
  position: absolute;
  left: 10%;
  font-size: 2rem;
  opacity: 1;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth hover transition */
  z-index: 10; /* Ensure it's above other elements */
}

/* Hedgehog hover effect */
#hedgehog:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Fun Mode Active */
#hedgehog.fun-mode-active {
  left: 80%; /* Move the hedgehog to the right */
  opacity: 1; /* Ensure it’s visible */
  transition: left 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth transition for position */
}

/* Footer */
footer {
  padding: 20px;
  background: #222;
  color: white;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-top: auto;
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 20px;
  }

  #spammer,
  #hedgehog {
    font-size: 1.5rem;
  }

  header h1 {
    font-size: 1.8rem;
  }
}

button:focus, .mode-toggle:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 127, 80, 0.7);
}

html {
  scroll-behavior: smooth;
}

#fun-mode:hover {
  animation: float 1.5s ease-in-out infinite;
}

body {
  cursor: url('https://www.example.com/path-to-cursor.png'), auto; /* Custom cursor */
}

button:hover, .mode-toggle:hover, #hedgehog:hover {
  cursor: pointer;
}