:root {
  --button-font: calc(1.2vw + 1.2vh) "Jersey 25", sans-serif;
  --button-text-color: rgb(196, 230, 250);
  --main-outline: solid rgb(196, 230, 250);
  --grid-outline: solid rgb(196, 230, 250);
  --background-color: rgba(255, 255, 255, 0.05);
  --button-box-shadow: 0 0 20px #00ffffcc, inset 0 0 10px #66ccff;
}

h1{
  font-family: Georgia, serif;
  font-size: calc(1.5vw + 1.5vh);
  overflow-wrap: break-word;
}

h2{
  font-family: Georgia, serif;
  font-size: calc(0.9vw + 0.9vh);
  overflow-wrap: break-word;
}

h3{
  font-family: Georgia, serif;
  font-size: calc(0.7vw + 0.7vh);
  overflow-wrap: break-word;
}

p{
  font-family: Georgia, serif;
  font-size: calc(0.65vw + 0.65vh);
  font-style: normal;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color:rgb(196, 230, 250);
  font-size: calc(1.5vw + 1.5vh);
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~MAIN.CSS ALTERATIONS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/**{
  outline: red dashed 1px;
}*/

.mainbody {
  background: black;
}

.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite ease-in-out;
  z-index: 1;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.shooting-star {
  position: absolute;
  width: 150px;
  height: 2px;
  background: linear-gradient(-45deg, white, rgba(255,255,255,0));
  opacity: 0;
  transform: rotate(45deg);
  animation: shoot 1s linear forwards;
  z-index: 1;
}

@keyframes shoot {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(130deg);
  }
  100% {
    opacity: 0;
    transform: translate(-500px, 500px) rotate(130deg);
  }
}

