/* Base Layout */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* Header & Footer */
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;
}

.logo {
  cursor: pointer;
}

nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f1c40f;
}

footer {
  background: #1a252f; /* Darker slate blue/gray */
  color: #b0bec5;      /* Soft light blue-gray text */
  padding: 20px 30px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 3px solid #f39c12; /* Accent orange top border */
}

footer a {
  color: #90caf9;      /* Light blue links */
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  color: #ffb74d;      /* Warm amber hover */
}

/* Main Section */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Theme Selector */
.theme-selector {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 8px;
  z-index: 2;
}

/* Timer Inputs */
.timer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.circle {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.circle input {
  width: 60px;
  font-size: 1.6rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: bold;
  z-index: 1;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.circle label {
  z-index: 1;
  margin-top: 5px;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.red {
  background-color: #e74c3c;
  color: white;
}

.green {
  background-color: #2ecc71;
  color: white;
}

/* Fullscreen Behavior */
body.fullscreen .page-header,
body.fullscreen .page-footer {
  display: none;
}

body.fullscreen .theme-selector {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001; /* make sure it’s above the timer */
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 10px;
  display: flex; /* keep it visible */
  color: white;
}

body.fullscreen {
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
  .circle {
    width: 100px;
    height: 100px;
  }

  .circle input {
    width: 40px;
    font-size: 1.2rem;
  }

  .buttons {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

/* Popup styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 30px 40px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
  animation: slideUp 0.4s ease;
  max-width: 90%;
  width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 25px;
}

.popup-content button {
  background-color: #2ecc71;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.popup-content button:hover {
  background-color: #27ae60;
}

.popup-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #f1f1f1;
  opacity: 0.8;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { background: rgba(0, 0, 0, 0); }
  to { background: rgba(0, 0, 0, 0.6); }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive tweaks for popup */
@media screen and (max-width: 400px) {
  .popup-content {
    width: 90%;
    padding: 20px;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }

  .popup-content p,
  .popup-content button {
    font-size: 0.9rem;
  }
}
body.fullscreen header,
body.fullscreen footer {
  display: none;
}
.main-title {
  font-size: 1.8rem;          /* smaller than default H1 */
  font-weight: 600;           /* nice bold but not too heavy */
  color: #2c3e50;             /* dark blue-gray, matches footer colors */
  text-align: center;         /* center aligned for focus */
  margin: 15px 0 30px 0;      /* spacing above and below */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.03em;     /* subtle spacing */
}
body.default-theme {
  background: url('/images/default.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.winter-theme {
  background: url('images/winter.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.summer-theme {
  background: url('images/summer.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.workout-theme {
  background: url('images/workout.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.meditation-theme {
  background: url('images/meditation.jpg') no-repeat center center fixed;
  background-size: cover;
}
body {
  transition: background-image 0.5s ease-in-out;
}
