/* --- Global Styling --- */
body {
  font-family: "Poppins", sans-serif;
  background: #f5f1e6;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Hide all visible content when the page is "gated" */
body.gated > * {
  display: none !important;
}

/* Always show the loading message container */
body.gated #loading {
  display: block !important;
}

/* Once the gate is lifted, hide the loading message */
body:not(.gated) #loading {
  display: none !important;
}

.embed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  width: 100%;
  max-width: 1200px;
  height: 80vh;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Logo Used in All Pages Header Except Login */
#amja-logo {
  height: clamp(45px, 9vw, 100px);
  width: auto;
  max-width: 95vw;
  display: block;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1082 / 423;
}

.page-title {
  font-size: 3rem;
  font-weight: bold;
  font-family: "League Spartan", "Poppins", sans-serif;
  color: black;
  margin: 0.5rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  max-width: 350px;
  width: 100%;
}

.modal-container-multi-buttons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-box-text {
  font-size: 1rem;
  font-weight: bold;
}

.modal-box input {
  width: 80%;
  padding: 0.5rem;
  font-size: 1rem;
}

.modal-button {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #052f5f;
  background-color: #8ab59c;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-button:hover {
  color: white;
  background-color: #0a6a56;
}

/* Default Button Styling */
button {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #052f5f;
  background-color: #8ab59c;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button.active {
  color: white;
  background-color: #0a6a56;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover:not(:disabled),
button:active:not(:disabled) {
  color: white;
  background-color: #0a6a56;
}

/* Prevent button hover styling from “sticking” on mobile */
@media (hover: none) and (pointer: coarse) {
  button:hover {
    color: #052f5f;
    background-color: #8ab59c;
  }
}

/* Default Select Styling */
select {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  background-color: white;
  color: #333;
  border: 2px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  text-align-last: center;
}

select:hover {
  border-color: #0056b3;
}

/* --- Login.html Header --- */
#login-header {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f6f4ed;
  border-bottom: 1px solid #ddd;
}

/* Login Container */
#login-wrapper {
  max-width: 450px;
  width: 100%;
  margin: 1rem auto;
  text-align: center;
}

/* Login Title - League Spartan as Primary */
#login-title {
  font-size: 1.75rem;
  font-family: "League Spartan", "Poppins", sans-serif;
  font-weight: bold;
  color: black;
  margin: 1rem auto;
}

/* Login Email Input */
#login-email-input-container {
  width: 100%;
  margin: 1rem auto;
}

#login-email-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  display: block;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Mailcheck Suggestion */
#login-email-suggestion {
  color: #1e90ff;
  font-size: 0.95rem;
  margin: 1rem;
}

/* Login Status Message */
#login-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* --- Header for All Pages Except Login --- */
#header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-color: #f6f4ed;
  border-bottom: 1px solid #ddd;
}

/* NEW: Make #header a 3-col layout with the center always centered */
#header > div {
  flex: 0 0 auto;
}

#logo-area {
  flex: 0 0 auto;
  padding: 0.75rem;
  z-index: 20;
}

/* --- Footer for All Pages --- */
.site-footer {
  margin-top: 0.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #333;
  border: 1px solid #ddd;
  background-color: #f6f4ed;
}

.site-footer a {
  margin: 0 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #0a6a56;
}

/* --- Home.html Styling --- */
/* Resources Header Image-Text */
/* Wrapper */
.resources-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  text-align: center;
  white-space: nowrap;
}

/* Joker tile */
.resources-header-icon {
  width: 65px;
  height: auto;
  display: block;
}

/* Text */
.resources-header-text {
  font-family: 'Montserrat';
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: black;
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .resources-header-icon {
    width: 48px;
  }
}

/* Container */
.entitlement-section {
  display: none;
}

.section_style {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center; /* centers the whole block horizontally */
}

.section_style_title {
  font-family: 'Lora';
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #000;
  margin-bottom: 1rem;
}

/* 1. PRIMARY ENTITLEMENTS – 1-3 tiles, same look as Membership Perks */
.primary-entitlements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  justify-items: center;
}

/* remove extra margins on the sections in that grid */
.primary-entitlements .section_style {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Inner wrapper for a single tile in those sections */
.perk-tiles {
  display: flex;
  justify-content: center;
}

/* 2. MEMBERSHIP PERKS GRID – reuse same grid pattern */
.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  justify-items: center;
  margin-top: 1.75rem;
}

/* 3. Standard tile card styling – used everywhere */
.perk-tile {
  display: inline-block;
  width: 100%;
  max-width: 240px;          /* same max width for ALL tiles */
  text-decoration: none;
  background: transparent;
  transform: translateY(0);
  filter: brightness(1);
  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.perk-tile img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hover / focus lift effect */
.perk-tile:hover,
.perk-tile:focus-visible {
  filter: brightness(0.94);
  transform: translateY(-4px) scale(1.025);
  box-shadow: none;
  outline: none;
}

/* Mobile: grid will naturally collapse to 1 column when space is tight,
   but we can tighten margins slightly if you want */
@media (max-width: 700px) {
  .primary-entitlements {
    margin-bottom: 2.5rem;
  }
}

/* Centered "Manage Your Membership" link */
.manage_membership_text{
  text-align: center;
  margin: 2rem auto 0 auto;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.25rem
}

/* Link styling */
.manage_membership_text a {
  color: black;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.manage_membership_text a:hover {
  color: black;
  font-weight: 700;
  text-decoration: underline;
}

/* Email Not Approved Error Styling */
#email-not-approved-error-message {
  color: red;
  font-weight: bold;
  margin-top: 2rem;
}
