@import "common.css";

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Roxbrough CF', sans-serif;
  font-weight: bold;
}

@font-face {
    font-family: 'Rollbox';
    src: url('/fonts/RollboxRegular-jE2lv.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roxbrough CF';
    src: url('/fonts/roxborough-cf-regular_freefontdownload_org/roxborough-cf-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

a {
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 5px #FF8888, 0 0 10px #FF8888, 0 0 15px #FF8888;
}

h1.xas-container {
  position: relative;
  z-index: 1;
  font-size: 150px;
  text-align: center;
  color: white;
  margin-top: 225px;
}

img#gallery {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.xas-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  height:100vh;
  align-items: center;
  transform: translateY(-10%);
}

.xas-container {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 150px;
  color: white;
}

.xas-text {
  transition: transform 1s ease;
  padding-top: 15px;
  white-space: nowrap;
  z-index: 1;
}

.xas-full {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(40px);
  display: flex;
  flex-direction: column;
  font-size: 50px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: opacity 1s ease, transform 1s ease, visibility 1s ease;
  text-shadow: none;
}

.xas-container:hover .xas-text {
  transform: translateX(-150px);
  text-shadow: 0 0 4px goldenrod, 0 0 4px goldenrod, 0 0 7px goldenrod;
}

.xas-container:hover .xas-full {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-70px);
  text-shadow: 0 0 4px goldenrod, 0 0 4px goldenrod, 0 0 7px goldenrod;
}

.xas-phrase {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-family: 'Latin Modern', serif;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
    text-transform: lowercase;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 1s ease;
}

.xas-container:hover .xas-phrase {
    color: goldenrod;
    text-shadow: 0 0 8px rgba(218, 165, 32, 0.6);
}


.gallery-heading::after, .event-heading::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.gallery-heading {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    margin-top: 150px;
    margin-bottom: 70px;
    font-size: 40px;
}

.gallery {
    width: 90%; 
    max-width: 1200px;
    margin: 0 auto; 
    display: grid;
    /* This automatically handles columns for most screens */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    padding-bottom: 100px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
}

h2.event-heading {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  margin-bottom: 70px;
  font-size: 40px;
}

.event-container {
  width: 90vw;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
}

/* REWRITTEN CARD SECTION */

.card {
  width: 850px;
  display: flex;
  flex-direction: row;
  background-color: #000;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin: 50px auto;
  transition: 0.4s ease-in-out;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.card > img {
  width: 45%;
  height: auto;
  object-fit: contain;
  background-color: #05040e;
  display: block;
}

.card-content {
  width: 55%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

.card-content h3 {
  font-size: 32px;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  color: #fff;
}

.card-content h4 {
  font-size: 16px;
  color: #A9A3ff;
  margin-bottom: 25px;
  font-weight: normal;
  letter-spacing: 1px;
}

.registration-cta {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid white;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.registration-cta:hover {
  background: white;
  color: black;
}

@media (max-width: 800px) {
  .card {
    flex-direction: column;
    width: 90vw !important;
    height: auto;
    margin: 20px auto !important;
  }

  .card > img {
    width: 100% !important;
    height: auto !important;
  }

  .card-content {
    width: 100% !important;
    padding: 30px 20px !important;
    align-items: center;
    text-align: center;
  }

  .card-content h3 {
    font-size: 26px !important;
  }

  .registration-cta {
    width: 80%;
    margin-top: 10px;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding-left: 30px;
    padding-right: 30px;
  }

  .xas-container {
    font-size: 70px !important;
  }
}

/* FOOTER & MODAL UNCHANGED */


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 4, 14, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 10px;
    animation: zoomIn 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gallery img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    border-color: #A9A3ff;
}

.event-link {
    display: flex;
    justify-content: center;
    width: 100%;
}