/* Base Styles */
@font-face {
  font-family: MyanmarCherryPro;
  src: url("fonts/MyanmarCherryPro.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
body {
  background-color: #f5f5f5;
  background-image: url("./assets/images/techno-lights-background.jpg"); /* Replace with your background image URL */
  background-size: cover;
  background-position: center;
}

#container {
  max-width: 100%;
  margin: 0 auto;
}

header img {
  width: 100px;
  height: auto;
}

/* Main header container: stacks the top row and the h2 vertically */
header {
  display: flex;
  flex-direction: column; /* Stacks items vertically */
  align-items: center; /* Horizontally centers the items */
  gap: 10px; /* Adds space between the top row and the h2 */
  margin-bottom: 20px;
}

/* New style for the top row wrapper (logos and nav) */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Navigation button styles */
.header-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* Allows buttons to wrap */
  justify-content: center;
  gap: 10px; /* Spacing between buttons */
}

.header-nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.header-nav a:hover {
  background-color: #f50daf; /* Hover effect from your existing buttons */
}

header h2 {
  margin: 10px 0;
  color: white;
}

.promotion-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promotion-card:hover {
  transform: translateY(-5px);
}

.promotion-link img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Text Container for Side-by-Side Layout */
#textContainer {
  display: flex;
  flex-direction: row;
  gap: 20px; /* Increased gap for better spacing */
  margin-bottom: 20px; /* Add margin to separate from buttons */
}

#Zawgyi,
#Unicode {
  flex: 1; /* Each section takes up equal space */
  display: flex;
  flex-direction: column;
}

textarea {
  width: 100%;
  height: 400px;
  padding: 10px;
  font-size: 16px;
  font-family: MyanmarCherryPro, sans-serif;
  border: 2px solid #ddd;
  border-radius: 0 0 8px 8px; /* Match heading radius */
  resize: vertical; /* Allow vertical resize */
  box-sizing: border-box;
  transition: border-color 0.3s;
  flex-grow: 1; /* Allow textarea to fill space in flex column */
}

/* Section Headings */
#Zawgyi h3,
#Unicode h3 {
  margin: 0;
  padding: 10px 15px; /* Increased padding */
  background-color: #5799da;
  color: white;
  border-radius: 8px 8px 0 0;
  font-size: 18px; /* Increased font size */
  line-height: 1.4;
}

/* Button Container */
#buttonContainer {
  display: flex;
  justify-content: center;
  gap: 15px; /* Increased gap */
  padding: 10px 0;
  flex-wrap: wrap;
}

.action-btn {
  padding: 10px 25px; /* Increased padding */
  background-color: #5799da;
  color: white;
  border: none;
  border-radius: 5px; /* Rounded corners */
  cursor: pointer;
  font-size: 16px; /* Increased font size */
  font-weight: bold; /* Make text bolder */
  transition: all 0.3s ease;
}

.action-btn:hover {
  background-color: #f50daf;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-btn.clicked {
  transform: scale(0.95);
  background-color: #2c6091;
}

/* Modal Styles (Assuming these are still needed) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: 10vh auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 500px;
  max-height: 70vh;
  padding: 20px;
  position: relative;
  background: none;
  overflow-y: hidden;
  border-radius: 10px;
}

.modal-description-text {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  color: white;
  font-size: 16px;
}

.modal-image-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid #eee;
}

footer h3 {
  color: #fbbc05;
  font-size: 1em;
  font-style: italic;
  font-weight: normal;
  margin-bottom: 10px;
}

p {
  color: white;
}

footer a {
  color: #5799da;
  text-decoration: none;
  transition: color 0.3s;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #container {
    padding: 15px;
  }

  #textContainer {
    flex-direction: column;
    gap: 15px;
  }

  textarea {
    height: 250px; /* Adjust height for mobile */
    font-size: 14px;
  }

  #buttonContainer {
    flex-direction: column; /* Stack buttons on mobile */
    align-items: center; /* Center buttons */
    gap: 10px;
  }

  .action-btn {
    width: 80%; /* Make buttons wider on mobile */
    padding: 12px 20px;
    font-size: 15px;
  }
}
