:root {
  --button-font: calc(1.2vw + 1.2vh) "Geostar", sans-serif;
  --button-text-color: rgb(196, 230, 250);
  --main-outline: ridge rgba(255, 200, 80, 0.8);
  --grid-outline: solid rgb(196, 230, 250);
  --background-color: rgba(255, 255, 255, 0.01);
  --button-box-shadow: 0 0 20px #b22222, inset 0 0 10px #ff4500;
  --empire-bg: #0f1420;
  --empire-accent: #d4af37;
  --empire-text: #f4f1e8;

  --republic-bg: #1a1c21;
  --republic-accent: #b22222;
  --republic-text: #e5e5e5;
}

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.8vw + 0.8vh);
  overflow-wrap: break-word;
}

p{
  font-family: Georgia, serif;
  font-size: calc(0.7vw + 0.7vh);
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color:rgb(196, 230, 250);
  font-size: calc(1.3vw + 1.3vh);
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~MAIN.CSS ALTERATIONS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/**{
  outline: red dashed 1px;
}*/

.mainbody {
  background: black;
}

.mainpagebanner{
  background: linear-gradient(270deg, #0f1420, #d4af37, #b22222, #1a1c21);
  font-family: Geostar, sans-serif;
}

.maindropdowncontent{
  background: radial-gradient(circle at center, #5c0b0b 40%, #a87a17 100%);
  box-shadow: var(--button-box-shadow);
  outline:var(--main-outline);
}

.maindropdowncontent a:hover{
  background-color: rgba(13, 119, 161, 0.7);
  border-radius: 0%;
  box-shadow: var(--button-box-shadow);
  width: 100%;
}

.maindropbutton:hover {
  background:rgb(6, 74, 114);
  box-shadow: var(--button-box-shadow);
}

.maindropdowncontent a:hover{
  background-color: #b22222;
}

.maindropbutton:hover {
  background:var(--banner-color);
  border-radius: 0%;
  box-shadow: var(--button-box-shadow);
}

.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;
}

.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  pointer-events: none;
  z-index: 1;
   -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

.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);
  }
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~CUSTOM CONTENT STARTS HERE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.starbornecontent {
  z-index: 2;
  color: rgb(196, 230, 250);
}

.container {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
}

/* Empire Side */
.empire {
  flex: 1;
  background: var(--empire-bg);
  color: var(--empire-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1%;
}

.empire h1 {
  color: var(--empire-accent);
  font-family: Aboreto, sans-serif;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.empire p {
  max-width: 400px;
  line-height: 1.6;
  opacity: 0.85;
}

.empire button {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid var(--empire-accent);
  color: var(--empire-accent);
  cursor: pointer;
  transition: 0.3s ease;
}

.empire button:hover {
  background: var(--empire-accent);
  color: var(--empire-bg);
}

/* Republic Side */
.republic {
  flex: 1;
  background: var(--republic-bg);
  color: var(--republic-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1%;
}

.republic h1 {
  color: var(--republic-accent);
  font-family: Federant, cursive;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.republic p {
  max-width: 400px;
  line-height: 1.6;
  opacity: 0.85;
}

.republic button {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid var(--republic-accent);
  color: var(--republic-accent);
  cursor: pointer;
  transition: 0.3s ease;
}

.republic button:hover {
  background: var(--republic-accent);
  color: var(--republic-bg);
}

/* Divider */
.container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--empire-accent),
    var(--republic-accent)
  );
  transform: translateX(-50%);
  z-index: 10;
}

.divider-wrapper {
  position: absolute;
  left: 50%;
  top: 0;
  width: 40px;          /* wide enough for glow */
  height: 100vh;        /* explicit viewport height */
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

#flameParticles {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.divider {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    to top,
    #b22222 0%,
    #ff4500 40%,
    #ffcc33 70%,
    #ffffff 100%
  );
  filter: blur(2px);
  animation: pulse 2s infinite ease-in-out;
}

/* Inner flame core */
.divider::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 26px;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 200, 80, 0.8) 0%,
    rgba(255, 80, 0, 0.6) 40%,
    transparent 70%
  );
  animation: wave 3s infinite linear;
  mix-blend-mode: screen;
}

/* Outer flicker */
.divider::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  width: 34px;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 100, 0, 0.5) 0%,
    transparent 70%
  );
  animation: jitter 0.6s infinite ease-in-out alternate;
  mix-blend-mode: screen;
}

@keyframes pulse {
  0%   { transform: translateX(-50%) scaleY(1); }
  50%  { transform: translateX(-50%) scaleY(1.05);  }
  100% { transform: translateX(-50%) scaleY(1);  }
}

@keyframes wave {
  0%   { transform: translateY(0) scaleX(1); }
  50%  { transform: translateY(-40px) scaleX(1.2); }
  100% { transform: translateY(0) scaleX(1); }
}

@keyframes jitter {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}