/* Styling for the Chaos Game application */

/* ============================
    Table of content
    ----------------
    1. Global
        - Fonts
        - Selection
    2. Components
        2.1 Controls
            - Settings Dot
            - Reload
        2.2 Settings Menu
            - Input Box
        2.3 Hover Styling
=============================== */

/* ============================
    1. Global
=============================== */

/* -- Fonts -- */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');
/* Robot Mono from Google Font */

/* -- Selection -- */

/* Disable highlight rectangle on mobile */

* {
    -webkit-tap-highlight-color: #ffffff00;
}

/* Selection */

::-moz-selection {
    color: #aaaaaa;
    background: #B01A00;
}

::selection {
    color: #aaaaaa;
    background: #B01A00;
}

/* ============================
    2. Components
=============================== */

/* -- 2.1 Controls -- */

div.controls {
    position: absolute;
    display: inline-block;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 20px;
}

.control-button {
    background-color: #00000000;
    outline: none;
    border: none;
}

/* Makes controls non-selectable */

.non-selectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* -- Settings Dot -- */

.settings-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    background-color: #00000000;
    border: 3.5px solid #6e6e6e;
    border-radius: 50%;
    transition: all .15s ease-in-out;
}

/* Hover styling at the end of this section */

.control-button:focus .settings-dot {
    border-color: #000000;
    background-color: #B01A00;
}

.settings-dot:active {
    border-color: #000000;
    background-color: #d43417;
}

/* -- Reload -- */

.reload {
    color: #6e6e6e;
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    transition: all .15s ease-in-out;
}

.reload:focus {
    color: #B01A00;
}

.reload:active {
    color: #d43417;
}

/* Hover only on mouse devices, prevent sticky behavior on mobile */

@media (hover: hover) and (pointer: fine) {
    .settings-dot:hover {
        border-color: #000000;
        background-color: #B01A00;
        cursor: pointer;
    }
    .reload:hover {
        color: #B01A00;
        cursor: pointer;
        font-weight: bold;
    }
}

/* -- 2.2 Settings Menu -- */

.side-nav {
    position: fixed;
    height: 100%;
    width: 300px;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #00000000;
    color: #6e6e6e;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    overflow-x: hidden;
    padding-top: 60px;
    padding-left: 20px;
    transition: 0.5s;
}

/* Soft black box around text */

.text {
    background-color: #000000d3;
}

/* -- Input Box -- */

input.input-box {
    min-width: 10px;
    width: 20px;
    background-color: #00000000;
    outline: none;
    border-width: 0;
    border-bottom: #aaaaaa solid 2px;
    color: #6e6e6e;
    text-align: center;
    font: inherit;
    caret-color: #aaaaaa;
    transition: all .3 ease-in-out;
}

input.input-box:active {
    border-color: #B01A00;
}

input.input-box:hover {
    border-color: #d43417;
}

/* Hides arrows */

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}