body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #000;
    color: #fff;
    overflow: hidden !important;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: #fff;
    color: #000;
}

.container {
    position: relative;
    width: 100%;
}

.header-right {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    padding: 1rem;
}

.theme-switch, .format-switch {
    display: flex;
    position: relative;
    width: 64px;
    height: 64px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #444;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode .theme-switch, body.light-mode .format-switch {
    background: #ddd;
    color: #000;
}

.theme-switch:hover, .format-switch:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

body.light-mode .theme-switch:hover, body.light-mode .format-switch:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.format-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
}

body.light-mode .format-text {
    color: #000;
}

.time-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 2rem;
    height: 100vh;
}

.current-time-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 50%;
    justify-content: flex-start;
    padding: 6rem 0 0 0;
}

.location-time-section {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
}

body.light-mode .location-time-section {
    border-top: 2px solid rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 1.25rem;
    letter-spacing: .125rem;
    font-weight: 400;
    opacity: 75%;
}

h2 {
    margin-top: 20px;
    font-size: 1.5rem;
}

.current-time {
    font-size: 13vw;
    letter-spacing: 0.25rem;
    font-align: left !important;
}

.time {
    margin-top: .75rem;
    letter-spacing: 0.125rem;
    opacity: 100% !important;
    font-size: 1.5rem;
}

.location {
    opacity: 50%;
    letter-spacing: 0.125rem;
    font-weight: 600;
    font-size: 1rem;
}

.location-time {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.location-time > div {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo {
    position: fixed;
    top: 32px;
    left: 32px;
    height: 24px
}

.logo img {
    width: 100%;
    height: 100%;
}

body.light-mode  .logo img {
    filter: invert(1) !important;
}

@media (max-width: 800px) {
    .logo {
        position: fixed;
        top: 16px;
        left: 16px;
        height: 2rem !important;
    }

    .logo img {
        width: 100%; 
        height: 2rem !important;
    }

    h1 {
        font-size: 1rem !important;
        font-weight: 300 !important;
    }

    .time-container {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        padding: 6rem 1rem;
        height: 100%;
        text-align: left;
    }

    .location-time-section {
        padding: 0;
    }

    .current-time-section {
        padding: 1rem 0;
    }

    .header-right {
        top: auto !important;
        right: 0;
        bottom: 0;
    }

    body {
        overflow: scroll !important;
    }

    .location-time {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
    }

    .location-time > div {
        padding: 8px 0;
        display: flex;
        flex-direction: column;
        text-align: left;
        width: 100%;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }

    body.light-mode .location-time > div {
        padding: 8px 0;
        display: flex;
        flex-direction: column;
        text-align: left;
        width: 100%;
        border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    }

    body.light-mode .location-time-section {
        padding: 0;
    }
}
