/* Licensed under a BSD license. See ../license.html for license */

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    user-select: none;
}

body {
    background-color: #aaa;
    font-family: Sans-Serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

canvas {
    background-color: #fff;
    width: 100vw;
    height: 100vh;
    flex: 1;
    display: block;
}

.overlay {
    position: fixed;
    bottom: 1.25em;
    right: 1.25em;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.625em;
    border-radius: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.625em;
    color: white;
}

@media screen and (max-width: 600px) {
    html {
        font-size: 10px;
    }
}

@media screen and (max-height: 850px) {
    .overlay {
        flex-direction: row;
        align-items: flex-start;
        gap: 1em;
    }

    .column-left {
        display: flex;
        flex-direction: column;
        gap: 0.625em;
    }

    .column-right {
        display: flex;
        flex-direction: column;
        gap: 0.625em;
    }
}

@media screen and (max-height: 420px) {
    html {
        font-size: 10px;
    }
    .overlay {
        flex-direction: row;
        align-items: flex-start;
        gap: 1em;
    }
}

.controls {
    padding: 0.625em;
}

.nav-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3125em;
}

.horizontal-controls {
    display: flex;
    gap: 1.875em;
}

.zoom-controls {
    display: flex;
    justify-content: center;
    gap: 0.625em;
    margin-top: 0.3125em;
}

.utility-controls {
    display: flex;
    flex-direction: row;
    gap: 0.625em;
    padding: 0.625em;
}

.utility-controls button {
    font-size: 0.875em;
    padding: 0.625em;
    width: auto;
}

.slider-container {
    margin-left: 0.625em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#iterations-slider {
    width: 100%;
    margin-top: 0.3125em;
}

button {
    width: 2.5em;
    height: 2.5em;
    font-size: 1.25em;
    border-radius: 0.3125em;
    background-color: #444;
    color: white;
    border: 0.0625em solid #666;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.info {
    margin-top: 0.625em;
    font-size: 0.875em;
    padding: 0.625em;
    border-style: solid;
    border-radius: 0.5em;
    box-shadow: inset 0.0625em 0.0625em 0.3125em black;
}

.centered {
    text-align: center;
}

.instructions {
    font-size: 0.75em;
    color: grey;
    margin-top: 0.3125em;
    padding: 0.625em;
    border-style: solid;
    border-radius: 0.5em;
    box-shadow: inset 0.0625em 0.0625em 0.3125em black;
}

.footer {
    font-size: 0.75em;
}
