@font-face {
  font-family: 'RubikIso';
  src: url('./font/RubikIso-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BitcountGrid';
  src: url('./font/BitcountGridDouble-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    background-color: #000000;
    overflow-x: hidden;
    overflow-y: auto;
}
.tabs {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #111;
    border-bottom: 2px solid #222;
    z-index: 10;
    position: relative;
}
.tablink {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    border: none;
    outline: none;
    color: #fff;
    padding: 16px 32px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 12px 12px 0 0;
    margin: 0 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.18s;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}
.tablink.active, .tablink:hover {
    background: linear-gradient(90deg, green 0%, blue 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,152,0,0.18);
    transform: translateY(-2px) scale(1.04);
}
.tabcontent {
    width: 100vw;
    height: calc(100vh - 50px);
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
}
.tabcontent.active {
    display: flex;
}
#hydra.tabcontent.active {
    padding: 0;
    margin: 0;
    background: #000;
    align-items: stretch;
    justify-content: stretch;
}
hydra-element {
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
    min-height: 0;
    min-width: 0;
    display: block;
    margin: 0;
    background: #000;
    flex: 1 1 auto;
}
@media (max-width: 600px) {
  .tablink {
    font-size: 14px;
    padding: 10px 8px;
  }
  hydra-element {
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
  }
}
#poster.tabcontent.active {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #000;
}
#countdown {
    font-size: 24px;
    color: #a4a4a4;
    background-color: #000000;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
#image-container {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000000;
}
#image-viewer {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
.link-container {
  text-align: center;
  margin-top: 5px;
}
.custom-link {
  font-size: 30px;
  color: orange;
  text-decoration: none;
}
/* Countdown overlay for hydra tab */
#hydra-countdown {
    position: absolute;
    z-index: 20;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 2.2vw;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    user-select: none;
    font-family: 'RubikIso', Arial, sans-serif;
    cursor: pointer;
}

#hydra-countdown a {
    color: inherit;
    text-decoration: none;
}
@media (max-width: 600px) {
  #hydra-countdown {
    font-size: 25px;
    top: 56px;
    left: 8px;
    padding: 6px 10px;
  }
}
#main-content {
  flex: 1 1 auto;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 24px;
  padding: 32px;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

.event-card {
  display: flex;
  flex-direction: row;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
  width: 100%;
  max-width: 480px;
  height: 160px;
  overflow: hidden;
  transition: transform 0.2s ease;
  position: relative;
}

.event-card:hover {
  transform: scale(1.02);
}

.event-images {
  flex: 0 0 40%;
  height: 100%;
  overflow: hidden;
}

.event-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-info {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.event-date {
  font-size: 0.9em;
  color: orange;
  font-weight: bold;
}

.event-title {
  font-size: 1.1em;
  font-weight: bold;
}

.event-description {
  font-size: 1em;
  opacity: 0.9;
}

/* 📱 Responsive stacked layout on small screens */
@media (max-width: 600px) {
  .event-card {
    flex-direction: column;
    height: auto;
  }

  .event-images {
    flex: none;
    width: 100%;
    height: 180px;
  }

  .event-info {
    padding: 12px 16px;
  }

  .event-title {
    font-size: 1.2em;
  }

  .event-description {
    font-size: 1em;
  }
}

.about-container {
  max-width: 800px;
  width: 85vw;
  margin: 2% auto 2% auto;
  padding: 0;
  background: rgba(20,20,20,0.7);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.about-full-container {
  width: 100%;
  height: 100%;
  margin: 0px auto 0px auto;
  padding: 0;
  background: rgba(20,20,20,0.3); /* Further reduced opacity to make video more visible */
  border-radius: 0px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1; /* Ensure container is above the video */
}

.background-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important; /* Changed from -1 to 0 to ensure it's visible */
  opacity: 1 !important; /* Increased to full opacity */
  filter: brightness(0.8) contrast(1.1) !important; /* Added filters to enhance video appearance */
  visibility: visible !important; /* Ensure video is always visible */
  display: block !important; /* Ensure video is always displayed */
  pointer-events: none !important; /* Prevent video from capturing mouse events */
}

.about-container:hover, .about-full-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.about-header {
  width: 100%;
  padding: 10px 24px 20px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(30,30,30,0.9), rgba(20,20,20,0.97));
}

.about-title {
  font-size: 2.5em;
  margin-bottom: 2px;
    margin-top: 2px;
  color: #fff;
  text-align: center;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.custom-line {
  width: 40%;
    margin-top: 0px;
}

.highlight {
  color: orange;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: orange;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.about-container:hover .highlight::after {
  transform: scaleX(1);
  transform-origin: left;
}

.about-subtitle {
  font-size: 1.1em;
  color: #a0a0a0;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.about-image-container {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-container:hover .about-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.about-content {
  padding-right: 5%;
  padding-left: 5%;
  width: 95%;
  font-size: medium;
  position: relative;
  z-index: 1;
}

.about-intro {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #e0e0e0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 24px;
}

.dropcap {
  float: left;
  font-size: 3em;
  line-height: 0.8;
  margin-right: 8px;
  color: orange;
  font-weight: bold;
}

.about-section {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(30,30,30,0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.about-section:hover {
  transform: translateX(5px);
  background: rgba(40,40,40,0.5);
}

.section-title {
  font-size: 1.4em;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  align-items: center;
}

.section-icon {
  font-style: normal;
  margin-right: 10px;
  font-size: 1.2em;
}

.about-section p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 0;
  color: #d0d0d0;
}

.about-footer {
  width: 100%;
  padding: 20px;
  background: rgba(15,15,15,0.8);
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.social-link:hover {
  color: orange;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .about-container {
    width: 95vw;
    margin: 20px auto 0 auto;
  }

  .about-title {
    font-size: 2em;
  }

  .about-subtitle {
    font-size: 0.9em;
  }

  .about-image-container {
    height: 180px;
  }

  .about-intro {
    font-size: 1.1em;
  }

  .section-title {
    font-size: 1.2em;
  }

  .about-section p {
    font-size: 1em;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Modal styles for event popups */
.modal-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background-color: #1a1a1a;
  border-radius: 12px;
  max-width: 90%;
  width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: scale(0.8);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
}

.modal-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

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

.modal-body {
  padding: 20px;
}

.modal-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-description {
  color: #ddd;
  font-size: 1.1em;
  line-height: 1.5;
}

.modal-date {
  color: orange;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1em;
}

/* Clickable center area for event cards */
.event-card-center {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 600px) {
  .modal-content {
    width: 95%;
  }

  .modal-title {
    font-size: 1.2em;
  }
}
