@font-face {
  font-family: 'Dyslexie';
  src: url('/nc_assets/fonts/Dyslexie_Regular_173026.ttf') format('truetype');
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e0e0e0;
  color: #333;
  transition: background-color 0.3s, color 0.3s, font-family 0.3s;
}

body.dyslexie-font, .dyslexie-font {
  font-family: 'Dyslexie', Arial, sans-serif !important;
}

.dark-theme {
  background-color: #121212;
  color: #f0f0f0;
}

/* Universal section/card/box styling */
.section {
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}
.ai-section {
  background: linear-gradient(135deg, #00dac8, #96f447);
  color: #000;
}
.mainframe-section {
  background: linear-gradient(135deg, #4a4d55, #b0b0b0);
  color: #fff;
}
.bridge-section {
  background: linear-gradient(135deg, #4a4d55, #82008f);
  color: #fff;
  border: 2px solid #ffdd67;
  position: relative;
}
.bridge-section::before {
  content: "\1F4A1";
  position: absolute;
  font-size: 50px;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}
.dark-theme .ai-section {
  background: linear-gradient(135deg, #007c7a, #4e7030);
  color: #e0e0e0;
}
.dark-theme .mainframe-section {
  background: linear-gradient(135deg, #333, #666);
}
.dark-theme .bridge-section {
  background: linear-gradient(135deg, #2b2b2b, #550055);
  border-color: #888;
}

.contact-button,
.button {
  display: inline-block;
  padding: 10px 25px;
  font-size: 18px;
  color: #fff;
  background-color: #4a4d55;
  text-decoration: none;
  border-radius: 6px;
  margin: 30px auto 0 auto;    /* margin: top right bottom left */
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.dark-theme .button,
.dark-theme .contact-button {
  background-color: #96f447;
  color: #000;
}

/* Carousel styling (donations, images) */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 1em 0;
}
.carousel img {
  max-height: 250px;
  border-radius: 10px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Universal link styling */
a {
  color: #82008F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #4A4D55; }

footer {
  text-align: center;
  font-size: 0.9em;
  margin-top: 3em;
}

/* Matrix Mode global section overrides */
.matrix-mode .section,
.matrix-mode .contact-section,
.matrix-mode .privacy-policy,
.matrix-mode main,
.matrix-mode footer {
  background: none !important;
  color: #96F447 !important;
  border-color: #96F447 !important;
}

/* ===== POPUP MODAL STYLES ===== */
/* ===== POPUP MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border: 3px solid #82008F; /* JAMIT Purple */
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

@media (max-height: 600px) {
  .modal-content {
    margin: 30px auto;
  }
}

.modal-img {
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.modal input[type="email"],
.modal input[type="text"] {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
}

.modal .inline-checkbox-label {
  display: block;
  margin: 10px 0;
  text-align: left;
}

.modal .text-warning {
  font-size: 0.85em;
  color: #555;
  margin: 10px 0;
}

.dark-theme .modal-content {
  background-color: #2b2b2b;
  color: #f0f0f0;
  border-color: #96F447;
}

.modal-content {
  border: 3px solid #82008F; /* JAMIT Purple */
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-content h3 {
  margin-top: 0;
  font-size: 1.3em;
}

.modal-content iframe {
  background-color: #fff;
  border-radius: 6px;
}
.modal-content input,
.modal-content label,
.modal-content button,
.modal-content textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 15px auto;
  font-size: 1rem;
}


@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 15px;
    font-size: 0.9rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-img {
    max-width: 100%;
    height: auto;
  }
  .modal-content input,
  .modal-content button,
  .modal-content textarea {
    font-size: 0.9rem;
  }
}
