* {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: #000;
    color: #fff;
}

.hide {
    display: none;
}

@media screen and (orientation:portrait) {
    /*#landscape {
        display: none;
    }

    #portrait img {
        border-radius: 1rem;
    }

    #portrait img,
    #portrait p {
        width: 90vw;
        margin: 5vw;
        text-align: center;
    }*/

    #portrait {
        display: none;
    }

    #landscape {
        display: grid;
        grid-template-rows: auto 0;
        grid-template-areas: "main"
                             "nav";
    }

    #landscape nav {
        grid-area: nav;
        position: fixed;
        bottom: 0;

        display: flex;
        justify-content: space-around;
        padding: 1rem;
        width: 100%;
    }

    #landscape nav button {
        outline: none;
        border: 2px solid #fff;
        border-radius: 1rem;
        font-size: 1.2rem;
        padding: 1rem;
        color: #fff;
        background-color: #000;
    }

    #landscape main {
        grid-area: main;

        height: calc(100svh - 6rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
    }

    #landscape main header {
        display: flex;
        justify-content: space-between;
    }

    #landscape main #clock {
        font-size: 4rem;
        text-align: center;
    }

    #landscape main #speedometer {
        display: block;
        width: 100%;
        margin: 1rem 0;
        font-size: 8rem;
        text-align: center;
    }

    #landscape main #stats {
        font-size: 2rem;
        margin-top: 1rem;
        text-align: center;
    }
}

@media screen and (orientation:landscape) {
    #portrait {
        display: none;
    }

    #landscape {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    #landscape nav {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding: 1rem;
        height: 100svh;
        /*border: 1px solid #0f0;*/
    }

    #landscape nav button {
        outline: none;
        border: 2px solid #fff;
        border-radius: 1rem;
        font-size: 1.2rem;
        padding: 1rem;
        color: #fff;
        background-color: #000;
    }

    #landscape main {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        /*border: 1px solid #f0f;*/
    }

    #landscape main header {
        display: flex;
        justify-content: space-between;
    }

    #landscape main #speedometer {
        display: block;
        width: 100%;
        margin: 1rem 0;
        font-size: 8rem;
        text-align: center;
    }

    #landscape main #stats {
    }
}
