/* General Body Styling */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f9f7f3; /* Subtle background for a clean look */
  margin: 0;
  padding: 20px;
  position: relative;
}

/* Title and Header Section */
header h1 {
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
  color: #555;
}

/* Main Canvas Styling */
canvas {
  display: block;
  margin: 50px auto; /* Center canvas with space */
  border: 4px solid #000; /* Bold black frame */
  cursor: crosshair; /* Drawing-focused cursor */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Add shadow for a polished look */
}

/* Toolbox Section Styling */
section#toolbox {
  margin-top: 30px;
}

#tool-controls label {
  font-size: 1em;
  color: #333;
  margin-right: 5px;
}

#tool-controls input {
  margin-left: 10px;
  margin-right: 20px;
}

#advanced-tools button {
  font-size: 1em;
  margin: 10px 5px;
  padding: 10px 20px;
  background-color: #2c3e50; /* Dark button background */
  color: #fff; /* White text */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#advanced-tools button:hover {
  background-color: #34495e; /* Lighter shade on hover */
  transform: scale(1.05); /* Slight zoom for effect */
}

#advanced-tools button:active {
  background-color: #1a252f; /* Darker shade on click */
  transform: scale(1); /* Reset scale */
}

/* Achievements Section Styling */
section#achievements {
  margin-top: 30px;
}

section#achievements h2 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 10px;
}

#badges {
  font-size: 1.2em;
  color: #16a085; /* Green tone for badge display */
  font-weight: bold;
}

/* Save and Share Section Styling */
section#actions {
  margin-top: 30px;
}

#action-buttons button {
  font-size: 1em;
  margin: 10px 5px;
  padding: 10px 20px;
  background-color: #2980b9; /* Blue button for save/share */
  color: #fff; /* White text */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#action-buttons button:hover {
  background-color: #3498db; /* Lighter shade on hover */
  transform: scale(1.05); /* Slight zoom effect */
}

#action-buttons button:active {
  background-color: #1d5987; /* Darker shade on click */
  transform: scale(1); /* Reset scale */
}

/* Notifications Styling */
#notifications {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

#notificationMessage {
  background-color: #16a085; /* Green notification box */
  color: #fff;
  font-size: 1em;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: fade-in-out 4s ease-in-out;
}

#notificationMessage[hidden] {
  display: none;
}

/* Notification Fade-In and Fade-Out Animation */
@keyframes fade-in-out {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10%, 90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2em;
  }

  header p {
    font-size: 1em;
  }

  canvas {
    width: 95%; /* Adjust canvas for smaller screens */
    margin: 30px auto;
  }

  #advanced-tools button,
  #action-buttons button {
    font-size: 0.9em;
    padding: 8px 15px;
  }
}
