/* Monospace */
/* @font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/share_tech_mono/share_tech_mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} */
/* Typewriter */
/* @font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/special_elite/special_elite.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} */
/* Impactfull */
/* @font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cinzel_decorative/cinzel_decorative.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} */
/* Handwriting */
/* @font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dancing_script/dancing_script.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} */

@media (max-width: 76rem) {
}

@media (max-height: 32rem) {
  header, footer {
    display: none !important;
  }
  #score-value {
    font-size: x-large !important;
  }
  #score-title {
    font-size: larger !important;
  }
  #event-log {
    font-size: large !important;
  }
  #text-overlay, #text-area, #subtitle, #report-status, #score-text {
    font-size: medium !important;
  }
  #game-stats, .phase-segment, #report-status {
    font-size: smaller !important;
  }
  #button-container button {
    font-size: small !important;
  }
}

/* Style for the loading screen */
#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(9, 10, 17, 1);
  display: flex;
  flex-direction: column; /* Align items vertically */
  justify-content: center;
  text-align: center;
  align-items: center;
  box-sizing: border-box;
  padding: 1rem;
  white-space: pre-wrap;
  z-index: 1000; /* Ensure it's above all other content */
}

/* Simple loader animation */
#loader {
  border: .5rem solid #f4f1ee; /* Light grey border */
  border-top: .5rem solid #c9a66b; /* Blue border for the top part */
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  animation: spin 1s linear infinite;
}

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

#landscape-prompt {
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.5rem;
  box-sizing: border-box;
  padding: 1rem;
  white-space: pre-wrap;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: 'Cinzel Decorative';
  /* font-weight: bold; */
  font-size: larger;
  text-shadow: .1rem .1rem .1rem #090a11;
  background-color: rgba(9, 10, 17, 1);
  color: #f4f1ee;
  display: flex;
  visibility: hidden; /* Initially not visible */
  opacity: 0;
  /* transition: all 1s; */
  z-index: 900;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 800; /* Ensure it appears above other content and below landscape-prompt */
  background-color: rgba(9, 10, 17, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s;
  cursor: pointer;
}

#splash img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* Ensures the image covers the entire overlay */
}

/* Additional Textures and Patterns (replace URLs with actual image paths) */
.body-background {
  background-image: url('path_to_steampunk_background_texture.jpg');
  background-size: cover;
}

.header-footer-texture {
  background-image: url('path_to_steampunk_header_footer_texture.jpg');
  background-size: cover;
}

* {
  padding: 0;
  margin: 0;
}

body, html {
  background: #090a11;
  font-family: 'Special Elite';
  height: 100%;
  overflow: auto;
  color: #090a11;
  /* Disable text selection */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;         /* Non-prefixed version, currently supported by Chrome, Opera and Safari */
  -webkit-user-drag: none;   /* Disable element dragging */
}

img {
  pointer-events: none; /* Disable image manipulation */
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* min-width: 1280px; */
  /* min-height: 720px; */
  /* min-width: 76rem; */
  /* min-height: 42rem; */
}

body .body-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.6; /* Adjust opacity for background texture */
}

header, footer, #phase-segment, button, #image-container {
  background-color: #090a11;
}

.header-footer-texture {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

/* Adding pseudo-elements for extra decorative details */
header::before, footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  /* Creating a border-like effect with shadows */
  box-shadow: inset 0 8px 8px -8px #090a11, inset 0 -8px 8px -8px #090a11;
  z-index: -1;
}

/* Texture for backgrounds (replace 'your_texture_url' with actual image URL) */
.header-footer-texture {
  background-image: url('your_texture_url');
  background-size: cover;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* If you want to hide overflow */
  flex-shrink: 0;
  height: 15%;
  padding: 1rem;
}

header img {
  height: 100%;
}

footer {
  display: flex;
  align-items: center; /* Vertically centers the content */
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: smaller;
  color: #c9a66b;
  font-family: 'Cinzel Decorative';
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
  /* text-transform: uppercase; */
}

