/* General styling */
body {
  font-family: 'Quicksand', sans-serif;
  background-color: #f7f1e3;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

/* Heading styling */
h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 3rem;
  color: #e67e22;
  margin-bottom: 30px;
}

/* Hexagon styling */
.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hexagon {
  width: 80px; /* Smaller width */
  height: 46.19px; /* Adjusted height for the smaller width */
  background-color: #ffda79;
  margin: 23.09px 4px; /* Reduced margin */
  display: inline-block;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  font-size: 1.5rem; /* Adjust font size */
  line-height: 50px;
  color: #333;
}

.hexagon:before, .hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 40px solid transparent; /* Adjusted */
  border-right: 40px solid transparent; /* Adjusted */
  left: 0;
}

.hexagon:before {
  bottom: 100%;
  border-bottom: 23.09px solid #ffda79; /* Adjusted */
}

.hexagon:after {
  top: 100%;
  border-top: 23.09px solid #ffda79; /* Adjusted */
}

.tile:hover {
  background-color: #ffc048;
  transform: scale(1.05);
}

/* Resource and build info boxes */
.info-box {
  background-color: #fff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

h2 {
  font-family: 'Amatic SC', cursive;
  font-size: 2rem;
  color: #e67e22;
  margin-bottom: 15px;
}

p {
  font-size: 1.2rem;
}

/* Build buttons */
.build-button {
  background-color: #e67e22;
  color: white;
  font-family: 'Quicksand', sans-serif;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  margin: 10px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.build-button:hover {
  background-color: #d35400;
  transform: scale(1.05);
}



/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive styling for mobile */
@media (max-width: 600px) {
  .hexagon {
    width: 60px; /* Smaller width for mobile */
    height: 34.64px; /* Adjusted height */
    font-size: 1.2rem; /* Smaller font size */
    line-height: 40px; /* Adjusted line height */
  }

  .hexagon:before, .hexagon:after {
    border-left: 30px solid transparent; /* Adjust for smaller size */
    border-right: 30px solid transparent; /* Adjust for smaller size */
  }

  .hexagon:before {
    border-bottom: 17.32px solid #ffda79; /* Adjust */
  }

  .hexagon:after {
    border-top: 17.32px solid #ffda79; /* Adjust */
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2.5rem; /* Smaller heading size */
  }
}

/* Proposal message styling */
#proposalMessage {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  width: 80%;
  height: 100vh;
  background-color: rgba(255, 250, 224, 0.95); /* Slightly transparent for dramatic effect */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2rem;
  color: #e74c3c;
  padding: 20px;
  animation: fadeIn 2s ease;
  flex-direction: column;
}

#proposalMessage p {
  margin: 10px 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile adjustments for proposal message */
@media (max-width: 600px) {
  #proposalMessage {
    font-size: 1.5rem; /* Slightly smaller text on mobile */
    padding: 15px;
  }
}
