/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  --bg-dark: #121212;
  --text-dark: #f0f0f0;
  --card-bg-dark: #1a1a1a;
  --header-dark: #0f0f0f;
  --accent-color: #00bcd4;
  --bg-light: #f9f9f9;
  --text-light: #222222;
  --card-bg-light: #fff;
  --header-light: #ffffff;
  --accent-color-light: #00bcd4;
  --header-color: var(--header-dark);
}
 
/* ============================================
   BASE
   ============================================ */
html {
  scroll-behavior: smooth;
}
 
body {
  margin: 0;
  padding-top: 80px;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}
 
body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
  --header-color: var(--header-light);
}
 
h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: #00bcd4;
}
 
a {
  color: #00eae1;
  text-decoration: none;
}
 
p a:hover {
  text-decoration: underline;
}
 
/* ============================================
   NAVBAR
   ============================================ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: var(--header-color);
  color: #0f7b89;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 10;
  flex-wrap: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}
 
nav a {
  color: #0f7b89;
  text-decoration: none;
  font-size: 18px;
  opacity: 0.8;
  white-space: nowrap;
}
 
nav a:hover {
  opacity: 1;
}
 
/* ============================================
   LOGO
   ============================================ */
#personalLogo {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  height: 40px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.7);
  transition: box-shadow 0.3s ease;
}
 
#personalLogo:hover {
  box-shadow: 0 0 15px rgba(0, 188, 212, 1);
}
 
/* ============================================
   FIXED BUTTONS (Mode Toggle + Back to Top)
   ============================================ */
#modeToggleBtn,
#backToTopBtn {
  position: fixed;
  top: 22px;
  padding: 6px 12px;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  z-index: 1001;
  font-size: 1rem;
}
 
#modeToggleBtn {
  right: 15px;
}
 
#backToTopBtn {
  right: 145px;
}
 
body.light-mode #modeToggleBtn,
body.light-mode #backToTopBtn {
  border-color: var(--accent-color-light);
  color: var(--accent-color-light);
}
 
#modeToggleBtn:hover,
#backToTopBtn:hover {
  background-color: var(--accent-color);
  color: #000;
}
 
body.light-mode #modeToggleBtn:hover,
body.light-mode #backToTopBtn:hover {
  background-color: var(--accent-color-light);
  color: #fff;
}
 
/* ============================================
   SECTIONS
   ============================================ */
section {
  min-height: 100vh;
  padding: 80px 20px 60px;
}
 
/* ============================================
   HOME — CARD GRID
   ============================================ */
.container {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  animation: fadeIn 1.5s ease;
}
 
.card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*
  cursor: pointer; */
}
 
body.light-mode .card {
  background: var(--card-bg-light);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}
 
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
 
body.light-mode .card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
 
.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.7);
  transition: box-shadow 0.3s ease;
}
 
.card img:hover {
  box-shadow: 0 0 20px rgba(0, 188, 212, 1);
}
 
.card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--accent-color);
  text-align: center;
}
 
body.light-mode .card h3 {
  color: var(--accent-color-light);
}
 
.card p {
  color: inherit;
  line-height: 1.4;
  text-align: center;
}
 
.play-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}
 
.play-button:hover {
  background-color: #0097a7;
  color: #000;
}
 
.spacer {
  height: 60px;
}
 
/* ============================================
   DISCORD BUTTON
   ============================================ */
.discord-btn {
  position: fixed;
  bottom: 10px;
  right: 2rem;
  background-color: #5865F2;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.6);
  transition: background-color 0.3s, transform 0.3s;
  z-index: 1002;
}
 
.discord-btn:hover {
  background-color: #4752c4;
  transform: scale(1.05);
}
 
body.light-mode .discord-btn {
  background-color: #7289da;
}
 
/* ============================================
   ABOUT SECTION
   ============================================ */
.about-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
}
 
.about-page main {
  max-width: 700px;
  width: 90%;
  background: var(--card-bg-dark);
  padding: 2rem 3rem;
  margin-bottom: 4rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease;
}
 
body.light-mode .about-page main {
  background: var(--card-bg-light);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
 
.about-page h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--accent-color);
}
 
body.light-mode .about-page h1 {
  color: var(--accent-color-light);
}
 
.about-page p {
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
 
/* ============================================
   NEWS SECTION
   ============================================ */
.card-container {
  max-width: 1100px;
  margin: 0 auto;
}
 
.news-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
 
.news-card:hover {
  transform: translateY(-3px);
}
 
.news-card h2 {
  margin: 0 0 0.5rem 0;
  color: var(--accent-color);
}
 
body.light-mode .news-card h2 {
  color: var(--accent-color-light);
}
 
.news-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}
 
#welcomeNews {
  text-align: center;
}
 
