/* Import Google Font
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
*/

:root {
  --primary-color: #ff6347;   
  --secondary-color: #fff;    
  --accent-color: #4caf50;   
  --spacing: 20px;           
  --font-family: 'Press Start 2P', cursive;
}

body {
  font-family: var(--font-family);
  background-color: #222;
  color: var(--secondary-color);
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


header, footer {
  background-color: var(--primary-color);
  padding: var(--spacing);
}

nav a {
  color: var(--secondary-color);
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover, nav a:focus {
  color: var(--accent-color);
}


#game {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing);
  padding: var(--spacing);
}

button {
  background-color: var(--primary-color);
  border: none;
  color: var(--secondary-color);
  font-size: 1.2rem;
  padding: var(--spacing);
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}


button:hover, button:focus {
  background-color: var(--accent-color);
  transform: scale(1.05);
}

/* Disabled button */
button:disabled {
  background-color: #555;
  cursor: not-allowed;
}


@media (max-width: 600px) {
  #game {
    padding: 10px;
  }

  button {
    width: 80%;
  }
}


nav a:nth-child(2) {
  font-weight: bold;
}


button[id^="click"] {
  text-transform: uppercase;
}

button + p {
  margin-top: 15px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Footer */
footer p {
  font-size: 14px;
  margin: 5px 0;
}

/* Links container with sufficient contrast */
.links-container {
  background-color: #cc2b00; 
  color: #fff;               
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;      
  margin-top: 10px;
}

.links-container a {
  color: #fff;               
  text-decoration: none;
  margin: 0 8px;
  font-weight: bold;
  transition: color 0.3s;
}

.links-container a:hover,
.links-container a:focus {
  color: #4caf50;           
}
