/* ===================================================
   Variables & Themes
   -----------------------------------------------
   Defines colors and variables for light/dark mode
=================================================== */
:root {
  --bg: #ffffff;        /* main background */
  --bg-light: #ffffff;  /* input/secondary background */
  --text: #111111;      /* main text color */
  --accent: #2c3e50;    /* accent color for links/buttons */
}

body.dark {
  --bg: #121212;
  --bg-light: #1a1a1a;
  --text: #eeeeee;
  --accent: #3498db;
}

/* ===================================================
   Reset & Base Styles
   -----------------------------------------------
   Reset margins, paddings, box-sizing, and base fonts
=================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Architects Daughter', cursive !important; /* default font */
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
  text-align: center;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.noselect {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* ===================================================
   Splash Screen
   -----------------------------------------------
   Full-screen preloader animation
=================================================== */
#splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 1s ease;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash h1 {
  font-size: 4rem;
  color: var(--text);
  user-select: none;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===================================================
   Swiji Title
   -----------------------------------------------
   Unique font and styling for site title
=================================================== */
#swijiTitle {
  font-family: 'Architects Daughter', cursive !important;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  text-align: center;
  margin: 0;
  user-select: none;
  position: static; /* default desktop position */
}

/* ===================================================
   Main Content
=================================================== */
main {
  max-width: 600px;
  margin: auto;
  padding: 2rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

main p {
  line-height: 1.5;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: left;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }