aside {
    min-width: 250px;
}

canvas {
    cursor: pointer;
}

#container {
    margin-left: 1em;
    max-width: 100%;
    overflow: auto;
}

#settings {
    padding: 1em;
    margin-top: 1em;
    background-color: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0px 0px 3px 1px #878484;
    font-size: 0.9em;
}

#settings label,
#controls label {
    min-width: 10em;
    display: inline-block;
    max-width: 12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#settings .actions {
    text-align: center;
    /* margin-top: 0.2em; */
    padding-top: 1em;
}

input[type="number"] {
    width: 4em;
}

input[type="range"] {
    width: 8em;
}

svg path {
    pointer-events: none;
}

svg .clickable {
    cursor: pointer;
}

ul#object-info, ul#small-screen-controls {
    list-style-type: none;
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
    /*margin-left: 0;*/
    min-height: 18.5px;
}

ul#small-screen-controls {
    display: none;
}

ul#small-screen-controls .control {
    cursor: pointer;
}

ul#object-info li, ul#small-screen-controls li {
    display: inline-block;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

ul#object-info li {
    border-left: 1px solid #aaa;
}

ul#object-info li label {
    /* margin-right: 0.5em; */
    font-weight: bold;
}

ul#object-info li .value {
    margin-left: 0.5em;
    /*margin-right: 0.5em;*/
}

ul#object-info li:first-of-type {
    padding-left: 0;
    margin: 0;
    border-left: 0 none;
}

ul#object-info li.type label {
    display: none;
}

ul#object-info li.type .value {
    margin-left: 0;
}

#settings .multi-field {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#settings .field.external {
    display: none;
}

#settings.external-mode .field.external {
    display: initial;
}

#settings.external-mode .field.internal {
    display: none;
}

.field.multi-field > label {
    font-weight: bold;
    margin-bottom: 0.5em;
}

#object-options {
    display: none;
}

#object-options .field {
    padding-left: 0.5em;
}

#object-info .close-btn {
    display: none;
}

#settings.frontal-mode #scale,
#settings.frontal-mode label[for="scale"],
#settings.frontal-mode #display_outdoors,
#settings.frontal-mode label[for="display_outdoors"] {
    pointer-events: none;
    opacity: 0.5;
}

.wall-nav {
    text-align: center;
    display: none;
}

.frontal-mode .wall-nav {
    display: block;
}

.wall-nav-btn {
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.wall-nav-btn.prev {
    margin-right: 1em;
}

.wall-nav-btn.next {
    margin-left: 1em;
}

svg .editing * {
    stroke: #1193b7 !important;
    fill: #39ccf42b !important;
}

@media print {
    
    #settings, header, footer {
        display: none; 
    }

}

/* Smartphones (landscape) ----------- */

@media only screen and (max-width: 600px), (min-width: 320px) and (max-width: 767px)  and (orientation: landscape) {

    main aside {
        display: none;
        position: fixed;
        left: 10px;
        right: 10px;
    }

    main aside.visible {
        display: initial !important;
    }

    ul#object-info {
        position: fixed;
        top: 120px;
        right: 0;
        height: 300px;
        width: 200px;
        background-color: #ffffffc7;
        padding: 1em;
        border: 1px solid #333;
        display: none;
    }

    ul#object-info.visible {
        display: block;
    }

    ul#object-info li {
        display: list-item;
        border-left: 0 none;
    }

    ul#object-info li:first-of-type {
        padding-left: initial;
    }

    ul#object-info li.type{
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        font-weight: bold;
        margin-bottom: 0.7em;
        background-color: #eee;
        padding-bottom: 5px;
        padding-top: 5px;
    }

    #object-info .close-btn {
        position: absolute;
        right: 0.5em;
        /*top: 0.5em;*/
        background-color: #333;
        color: #fff;
        padding: 1px;
        border-radius: 8px;
        display: inline-block;
        width: 16px;
        height: 16px;
        line-height: 14px;
        vertical-align: middle;
        font-size: 16px;
        font-weight: bold;
    }

    ul#small-screen-controls {
        display: block;
    }

    ul#small-screen-controls .control {
        font-size: 2em;
        font-weight: bold;
    }

    ul#small-screen-controls .control.side-panel-toggle.active {
        color: #09acb9;
    }

    #settings {
        background-color: #f0f0f0c9;
        max-height: 65vh;
        overflow: auto;
        margin: auto;
        padding: 1em;
    }

}

@media only screen and (min-width: 320px) and (max-width: 767px)  and (orientation: landscape) {

    header {
        margin-bottom: 0.5em;
        padding-bottom: 0;
    }

    header h1{
        margin-top: 0.3em;
        margin-bottom: 0.3em;
    }

    header .left-header {
        display: grid;
        align-content: center;
        align-items: center;
    }

    header .left-header h1 {
        grid-column: 2;
        grid-row: 1;
    }

    ul#small-screen-controls {
        font-size: 0.8em;
        grid-column: 1;
        grid-row: 1;
    }

    nav.navigation-menu ul {
        margin-top: 0.25em;
        margin-bottom: 0.25em;
    }

    canvas#main {
        max-height: 73vh;
    }

    ul#object-info {
        top: 90px;
    }
}