.maindropdowncontent{
  background: radial-gradient(circle at center, #112233 40%, #00111a 100%);
  box-shadow: 0 0 12px #00bfff66, inset 0 0 8px #66ccff33;
  outline:var(--main-outline);
}

.maindropbutton:hover {
  background:rgb(6, 74, 114);
  box-shadow: 0 0 20px #00ffffcc, inset 0 0 10px #66ccff;
}

.mainpage {
  color:aliceblue;
}

.aboutbutton{
  background: radial-gradient(circle at center, #112233 40%, #00111a 100%);
  border: 2px solid #66ccff;
  box-shadow: 0 0 12px #00bfff66, inset 0 0 8px #66ccff33;
}

.mainpagebanner {
  background: radial-gradient(circle at center, #112233 40%, #00111a 100%);
  box-shadow: 0 0 12px #00bfff66, inset 0 0 8px #66ccff33;
  font-family: 'Quantico', system-ui;
  font-size: calc(1.5vw + 1.5vh);
  text-shadow: 2px 2px 4px black;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~CUSTOM CONTENT STARTS HERE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.empirewelcome {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.empirelogo {
  width: 10%;
  flex-shrink: 1;
  display: block;
  margin: 10px;
  z-index: 4
}

.flyuwelcomeimage{
  display: block;
  max-width: 50%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  background-size: contain;
  z-index: 3;
  box-sizing: border-box;
  border:rgb(196, 230, 250) ridge 3px;
}

.flyuheaderimagescontainer{
  display: flex;
  flex-shrink: 1;
  max-width: 100%;
  height: auto;
  justify-content: center;
  margin-bottom: 2%;
  box-sizing: border-box;
  z-index: 3;
}

.flyuheaderimages{
  object-fit: scale-down;
  max-width: 15%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
}

.defacedbountyimage{
  object-fit: scale-down;
  max-width: 60%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
}

.HLAheaderimage{
  object-fit: scale-down;
  max-width: 75%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
}

.diamond-grid {
  display: grid;
  grid-template-columns: repeat(8, 8%);
  grid-auto-rows: 100%;
  gap: 2%; 
  height: auto;
  margin: 2%;
  margin-bottom: 10%;
  margin-top: 5%;
  justify-content: center;
  align-content: center;
}

.vertical-diamond-grid {
  display: grid;
  grid-template-rows: auto;
  grid-auto-columns: auto;
  grid-auto-flow: row;
  gap: 3%; 
  max-width: 20%;
  height: 1200px;
  padding: 3%;
  padding-right: 10%;
  padding-bottom: 8%;
  justify-content: flex-start;
  align-items: flex-start;
}

/* stagger every other row 
.cell:nth-child(6n+4),
.cell:nth-child(6n+5),
.cell:nth-child(6n+6) {
  transform: translateY(50%) rotate(45deg);
}*/

/* Offset every 2nd column like a honeycomb */
.cell:nth-child(2n) {
  transform: translateY(55%) rotate(45deg);
}

#verticalcell:nth-child(2n) {
  transform: translateX(55%) rotate(45deg);
}

/*base diamond*/
.cell{
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, #112233 40%, #00111a 100%);
  border: 2px solid #66ccff;
  box-shadow: 0 0 12px #00bfff66, inset 0 0 8px #66ccff33;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; /* keeps scan lines within diamond bounds */
  cursor: pointer;
  margin: 1%;
}

.cell:hover {
  box-shadow: 0 0 20px #00ffffcc, inset 0 0 10px #66ccff;
}

.gridtext {
  transform: rotate(-45deg);
  color: #ccfaff;
  font-family: 'Orbitron', sans-serif;
  font-size: calc(0.8vw + 0.8vh);
  text-shadow: 0 0 5px #00eaff;
  text-wrap: nowrap;
}

/* === SCAN EFFECT === */
.cell::before {
  content: "";
  position: absolute;
  width: 250%;
  height: 250%;
  top: -75%;
  left: -75%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(0, 255, 255, 0.35) 50%,
    transparent 60%
  );
  animation: scan-sweep 10s linear infinite;
  pointer-events: none;
  opacity: 0;
}

.cell:nth-child(odd)::before {
  animation-delay: 1.5s;
}
.cell:nth-child(3n)::before {
  animation-delay: 2.3s;
}

@keyframes scan-sweep {
  0% {
    transform: translate(-150%, -150%) rotate(-45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(150%, 150%) rotate(-45deg);
    opacity: 0;
  }
}

.flyuarticleflexbox{
  display: flex;
  justify-content: flex-start;
  height: auto;
}

.flyucontentsection{
  max-width: 70%;
  height: auto;
}

.flyucharactergrid {
  display: grid;
  grid-template-columns: repeat(5, 5fr);
  grid-template-rows: auto;
  gap: 3%;
  width: 100%;
  margin-top: 20px;
}

.flyucharactercell{
  width: 100%;
  border: 2px solid #66ccff;
  box-shadow: 0 0 12px #00bfff66, inset 0 0 8px #66ccff33;
  display: block;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* keeps scan lines within diamond bounds */
  cursor: pointer;
  z-index: 4;
}

.flyucharacterimage{
  object-fit: scale-down;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  background-size: contain;
  z-index: 3;
  box-sizing: border-box;
  display: block;
  transition: opacity 0.4s ease;
}

.characterhovertext{
  position: absolute;
  font-family: 'Quantico';
  color:rgb(196, 230, 250);
  font-size: calc(0.8vw + 0.8vh);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  word-wrap: normal;
  pointer-events: none;
  z-index: 4;
}

.flyucharactercell:hover .flyucharacterimage{
  opacity: 0.25;
}

.flyucharactercell:hover .characterhovertext{
  opacity: 1;
}

.hlaprofile{
  display: grid;
  grid-template: 'mainimage mainimage profiletext'
                'mainimage mainimage profiletext'
                'profileblurb profileblurb profileblurb';
  align-items: left;
  justify-content: left;
  margin: auto;
  text-align: left;
}

.HLAcharacterimage{
  object-fit: scale-down;
  max-width: 50%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
  display: block;
  grid-area: mainimage;
}

.HLAcharacterimage2{
  object-fit: scale-down;
  max-width: 30%;
  width: 100%;
  height: auto;
  margin: 1%;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
  display: block;
  float: right;
}

.hlacharacterinfo{
  grid-area: profiletext;
  font-family: Georgia, serif;
  font-size: 16pt;
  color: rgb(196, 230, 250);
  text-align: left;
  z-index: 4;
}

.hlacharacterblurb{
  font-family: Georgia, serif;
  font-size: 16pt;
  color: rgb(196, 230, 250);
  text-align: left;
  margin-top: 2%;
  grid-area: profileblurb;
  z-index: 4;
}

.footerimagecontainer{
  display: flex;
  flex-shrink: 1;
  max-width: 100%;
  height: auto;
  justify-content: center;
  margin-top: 2%;
  margin-bottom: 2%;
  box-sizing: border-box;
  z-index: 3;
}

.HLAfooterimage{
  object-fit: scale-down;
  max-width: 20%;
  width: auto;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
  justify-self: center;
}

.brochureimage{
  object-fit: scale-down;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
  display: block;
}

.flyuscriptimage{
  object-fit: scale-down;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
  border:rgb(196, 230, 250) ridge 3px;
  z-index: 4;
  box-sizing: border-box;
  display: block;
}

.storycontent{
  max-width: 60%;
  height: auto;
  margin: 2%;;
}

.StoryTitle{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  gap: 5%;
  outline: var(--main-outline)
}

.storyimage{
  object-fit: scale-down;
  max-width: 35%;
  width: 35%;
  height: auto;
  margin: 1%;
  flex-shrink: 1;
  z-index: 4;
  box-sizing: border-box;
  display: block;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~MEDIA QUERIES~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

@media (max-width: 768px) {
  .flyuarticleflexbox{
    flex-direction: column;
    justify-items: center;
  }
  .flyucontentsection{
    max-width: 100%;
    height: auto;
    justify-items: center;
    padding: 2%;
  }
  .vertical-diamond-grid{
    display: grid;
    grid-template-columns: repeat(7, 8%);
    grid-auto-rows: 100%;
    gap: 4%; 
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 2%;
    margin-bottom: 5%;
    margin-top: 5%;
    justify-content: center;
    align-content: center;
  }
  #verticalcell:nth-child(2n) {
    transform: translateY(55%) rotate(45deg);
  }
  .gridtext{
    font-size: calc(0.5vw + 0.5vh);
  }
  .characterhovertext{
    font-size: calc(0.8vw + 0.8vh);
  }

}
