/* --- styles.css --- */
/************************************************************
  1. Reset / Basic Box-sizing
*************************************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/************************************************************
  2. Body & Container (Cover Template)
*************************************************************/
html,
body {
  height: 100%;
}

body {
  background: #363030; /* Solid gray background */
  color: #fff;         /* White text */
  text-align: center;
  text-shadow: 0 0.05rem 0.1rem rgba(0, 0, 0, 0.5);
}

.cover-container {
  max-width: 90%;
  margin: auto;
  padding: 0 1rem;
}
.frame-box {
  padding: 0 15px;
}

.security-sections {
  margin: 0 -15px;
}


/************************************************************
  4. Header (masthead)
*************************************************************/
.masthead {
  margin-bottom: 2rem;
  position: relative; 
  z-index: 10;        
}

.masthead-brand {
  margin-bottom: 0;
}

.plane-logo {
  height: 3.125rem;
  width: auto;
  margin-bottom: 0.625rem;
}

/************************************************************
  5. Navigation
*************************************************************/
.nav-masthead .nav-link {
  padding: 0.25rem 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background-color: transparent;
  border-bottom: 0.25rem solid transparent;
  transition: border-bottom-color 0.2s, color 0.2s;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff; 
  border-bottom-color: #fff;
}

/************************************************************
  6. Main Cover Content
*************************************************************/
.cover {
  padding: 0 1.5rem;
}

