/* styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  image-rendering: pixelated;
}

@font-face {
    font-family: 'Raleway';
    src: url('/fonts/Raleway-ExtraLight.woff2') format('woff2'),
         url('/fonts/Raleway-ExtraLight.ttf') format('truetype'); /* Fallback */
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  background-color: #1e1e1e;
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: white;
}

body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: #00afd7;
  z-index: 1;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

p {
  font-size: 20px;
  padding: 5px 20px;
}

@media (max-width: 600px) {
  h1, h2 {
    font-size: 24px;
  }

  button {
    font-size: 16px;
    padding: 10px;
  }
}

button {
  font-size: 18px;
  padding: 12px 20px;
  margin: 10px;
  font-family: Arial, sans-serif;
  cursor: pointer;
}

#quizModal, #winScreen, #deathScreen, #highScoreScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10;
}

.hidden {
  display: none !important;
}

.quiz-box {
  background: #80276c;
  color: #ffffff;
  padding: 20px;
  border: 4px solid #000;
  max-width: 300px;
  text-align: center;
}

.quiz-box p {
  font-size: 18px;
  margin-bottom: 10px;
}

#options button {
  display: block;
  margin: 8px auto;
  padding: 6px 12px;
  background: #333333;
  color: white;
  border: 2px solid white;
  font-size: 12px;
  cursor: pointer;
}

#options button:hover {
  background: #555;
}

#winScreen h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #ffb845;
}
#winScreen p {
  font-size: 20px;
  margin-bottom: 20px;
  padding: 10px 40px;
  text-align: center;
}

#deathScreen h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #a6192e;
}

.win-link {
  text-decoration: none;
  background: #84bd00;
  padding: 10px 20px;
  border-radius: 8px;
  color: black;
  font-weight: bold;
}

#confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  background: transparent;
}

#startScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #80276c;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* No vertical centering */
  padding-top: 12vh; /* Top padding of 12vh */
  z-index: 1000;
  text-align: center;
}

#startScreen button {
  font-size: 18px;
  margin: 10px;
}

#fullscreenBtn {
  font-size: 14px;
  padding: 8px 16px;
  margin-top: 20px;
  background: #236192;
  color: white;
  border: 2px solid white;
  cursor: pointer;
}
#fullscreenBtn:hover {
  background: #226092;
}
#iosFullscreenModal.hidden {
  display: none !important;
}

#iosFullscreenModal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1001;
  background-color: rgba(0,0,0,0.85);
  width: 100vw;
  height: 100vh;
}

#iosFullscreenModal ol {
  padding-left: 20px;
  margin: 10px 0;
  width: 100%;
  text-align: left; /* Ensure items align properly */
}

#iosFullscreenModal li {
  margin-bottom: 10px;
  padding-left: 8px;
  line-height: 1.6;
}

/* Colors for difficulty buttons */
#easyBtn {
  background-color:  #84bd00; /* Green */
  color: #000; /* Black */
}
#normalBtn {
  background-color: #00afd7; /* Blue */
  color: #000; /* Black */
}
#hardBtn {
  background-color: #ffd733; /* Orange */
  color: #000; /* Black */
}

/* Footer Container */
#footerContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 6vh;
    padding: 6vh;
    height: 15vh; /* 15% of the screen height */
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Left Footer */
#footerLeft {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    max-width: 45%; /* Flexible, but balanced */
    padding-right: 10px;
    flex-shrink: 1;
    overflow: visible; /* Allow text to expand without clipping */
}

#footerLeftText {
    margin: 0;
    padding: 5px 0 !important;
    font-size: min(calc(1.8vh),calc(1.8vw)) !important; /* Base font size scales with viewport height */
    text-align: left;
    border-bottom: 1px solid black; /* Horizontal line */
    width: 100%;
    overflow-wrap: break-word;
    white-space: normal; /* Prevent text clipping */
    max-width: 100%;
}

#footerLeftText_white {
    margin: 0;
    padding: 5px 0 !important;
    font-size: min(calc(1.8vh),calc(1.8vw))!important; /* Base font size scales with viewport height */
    text-align: left !important;
    border-bottom: 1px solid white; /* Horizontal line */
    width: 100%;
    overflow-wrap: break-word;
    white-space: normal; /* Prevent text clipping */
    max-width: 100%;
}


.wulfLogo svg{
    max-height: calc(12vh - 10px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-top: 5px;
}

/* Right Footer */
#footerRight {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    max-width: 45%;
}

#nkpLogo {
    max-height: calc(15vh - 0px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* High Score Screen */
#highScoreScreen h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #ffb845;
}
#highScoreScreen p {
  font-size: 20px;
  margin-bottom: 20px;
  padding: 10px 40px;
  text-align: center;
}

/* Setup the high score table. */
.highscore-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem; /* vertical and horizontal spacing between rows and columns */
  text-align: left;
  font-size: 1rem;
}

.highscore-table thead th {
  background-color: #00afd7;
  padding: 0.75rem 1rem;
  font-weight: bold;
}

.highscore-table tbody td {
  background-color: #00afd7;
  padding: 0.75rem 1rem;
}

