/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: url('../IMAGES/background.png') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  padding: 40px;
}

/* Container holds both text and image */
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  width: 150%;
  padding: 30px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 15px;
  animation: fadeIn 2s ease-in-out;
}

/* Left text section */
.text-content {
  flex: 1;
}

h1 {
  font-size: 2.5rem;
  color: #00d4ff;
  margin-bottom: 30px;
  margin-left: 30%;
  animation: slideDown 1.5s ease-in-out;
  text-align: left;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  animation: fadeIn 2.5s ease-in-out;
  text-align: justify;
  text-indent: 50px; 
  margin-left: 50px;
}

.buttons {
  display: flex;
  margin-left: 130px;
  gap: 20px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.user-btn {
  background: linear-gradient(45deg, #4f00ff, #02375a);
  color: white;
}

.admin-btn {
  background: linear-gradient(45deg, #ff4e00, #ec0578);
  color: white;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.5);
}

/* Right image section */
.image-content img {
  max-width: 410px;
  height: 390px;
  animation: float 4s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    text-align: center;
  }
  .text-content {
    text-align: center;
  }
  .image-content img {
    max-width: 250px;
    margin-top: 20px;
  }
}

/* ===== TERMS OVERLAY ===== */
#termsOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* light fade so index is visible */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== TERMS CARD ===== */
.terms-card {
  background: rgba(0, 0, 0, 0.85); /* black but transparent */
  color: #f1f1f1;
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  overflow-y: auto;
}

/* ===== TEXT STYLING ===== */
.terms-card h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 26px;
  letter-spacing: 1px;
}

.terms-card p {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.terms-card strong {
  color: #ffffff;
}

/* ===== BUTTON AREA ===== */
.terms-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

/* ===== BUTTONS ===== */
.btn-agree {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2196f3, #00bcd4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-disagree {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #e91e63, #ff5f9e);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-agree:hover,
.btn-disagree:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

