/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navigation bar */
nav {
  width: 100%;
  background-color: #333;
  padding: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allows nav links to wrap if screen is small */
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffd700;
}

/* Canvas area */
.canvas {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

/* Heading */
.canvas h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Color buttons */
.button {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: inline-block;
  margin: 10px;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Color definitions */
#grey {
  background: grey;
}

#white {
  background: white;
  border: 2px solid #bbb;
}

#blue {
  background: #3498db;
}

#yellow {
  background: #f1c40f;
}

/* Hover effect */
.button:hover {
  transform: scale(1.1);
  border-color: #333;
}

/* Instruction text */
.canvas h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Responsive design */
@media (max-width: 600px) {
  .canvas {
    width: 90%;
    padding: 1.5rem;
  }

  .button {
    height: 50px;
    width: 50px;
  }

  .canvas h1 {
    font-size: 1.5rem;
  }

  .canvas h2 {
    font-size: 1rem;
  }
}