.cover-heading {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/************************************************************
  7. Custom Button Styling
     (Override Bootstrap’s .btn-primary and .btn-secondary)
*************************************************************/
/* Primary Button: Blue Gradient */
.btn-primary {
  background: linear-gradient(45deg, #007bff, #00aeff);
  color: #fff;
  border: none;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(0, 174, 255, 0.7);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(45deg, #00aeff, #5cd6ff);
  box-shadow: 0 0 15px rgba(0, 174, 255, 0.9);
  color: #fff;
}

/* Secondary Button: Green Gradient */
.btn-secondary {
  background: linear-gradient(45deg, #00ff84, #00d95e);
  color: #fff;
  border: none;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(0, 255, 132, 0.7);
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(45deg, #00ff84, #00ffa0);
  box-shadow: 0 0 15px rgba(0, 255, 132, 0.9);
  color: #fff;
}

/* Yes Button: Green Gradient */
.btn-yes {
  background: linear-gradient(45deg, #00ff84, #00d95e);
  color: #fff;
  border: none;
  width: 50%;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(0, 255, 132, 0.7);
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.btn-yes:hover,
.btn-yes:focus {
  background: linear-gradient(45deg, #00ff84, #00ffa0);
  box-shadow: 0 0 15px rgba(0, 255, 132, 0.9);
  color: #fff;
}

/* No Button: Red Gradient */
.btn-no {
  background: linear-gradient(45deg, #ff4d4d, #ff1a1a);
  color: #fff;
  border: none;
  width: 50%;
  margin: 0.4em;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.7);
  transition: all 0.3s ease;
}

.btn-no:hover,
.btn-no:focus {
  background: linear-gradient(45deg, #ff4d4d, #ff6666);
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.9);
  color: #fff;
}

/* Previous Button: Blue Gradient */
.prev-btn {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  text-shadow: none;
  width: 50%;
  margin: 0.5em;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
  transition: all 0.3s ease;
}

.prev-btn:hover,
.prev-btn:focus {
  background: linear-gradient(45deg, #007bff, #3399ff);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.9);
  color: #fff;
}

/* Start Over Button: Gray Gradient */
.btn-startOver {
  background: linear-gradient(45deg, #6c757d, #343a40);
  color: #fff;
  border: none;
  width: 50%;
  margin: 0.5em;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(108, 117, 125, 0.7);
  transition: all 0.3s ease;
}

.btn-startOver:hover,
.btn-startOver:focus {
  background: linear-gradient(45deg, #6c757d, #adb5bd);
  box-shadow: 0 0 15px rgba(108, 117, 125, 0.9);
  color: #fff;
}

.section {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 1;
}

/************************************************************
  8. Footer (mastfoot)
*************************************************************/
.mastfoot {
  color: rgba(255, 255, 255, 0.7);
}

.mastfoot a {
  color: #fff;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.mastfoot a:hover,
.mastfoot a:focus {
  text-decoration: underline;
}

/************************************************************
  9. Typed Text Placeholder
*************************************************************/
#typed-text {
  min-height: 2rem; /* Reserve vertical space for text animation */
}

a {
  color: #83bfff; /* Default link color */
}
a:hover {
  color: #b3d7ff; /* Lighter on hover */
}


.green-box {
  background: linear-gradient(45deg, #006b3f, #004d2e);
  color: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 1rem rgba(0, 107, 63, 0.7);
  transition: all 0.3s ease;
}

.red-box {
  background: linear-gradient(45deg, #990000, #660000);
  color: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 1rem rgba(153, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.close-submenu-btn {
  position: absolute;
  top: 1em;
  left: 1em;
  font-size: 2.4rem;
  color: #fff;
  background: #f00;
  border: none;
  border-radius: 50%;
  width: 1.4em;
  height: 1.4em;
  text-align: center;
  line-height: 1.4em;
  cursor: pointer;
  z-index: 999;
}

/************************************************************
 10. (Optional) Fade-in Animation
*************************************************************/
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in {
  animation: fadeIn 2s ease forwards;
}
.hidden {
  display: none;
}

/* Secure Apps Grid */
.app-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  animation: fadeInUp 0.5s ease-out;
}

.app-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
}

.app-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.app-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #00ff84;
}

#fireworksCanvas {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Biz Checker Overrides */
#biz-checker-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #363030;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.question-text {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.result-box {
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 90%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.answer-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 75vw;
  max-width: 600px;
}
.answer-row .big-button {
  width: 50%;
  margin: 0.4em;
}

.final-btns-row {
  display: flex;
  gap: 1em;
  margin-top: 1em;
  justify-content: center;
  width: 75vw;
  max-width: 600px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .question-text {
    font-size: 1.8rem;
  }
  .answer-row .btn-lg  {
    width: 50%;
    margin: 0.4em;
  }
  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
  }
  .result-box {
    font-size: 1.2rem;
    padding: 1rem;
  }
  .app-card {
    padding: 1.5rem;
  }
}

/* Base style for all buttons in the main menu */
#main-menu-section .menu-btn {
  opacity: 0;
  animation-duration: 1.8s;
  animation-fill-mode: forwards;
}

#main-menu-section .menu-btn:nth-child(1) {
  animation-name: slideInFromLeftEdge;
}

#main-menu-section .menu-btn:nth-child(2) {
  animation-name: slideInFromRightEdge;
}

#main-menu-section .menu-btn:nth-child(3) {
  animation-name: slideInFromBottomEdge;
}

/* PWA Install Link Styling */
#installPwaContainer {
  margin-top: 2.5rem; 
  text-align: center;
  opacity: 0; 
  display: none; 
}
#installPwaContainer.fade-in-active {
  animation: fadeInPwaLink 0.8s 1.8s ease forwards; 
}

@keyframes fadeInPwaLink {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#installPwaLink { 
  color: rgba(255, 255, 255, 0.7); 
  text-decoration: none;
  padding: 0.25rem 0;
  font-weight: 700; 
  transition: color 0.2s;
  line-height: 1.6; 
  display: inline-block; 
}

#installPwaLink:hover,
#installPwaLink:focus {
  color: #fff; 
  text-decoration: underline;
}

/* PWA Install Modal Specific Styles */
.pwa-modal-body { /* Class for the modal body */
  text-align: left; /* Ensure all direct children try to align left */
}
.pwa-modal-body p,
.pwa-modal-body ol {
  text-align: left;
}
.pwa-modal-body ol {
  padding-left: 25px; /* Adjust for better bullet/number positioning */
  list-style-position: outside; /* Ensures bullets/numbers are outside the text flow */
}
.pwa-modal-body li {
  margin-bottom: 0.75rem; /* More space between list items */
  text-align: left; /* Explicitly set for list items */
}
.icon-wrapper {
  display: inline-flex; /* Use flex to center icon easily */
  align-items: center;
  justify-content: center;
  background-color:#dee2e6; /* Darker gray background for better contrast with light icons */
  padding: 4px 6px; /* Slightly more padding */
  border-radius: 4px;
  margin: 0 0.2em;
  height: 1.8em; /* Set a fixed height for the wrapper */
  width: 1.8em;  /* Set a fixed width for the wrapper */
  box-sizing: content-box; /* Ensure padding doesn't add to width/height for icon sizing */
}
.inline-icon {
  height: 2em; 
  width:2em; /* Make icon take up space within wrapper */
  vertical-align: middle; /* Good for inline-block, but flex handles it in wrapper */
  /* Assuming SVGs are white/light colored for dark modal, they should be visible on #555 wrapper */
  /* If SVGs are black, they might be hard to see on #555. Consider `filter: invert(1);` if SVGs are black and you want them white. */
}


@keyframes slideInFromLeftEdge {
  from {
    transform: translateX(-100vw);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRightEdge {
  from {
    transform: translateX(100vw);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottomEdge {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.video-container {
  width: 100%;          
  margin: 0 auto;       
  max-width: 100vw;     
}

.video-container video {
  width: 100%;          
  height: auto;         
  display: block;       
  max-width: 100%;      
}
/* --- styles.css --- */