:root {
    --font-lexend: "Lexend", sans-serif;
    --font-caveat: "Caveat", sans-serif;
    --font-anton: "Anton", sans-serif;
}

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

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-lexend);
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 90%;
    max-width: 800px;
}

.clock-container {
    text-align: center;
    width: 100%;
}

#hex {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-caveat);
    font-size: 15vw;
    font-weight: 300;
    letter-spacing: 2px;
    z-index: 10;
    cursor: pointer;
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.modal-content {
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-anton);
    font-size: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.feature-section {
    margin-bottom: 0.5rem;
}

.feature-section:last-child {
    margin-bottom: 0;
}

.feature-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input,
.input-group select {
    flex-grow: 1;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-lexend);
}

.input-group input:focus,
.input-group select:focus {
    outline: 2px solid white;
    border-color: transparent;
}

button {
    font-family: var(--font-lexend);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
}

.input-group button,
#reset-clock-btn,
#date-mode-btn,
#invert-mode-btn,
#reverse-mode-btn,
#socials-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.input-group button {
    width: auto;
    margin-bottom: 0;
    white-space: nowrap;
}

#reset-timezone-btn {
    font-size: 0.8rem;
}

#socials-btn {
    background: transparent;
    border-radius: 15px;
    padding: 12px 20px;
    font-family: var(--font-caveat);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

#socials-btn:active,
.input-group button:active,
#reset-clock-btn:active,
#date-mode-btn:active,
#invert-mode-btn:active,
#reverse-mode-btn:active {
    transform: scale(0.98);
}

#timezone-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" fill="white"><path d="M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.6-3.6 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.4-13.8z"/></svg>');
    background-repeat: no-repeat, repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 0.65em auto, 100%;
    padding-right: 2em;
    font-size: 0.8rem;
}

.timezone-section {
    padding-top: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.timezone-section .input-group {
    justify-content: center;
    width: 100%;
}

#color-wheel-container {
    display: flex;
    justify-content: center;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    #time {
        font-size: 3rem;
    }
}
