/* Define Vars */

:root {
  --base-col: #e9dfd3;
  --grab-col: #28315c;
  --altgrab-col: #222133;
  --look-col: #883434;
  --look-col-50o: #88343473;
  --font-col: gainsboro;
  --trim-col: #ad8a5c;
  --trim-col-50o: #ad8a5c7c;
  --font-size: 16px;
  --spacing-unit: 10px;
}

/* Load Fonts */

@font-face {
  font-family: "Promethean";
  src: url(fonts/Promethean-Regular.ttf);

  font-weight: normal;
  font-style: normal;
  font-display: swap;
  fallback: Tahoma;
}

/* Load base font, currently: Dosis */
@font-face {
  font-family: "Dosis";
  src: url(fonts/dosis-regular-webfont.woff2) format(woff2),
       url(fonts/dosis-regular-webfont.woff) format(woff);
       
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  fallback: Tahoma;
  }

/* Load bold font, currently: Dosis */
@font-face {
  font-family: "Dosis";
  src: url(fonts/dosis-bold-webfont.woff2) format(woff2),
       url(fonts/dosis-bold-webfont.woff) format(woff);
       
  font-weight: bold;
  font-style: bold;
  font-display: swap;
  fallback: Tahoma;
  }

/* Load Universal Elements */

#loadingPane {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Full height to cover the page initially */
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: height 0.25s ease-out; /* Curtain will fall down smoothly */
}

#curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Full height to cover the page initially */
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: height 1s ease-out; /* Curtain will rise smoothly */
}

#logoin {
  transition: opacity .5s ease
}

#logoout {
  transition: opacity .5s ease
}

/* Universal Setup */

a,
a:link,
a:visited,
a:hover,
a:active{
    text-decoration: none;
}

body{
  margin: 0ch;
  padding: 0ch;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  background-color: var(--base-col);
  background-image: url(/pics/Wyverns.webp);
  background-repeat: repeat;
  background-size: 17.5vw;
  background-position: top;
  background-blend-mode: exclusion;
  color: var(--grab-col);
  font-family: Dosis;
  text-align: center;
  justify-content: center;
  font-size: clamp(6px,2vw,24px);
  }

button, button a:link {
  cursor: pointer;
  background-color: #00000000;
}


footer, footer a, .footer link {
  padding: 2.5%;
  padding-left: 10%;
  padding-right: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--font-col);
  background-color: var(--grab-col);
}

textarea {
  background-color: #ebebeb;
  text-align: center;
  width: 25vw;
  max-width: 30vw;
  height: clamp(1vh, 2vh, 2.5vh);
  padding: 1vh;
  font-size: 16px;
  border: 5px solid #cfb27b;
  border-radius: 4px;
}

img:hover {
  border: none;
  background-color: #00000000;
}


/* Classes */

.unicontainer{
  display: flex;
  max-width: 100%;
  height: 100%;
  width: auto;
  padding-left: 7%;
  padding-right: 7%;
  justify-self: center;
  justify-content: center;
}

.page-splitter, .page-splitter a{
  display: flex;
  background-color: var(--grab-col);
  color: var(--font-col);
  line-height: clamp(10px,2.5vw,69px);
  padding-left: 7%;
  padding-right: 7%;
  max-width: 100%;
  justify-content: center;
}

.page-splitter h1 {
  font-size: clamp(8px, 7vw, 100px);
  line-height: clamp(1px,7vw,100px);
}

.page-splitter h2 {
  font-size: clamp(8px, 5vw, 77px);
  line-height: clamp(1px,5vw,77px);
}

.page-splitter h3 {
  font-size: clamp(7px, 3w, 50px);
  line-height: clamp(1px,3vw,50px);
}

.logo, .logo img  {
  display: flex;
  max-width: 100%;
  width: 15vw;
  height: auto;
  padding-bottom: 7%;
  padding-top: 3%;
  justify-content: center;
  justify-self: center;
}

.logo img {
  filter: drop-shadow( 2vw 2vw 0px var(--trim-col));
}

.navbar {
  display: flex;
  font-weight: bold;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  align-self: center;
  background-color: var(--grab-col);
  color: var(--grab-col);
}

.navlink{
  display: flex;
  font-size: clamp(4px,2.25vw,30px);
  font-weight: bold;
  width: auto;
  color: var(--font-col);
  background-color: var(--grab-col);
  border: solid 1ch var(--grab-col);
  border-left: solid 1em var(--grab-col);
  border-right: solid 1em var(--grab-col);
}

.newsline {
  display: grid;
  max-width: 100%;
  width: auto;
  max-height: 40px;
  grid-template-columns: 1fr 10fr;
  align-items: center; /* Vertically center items */
  overflow: hidden;  /* Prevent overflow of the headlines */
  white-space: nowrap;
  background-color: white;
  color: var(--grab-col);
  font-size: clamp(6px,1.25vw,24px);
}

/* Fixed "BREAKING NEWS:" element on the left */
.breaking-news {
  font-weight: bold;
  background-color: var(--look-col);
  color: var(--font-col);
  padding: 5%; /* Adjust padding for spacing */
  padding-left: 10%;
  padding-right: 110%;
  width: auto;
  z-index: 10;  /* Make sure this stays on top of the scrolling text */
}

/* The scrolling headlines container */
.headlines {
  display: flex;  /* Makes the headlines line up horizontally */
  animation: scroll-headlines 40s linear infinite;  /* Animates the headlines horizontally */
  gap: 20px;
}