#language {
  margin-left: auto;
}

.language-option {
  font-family: Cinzel Decorative;
  font-weight: bold;
  cursor: pointer;
  color: #f4f1ee; /* Mimic link color */
  /* padding: 0 1rem; */
}

.language-option:hover {
  color: #c9a66b;
}

#footer-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Centers the text exactly */
  text-align: center;
}

#footer-logo {
  margin-right: auto;
}

#logo-ai {
  height: 2rem;
}

@keyframes flashRed {
  50% {color: red;}
  75% {color: white}
}

@keyframes flashGreen {
  50% {color: green;}
  75% {color: white}
}

@keyframes flashAll {
  25% {color: red;}
  50% {color: green;}
  75% {color: white}
}

.flash-red {
  animation: flashRed 2s;
}

.flash-green {
  animation: flashGreen 2s;
}

.flash-all {
  animation: flashAll 2s;
}

@keyframes centerUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-75%);
    opacity: 0;
  }
}

@keyframes downCenter {
  from {
    transform: translateY(75%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes centerDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(75%);
    opacity: 0;
  }
}

@keyframes upCenter {
  from {
    transform: translateY(-75%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sliding {
  animation-duration: 1s; /* Duration of the animation */
  animation-fill-mode: forwards; /* Makes the element hold the last keyframe */
}

.status-bar {
  background-color: #f4f1ee;
  /* border-top: 2px solid #503c33; */
  font-family: 'Share Tech Mono';
  border-bottom: .1rem solid #503c33;
  box-shadow: 0 0 .5rem 0 #090a11;
  position: relative;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: transparent; /* Keeping the main content's background consistent with the body */
}

#game-stats {
  display: flex;
  justify-content: space-evenly;
  font-size: medium;
  font-weight: bold;
  padding: .75rem;
  line-height: 1;
  white-space: nowrap;

}

#risk {
  /* Limited risk */
  width: 13ch;
}

#schedule {
  /* Ahead of schedule */
  width: 18ch;
}

.character {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: all 0s !important;
  transition: opacity 1s !important;
}

#character-dpo {
  /* DPO & AI 💲×00 */
  width: 14ch;
}

#character-business {
  /* Business 🗓️×00 */
  width: 15ch;
}

#character-it {
  /* IT 💲×00 */
  width: 8ch;
}

#character-security {
  /* Security 🔒×00 */
  width: 14ch;
}

#game-content {
  background-color: #f4f1ee;
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  overflow: hidden;
}

#image-container, #text-container, #event-container {
  flex-basis: 33.33%;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  /* border: 1px solid #503c33; */
  box-shadow: 0 0 .5rem 0 #090a11; /* Adding shadows for depth */
  border-bottom: none;
}

#image-container {
  display: flex;        /* Enables flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  overflow: hidden;     /* Prevents image from overflowing */
  /* box-shadow: none; */
}

#image-container img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 1s; /* Adjust the time as needed */
}

#text-overlay {
  justify-content: center;
  align-items: center;
  text-align: justify;
  line-height: 1.5rem;
  box-sizing: border-box;
  padding: 1rem;
  white-space: pre-wrap;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: 'Cinzel Decorative';
  /* font-weight: bold; */
  font-size: large;
  text-shadow: .1rem .1rem .1rem #090a11;
  background-color: rgba(9, 10, 17, 0.75);
  color: #f4f1ee;
  display: flex;
  visibility: hidden; /* Initially not visible */
  opacity: 0;
  transition: all .5s; /* Smooth transitions */
}

#text-container {
  position: relative;
  box-shadow: none;
  line-height: 1.25;
  transition: opacity 1s; /* Smooth transition for opacity */
  /* background-color: #654321;
  color: #f4f1ee; */
}

