/* Define local font using @font-face */
@font-face {
  font-family: 'PirataOne';
  src: url('../assets/fonts/PirataOne-Gloomhaven.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'PirataOne', sans-serif;
  margin: 0;
  padding: 0;
  color: black;
  line-height: 1.6;
  background-color: #E1C697; /* Fallback color */
  background-image: url('../assets/background.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  height: 100vh;
}

header {
  text-align: center;
  padding: 20px 10px; /* Add space inside header */
  background: none;
  color: black;
  position: relative; /* Keep header relative for button positioning */
  z-index: 10; /* Ensure header is above other elements */
}

header h1 {
  margin: 0;
  font-size: 3.5em;
  font-weight: bold;
  white-space: normal; /* Allow title to wrap */
  word-wrap: normal;
  margin-right: 120px;
  margin-left: 120px;
  line-height: 1.2; /* Improve line spacing for title */
}

header p {
  font-size: 1.2em;
  margin-top: 10px; /* Give a little space between the title and the subtitle */
}

.contact-button {
  position: absolute;
  top: 20px; /* Adjust this to move the button down a bit */
  right: 20px; /* Position it at the top-right of the header */
  background-color: #007bff;
  color: white;
  padding: 12px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100px;
  height: 50px;
  font-family: 'PirataOne', sans-serif;
  z-index: 0; /* Ensure the button is above other content */
}

.contact-button:hover {
  background-color: #0056b3;
}

.app-info {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin: 10px auto;
  width: 80%;
  max-width: 900px;
  color: black;
}

.app-info h2 {
  font-size: 2.5em;
  color: black;
  margin-bottom: 20px;
}

.app-info p {
  font-size: 1.2em;
  color: black;
  margin-bottom: 0px;
}

.supports {
  text-align: center;
  padding: 0px;
}

.supports h3 {
  font-size: 2.5em;
  color: black;
  margin-bottom: 20px;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
}

.image-gallery img {
  width: 300px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.app-buttons {
  text-align: center;
  padding: 0px;
  margin-top: 30px;
}

.app-buttons a {
  margin: 10px;
}

.store-icon {
  width: 200px;
  height: 60px;
}

@media (max-width: 768px) {
  .image-gallery {
    flex-direction: column;
    align-items: center;
  }

  .image-gallery img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .store-icon {
    width: 150px;
  }

  /* Adjust header for smaller screens */
  header h1 {
    font-size: 2.5em;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2em; /* Further reduce font size for mobile */
  }

  .contact-form button {
    font-size: 16px; /* Adjust button font size */
  }
}

footer {
  text-align: center;
  padding: 20px;
  background: none;
  color: black;
}

footer p {
  margin: 0;
}

/* Contact Form Styles */
.contact-form {
  display: none; /* Initially hidden */
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  background-color: #E1C697; /* Fallback color */
  padding: 30px;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.9); /* Same as main background */
  font-family: 'PirataOne', sans-serif;
  z-index: 1000; /* Ensure the modal is above other content */
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif; /* Set normal system font */
  box-sizing: border-box; /* Ensures equal padding and margins */
}

.contact-form {
  background-image: url('../assets/background.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

/* Optional: Adjust body background when on contact page */
body.contact-page {
  background-image: url('../assets/background.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.submit-button,
.cancel-button {
  width: 100%;
  padding: 12px;
  border: none;
  color: white;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'PirataOne', sans-serif;
  box-sizing: border-box;
  display: block; /* Ensures buttons stack properly */
}

.submit-button {
  background-color: #007bff;
  margin-bottom: 10px; /* Adds space below submit button */
}

.cancel-button {
  background-color: darkred;
  margin-top: 10px; /* Ensures spacing between Submit and Cancel */
}

.donate-button {
  background-color: #0070ba;
  text-decoration: none;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 20px;
  width: 160px;
  height: 50px;
  font-family: 'PirataOne', sans-serif;
}

.donate-button:hover {
  background-color: #005ea6;
}
