html {
    background-color: black;
    color: hsl(0 0 60);
    font-size: 20px;
    line-height: 1.2;
    font-size-adjust: 0.5;
    font-family: sans-serif;
    text-align: center;
    
    --small-width: 600px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

button {
    appearance: none;
    border-style: none;
    color: inherit;
    background-color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-size-adjust: inherit;
    cursor: pointer;
    display: block;
    width: unset;
    text-align: unset;
    font-family: unset;
}

a {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* ---------------------------------------------------------------------- */

body {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: center;
}

header {
    width: 100%;
    flex: 0 0 0;
}

nav {
    
    width: 100%;
    flex: 0 0 0;
    
    display: flex;
    flex-direction: row;
    align-items: center;
	justify-content: center;
    
    @media (width < 600px) {
        order: 10;
    }

    & > * {
        flex: 1 0 0;
    }
}

main {
    width: 100%;
    flex: 1 0 0;

    & > section {
        display: none;
        height: 100%;
    }

    &#graph > section.graph {display: block;}
    
    &#timer > section.timer {display: flex;}
    
    &#calendar > section.calendar {display: block;}
    
}

section.timer {  
    flex-direction: row;
    align-items: center;
	justify-content: center;
    
    & > div {
        flex: 1 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-height: 100%;
    }
    
    & > aside {
        flex: 0 0 0;
        
        @media (width < 600px) {
            display: none;
        }
    }
}

.settings {
    display: none;
}

#counter {
    width: 50%;
    max-height: 50vh;
    display: grid;
    
    @media (width < 600px) {
        width: 90%;
    }

    & > * {
        grid-column: 1;
        grid-row: 1;
    }
    
    & > p {
        display: flex;
        align-items: center;
        justify-content: center;
        
        z-index: 10;
        
        font-size: 3rem;
        font-weight: bold;
        font-family: monospace;
    }

    & > svg {
        width: 100%;
        max-height: 100%;
    }
}