#text-area {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  overflow: auto; /* In case of overflow */
  padding: 1rem;
  padding-bottom: 0;
  /* font-family: 'Special Elite'; */
  font-size: larger;
  white-space: pre-wrap;
  /* Smooth scroll */
  scroll-behavior: smooth;
  /* background-color: #faf8f5; */
  hyphens: auto;
}
#subtitle {
  font-size: large;
  font-weight: normal;
  font-weight: normal;
  padding-top: 1rem;
}
#score-title {
  font-size: x-large;
  font-weight: bold;
}
#score-value {
  font-size: xx-large;
  font-weight: bold;
  margin-top: -1rem;
}
#score-text {
  font-size: large;
  font-weight: normal;
  margin-top: -1.25rem;
}
#report-status {
  font-size: medium;
  font-weight: normal;
}

#button-container {
  display: flex;
  /* justify-content: center; */
  justify-content: stretch;
  gap: 1rem; /* Using rem for consistent spacing */
  padding: 1rem;
  position: relative;
  z-index: 2; /* Ensures buttons are above the overlay */
  /* background: #faf8f5; */
  transition: opacity 1s; /* Smooth transition for opacity */
}

#button-container button {
  padding: 1rem .5rem;
  cursor: pointer;
  color: #f4f1ee;
  border: .1rem solid #c9a66b;
  border-radius: .25rem;
  /* font-family: 'Special Elite'; */
  font-family: 'Cinzel Decorative';
  font-weight: bold;
  font-size: smaller;
  /* text-transform: uppercase; */
  /* text-shadow: 1px 1px 2px #090a11; */
  position: relative;
  flex: 1;
  text-overflow: ellipsis;
  transition-property: background-color, color;
  transition-duration: .5s;
  box-shadow: .1rem .1rem .5rem #090a11;
  display: none;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) { /* Avoid sticky hover on mobile */
  #button-container button:hover {
    background-color: #c9a66b;
    color: #090a11;
  }
}

#button-container button:active {
  background-color: #c9a66b;
  color: #090a11;
}

/* #button-container button::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #c9a66b;
  z-index: -1;
  transform: scale(0);
  transition: transform 0.3s;
}

#button-container button:hover::after {
  transform: scale(1);
} */

#event-log {
  flex-grow: 1;
  overflow: auto;
  padding: 1rem;
  font-family: 'Dancing Script';
  font-size: larger;
  line-height: normal;
  /* Smooth scroll */
  scroll-behavior: smooth;
  transition: opacity 1s; /* Smooth transition for opacity */
  hyphens: auto;
  text-align: justify;
}

#event-log h3, #event-log p, #event-log b {
  display: block;
  margin-bottom: 1rem;
  line-height: 1.25;
  transition: opacity 1s; /* Smooth transition for opacity */
}

#event-log p:has(+ h3) {
  margin-bottom: 2rem;
}

#progress-bar-container {
  display: flex;
  width: 100%;
  position: relative;
}

.phase-segment {
  background-color: #090a11; /* Slightly different background color for segments */
  color: #f4f1ee; /* White text for labels */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: medium;
  border-style: solid;
  border-width: .1rem 0 .1rem .1rem; /* Separator line */
  box-sizing: border-box; /* Border does not occupy space  */
  padding: .25rem 0;
}

.phase-segment:first-of-type {
  border-left: none;
}

.phase-label {
  z-index: 2; /* Ensure progress bar is above the background */
  transition: color 2s; /* Adjust the time as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: normal;
}

#progress-bar {
  background-color: #c9a66b; /* Consistent color for the progress */
  width: 0%; /* Initial width */
  transition: width 2s; /* Smooth transition for width change */
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 1; /* Ensure progress bar is above the background */
  border: none; /* Separator line */
}

#progress-bar-container, #progress-bar {
  background-color: #c9a66b; /* Dark copper-like color */
}

.phase-segment, .phase-label, #progress-bar {
  border-color: #c9a66b; /* Use the brass-like color for separators */
}

.audio {
  display: none;
}
