html,
body {
    width: 100vw;
    height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: 0fr 1fr;
    cursor: default;
    background-color: #000;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
}

#title {
    grid-row: 1;
    display: block;
    margin: 16px;
    text-align: center;
}

#flex-container {
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

a {
    width: 256px;
    height: 256px;
    position: relative;
    background-size: cover;
    font-size: 20pt;
    text-decoration: none;
    color: #fff;
}

a span {
    width: 100%;
    position: absolute;
    bottom: 4pt;
    text-align: center;
}

#grapher {
    background-image: url('grapher.png');
}

#fractal-explorer {
    background-image: url('fractal_explorer.png');
}


/* portrait */

@media (max-aspect-ratio: 1/1) {
    #flex-container {
        flex-direction: column;
    }
}


/* landscape */

@media (min-aspect-ratio: 1/1) {
    #flex-container {
        flex-direction: row;
    }
}


/* small width */

@media (max-width: 768px) {
    #title {
        font-size: 20pt;
    }

    a {
        box-shadow: 0 0 16px 0 #555;
    }

    a:hover {
        box-shadow: 0 0 24px 0 #555;
    }
}


/* large width */

@media (min-width: 768px) {
    #title {
        font-size: 32pt;
    }

    a {
        box-shadow: 0 0 24px 0 #555;
    }

    a:hover {
        box-shadow: 0 0 32px 0 #555;
    }
}