/* Copyright (c) 2026 Strong Avenue Creative, L.L.C. All rights reserved. */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#panel {
    background: #1c1c1e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    width: min(440px, 92vw);
    color: #f0f0f0;
    font-family: "Montserrat", sans-serif;
}

#panel h1 {
    font-size: 1.8rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: "Archivo Black", sans-serif;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
}

.field input,
.field select {
    background: #2c2c2e;
    border: 1px solid #444;
    border-radius: 8px;
    color: #f0f0f0;
    font-size: 0.95rem;
    padding: 0.55rem 0.75rem;
    width: 100%;
    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: #666;
}

.field input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
}

.field input[type="color"] {
    height: 42px;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

#start-btn {
    margin-top: 1rem;
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.75rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

#start-btn:hover {
    opacity: 0.85;
}

#countdown .unit,
#preview .unit {
    font-size: 0.5em;
    vertical-align: baseline;
    text-transform: uppercase;
}

#countdown {
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#settings-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: rgba(128, 128, 128, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.35;
    transition: opacity 0.2s;
    display: none;
}

#settings-btn:hover {
    opacity: 1;
}

#preview {
    border-radius: 8px;
    margin-bottom: 0;
    padding: 1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.label-fixed {
    min-height: 2rem;
}

#green-screen-link {
    color: #4caf50;
    text-decoration: none;
    font-size: 0.7rem;
}

#green-screen-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    #panel {
        padding: 1.25rem;
    }

    #panel h1 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .field input,
    .field select {
        font-size: 0.85rem;
        padding: 0.45rem 0.6rem;
    }

    .two-col {
        gap: 0.6rem;
    }

    .three-col {
        gap: 0.6rem;
    }
}
