/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode (default) */
body {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

/* Dark Mode */
body.dark {
  background-color: #1a1a2e;
  color: #e0e0e0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark header {
  background-color: #16213e;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

header h1 {
  font-size: 1.5rem;
}

/* Theme Toggle Button */
#theme-toggle {
  padding: 8px 16px;
  border: 2px solid #1a1a1a;
  border-radius: 20px;
  background: transparent;
  color: #1a1a1a;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

body.dark #theme-toggle {
  border-color: #e0e0e0;
  color: #e0e0e0;
}

body.dark #theme-toggle:hover {
  background-color: #e0e0e0;
  color: #1a1a1a;
}

/* Main Content */
main {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

main p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  transition: color 0.3s ease;
}

body.dark main p {
  color: #aaa;
}

/* Press me Button */
main button {
  align-self: flex-start;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

main button:hover {
  background-color: #4338ca;
}

main button:active {
  transform: scale(0.97);
}

body.dark main button {
  background-color: #6d63ff;
}

body.dark main button:hover {
  background-color: #5a50e0;
}
