@font-face {
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    font-family: "Orbitron";
    src: local('Orbitron'),
    url("https://www.core11.eu/fonts/orbitron/orbitron600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-weight: 400;
    font-display: swap;
    font-family: "Orbitron";
    src: local('Orbitron'),
    url("https://www.core11.eu/fonts/orbitron/orbitron400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    margin: 0;
    margin-top: 5px;
    color: white;
    background-color: black;
    font-family: "Montserrat", Sans-Serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
}

a {
    color: #eee;
}

#logo {
    width: 300px;
    display: inline;
}
@media (width <= 1080px) {
    #logo {
        width: 200px;
        margin: 0 auto;
        display: block;
    }
}

#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
    column-gap: 30px;
}
#headerSpacer {
    flex-grow: 1;
}
#headerLeftWrap {
    display: flex;
    align-items: center;
}
@media (width <= 1080px) {
    #header {
        display: flex;
        flex-direction: column;
    }
    #headerLeftWrap {
        flex-direction: column;
        margin-bottom: 20px;
    }
    #xrMessage {
        margin-bottom: 10px;
    }
}

/* XR message */
#xrMessage {
    display: flex;
    align-items: center;
    text-align: center;
    background-color: #404040;
    border-radius: 5px;
    padding: 10px;
    column-gap: 15px;
    row-gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}
#openVideoButton {
    display: inline-block;
}
#videoContainer {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.53);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
#videoContainer div {
    display: flex;
    flex-direction: column;
    align-items: end;
}
#videoContainer div button {
    width: 120px;
}
#videoContainer video {
    width: 100%;
    max-height: 700px;
}
#closeVideoButton {
    margin-bottom: 10px;
}

#loading {
    position: absolute;
    text-align: center;
    font-size: 30px;
    background-color: green;
    padding: 10px;
}

#hideControlPanelBtn {
    margin-bottom: 10px;
    width: 110px;
}

#showControlPanelBtn {
    float: right;
    display: none;
    align-self: start;
}

details {
    cursor: pointer;
}

.canv {
    display: inline-block;
}

output {
    font-family: Monospace;
    font-size: 10px;
}

#colormapImg {
    width: 100%;
    max-width: 600px;
    height: 40px;
    border-radius: 5px;
}

@media all and (width <= 600px) {
    #mainCanv, #plainCut0Canv, #plainCut1Canv {
        width: 100%;
        padding-top: 100%;
    }
}


@media all and (width > 600px) {
    #mainCanv, #plainCut0Canv, #plainCut1Canv {
        width: 600px;
        height: 600px;
    }
}

#content {
    position: absolute;
    top: 0;
    z-index: 1;
    margin-top: 10px;
    width: 100%;
}

canvas {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
}

.flex-grid .control {
    display: grid;
    grid-template-columns: 220px 150px 80px;
    align-items: center;
}

#controlPanel {
    display: inline-block;
    max-width: 90%;
}

@media all and (width > 1080px) {
    details > div {
        margin-left: 25px;
    }

    #controlPanel {
        padding: 20px;
        right: 10px;
        width: 750px;
        outline: solid 1px;
        border-radius: 20px;
    }

    #generalControls {
        margin-bottom: 10px;
    }
    #generalControls div {
        display: inline-block;
    }

    .sliderGrid {
        display: contents;
    }

    .control {
        margin-top: 4px;
    }

    output {
        font-size: 12px;
        /*margin-left: 10px;*/
    }
}

@media all and (width <= 1080px) {
    html {
        font-size: 15px;
    }
    details {
        margin-top: 15px;
    }

    #content {
        margin-top: 0px;
    }

    select, input, button {
        font-size: 12px;
    }

    #generalControls {
        width: 100%;
    }
    #generalControls div {
        display: grid;
        grid-template-columns: 45% 45%;
        align-items: center;
        margin-bottom: 10px;
    }

    .flex-grid .control {
        display: grid;
        grid-template-columns: 40% 60%;
        /*margin-top: 10px;*/
        align-items: center;
    }

    #hideControlPanelBtn, #showControlPanelBtn {
        margin-bottom: 10px;
    }
    #showControlPanelBtn {
        align-self: center;
        display: block;
        margin-top: 10px;
    }

    #controlPanel {
        display: none;
        position: relative;
        padding: 10px;
        border-radius: 10px;
        outline: 2px solid white;
        margin-top: 20px;
        width: 90%;
    }

    .sliderGrid {
        display: grid;
        place-items: center;
    }
    .sliderGrid input[type="range"] {
        width: 100%;
        max-width: 300px;
    }
}

#colormapContainer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}


#canvasContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

#canvasContainer div {
    flex-shrink: 0;
}
@media all and (width <= 1080px) {
    #canvasContainer > div {
        flex-grow: 1;
        width: 100%;
        max-width: 600px;
    }
}

#canvasContainer input {
    flex-grow: 1;
    flex-shrink: 1;
}

.cutPlaneHeader, .cutPlaneHeaderDisabled {
    margin-top: 0;
    margin-bottom: 0;
}
.hidden {
    display: none !important;
}

.planeSliderContainer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pnc {
    align-items: center;
    gap: 10px;
}

@media all and (width <= 1080px) {
    #canvasContainer > div {
        border-top: 1px solid #fff;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .pnc div {
        display: flex;
        flex-grow: 1;
    }
}
@media all and (width > 1080px) {
    #canvasContainer > div {
        border: 1px solid #888;
        border-radius: 20px;
        padding: 10px;
    }
    .pnc {
        display: flex;
    }
    .pnc div {
        display: inline-flex;
        flex-grow: 1;
    }
}
.pnc input {
    flex-shrink: 1;
    min-width: 0;
}

#tfDeletePointBtn {
    display: none;
}
#tfContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
@media all and (width <= 1080px) {
    #tfDeletePointBtn {
        display: block;
        height: 25px;
    }
    #tfContainer {
        flex-direction: column;
    }
}
#tfGraphContainer {
    width: 100%;
    max-width: 500px;
    height: 300px;
}
#tfColorWheelContainer {
    width: 250px;
    height: 250px;
}

#XRButtonContainer {
    display: flex;
    justify-content: center;
    gap: 20px;
}
#ARButton, #XRButton {
    opacity: 1.0 !important;
    background-color: white !important;
    color: black !important;
    left: unset !important;
    bottom: unset !important;
    position: unset !important;
    width: 300px !important;
    height: 50px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    border-radius: 20px !important;
    margin-bottom: 10px;
}
#ARButton:hover, #XRButton:hover {
    background-color: #ececec !important;
}

#ARButton:disabled {
    background-color: #858585 !important;
    color: #444 !important;
}

.lil-gui {
    --font-size: 18px;
    --input-font-size: 18px;
    --spacing: 20px;
    --widget-height: 40px;
    --slider-knob-width: 5px;
    --slider-input-width: 35%;
    --name-width: 30%;
}

.mobileScrollBtn {
    display: none;
    position: fixed;
    z-index: 999;
    right: 10px;
    bottom: 10px;
    border-radius: 20px;
    outline: none;
    width: 50px;
    height: 50px;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

#mobileScrollUpBtn {
    bottom: 66px;
    transition: transform 0.2s;
}
.mobileScrollUpBtnHidden {
    transform: translate(60px);
}

.arrowDown {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    border-radius: 2px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
.arrowUp {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    border-radius: 2px;
    -webkit-transform: rotate(225deg);
}
@media all and (width <= 1080px) {
    .mobileScrollBtn {
        display: block;
    }
}