/* ============================================
   FEEDBACK SECTION
   ============================================ */
#main-feedback {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background: var(--card-bg-dark);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s, color 0.3s;
  box-sizing: border-box;
}
 
body.light-mode #main-feedback {
  background: var(--card-bg-light);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
 
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
 
label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}
 
input[type="text"],
input[type="email"],
textarea {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  resize: vertical;
  min-height: 40px;
  box-sizing: border-box;
  width: 100%;
}
 
textarea {
  min-height: 100px;
}
 
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
 
button {
  background-color: var(--accent-color);
  color: #000;
  font-weight: bold;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
}
 
button:hover {
  background-color: #0097a7;
  color: #fff;
}
 
#thankYouMsg {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
}
 
/* ============================================
   LANGUAGE SELECTOR (currently disabled)
   ============================================ */
#langSelector {
  position: fixed;
  bottom: 10px;
  left: 2rem;
  z-index: 1002;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  background: none;
  color: var(--accent-color);
  font-weight: bold;
  cursor: pointer;
}
 
body.light-mode #langSelector {
  border-color: var(--accent-color-light);
  color: var(--accent-color-light);
}
 
#langSelector:hover {
  background-color: var(--accent-color);
  color: #000;
}
 
body.light-mode #langSelector:hover {
  background-color: var(--accent-color-light);
  color: #fff;
}
 
/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #333;
}
 
/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
/* ============================================
   TABLET — max-width: 900px
   ============================================ */
@media (max-width: 900px) {
  nav {
    gap: 20px;
    padding: 0 10px;
  }
 
  nav a {
    font-size: 16px;
  }
}
 
/* ============================================
   MOBILE — max-width: 750px
   ============================================ */
@media (max-width: 820px) {
  nav {
    height: 50px;
    gap: 12px;
    padding: 0 8px;
    justify-content: center;
  }
 
  nav a {
    font-size: 14px;
    opacity: 0.9;
    flex-shrink: 0;
  }
}
 
/* ============================================
   MOBILE — max-width: 625px
   ============================================ */
@media (max-width: 770px) {
 
  /* Push body down to clear navbar */
  body {
    padding-top: 60px;
  }
 
  /* Nav: make room for logo on left */
  nav {
    height: 50px;
    justify-content: center;
    padding: 0 0 0 70px;
    gap: 10px;
    box-sizing: border-box;
  }
 
  nav a {
    font-size: 13px;
    flex-shrink: 0;
  }
 
  /* Shrink logo */
  #personalLogo {
    height: 30px;
    left: 5px;
  }
 
  /* Move fixed buttons away from navbar, sit above discord button */
  #modeToggleBtn {
    top: auto;
    bottom: 60px;
    right: 10px;
    font-size: 0.72rem;
    padding: 5px 8px;
  }
 
  #backToTopBtn {
    top: auto;
    bottom: 60px;
    right: 115px;
    font-size: 0.72rem;
    padding: 5px 8px;
  }
 
  /* Shrink discord button */
  .discord-btn {
    padding: 7px 10px;
    font-size: 0.85rem;
    bottom: 8px;
    right: 10px;
  }
 
  /* Tighten section padding */
  section {
    padding: 70px 12px 40px;
  }
 
  /* Stack cards to single column */
  .container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
 
  /* Tighten about box padding */
  .about-page main {
    padding: 1.5rem 1.25rem;
  }
 
  /* Tighten news cards */
  .news-card {
    padding: 0.75rem 1rem;
  }
 
  /* Tighten feedback box */
  #main-feedback {
    padding: 1rem;
  }
}
 
/* ============================================
   VERY SMALL — max-width: 400px
   ============================================ */
@media (max-width: 400px) {
  nav a {
    font-size: 11px;
    gap: 6px;
  }
 
  nav {
    padding-left: 55px;
    gap: 6px;
  }
 
  #modeToggleBtn,
  #backToTopBtn {
    font-size: 0.65rem;
    padding: 4px 6px;
  }
 
  #backToTopBtn {
    right: 100px;
  }
}
 

/* Color Flux */
#MainInfoCf {
    padding-top: 10px;
    border: 1px solid rgb(48, 48, 48);
    border-radius: 25px;
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    align-items: center;       /* vertically centres image and text */
    gap: 1.5rem;
    padding: 1.5rem;
}

#MainInfoCf img {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    flex-shrink: 0;            /* stops image squishing */
}

#MainInfoCf h1 {
    --text-vertical-offset: 0px; /* ← adjust this to move text up/down */

    font-size: 3rem;
    color: var(--accent-color);
    margin: 0;
    text-align: left;
    position: relative;
    top: var(--text-vertical-offset);
    color: var(--text-dark);
}