:root {
    --grid-width: 32px;
    --grid: #ECE7DA;
    --grid-border: #E0DBCE;
    --grid-selected: #264653;
    --bg: #94DFBD;
    --navbar-bg: #F2CA50;
    --navbar-highlight: #f0bc1d;
    --grid-source: #e76f51;
    --grid-destination: #2a9d8f;
}

* {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn {
    background-color: #ff9100;
    border: 2px solid black;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    padding: 5px 10px;
    transition: all 0.3s;
}

.btn:hover:enabled {
    background-color: black;
    color: #ff9100;
}

.button-wrapper {
    float: right;
}

.container {
    margin: 0 15px;
}

input[type="radio"] {
    opacity: 0;
    position: fixed;
    width: 0;
}

.input-wrapper label {
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
    width: 45px;
}

.input-wrapper label:hover {
    background-color: #ff9100;
}

.input-wrapper input[type="radio"]:checked+label {
    background-color: var(--navbar-highlight);
}

.grid {
    background-color: var(--grid);
    border: 1px dashed var(--grid-border);
    cursor: crosshair;
    display: inline-block;
    height: var(--grid-width);
    width: var(--grid-width);
    transition: box-shadow 0.6s;
}

.grid:hover {
    filter: brightness(120%);
}

.grid-section {
    /* background-color: #003049; */
    /* background-color: #e9e9e9; */
    background-color: var(--bg);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 40px;
    bottom: 0;
    left: 0;
    right: 0;
}

.grid-selected {
    animation: popup 0.2s;
    animation-timing-function: ease-out;
    background-color: var(--grid-selected);
    border: 1px solid var(--grid-selected);
    position: relative;
}

.grid-path {
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
}

.grid-path-ud {
    background-image: url("../images/path/ud.png");
}

.grid-path-lr {
    background-image: url("../images/path/lr.png");
}

.grid-path-ul {
    background-image: url("../images/path/ul.png");
}

.grid-path-ur {
    background-image: url("../images/path/ur.png");
}

.grid-path-dl {
    background-image: url("../images/path/dl.png");
}

.grid-path-dr {
    background-image: url("../images/path/dr.png");
}

.grid-path-head {
    background-color: blue;
    background-image: none;
    box-shadow: inset 0px 0px 0px 1000px #0000ff66;
    transition: none;
}

.grid-path-endpoint {
    background-color: #3399ff;
    border: 1px solid #3399ff;
}

.grid-source {
    background-color: var(--grid-source);
    border-width: 2px;
    border-style: solid;
    display: inline-block;
}

.grid-destination {
    background-color: var(--grid-destination);
    border-width: 2px;
    border-style: solid;
}

.grid-row-wrapper {
    height: var(--grid-width);
}

.grid-wrapper {
    background-color: white;
    box-shadow: 0px 0px 10px -2px rgba(0, 0, 0, 0.7);
}

.hamburger-wrapper {
    display: none;
}

.input-wrapper {
    float: left;
}

.navbar {
    /* #ff7900 */
    background-color: var(--navbar-bg);
    box-shadow: 0px 0px 10px -2px rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    line-height: 40px;
    z-index: 1;
}

.settings {
    color: transparent;

    margin-left: 9px;
    transition: all 0.3s;
    -webkit-text-stroke: 2px black;
}

.settings:hover {
    color: black;
    -webkit-text-stroke: 2px transparent;
}

#searchButton {
    width: 100px;
}

.notransition * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
    animation: none !important;
}

@keyframes popup {
    0% {
        border: 5px solid var(--grid);
        border-radius: 1px;
    }

    30% {
        border: 1px solid var(--grid);
    }

    31% {
        border: 1px solid var(--grid-selected);
        box-shadow: 0 0 0 0 var(--grid-selected);
    }

    70% {
        border-radius: 1px;
        box-shadow: 0 0 0 2px var(--grid-selected);
    }

    100% {
        border-radius: 0;
        box-shadow: 0 0 0 0 var(--grid-selected);
    }
}