/* Universal Box-Sizing */
* {
  box-sizing: border-box;
}

/* Body Styles */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Navigation Bar Styles */
nav {
  display: flex;
  justify-content: space-between; /* Align nav-left and nav-right */
  align-items: center;
  padding: 15px 30px;
  background-color: transparent;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav .nav-left {
  display: flex;
  align-items: center;
}

nav .nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

nav .logo {
  width: 50px;
  margin-right: 10px;
}

nav .site-name {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

nav .nav-right a {
  margin: 0 8px;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
}

nav .nav-right a.active {
  border-bottom: 2px solid #3EE0F5;
}

nav .icon {
  width: 24px;
  height: 24px;
  margin-left: 15px;
}

nav .icon img {
  width: 100%;
  height: 100%;
}

.nav-link.active {
  text-decoration: underline;
  color: #007BFF; /* Or whatever your branding color is */
}

@media (max-width: 1200px) {
  nav .nav-right a {
    font-size: 12px;
    margin: 0 4px;
  }
}

@media (max-width: 992px) {
  nav .nav-right a {
    font-size: 11px;
    margin: 0 3px;
  }
}

@media (max-width: 768px) {
  nav .nav-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  nav .nav-right a {
    margin: 5px 10px;
    font-size: 12px;
  }
  nav .icon {
    margin-left: 10px;
  }
}


/* Hero Section for Contact Page */
.hero-section {
  background-image: url('https://www.altruisticgaming.org/assets/contact-hero-background.webp'); /* Add your contact-related image */
  background-size: cover;
  background-position: center;
  position: relative;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  flex-direction: column;
}

.hero-section .overlay {
  background-color: rgba(0, 0, 0, 0); /* transparent overlay */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-section div {
  position: absolute;
  z-index: 2;
  top: 15%; /* Adjust the vertical position */
  width: 80%; /* Control the text area width for proper wrapping */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1.0rem;
  margin-top: 10px;
  color: #f5f5f5;
  width: 80%; /* Ensure proper wrapping */
  text-align: center;
}

/* CSS for the form container */
.form-container {
  width: 80%; /* Adjust the width to your preference */
  margin: 0 auto; /* Centers the form horizontally */
  text-align: center;
}

iframe {
  border: none;
  width: 100%; /* Ensures the iframe scales to the width of its container */
  height: 950px; /* Set this to the height needed to fit the form content without a scrollbar */
}


/* Volunteer Form Styles */
.volunteer-opportunities {
  margin: 30px auto;
  padding: 20px;
  max-width: 800px;
  text-align: center;
}

.volunteer-opportunities h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.volunteer-opportunities ul {
  list-style-type: disc;
  padding-left: 0;
  color: #fff;
  text-align: left;
}

.volunteer-opportunities ul li {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.volunteer-opportunities p {
  margin-top: 20px;
  font-size: 1rem;
  color: #fff;
}

/* Form Row */
.form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Form Labels */
.volunteer-form label {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
  display: inline-block;
}

/* Form Inputs */
.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* Textarea */
.volunteer-form textarea {
  height: 100px;
  resize: none;
}

/* Submit Button */
.volunteer-form button {
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: #0099cc;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.volunteer-form button:hover {
  background-color: #007299;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #000000;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #3EE0F5;
  width: 300px;
  border-radius: 10px;
  color: #FFFFFF;
}

.close {
  color: #FFFFFF;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: #3EE0F5;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #1a1a1a;
  border: none;
  color: #FFFFFF;
  border-bottom: 1px solid #3EE0F5;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  background-color: #3EE0F5;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 5px;
}

.modal-content button:hover {
  background-color: #2bb3d9;
}

.modal-content p {
  text-align: center;
}

.modal-content a {
  color: #3EE0F5;
  cursor: pointer;
}


/* Responsive Design */
@media (max-width: 768px) {
  .card {
    width: 80%;
    left: 10%;
  }
  .card h2 {
    font-size: 28px;
  }
  .card p {
    font-size: 12px;
  }
  .play-button {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Footer */
.footer-content {
  text-align: center;
  padding: 20px;
  background-color: #222;
  color: white;
}

.footer-content .social-media a {
  margin: 0 10px;
}

.footer-content img {
  width: 30px;
  height: 30px;
}