/* Include Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Biryani:wght@200;300;400;600;700;800;900&family=Platypi:ital@0;1&display=swap');/* Ensure the body and html take up the full height of the viewport */
html, body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: 'Biryani', sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    background-color: rgba(0, 38, 0, 0.8); /* fallback color */
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Home-only helpers */
.glass-left {
    text-align: left;
}

.subscribe-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.subscribe-text {
    flex: 1 1 60%;
}

.subscribe-form {
    flex: 1 1 40%;
    margin: 0; /* override default form centering */
    max-width: 420px; /* allow a slightly wider form on desktop */
}

@media (max-width: 768px) {
    .subscribe-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .subscribe-form {
        max-width: none;
        width: 100%;
    }
}

header {
    background: rgba(0, 38, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10; /* ensure dropdown overlays content */
}

header h1 {
    margin: 0;
    font-family: 'Platypi', sans-serif;
    color: white;
    font-weight: 700;
    font-size: 1.5em;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

/* Style the navigation */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    position: relative;
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff; /* Shiny gold elements */
    text-decoration: none;
    padding: 10px 15px;
    font-family: 'Platypi', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8); /* Gold glow */
}

nav ul li ul {
    display: none;
    position: absolute;
    background-color: #013301; /* Slightly lighter dark green */
    list-style-type: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 20; /* higher than header to overlay glass panels */
}

nav ul li ul li a {
    display: block;
    padding: 10px;
    color: #ffcc00; /* Shiny gold elements */
}

nav ul li:hover ul {
    display: block;
}

main {
    padding: 40px;
    text-align: center;
    flex: 1;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px); /* Adjust based on your header and footer height */
}

main > * {
    max-width: 800px;
    width: 100%;
}

main h2 {
    font-family: 'Platypi', sans-serif;
    font-weight: 700;
    font-size: 2em;
    margin-bottom: 20px;
}

main p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Pomodoro styles */
.pomodoro {
    display: grid;
    gap: 16px;
    justify-items: center;
}

.pomodoro .mode-toggle {
    display: flex;
    gap: 8px;
}

.pomodoro .mode-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.pomodoro .mode-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: #ffcc00;
    color: #ffcc00;
}

.pomodoro .timer-display {
    font-family: 'Platypi', sans-serif;
    font-size: 4rem;
    letter-spacing: 2px;
}

.pomodoro .controls {
    display: flex;
    gap: 10px;
}

.pomodoro .settings form {
    display: grid;
    gap: 10px;
    text-align: left;
}
.pomodoro details.info {
    text-align: left; /* let details width be auto so it's centered by grid */
}

.pomodoro details.info .info-content {
    margin: 10px auto; /* center like the settings form */
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px;
    max-width: 600px;
    width: 100%;
}

.pomodoro details summary {
    cursor: pointer;
}


.pomodoro .settings label {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.pomodoro .settings label.toggle {
    grid-template-columns: 1fr auto;
}

.pomodoro input[type="number"] {
    width: 90px;
}

/* Inline unit label for the long-every row */
.pomodoro .settings label.has-unit {
    grid-template-columns: auto 120px auto;
}

.pomodoro .settings label.has-unit .unit {
    color: #ddd;
    margin-left: 6px;
}

/* Style the forms */
form {
    margin: 20px auto;
    max-width: 350px; /* Adjusted width */
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Text-like inputs only (avoid styling checkboxes/radios like text boxes) */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea {
    font-family: 'Biryani', sans-serif;
    display: block;
    width: calc(100% - 24px); /* Adjust width to fit inside form */
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

input::placeholder, textarea::placeholder {
    color: #ddd;
}

button {
    display: block;
    width: calc(100% - 1px); /* Adjust width to match input fields */
    padding: 12px; /* Ensure button height matches input fields */
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    background-color: #ffcc00; /* Shiny gold */
    color: #ffffff; /* Dark forest green */
    cursor: pointer;
    font-family: 'Platypi', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

button:hover {
    background-color: rgba(0, 38, 0, 0.8);
}

/* Make the Pomodoro settings form span the full panel width and override global form width */
.pomodoro .settings form {
    max-width: none !important; /* override global form max-width */
    width: 100% !important;
}

/* Checkbox styling for settings */
.pomodoro .settings input[type="checkbox"] {
    width: auto;
    height: auto;
    transform: scale(1.2);
    accent-color: #ffcc00; /* gold */
    margin-left: 8px;
}

/* Deck tracker styles */
.deck-input {
    width: 100%;
    max-width: 800px;
    min-height: 160px;
    font-family: 'Biryani', sans-serif;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.deck-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.deck-persist-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
}

.deck-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.deck-column h3 {
    margin-top: 0;
}

.card-group {
    margin-bottom: 18px;
}

.card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.card-name {
    text-align: left;
}

.checks {
    display: flex;
    gap: 6px;
}

/* Modernized check similar to original, using site green */
.check {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.check:hover { border-color: rgba(255,255,255,0.6); }

.check.active {
    background: rgba(0, 38, 0, 0.9); /* dark forest green */
    border-color: rgba(0, 38, 0, 1);
    color: #ffcc00; /* keep check glyph visible; optional */
    font-weight: 700;
}

.empty-hint {
    opacity: 0.8;
    font-size: 0.95em;
}

/* Hide tool pages by default */
.tool-page {
    display: none;
}

footer {
    background: rgba(0, 38, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 10px 40px;
    position: relative;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-quote {
    font-family: 'Platypi', sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    color: #ffcc00;
}

.footer-social a {
    color: #ffcc00;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    color: #ffdd33;
}

.footer-social svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.artwork-info {
    font-family: 'Platypi', sans-serif;
    font-size: 0.9em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Adjust main content to account for footer */
main {
    padding-bottom: 60px; /* Increase this value if needed */
}

.project-list {
    list-style-type: none;
    padding-left: 0;
}