.txtcontainer{
  display: grid;
  color: var(--font-col);
  line-height: clamp(1px,2.5vw,69px);
  max-width: 100%;
  width: auto;
  height: 100%;
  padding-left: 10%;
  padding-right: 10%;
  align-items: center;
  align-content: center;
}

.txtcontainer h1 {
  font-size: clamp(8px, 7vw, 150px);
  line-height: clamp(1px,7vw,150px);
}

.txtcontainer h2 {
  font-size: clamp(8px, 5vw, 77px);
  line-height: clamp(1px,5vw,77px);
}

.txtcontainer h3 {
  font-size: clamp(7px, 3w, 50px);
  line-height: clamp(1px,3vw,50px);
}

.coldisplaygrid, .coldisplaygrid img {
  display: grid;
  max-width: 100%;
  height: auto;
  grid-template-columns: 2fr 1fr;
  align-items: center; /* Vertically center items */
  background-color: white;
  color: var(--grab-col);
  font-size: clamp(6px,1.25vw,24px);
}

.rowdisplaygrid, .rowdisplaygrid img {
  display: grid;
  max-width: 100%;
  height: auto;
  grid-template-rows: 1fr 1fr 1fr;
  align-items: center; /* Vertically center items */
  background-color: white;
  color: var(--grab-col);
  font-size: clamp(6px,1.25vw,24px);
}

.imgcontainer{
  display: flex;
  max-width: 100%;
  width: 100%;
  height: auto;
}

.imgcontainer img{
  display: flex;
  max-width: 100%;
  height: auto;
  background-color: #00000000;
}

.imgframe {
  display: flex;
  align-items:  center;
  justify-content: center;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 10%;
  margin-bottom: 10%;
}

.imgframe img {
  max-width: 100%;
  display: flex;
  align-items:  center;
  justify-content: center;
  height: auto;
  border: 1vw solid #ffffff;                     
  box-shadow: clamp(6px,1vh,60px) clamp(6px,1vh,60px) 0px #080a1b;
}

.button {
  font-size: clamp(4px,2.25vw,30px);
  font-weight: bold;
  color: var(--font-col);
  background-color: var(--grab-col);
  border: solid 1ch var(--grab-col);
  border-left: solid 1em var(--grab-col);
  border-right: solid 1em var(--grab-col);
}

.guibutton {
  position: fixed;
  bottom: 2vh;
  right: clamp(10px,4vw,5vw);
  padding: 1vw 2vw;
  background-color: var(--trim-col-50o);
  color: white;
  font-family: Dosis;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.guibutton:hover {
  background-color: var(--trim-col);
  border: none;
}

.navbutton {
  position: fixed;
  bottom: 2vh;
  right: clamp(10px,4vw,5vw);
  padding: 1vw 2vw;
  background-color: var(--look-col);
  color: white;
  font-family: Dosis;
  border: none;
  border-radius: 1.5vw;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.navbutton a {
  color: white;
  text-decoration: none;
  font-size: 2.5vw;
}


.cardinner {
  border: solid 1.5vw var(--grab-col); 
  border-radius: 4vw; 
  margin-left: 3vw; 
  margin-right: 3vw; 
  margin-bottom: 7vw; 
  box-shadow: 1vw 1vw var(--trim-col); 
  background-color: var(--grab-col);
}

.cardouter {
  border: solid 3vw white; 
  border-radius: 7vw; 
  margin-left: 3vw; 
  margin-right: 3vw; 
  margin-bottom: 7vw; 
  box-shadow: 1vw 1vw var(--trim-col); 
  background-color: white;
}

.contactbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr ;
  font-weight: bold;
  max-width: 100%;
  justify-items: center;
  background-color: var(--grab-col);
  margin-left: 15vw;
  margin-right: 15vw;
  color: var(--grab-col);
  gap: 5vw;
}

.contactlink{
  display: grid;
  font-size: clamp(4px,2.25vw,30px);
  font-weight: bold;
  width: auto;
  color: var(--font-col);
  background-color: var(--altgrab-col);
  border-radius: 1vw;
  padding-left: 2vw;
  padding-right: 2vw;
  border: none;
}

/* Button Style (Square Tag) */
.toggle-button {
  position: fixed;
  bottom: 0px;
  right: 0px;
  padding: 12px;
  font-size: 24px; /* Larger arrow */
  background-color: var(--look-col);
  color: var(--font-col);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3vw; /* Fixed width and height for square */
  max-width: 75px;
  min-width: 50px;
  height: 3vw;
  max-height: 75px;
  min-height: 50px;
  text-align: center;
  transition: transform 0.5s ease-out, background-color 0.2s ease;
}

/* Hover effect for the button */
.toggle-button:hover {
  background-color: var(--trim-col);
}

/* Player Container (Initially offscreen, below the fold) */
.player-container {
  position: fixed;
  bottom: -50px; /* Initially below the screen */
  right: 0px;
  max-width: 100vw;
  max-height: 50px;
  transition: transform 0.5s ease-out;
}

/* Arrow rotation for toggle */
.arrow {
  transition: transform .5s ease;
}

/* Animations */

@keyframes scroll-headlines {
  0% {
    transform: translateX(90vw);  /* Start from outside the right side */
  }
  100% {
    transform: translateX(-100%);  /* End up outside the left side */
  }
}