html {
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}
/* Hide scrollbar for WebKit-based browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Completely hides the scrollbar */
}
/* Hide scrollbar for Firefox */
html, body {
  scrollbar-width: none; /* Firefox-specific property to hide scrollbar */
}
/* ----Main---- */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden; /* stops scroll bounce */
  background-color: #381e00;
  animation: CoverFit linear 1s forwards;
  color: #ffffff;
  font-family: 'Gatsby';
  font-size: 25px;
  z-index: 0;
  /* BACKGROUND */
  background-image: url('images/Texture.png');
  background-size: 500px auto;
  background-position: left top;
  background-repeat: repeat;
  background-attachment: fixed; /* ← LOCKS IT LIKE A FIXED ELEMENT */
}
@font-face {
  font-family: 'Gatsby';
  src: url('GatsbyFLF-Bold.ttf') format('truetype');
}
:focus {
  outline: none;
}
a {
  color: #ffffb8;
  text-decoration: none;
}
a:hover {
  color: #898901;
}
::placeholder {
  color: #8c4d13;
  opacity: .7;
}
hr {
  border: solid .5px #ffffff80;
  display: block;
  margin: 0px;
}
h1 {
font-size: 30px;
line-height: auto;
}
section {
  width: 68vw; 
  max-width: 68vw;
}
article {
  display: flex;
}
footer {
  position: relative;
  padding: .5em .5em .5em .5em;
  height: auto; /* Automatically adjusts based on content */
  font-size: .9em;
  text-align: right;
  width: calc(100% - 1em); /* Full width */
  border-top: solid .5px #ffffff80;
}
.Title {
  /* ----- American Flag Writing -----*/
 /* Outline width */
  background-color: #ffffff;
  background-clip: text;
  color: #ffffff;

  font-size: 3.2em;
  min-height: 8vh;
  line-height: 8vh;
  overflow: visible;
  position: relative;
  text-align: center;
  width: auto;
  padding: 0;
  border-radius: 5px;
  display: flex;               /* changed from inline-block to flex */
  align-items: center;         /* vertical centering */
  justify-content: center;     /* horizontal centering */
}
header {
  height: calc(10dvh - 1px);
  line-height: 10dvh;
  font-size: 3.2em;
  opacity: 1;
  background-color: #381e00;
  border-bottom: solid .5px #ffffff80;
  outline: none;
  position: fixed;
  top: 0;
  z-index: 5;
  width: 100vw;
  background-image: url('images/Texture.png'), url('images/FosterLancasterLogoOverlay.png');
  background-size: 500px auto, auto 100%;
  background-position: left top, left center;
  background-repeat: repeat, no-repeat;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;  /* vertical centering */
  justify-content: center;  /* horizontal centering */
}
.headerspace {
  position: relative;
  height: 10dvh;
}
.MainName {
  /* ----- American Flag Writing -----*/
 /* Outline width */
  background-color: #fff9ab;
  background-clip: text;
  color: #fff9ab;

  width: auto; /* Use full container width */
  height: 100%;
  overflow: visible;    
  color: transparent;
  padding: 0px .4em;
  margin: 0em .4em 0em .4em;
}
/*----NameLetter Styling----*/
.Page {
  font-family: 'Gatsby';
  font-size: 3.2em;
  line-height: 3.2em;
  background-color: #381e00;
  background-image: url('images/Texture.png'), url('images/FosterLancasterLogoOverlay.png');
  background-size: 500px auto, auto 100%;
  background-position: top center, left center;
  background-repeat: repeat, no-repeat;
  line-height: 1;
  height: calc(90dvh / 6);
  border: solid .5px #ffffff80;
  text-align: center;
  padding: 0px;
  margin: 0px;
  cursor: pointer;
  transition: width 0.2s ease;
  box-sizing: border-box;
  display: block; /* FIX */
  border-radius: 0px;
}
.PageText {
  /* ----- American Flag Writing -----*/
 /* Outline width */
  background-color: #ffffff;
  background-clip: text;
  color: #ffffff;
}
#Menu {
  position: fixed;
  display: block;
}
.NavigationFrame {
  top: 0dvh;
  right: 0px;
  position: relative;
  z-index: 3;
}
#Navigation {
  height: 90dvh;
  width: 0px;
  right: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align items to the right */
  transition: width 0.3s ease;
  overflow: hidden;
  position: absolute;
}
.NavigationFrame:hover {
  z-index: 4;
}
select { 
    outline: none; 
  }
.SocIcon {
    width: 1.2vw;   /* made larger so the image is actually visible */
    height: 1.2vw;
    padding: .6vw;
    margin: .3vw;
    overflow: hidden;
    display: inline-block;          /* flex makes centering easier */
    align-items: center;
    justify-content: center;
    transition-duration: .2s;
    background-color: #8c4d13;
    background-image: url('images/Unity.gif');
    background-position: center center;
    background-size: cover;
    border: solid .5px #ffffff80;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
.SocIcon:hover {
    transform: scale(1.2);
  }
button {
  background-color: #fff9ab;
  font-weight: normal;
  cursor: pointer;
  width: 100%; /* Use full width */
  border: none;
  margin: 0;
  padding: 0;
}
.cost {
  font-size: 3em;
  color: #fff9ab;
}
.merch {
  font-size: .8em;
  width: 90%;
}

@media (orientation: portrait) {
  header {
    font-size: 3.2em;
  }
  .Page {
    width: 100vw;
    opacity: 1;
  }
  .Page:hover {
    width: 100vw; /* Width on hover */
    opacity: .8;
  }
.SocIcon {
    width: 4vw;   /* made larger so the image is actually visible */
    height: 4vw;
    padding: 2vw;
    margin: 1vw;
}
  section {
    width: 100%;
    max-width: 100%;
  }
  .NavigationFrame {
    top: 10dvh;
    position: fixed;
  }
  .NavigationFrame {
    z-index: 5;
  }
  #Player {
    width: 200vh;
    height: 200vw;
  }
  .Intro { 
  height: 40vh; 
  top: calc(50% - 20vh);
}
.PageIndex {
  width: 32vw;
}
}

@media (orientation: landscape) {
  header {
    justify-content: right;  /* horizontal centering */
  }
  .LancasterMenuContainer {
    display: none;
  }
  .Title {
  min-height: 12vh;
  line-height: 12vh;
  }
  .Page {
    width: 32vw;
    opacity: .6;
  }
  .Page:hover {
    width: 33vw;
    opacity: 1;
  }
  section {
    min-height: 90vh;
    width: 68vw;
    max-width: 68vw;
  }
  .Segment {
    width: 50%;
    min-width: 500px;
  }
  #Navigation {
    width: 34vw;
    }
  #Player {
    min-width: 200vh;
    min-height: 200vw;
  }
  .Intro { 
    height: 80vh; 
    top: calc(50% - 40vh);
  }
  .PageIndex {
    width: 16vw;
  }
}

/* ----Responsive Layout---- */
@media screen and (max-height: 600px) {
    /* ----Middle---- */
  header {
    font-size: 2.5em;
  }
  .Page {
    font-size: 2.5em;
  }
    .Title {
    font-size: 2.5em;
  }
    .PageIndex {
    font-size: 2.5em;
  }
}

@media screen and (max-height: 400px) {
    /* ----Small---- */
  header {
    font-size: 1.2em;
  }
  .Page {
    font-size: 1.2em;
  }
    .Title {
    font-size: 1.2em;
  }
    .PageIndex {
    font-size: 1.2em;
  }
}

@media screen and (max-height: 200px) {
   /* ----Smallest---- */
  header {
    font-size: .7em;
  }
  .Page {
    font-size: .7em;
  }
    .Title {
    font-size: .7em;
  }
    .PageIndex {
    font-size: .7em;
  }
}

@media screen and (max-width: 500px) and (orientation: portrait) {
  header {
    font-size: 11vw;
  }
  article {
    top: 14vw;
  }
  .Page {
    font-size: 9vw;
    line-height: 9vw;
    height: calc(90dvh / 6);
  }
  .Title {
    font-size: 9vw;
  }
  .PageIndex {
    font-size: 9vw;
  }
  .WikiProfile {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }
}

/*----Ipad----*/
@media screen and (max-width: 600px) and (orientation: portrait) {
  header {
    font-size: 12vw;
  }
}

@keyframes BlackJeans {
  0% {
    background-position: center 0%;
  }
  100% {
    background-position: center 100%;
  }
}

@keyframes Rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes NameAtYou {
  0% {
    transform: scale(.5);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(4);
  }
}

@keyframes CoverLift {
  0% {
    display: flex;
    opacity: 1;
  }
  50% {
    display: flex;
    opacity: 1;
  }
  100% {
    display: none;
    opacity: 0;
  }
}

@keyframes CoverFit {
  0% {
    height: 100vh;
    overflow-y: hidden;
  }
  99% {
    height: 100vh;
    overflow-y: hidden;
  }
  100% {
    height: 100%;
    overflow-y: scroll;
  }
}