:root {
  --clr-dark: #6e6295;
  --clr-light: #f9f1f0;
  --clr-accent: #6ab6b4;
  --neutral-white: #ffffff;
}

body {
  font-family: 'Patrick Hand', Arial, sans-serif;
  margin: 0;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8)), 
    url('../img/polka-dot-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--clr-dark);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  position: relative;
}

.home-button {
  position: absolute;
  top: 10px; 
  left: 10px;
  font-size: 1.8rem; /* bigger for emoji */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
}

.home-button:hover {
  opacity: 0.7;
}

h1, h2 {
  color: var(--clr-dark);
  margin-bottom: 0.4rem;
}

h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 3px solid var(--clr-accent);
  padding-bottom: 0.3rem;
  margin-top: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

p {
  max-width: 650px;
  margin: 0.5rem auto 1.2rem auto;
  font-size: 1.15rem;
  text-align: center;
}

nav {
  text-align: center;
  margin-bottom: 1.5rem;
}

.nav-dropdown {
  text-align: center;
  margin: 1.5rem auto;
  font-family: 'Patrick Hand', Arial, sans-serif;
}

.nav-dropdown label {
  font-size: 1.2rem;
  color: var(--clr-dark);
  margin-right: 0.5rem;
}

#game-select {
  font-family: 'Patrick Hand', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--clr-accent);
  background-color: var(--clr-light);
  color: var(--clr-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: border-color 0.3s ease;
}

#game-select:hover,
#game-select:focus {
  border-color: var(--clr-dark);
  outline: none;
}

.game-section {
  background: rgba(255 255 255 / 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(110, 98, 149, 0.15);
  padding: 1.5rem 2rem;
  max-width: 700px;
  margin: 1rem auto 2rem auto;
}

ul {
  list-style-type: square;
  padding-left: 1.3rem;
  color: var(--clr-dark);
  font-size: 1.1rem;
}

ul li {
  margin-bottom: 0.5rem;
}

.tag {
  background-color: var(--clr-accent);
  color: var(--neutral-white);
  font-weight: bold;
  padding: 0.25rem 0.7rem;
  margin-right: 0.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  user-select: none;
  display: inline-block;
}

.btn {
  font-family: 'Patrick Hand', Arial, sans-serif;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 0.5rem;
  border: none;
  background-color: var(--clr-accent);
  color: var(--neutral-white);
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--clr-dark);
  outline: none;
  transform: scale(1.05);
}

.game-link {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: var(--clr-accent);
  color: white;
  border-radius: 0.75em;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.game-link:hover {
  background-color: #4fa3a2;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Hide the arrow by default */
.arrow {
  opacity: 0;
  margin-left: 0.3em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show and slide the arrow on hover */
.game-link:hover .arrow {
  opacity: 1;
  transform: translateX(4px);
}
