/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #3498db;
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

header .logo {
  cursor: pointer;
}

header nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #f1c40f;
}

/* Footer */
footer {
  background: #1a252f;
  color: #b0bec5;
  padding: 20px 30px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 3px solid #f39c12;
}

footer a {
  color: #90caf9;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  color: #ffb74d;
}

/* Main content / Timer */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* Timer Section (CENTER FIX) */
.timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Timer Display (SIZE FIX 🔥) */
#timer {
  font-size: clamp(48px, 12vw, 140px);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1.1;
}

/* Controls */
.controls {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-inputs {
  margin-bottom: 10px;
}

.time-inputs input {
  width: 60px;
  padding: 5px;
  font-size: 16px;
  margin: 0 5px;
  border-radius: 5px;
  border: none;
  text-align: center;
}

/* Buttons */
.buttons button {
  padding: 5px 12px;
  font-size: 16px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background-color: #28a745;
  color: #fff;
  transition: transform 0.1s ease;
}

.buttons button:hover {
  transform: scale(1.05);
}

#pauseBtn {
  background-color: #ffc107;
  color: #000;
}

#resetBtn {
  background-color: #dc3545;
}

#fullscreenBtn {
  background-color: #007bff;
}

/* Responsive */
@media (max-width: 600px) {
  #timer {
    font-size: clamp(40px, 18vw, 90px);
  }

  header, footer {
    flex-direction: column;
    text-align: center;
  }

  header nav a {
    margin-left: 0;
    margin-top: 5px;
  }

  footer a {
    margin: 0 5px;
  }

  .time-inputs input {
    width: 50px;
    font-size: 14px;
  }

  .buttons button {
    padding: 5px 10px;
    font-size: 14px;
    margin: 3px;
  }
}

/* SEO Text Section */
.seo-text {
  max-width: 800px;
  margin: 40px auto 0 auto;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.6;
}

.seo-text h1, 
.seo-text h2 {
  color: #fff;
}

/* 🔥 FULLSCREEN FIX (PROPER CENTERING) */
:fullscreen,
:-webkit-full-screen {
  width: 100%;
  height: 100%;
}

:fullscreen .timer-section,
:-webkit-full-screen .timer-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

:fullscreen .seo-text,
:fullscreen header,
:fullscreen footer,
:-webkit-full-screen .seo-text,
:-webkit-full-screen header,
:-webkit-full-screen footer {
  display: none !important;
}
/* Theme Toggle Button */
#themeToggle {
  margin-left: 20px;
  padding: 5px 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #fff;
  color: #000;
}

/* LIGHT MODE 🌞 */
/* LIGHT MODE 🌞 (FIXED) */
body.light-mode {
  background-color: #f5f5f5;
  color: #111;
}

/* Header */
body.light-mode header {
  background: #e3f2fd;
  color: #000;
}

body.light-mode header nav a {
  color: #000;
}

/* Footer */
body.light-mode footer {
  background: #ddd;
  color: #000;
}

body.light-mode footer a {
  color: #000;
}

/* Timer */
body.light-mode #timer {
  color: #000;
}

/* Inputs */
body.light-mode .time-inputs input {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
}

/* Buttons */
body.light-mode .buttons button {
  color: #fff;
}

/* SEO text */
body.light-mode .seo-text {
  color: #333;
}

body.light-mode .seo-text h1,
body.light-mode .seo-text h2 {
  color: #000;
}