body {
    background: #181818;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    padding-top: 56px;
}

@media (min-width: 600px) {
    body {
        padding-top: 60px;
    }
}

.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: #232526;
    display: flex;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 8px #0002;
    padding: 0 1.5rem;
}

.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-right: 1.2rem;
}

.nav-hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    margin: 4px 0;
    transition: 0.3s;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #232526;
    box-shadow: 0 4px 16px #0003;
    padding: 1rem 0;
    gap: 0.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background: #181818;
}

.nav-toggle:checked ~ .nav-menu {
    display: flex;
}

@media (min-width: 600px) {
    .main-nav {
        height: 60px;
        padding: 0 3vw;
    }
    .nav-hamburger {
        display: none;
    }
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 1.5rem;
    }
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
    }
}

.clock-container {
    margin-top: 5vh;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    border-radius: 32px;
    background: linear-gradient(145deg, #232526 0%, #414345 100%);
    padding: 24px;
    max-width: 95vw;
    max-height: 95vw;
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s;
}

canvas#clock {
    display: block;
    background: #222;
    border-radius: 50%;
    box-shadow: 0 0 20px #000a;
    width: 80vw;
    height: 80vw;
    max-width: 380px;
    max-height: 380px;
}

.timer-container {
    margin-top: 32px;
    background: #232526;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 340px;
    transition: box-shadow 0.2s;
}

.timer-container label {
    color: #bdbdbd;
    font-size: 1.05rem;
    margin-bottom: -0.5rem;
}

.timer-input-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    justify-content: center;
}

#timer-hours, #timer-minutes {
    width: 70px;
    height: 48px;
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    border: 2px solid #444;
    background: #181818;
    color: #fff;
    text-align: right;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #0002;
    font-family: 'Roboto', Arial, sans-serif;
}
#timer-hours:focus, #timer-minutes:focus {
    border: 2px solid #4285f4;
    box-shadow: 0 0 0 2px #4285f488;
}

.timer-input-row span {
    color: #bdbdbd;
    font-size: 1.2rem;
    margin: 0 0.2rem;
}

@media (max-width: 600px) {
    #timer-hours, #timer-minutes {
        width: 50vw;
        max-width: 100px;
        min-width: 48px;
        font-size: 1.2rem;
        height: 40px;
    }
}

#timer-start, #timer-stop {
    font-size: 1.1rem;
    padding: 0.4rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: #4285f4;
    color: #fff;
    cursor: pointer;
    margin: 0 0.3rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(66,133,244,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
#timer-start:hover { background: #3367d6; }
#timer-stop {
    background: #e53935;
}
#timer-stop:hover {
    background: #b71c1c;
}

.timer-bar-bg {
    width: 100%;
    height: 28px;
    background: #353535;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: 0 1px 4px #0002;
}

.timer-bar {
    height: 100%;
    width: 0%;
    background: #ea4335;
    border-radius: 14px 0 0 14px;
    transition: width 0.2s linear;
}

#timer-display {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

@media (max-width: 600px) {
    .clock-container {
        margin-top: 2vw;
        padding: 8vw;
    }
    .timer-container {
        max-width: 98vw;
        padding: 16px 4vw 14px 4vw;
    }
    canvas#clock {
        width: 90vw;
        height: 90vw;
        max-width: 98vw;
        max-height: 98vw;
    }
}
