/* -----------------------------
   YOUR ORIGINAL CSS (UNCHANGED)
------------------------------ */
.SmallTextBlack {
  font-family: Verdana;
  font-size: 9px;
  color: #000000;
}
.SmallTextWhite {
  font-family: Verdana;
  font-size: 9px;
  color: #FFFFFF;
}
.MedTextBlack {
  font-family: Verdana;
  font-size: 10px;
  color: #000000;
}
.MedTextWhite {
  font-family: Verdana;
  font-size: 10px;
  color: #FFFFFF;
}
.MedTextRed {
  font-family: Verdana;
  font-size: 10px;
  color: #FF0000;
}
.LargeTextWhite {
  font-family: Verdana;
  font-size: 12px;
  color: #FFFFFF;
}
.LargeTextRed {
  font-family: Verdana;
  font-size: 12px;
  color: #FF0000;
}
.LargeTextGreen {
  font-family: Verdana;
  font-size: 12px;
  color: #0C0;
}
.HomeMissionStatement {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 20px;
  color: #FFFFFF;
  font-style: italic;
}

.x-dlg-mask{
  background-color: #000000;
  opacity: 0.95;
}

a:link {
  font-family: "Trebuchet MS";
  font-size: 12px;
  color: #FFFFFF;
  text-decoration: underline;
}
a:visited {
  font-family: "Trebuchet MS";
  font-size: 12px;
  color: #FFFFFF;
  text-decoration: underline;
}
a:hover {
  font-family: "Trebuchet MS";
  font-size: 12px;
  color: #FFFFFF;
  text-decoration: none;
}
a:active {
  font-family: "Trebuchet MS";
  font-size: 12px;
  color: #FFFFFF;
}

a.MissionStatementLink:link {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 20px;
  color: #FFFFFF;
  font-style: italic;
  text-decoration: none;
}
a.MissionStatementLink:visited {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 20px;
  color: #FFFFFF;
  font-style: italic;
  text-decoration: none;
}
a.MissionStatementLink:hover {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 20px;
  color: #FFFFFF;
  font-style: italic;
  text-decoration: none;
}

/* -----------------------------
   HOME PAGE LAYOUT (SCOPED)
------------------------------ */
.home-body{
  background-image: url(../images/metal_bg_4.0.jpg);
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
}

.home-body img{ display: block; }

/* Main centered composition */
.home-body .page{
  width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Mission sits 25px above the logo */
.home-body .mission{
  margin-bottom: 25px;
}
.home-body .mission-title{
  margin: 0 0 6px 0;
}
.home-body .mission-link{
  margin: 0;
}

/* 3-column row (desktop) */
.home-body .main-row{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-body .side-col{
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-body .center-col{
  width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.home-body .home-btn{
  max-width: 100%;
  height: auto;
}

/* Ripple canvas area */
.home-body .ripple-wrap{
  width: 500px;
  height: 450px;
  line-height: 0;
}
.home-body #rippleCanvas{
  width: 500px;
  height: 450px;
  display: block;
}

/* Footer sits 25px below logo */
.home-body .footer-row{
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}
.home-body .footer-col{
  width: 300px;
  text-align: center;
}
.home-body .footer-center{
  width: 400px;
}

/* -----------------------------
   MODAL STYLES (SCOPED)
------------------------------ */
.home-body .modal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
}
.home-body .modal-overlay.is-open{
  display: flex;
}
.home-body .modal{
  position: relative;
  width: min(92vw, 720px);
  height: min(92vh, 520px);
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.home-body .modal-frame{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Close button drawn with CSS (no weird characters) */
.home-body .modal-close{
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;

  width: 34px;
  height: 34px;

  background: rgba(0,0,0,0.6);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.home-body .modal-close::before,
.home-body .modal-close::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}
.home-body .modal-close::before{
  transform: translate(-50%, -50%) rotate(45deg);
}
.home-body .modal-close::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}
.home-body .modal-close:hover{
  background: rgba(0,0,0,0.75);
}

/* -----------------------------
   MOBILE: EASY RESPONSIVE FIX
   - scale canvas to fit
   - move buttons under logo
   - stack footer
------------------------------ */

/* Keep page from touching edges */
@media (max-width: 1020px){
  .home-body{
    align-items: flex-start;
    padding: 16px 0;
  }

  .home-body .page{
    width: 100%;
    max-width: 1000px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* Mission text scales down */
  .home-body .HomeMissionStatement,
  .home-body a.MissionStatementLink:link,
  .home-body a.MissionStatementLink:visited,
  .home-body a.MissionStatementLink:hover{
    font-size: clamp(16px, 4.2vw, 20px);
  }
}

/* Phone layout */
@media (max-width: 720px){
  /* Switch main row to grid: logo on top, buttons below */
  .home-body .main-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "signup gift";
    row-gap: 14px;
    column-gap: 14px;
    justify-items: center;
  }

  .home-body .center-col{ grid-area: logo; width: 100%; }
  .home-body .side-signup{ grid-area: signup; width: 100%; }
  .home-body .side-gift{ grid-area: gift; width: 100%; }

  .home-body .side-col{
    width: 100%;
  }

  /* Scale the ripple to fit the screen width */
  .home-body .ripple-wrap{
    width: min(500px, 92vw);
    height: auto;
    aspect-ratio: 500 / 450;
  }
  .home-body #rippleCanvas{
    width: 100%;
    height: 100%;
  }

  /* Footer stacks */
  .home-body .footer-row{
    flex-direction: column;
    gap: 14px;
  }
  .home-body .footer-col,
  .home-body .footer-center{
    width: 100%;
  }
}
