/* =========================================================
   GLOBAL RESET
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

/* =========================================================
   HOME PAGE (index)
   ========================================================= */
body {
  background-image: url('indexscreen_v2.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  display: block;
  padding-top: 0;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

/* Title Image */
.title-image {
  width: 90%;
  max-width: 600px;
  height: 92px;
  background-image: url('title_v2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 20px auto 0 auto;
  display: block;
}

/* Preload hover images */
.preload {
  background-image: 
    url('EOC_hover_v2.png'),
    url('EAA_hover_v2.png'),
    url('AFW_hover_v2.png'),
    url('PNP_hover_v2.png'),
	url('Metar_hover_v2.png');
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  left: -9999px;
}

/* =========================================================
   BUTTON BAR (HOME PAGE)
   ========================================================= */
.button-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px;
  box-sizing: border-box;

  position: absolute;
  bottom: 0;
  left: 0;

  padding-bottom: 60px;
}

.button-bar a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.left-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  max-width: 50%;
  overflow: hidden;
  box-sizing: border-box;
}


.right-buttons {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  max-width: 50%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Desktop wide layout */
@media (min-width: 1600px) {
  .left-buttons { transform: translateX(150px); }
  .right-buttons { transform: translateX(-150px); }
}

/* Desktop normal layout */
@media (max-width: 1599px) {
  .left-buttons,
  .right-buttons {
    transform: none !important;
    align-items: center;
  }
}

/* Anchor styling */
a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 10px 0;
}

/* =========================================================
   BUTTON IMAGES
   ========================================================= */
.eoc-btn {
  width: 90px;
  height: 90px;
  background-image: url('EOC_v2.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.eoc-btn:hover { background-image: url('EOC_hover_v2.png'); }

.eaa-btn {
  width: 184px;
  height: 78px;
  background-image: url('EAA_v2.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.eaa-btn:hover { background-image: url('EAA_hover_v2.png'); }

.afw-btn {
  width: 174px;
  height: 91px;
  background-image: url('AFW_v2.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.afw-btn:hover { background-image: url('AFW_hover_v2.png'); }

.pnp-btn {
  width: 218px;
  height: 55px;
  background-image: url('PNP_v2.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.pnp-btn:hover { background-image: url('PNP_hover_v2.png'); }

/* =========================================================

METAR BUTTON

========================================================= */
.metar-btn {
width: 180px;
height: 52px;
background-image: url('Metar_v2.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;

display: block;
}
.metar-btn:hover { background-image:url('Metar_hover_v2.png');}
/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 18px;
  font-family: Arial, sans-serif;
  margin-bottom: 20px;
  gap: 8px;
}

.footer-links a { color: #000; text-decoration: none; }
.footer-links span { color: orange; font-weight: bold; }

/* =========================================================
   EOC PAGE OVERRIDES — FINAL FIXED VERSION
   ========================================================= */
body.no-bg {
  background-image: none !important;
  background-color: white !important;

  display: block !important;
  height: auto !important;
  min-height: 100vh !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding-top: 0 !important;
  padding-bottom: 40px;
  position: static !important;
}

.eoc-container {
  padding-top: 5px;             /* was 20px */
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

/* =========================================================
   EOC PAGE OVERRIDES — FINAL FIXED VERSION
   ========================================================= */
body.no-bg {
  background-image: none !important;
  background-color: white !important;

  display: block !important;
  height: auto !important;
  min-height: 100vh !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding-top: 0 !important;
  padding-bottom: 40px;
  position: static !important;
}

/* EOC Title Image — restored full size */
.eoc-title-image {
  display: block;
  margin: 40px auto 20px auto;
  width: 90%;
  max-width: 760px;
  height: 90px;                 /* restored original size */
  background-image: url('eoctitleline.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* EOC Content Container */
.eoc-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 22px;
  font-family: Arial, sans-serif;

  padding-top: 0px;              /* tightened spacing */
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: -0px;

  height: auto;
  overflow: visible;
}


/* Tagline */
.tagline {
  margin-top: 10px;        /* was 20px */
  margin-bottom: 5px;      /* new: pulls bullets up */
  font-size: 20px;
  font-weight: normal;
  color: green;
  text-align: center;
}

/* EOC UL Styling */
.eoc-container ul {
  list-style-type: disc;
  display: inline-block;
  text-align: left;
  margin: 10px auto;       /* was 20px auto */
  padding-left: 40px;
  font-size: 20px;
  font-weight: bold;
}


.eoc-container ul li::marker {
  color: orange;
  font-size: 22px;
}

/* Footer anchored on EOC pages */
body.no-bg .footer-links {
  position: static;
  margin-top: 40px;
}

/* Floating Back Button */
body.no-bg .floating-back {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.3);
  z-index: 9999;
}

body.no-bg .floating-back a {
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: #000;
}

/* =========================================================
   MOBILE PORTRAIT (phones)
   ========================================================= */
@media (max-width: 600px) {

  /* Title image shrinks */
  .title-image {
    width: 85%;
    height: 90px;
	margin-top: 1px; 
  }

  /* Button bar stays pinned to bottom but lifted upward */
  .button-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 10px;
    padding-bottom: 120px;   /* ⭐ THIS moves the right buttons UP */
    gap: 10px;
  }
/* =========================================================

METAR POSITIONING

========================================================= */
 
/* METAR button */
.metar-link {
    z-index: 100;
}

.metar-btn {
    width: 140px;
    height: 40px;
    background-image: url('Metar_v2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

/* LEFT BUTTONS → vertical stack */
.left-buttons {
    display: flex;               /* REQUIRED */
    flex-direction: column;         /* horizontal */
    align-items: center;
    gap: 10px;
    width: 48%;
    max-width: 48%;
}

/* RIGHT BUTTONS → vertical stack */
.right-buttons {
    display: flex;               /* REQUIRED */
    flex-direction: column;      /* vertical */
    align-items: center;
    gap: 10px;
    width: 48%;
    max-width: 48%;
}


  /* Correct mobile sizes */
  .eoc-btn { width: 80px; height: 80px !important; }
  .Metar-btn {width: 140px; height: 40px !important; }
  .eaa-btn { width: 140px; height: 58px !important; }
  .afw-btn { width: 140px; height: 64px !important; }
  .pnp-btn { width: 140px; height: 37px !important; }

  /* Reduce anchor spacing */
  a { margin: 4px 0; }
  
 
}

/* =========================================================
   MOBILE BACKGROUND TUNING
   ========================================================= */
@media (max-width: 600px) {
  body {
    background-size: 350% !important;
    background-position: center -90px !important;
  }
}



/* =========================================================
   LANDSCAPE (phones sideways ONLY)
   ========================================================= */
@media (max-width: 1100px) and (orientation: landscape) {
  .button-bar {
	       bottom: 5px !important;   /* ← THIS will finally move it */
  }
  .left-buttons {
      flex-direction: row !important;
      gap: 10px !important;
  }

  .right-buttons {
      flex-direction: column !important;
      gap: -10px !important;
  }

  /* Landscape button sizes */
  .eoc-btn { width: 70px !important; height: 70px !important; }
  .metar-btn { width: 130px !important; height: 38px !important; }
  .eaa-btn { width: 130px !important; height: 52px !important; }
  .afw-btn { width: 130px !important; height: 58px !important; }
  .pnp-btn { width: 130px !important; height: 34px !important; }
}


/*  .left-buttons,
  .right-buttons {
    align-items: center !important;
    gap: 8px !important;
  
}}*/
/*Pin EOC footer to bottom without scrolling
body.no-bg {
  position: relative;
  min-height: 100vh;
  overflow: hidden;  prevents scroll
}*/

/*body.no-bg .footer-links {
  position: absolute;
  bottom: 20px;     
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}*/
/* =========================================================
   DESKTOP ONLY — footer pinned AND centered
   ========================================================= */

/* =========================================================
   DESKTOP ONLY — increase tagline spacing
   ========================================================= */
@media (min-width: 601px) {
  .tagline {
    margin-top: 40px !important;   /* adds ~2 lines of space */
  }
}
/* =========================================================
   Popup box for app download
   ========================================================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-box {
  background: #ffffff;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
  border: 3px solid green;
}

.popup-box h2 {
  color: green;
  margin-bottom: 10px;
}

.popup-btn {
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: bold;
  background: green;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.popup-btn:hover {
  background: orange;
  color: #000;
}

.popup-close {
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 16px;
  background: #ccc;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup-close:hover {
  background: orange;
  color: #000;
}

.popup-box input[type="email"] {
  width: 90%;
  padding: 10px;
  font-size: 18px;
  margin-top: 10px;
  border: 2px solid green;
  border-radius: 6px;
}
@media (max-width: 600px) {
  #playStorePopup .popup-box p {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}
