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

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Lexend", sans-serif;
    transition: background-color 0.5s ease;
    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%;
}

#time {
    font-size: 5rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

#hex {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Caveat", sans-serif;
    font-size: 15vw;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.5;
    z-index: 10;
    cursor: pointer;
}

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

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

.modal-content {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    color: white;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: "Anton", sans-serif;
    font-size: 1.5rem;
}

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

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

.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;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group button,
#reset-clock-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#reset-clock-btn {
    width: 100%;
}

.input-group button:hover,
#reset-clock-btn:hover,
#date-mode-btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

#date-mode-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
}

.timezone-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

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

#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;
}

#timezone-select option {
    background-color: #333;
    color: white;
}

#timezone-select option:hover {
    background-color: #555;
}

.hidden {
    display: none;
}

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

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

#socials-btn {
    background: transparent;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    font-family: "Caveat", sans-serif;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

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