/* Root Variables - Red-White Indonesia Theme */
:root {
  /* Primary colors */
  --bg-color: transparent;
  --container-bg-color: rgba(255, 255, 255, 0.92);
  --container-bg-color-dark: rgba(250, 250, 250, 0.95);
  --primary: #b71c1c;
  --primary-dark: #8b0000;
  --text-color-glow: #fef2f2;
  /* UI colors */
  --nav-headings: #b71c1c;
  /* Navbar footer */
  --navbar-hover: #ef5350;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--bg-color);
  color: #1a1a1a;
  width: 100%;
  overflow-x: hidden;
}

p,
li {
  font-size: 110%;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;

  /* Pusat stabil di mobile */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Pastikan selalu setinggi viewport modern */
  min-height: 100svh;
  height: 100dvh;
  box-sizing: border-box;

  background: #b71c1c;
  overflow: hidden;
  padding: max(env(safe-area-inset-top, 16px), 16px) 16px
    max(env(safe-area-inset-bottom, 16px), 16px);

  opacity: 1;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  visibility: visible;
}

/* Recolors */
.navbar {
  background-color: rgba(183, 28, 28, 0.92);
  backdrop-filter: blur(10px);
}

/* Animasi nyala (fade-in) */
@keyframes glowUp {
  from {
    text-shadow: none;
  }
  to {
    text-shadow: 0 0 5px var(--navbar-hover), 0 0 2px white;
  }
}

/* Animasi mati (fade-out) */
@keyframes glowDown {
  from {
    text-shadow: 0 0 5px var(--navbar-hover), 0 0 2px white;
  }
  to {
    text-shadow: none;
  }
}

/* Animasi nyala (fade-in) */
@keyframes glowFade {
  from {
    text-shadow: none;
  }
  to {
    text-shadow: 0 0 5px var(--navbar-hover), 0 0 2px white;
  }
}

/* Animasi mati (fade-out) */
@keyframes glowFadeOut {
  from {
    text-shadow: 0 0 5px var(--navbar-hover), 0 0 2px white;
  }
  to {
    text-shadow: none;
  }
}

.sidebar-brand {
  text-shadow: 0 0 5px var(--navbar-hover), 0 0 2px white;
}

.sidebar-nav a:hover {
  text-shadow: 0 0 5px var(--navbar-hover), 0 0 2px white;
}

.footer {
  background: #BD2E2E;
}

/* Registration Page */
.activity-container {
  width: 92%;
  max-width: 1100px;
  margin: 5rem auto;
  background: var(--container-bg-color);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(183, 28, 28, 0.1);
  border-radius: 20px;
  padding: 2rem;
}

.activity {
  width: 100%;
  display: flex;
  align-items: start;
  gap: 20px;
}

.activity-left {
  width: 40%;
  display: flex;
  flex-direction: column;
}

.activity-left img {
  object-fit: contain;
  border-radius: 20px;
  width: 100%;
}

.activity-left .poster-placeholder {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: #b71c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(183, 28, 28, 0.15);
}

.poster-placeholder h2 {
  color: #ffffff;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  word-break: break-word;
}

.activity-right {
  width: 60%;
  text-align: center;
}

/* Competition header (name + member/limit info) */
.regist-header {
  margin-bottom: 20px;
}

.regist-title {
  font-size: 2rem;
  font-weight: 800;
  color: #b71c1c;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.regist-meta {
  font-size: 1.05rem;
  color: #555;
  background: rgba(183, 28, 28, 0.08);
  border: 1px solid rgba(183, 28, 28, 0.15);
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-block;
}

/* Alert banner (e.g. Fashion Show wajib seluruh kelas) */
.alert-banner {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(183, 28, 28, 0.1);
  border: 1px solid #b71c1c;
  border-radius: 10px;
  color: #b71c1c;
  font-weight: 600;
  font-size: 1.05rem;
}

/* Registration status */
.registration-status {
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(183, 28, 28, 0.15);
  border-radius: 8px;
  text-align: center;
}

/* Registration closed banner */
.registration-status.registration-closed {
  background-color: rgba(183, 28, 28, 0.12);
  border: 2px solid #b71c1c;
}

.registration-closed .closed-message {
  color: #b71c1c;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.activity-right button {
  width: 200px;
  color: #fff;
  background-color: #b71c1c;
  border-radius: 10px;
  border: none;
  font-size: 1.15rem;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 20px;
}

.activity-right button:hover {
  background-color: #8b0000;
  transform: scale(1.02);
}

/* Form Style */
.form {
  font-weight: 550;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(183, 28, 28, 0.15);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  transition: all 1.2s ease;
  text-align: left;
  font-size: 1.25rem;
}

.form h1 {
  text-align: center;
}

.form input, .form select {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  color: #1a1a1a;
}

.form select {
  padding-right: 20px;
}

.form label {
  color: #1a1a1a;
}

.form button {
  width: 100%;
  color: #fff;
  background-color: #b71c1c;
  border: none;
}

.form button:hover {
  background-color: #8b0000;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #ffffff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid rgba(183, 28, 28, 0.2);
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  color: #1a1a1a;
}

.close {
  color: #b71c1c;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #8b0000;
  text-decoration: none;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #b71c1c;
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.modal-content a {
  display: inline-block;
  background-color: #b71c1c;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.modal-content a:hover {
  background-color: #8b0000;
  color: white;
}

/* Disabled button style */
.form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.form button:disabled:hover {
  transform: none;
  background-color: #ccc;
}

@media screen and (max-width: 768px) {
  .activity-container {
    width: 95%;
    margin: 4rem auto;
    padding: 1.25rem;
  }

  .activity {
    flex-direction: column;
    align-items: center;
  }

  .activity-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .activity-right {
    width: 100%;
  }

  .regist-title {
    font-size: 1.6rem;
  }

  .activity-left img {
    width: 80vw;
  }

  .form button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .activity-container {
    padding: 1rem;
  }

  .regist-meta {
    font-size: 0.95rem;
  }

  .activity {
    flex-direction: column;
    align-items: center;
  }

  .activity-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .form label {
    font-size: 1rem;
  }

  .form input, .form select {
    font-size: 1rem;
  }

  .form button {
    width: 100%;
    font-size: 1rem;
  }
}