/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f0f2f5, #dfe6e9);
  color: #2d3436;
  line-height: 1.6;
  padding: 20px;
}

h1, h3 {
  color: #2c3e50;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Notification bar */
.notification {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2ecc71;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  display: none;
  z-index: 1000;
}
.notification.hidden {
  display: none;
}

/* Nav links */
nav {
  margin-top: 10px;
}
nav a {
  text-decoration: none;
  color: #2980b9;
  margin-right: 15px;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #1abc9c;
}

/* About section */
.about-me {
  margin-top: 30px;
  padding: 20px;
  background: #ecf0f1;
  border-radius: 12px;
}
.about-me p {
  margin-bottom: 10px;
}

/* Social media icons */
.social-icons {
  margin-top: 15px;
}
.social-icons a img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}
.social-icons a img:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #7f8c8d;
  font-size: 0.9rem;
}

#gameCanvas {
  display: flex;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(130deg, rgba(173, 73, 55, 1) 0%, rgba(130, 109, 55, 1) 73%, rgba(148, 97, 35, 1) 100%);
  border: 6px solid black;
}

#touch-controls {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;       /* smaller gap */
  z-index: 1000;
  transform: scale(0.4); /* scale down to 40% */
  transform-origin: bottom left; /* scale from bottom-left corner */
}

#touch-controls button {
  font-size: 2rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #444;
  color: white;
}

#touch-controls .middle-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

#instructionModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  box-sizing: border-box;
  z-index: 2000;
}

#instructionModal h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#instructionModal p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  max-width: 400px;
  text-align: center;
}

#instructionModal button {
  font-size: 1.5rem;
  padding: 10px 30px;
  border: none;
  border-radius: 8px;
  background-color: #27ae60;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#instructionModal button:hover {
  background-color: #2ecc71;
}

