/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Top Bar ===== */
.topbar {
  background: rgba(0, 0, 0, 0.85);
  background-image: url('/images/bg65.png');
  padding: 12px 0;
  position: relative;
  z-index: 10;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.warning-text {
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.warning-text .highlight {
  color: #ffcc00;
}

.members-btn {
  background: #f64301;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 18px 8px 32px;
  border-radius: 4px;
  background-image: url('/images/arrow.png');
  background-repeat: no-repeat;
  background-position: 10px center;
  transition: background-color 0.2s;
}

.members-btn:hover {
  background-color: #c13400;
}

/* ===== Main Warning Section ===== */
.warning-section {
  background: url('/images/photo.jpg') center top no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: calc(100vh - 60px);
  padding: 60px 0 80px;
  position: relative;
}

.warning-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.content-box {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn-enter,
.btn-exit {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: 18px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-enter {
  background-image: url('/images/warning_join_btn.jpg');
  background-color: #1a7a1a; /* fallback */
}

.btn-exit {
  background-image: url('/images/warning_exit_btn.jpg');
  background-color: #a00; /* fallback */
}

.btn-enter:hover,
.btn-exit:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Terms Box with Scrolling ===== */
.terms-box {
  background: rgba(0, 0, 0, 0.78);
  background-image: url('images/bg65.png');
  border-radius: 8px;
  padding: 18px 20px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.terms-box h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffcc00;
}

.terms-scroll {
  max-height: 220px;          /* Adjust this value to make the box taller or shorter */
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #f64301 #333;
}

/* Webkit scrollbar styling */
.terms-scroll::-webkit-scrollbar {
  width: 8px;
}

.terms-scroll::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
  background: #f64301;
  border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb:hover {
  background: #c13400;
}

.terms-scroll p {
  margin-bottom: 12px;
}

.terms-scroll ol {
  margin: 12px 0 16px 22px;
}

.terms-scroll li {
  margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .terms-scroll {
    max-height: 180px;
  }
  
  .terms-box {
    padding: 16px 14px 14px;
    font-size: 13px;
  }
  
  .terms-box h2 {
    font-size: 16px;
  }
}

/* ===== Legal Box ===== */
.legal-box {
  background: rgba(0, 0, 0, 0.75);
  background-image: url('/images/bg65.png');
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.legal-box p {
  margin-bottom: 8px;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .topbar .container {
    flex-direction: column;
    text-align: center;
  }

  .warning-text {
    font-size: 13px;
  }

  .members-btn {
    width: 100%;
    max-width: 220px;
    text-align: center;
  }

  .warning-section {
    background-attachment: scroll;
    padding: 40px 0 60px;
  }

  .btn-enter,
  .btn-exit {
    height: 60px;
  }

  .terms-box {
    padding: 18px 16px;
    font-size: 13px;
  }

  .terms-box h2 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .btn-enter,
  .btn-exit {
    height: 54px;
  }
}