:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --accent-primary: #58a6ff;
  --accent-secondary: #1f6feb;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Ensure body takes full viewport height */
    position: relative;
    transition: background-color 0.5s, color 0.5s;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 10px;
    font-size: 0.875rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s; /* Smooth transition for visibility */
}

/* Fullscreen Mode Styles */
.fullscreen footer {
    display: none; /* Hide footer in fullscreen mode */
}

/* Button and Select Styles */
button, select {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 12px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    white-space: nowrap;
    background-color: #fff;
    color: #000;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover, select:hover {
    background-color: #ddd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

button:active, select:active {
    transform: scale(0.95);
}

/* Clock Styles */
.clock {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-primary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the content horizontally */
    gap: 10px;
    white-space: nowrap; /* Prevent line wrapping */
}

/* Color Modes */
.pitch-dark {
    background-color: #000;
    color: #fff;
}

.classic-white {
    color: #000;
}

.dynamic-color {
    color: #fff;
}

/* Settings Panel Styles */
.settings-panel {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transform: translateY(0);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.settings-panel.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.settings-panel h3 {
    margin-bottom: 10px;
}

#font-size {
    width: 100%;
}

#font-size-value {
    margin-left: 10px;
}

/* Fullscreen Mode */
.fullscreen .settings-panel,
.fullscreen #toggle-fullscreen,
.fullscreen #settings-button {
    display: none;
}

.fullscreen #container {
    display: none;
}

/* Modern buttons */
button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

button:active {
    transform: translateY(0);
}
