/* styles.css - Shared site-wide styles */

:root {
  --accent: black;
  --bg: #f4f7fa;
  --card-bg: #ffffff;
  --text: black;
  --shadow: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --accent: Violet;
  --bg: #121212;
  --card-bg: #1e1e1e;
  --text: black;
  --shadow: rgba(255, 255, 255, 0.05);
}

/* Hide the native input */
input[type="file"] {
  display: none;
}

/* Style the custom label as a button */
.custom-file-upload label {
  display: inline-block;
  padding: 10px 20px;
  background-color: #444;
  color: white;
  border: 1px solid #888;
  border-radius: 5px;
  cursor: pointer;
  margin: 50% auto 20px auto;
}

.custom-file-upload label:hover {
  background-color: #555;
}

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  data-theme: dark;
}

.container {
  background: var(--card-bg);
  background-color: gray;
  border-radius: 16px;
  padding: 5px;
  width: 60%;
  height: 60%;
  max-width: 800px;
  min-height: 400px;
  margin: 10px auto auto 10px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: width 0.2s ease-in-out;
  justify-content: center;
  text-align: center;
  font-color: black;
}

/* Optional: lighter background for light mode */
body[data-theme="light"] .container {
  background-color: LightSkyBlue; /* Light mode container */
}

body[data-theme="light"] .button-row button {
  background-color: LightCoral; /* Light mode button */
}
body[data-theme="light"] .dark-toggle {
  background-color: black;
  color: white;
  border: 1px solid #ccc;
}

body[data-theme="dark"] .dark-toggle {
  background-color: white;
  color: black;
  border: 1px solid #ccc;
}
.button-row {
  display: flex;
  flex-direction: column; /* 🔁 Stack vertically */
  gap: 0.75em;
  align-items: center;     /* Optional: center horizontally */
  margin: 2em auto;
}

.button-row button {
  flex: none;
  padding: .3em .5em;
  font-size: 0.75em;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: black;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.button-row button:hover {
  background-color: #e55b4f;
  transform: translateY(-2px);
}
.button {
  padding: 1em;
  margin: 0.5em;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
  width: fit-content;
  
}

.button:hover {
  background: #e55b4f;
}

.right-sidebar {
  width: 160px; /* or 300px if you want a leaderboard format */
  min-height: 600px;
}

#preview-image {
  display: none;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1em;
}

#loading-bar-container {
  margin: 1em 0;
  background: #ddd;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

#loading-bar {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}


  h1 {
  color: blue;
  text-align: center;
  margin-bottom: 0.5em;
  font-color: blue;
  }

  h2, h3 {
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5em;
  font-color: black;
  
}

p, li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

ul {
  padding-left: 1.2em;
}

a {
  color: var(--accent);
  text-decoration: underline;
}
.dark-toggle {
  display: inline-block;
  position: relative;
  margin: 1rem 5px 1rem auto;
  padding: 0.5rem 1rem;
  font-size: 0.5rem;
  border: 2px solid;
  birder-color: darkgray;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: fit-content;
}
.dark-toggle:hover {
  background-color: var(--button-hover-bg);
}

footer {
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
  color: var(--text);
  background-color: var(--bg);
  border-top: 1px solid var(--shadow);
  margin-top: auto;
}

footer nav a {
  margin: 0 1em;
  color: inherit;
  text-decoration: underline;
}

.right-adsense {
  position: fixed;
  right: 0;
  top: 100px; /* adjust as needed */
  width: 160px; /* common vertical banner width: 160 or 120 */
  z-index: 1000;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #333;
  color: white;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-size: 0.9em;
}

.cookie-banner button {
  background: white;
  color: black;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-banner a {
  color: lightblue;
  text-decoration: underline;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  p, li {
    font-size: 1.1em;
  }
}