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 {
  width: 100%;
  height: 100%;
  margin: 0;
}
body {
  width: 100%;
  margin: 0;
  min-height: 100%;
  color: #ffffff;
  font-family: 'FL';
  font-size: 22px;
  z-index: 0;
  background-color: #381e00;
  background-image: url('images/FosterLancasterLogoOverlay.png');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
  background-attachment: scroll;
}
@font-face {
  font-family: 'FL';
  src: url('ALBAS___.TTF') format('truetype');
}
@font-face {
  font-family: 'FL2';
  src: url('ALBA____.TTF') format('truetype');
}
:focus {
  outline: none;
}
a {
  color: #ffffff;
  text-decoration: none;
}
a:hover {
  color: #ffff00;
}
header {
  height: 10vh;
  line-height: 10vh;
  opacity: 1;
  background-color: #381e00;
  border-bottom: solid .5px #ffffff80;
  outline: none;
  position: fixed;
  top: 0;
  z-index: 5;
  width: 100vw;
  -webkit-tap-highlight-color: transparent;
  display: flex;  /* vertical centering */
  background-image: url('images/FosterLancasterLogoOverlay.png');
  background-size: auto 100%;
  background-position: center left;
  background-repeat: no-repeat;
  justify-content: center;
  text-indent: 2px;
}
.headerspace {
  position: relative;
  height: 10vh;
  display: block;
}
hr {
  border: solid .5px #ffffff80;
  display: block;
  margin: 0px;
}
h1 {
font-size: 30px;
line-height: auto;
}
section {
  height: auto;
  width: 68vw; 
  max-width: 68vw;
}
article {
  height: auto;
  display: block;
}
footer {
  width: calc(100% - 1em); /* Full width */
  height: auto;
  font-family: 'FL2';
  color: #ffffff;
  position: relative;
  padding: 1em .5em 1em .5em;
  font-size: 15px;
  line-height: 25px;
  border-top: solid .5px #ffffff;
  text-align: center;
}
.Title {
  /* ----- American Flag Writing -----*/
 /* Outline width */
  background-color: #ffffff;
  background-clip: text;
  color: #ffffff;
  font-size: 1.5em;
  min-height: 10vh;
  line-height: 10vh;
  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 */
}
.namesayer {
  height: auto;
  width: auto;  
  padding: 0vh;            /* lock the alignment height */
  display: flex;
  align-items: center;          /* vertical center */              /* space between text and image */
  cursor: pointer;
  font-family: 'FL';
  position: absolute;
}
/* TOP HALF — WHITE */
.namewritten {
  line-height: 10vh;
  position: relative;
  z-index: 0;
  padding: 0px 10px 0px 10px;
  height: auto;
  width: auto;
  opacity: .9;
  color: #ffffff;
  filter: drop-shadow(0 0 5px #000000);
}
.namesay {
  opacity: 0;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10vh;
  height: 10vh;
  transition-duration: .2s;
  animation: DontSay 2s linear infinite;
}
.namesayer:hover .namesay {
  width: 9vh;
  height: 9vh;
}
/*----NameLetter Styling----*/
.Page {
  height: calc(90dvh / 6);
  font-family: 'FL';
  font-size: 3.2em;
  line-height: 3.2em;
  background-color: #381e00;
  background-image: url('images/FosterLancasterLogoOverlay.png');
  background-size: auto calc(90dvh / 6);
  background-position: center left;
  background-repeat: no-repeat;
  background-attachment: scroll;
  line-height: 1;
  border: solid .5px #ffffff;
  text-align: center;
  padding: 0px;
  margin: 0px;
  cursor: pointer;
  transition-duration: .2s;
  box-sizing: border-box;
  display: block; /* FIX */
  border-radius: 0px;
}
.Page:hover {
  filter: brightness(1.5);
}
.Page:hover .PageText{
  transform: scale(.8);
}
.PageText {
  color: #ffffff;
  transition-duration: .2s;
  transform: scale(1);
}
#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; 
  }
button {
  font-weight: normal;
  cursor: pointer;
  width: 100%; /* Use full width */
  border: none;
  margin: 0;
  padding: 0;
}
.merch {
  font-size: .8em;
  width: 90%;
}
.SocialMedia {
  height: 1.2em;
  line-height: 12px;
  width: auto;
  position: relative;
  display: inline-block;
  transition-duration: .1s;
  padding: 0px .6em 0px .6em;
  margin-bottom: -4px;
}
.SocialMedia:hover {
  transform: scale(1.2);
}
.MusicVideo {
  width: calc(100% - 2px);
  height: 50vh;
  max-height: 50vw;
  transition-duration: .5s;
  display: block;
  pointer-events: none;
  opacity: .25;
}
.MusicVideoContainer {
  border-radius: 10px;
  background-color: #381e00;
  border: solid 1px #ffffff;
}
.MusicVideoContainer:hover {
  filter: brightness(1.5);
}
.FLmediaicon {
  height: 18px;
  width: auto;
  position: relative;
  display: inline-block;
  margin: 0px 5px -3.5px 5px;
}
.FLmedia {
  font-family: 'Futura';
  margin: 23px 0px 23px 0px;
  height: 23px;
  width: 300px;
  border-radius: 90px;
  background-color: #ffffff;
  border-radius: solid 1px #000000;
  color: #000000;
  font-size: 15px;
  line-height: 23px;
  display: inline-block;
}
.FLmedia:hover {
  filter: brightness(.5);
}
.FirstVideoScreen {
  position: absolute;
  top: 10vh;          /* keep your spacing */
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 90dvh;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: -1;
  margin: 0;
  border-radius: 0;
  background-image: url('images/TheGoodLink.png');
  background-size: cover;
  background-position: center center;
}
.FirstVideoScreen video {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: calc(90dvh + 10px);
  object-fit: cover;
  object-position: center 0px; /* moves crop focus lower */
  transform: translate(-50%, -50%);
  display: block;
  overflow: hidden;
}

@media (orientation: portrait) {
.namesayer {
  font-size: 7.5vw;
  height: auto;
  }
  .Page {
    width: 100vw;
    opacity: .9;
  }
  .Page:hover {
    opacity: 1;
  }
.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;
    z-index: 3;
  }
  #Player {
    width: 200vh;
    height: 200vw;
  }
  .Intro { 
  height: 40vh; 
  top: calc(50% - 20vh);
}
.PageIndex {
  width: 32vw;
}
}

@media (orientation: landscape) {
  header {
    justify-content: right;
  }
  .namesayer {
  height: auto;
  font-size: 7.5vh;
  }
  .LancasterMenu {
    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: 33vw;
    }
  #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: 1.2em;
  }
  .Page {
    font-size: 1.6em;
  }
  .Title {
    font-size: 1.6em;
  }
  .PageIndex {
    font-size: 1.6em;
  }
}

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

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

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

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

@keyframes DontSay {
  0% { opacity: 0; }
  10% {opacity: .35; }
  20% {opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: .35; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}