@font-face {
    font-family: Quicksand;
    font-style: normal;
    font-optical-sizing: auto;
    font-weight: 450;
    src: url('/static/fonts/Quicksand-VariableFont_wght.ttf');
}

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/*body { height: 160.1%; }*/

h2 {
    font-weight: normal;
}


.side {
    width: 600px;
    background-color: rgba(0.0, 0.0, 0.0, 0.4);
    position: absolute;
    padding-top: 20px;
    padding-bottom: 60px;
    top: 10%;
    left: calc((100% - 600px) / 2);
    z-index: 1;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5;
}

.mobile-turn {

    /*background-color: #333339;*/
    position: absolute;
    padding-top: 60px;
    margin-top: 150px;
    padding-bottom: 40px;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    font-size: 1.4rem;
    line-height: 1.3;
    display: none;
}

.colours-picker{
    width: 160px;
    height: 160px;
    position: relative;
    display: inline-block;
}

.picker-wrapper{
    position: absolute;
    border-style: solid;
    border-width: 1px;
    border-color: gray;
}


#inner-picker-wrapper{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top:0;
    left:0;
}

#renderer{
    touch-action: pan-x pan-y;
}

@media (max-device-width: 480px) and (orientation: portrait) {

    .side {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        font-size: 1.1rem;
        line-height: 1.3;
        text-align: center;
        border-radius: 0;
        /*background-color: transparent;*/
    }


    .mobile-turn {
        display: block;

    }

    .info-box {
        display: none;
    }

    #checkbox {
        display: none;
    }

    #connect {
        display: none;
    }

}

@media (max-device-height: 480px){

    #info-box{
        margin-top: 0;
        margin-bottom: 20px;
    }
    #checkbox{
        margin-top: 0;
        margin-bottom: 0;
    }

    .colours-picker{
        margin-top: 0;
        margin-bottom: 0;
    }

    .center-holder{
        margin-top: 0;
        margin-bottom: 0;
    }

    .side {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        font-size: 0.6rem;
        line-height: 1.3;
        text-align: center;
        border-radius: 0;
        padding-top: 10px;
    }

        h2{
         font-size: 1.3rem;
    }

    #connect {
        font-size: 1.1rem;
    }

.colours-picker{
    width: 130px;
    height: 130px;
}

}

@media (max-device-width: 480px) and (orientation: landscape) {

    #info-box{
        margin-top: 0;
        margin-bottom: 20px;
    }

    #checkbox{
        margin-top: 0;
        margin-bottom: 0;
    }

    .colours-picker{
        margin-top: 0;
        margin-bottom: 0;
    }

    .center-holder{
        margin-top: 0;
        margin-bottom: 0;
    }

    .side {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        font-size: 0.6rem;
        line-height: 1.3;
        text-align: center;
        border-radius: 0;
        padding-top: 10px;
    }

        h2{
         font-size: 1.3rem;
            margin-bottom: 5px;
    }

            #connect {
        font-size: 1.1rem;
    }

.colours-picker{
    width: 130px;
    height: 130px;
}

}


.turn-img {
    width: 100px;
    display: inline-block;
}

.touch {
    position: absolute;
    width: 80px;
    height: 80px;
    border-width: 2px;
    border-color: lightgrey;
    border-style: solid;
    border-radius: 40px;
    text-align: center;
    font-size: 1.3rem;
    line-height: 74px;
    color: lightgrey;
    display: none;
      -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}


#touch-move {
    --move-decoration-display: block;
}

#touch-look {
    --look-decoration-display: block;
}

.touch-label {
    position: relative;
    top: 20px;
}

.touch-hand {

    font-family: FontAwesome5Pro-Light;
    font-size: 2.0rem;
}

.touch-move {
    top: calc((100% - 240px));
    left: 120px;
}

.move-decoration {
    display: var(--move-decoration-display);
}

.look-decoration {
    display: var(--look-decoration-display);
}

.touch-look {
    top: calc((100% - 240px));
    left: calc((100% - 200px));
}

.touch-arrow {
    position: absolute;
    width: 80px;
    height: 80px;
    line-height: 50px;
    font-size: 2.5rem;
    color: lightgrey;


    font-family: FontAwesome5Pro-Light;
}

.touch-arrow-up {
    top: -44px;
    left: -2px;
}

.touch-arrow-down {
    top: 40px;
    left: -2px;
    transform: rotate(180deg);
}

.touch-arrow-right {
    top: -2px;
    left: 44px;
    transform: rotate(90deg);
}

.touch-arrow-left {
    top: -2px;
    left: -44px;
    transform: rotate(270deg);
}


.flag {
    width: 110px;
    margin-top: 15px;
    margin-bottom: 10px;
    margin-left: 5px;
    margin-right: 5px;
}


.side-side {
    width: 354px;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 80px;
    z-index: 1;
    background-color: rgba(0.0, 0.0, 0.0, 0.15);
}

#error-block {
    display: none;
    text-align: center;
}

.info-box {
    margin-top: 40px;
    margin-right: 40px;
    margin-left: 40px;
}

.info-icon {
    width: 80px;
    margin-top: 10px;
    display: inline-block;
}


#mini {
    width: 260px;
    height: 260px;
    border-radius: 130px;
    background-color: black;
    opacity: 40%;
    position: absolute;
    top: 10px;
    right: 10px;
}


.checkbox {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-width: thin;
    border-radius: 32px;
    border-style: none;
    border-color: lightgrey;
    margin-top: 25px;
    margin-bottom: 15px;
    margin-right: 40px;
    margin-left: 40px;
}

input[type=checkbox] {
    /* Double-sized Checkboxes */
    -ms-transform: scale(2); /* IE */
    -moz-transform: scale(2); /* FF */
    -webkit-transform: scale(2); /* Safari and Chrome */
    -o-transform: scale(2); /* Opera */
    transform: scale(2);
    padding: 10px;
    margin-right: 20px;
}

button {
    display: inline-block;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    width: calc(100% - 80px);
    max-width: 500px;
    margin-top: 20px;
    margin-right: 40px;
    margin-left: 40px;

    height: 54px;

    border-radius: 32px;
    text-shadow: 2px 6px 20px rgba(0, 0, 0, 0.4);
    box-shadow: rgba(0, 0, 0, 0.5) 1px 2px 8px 0px;
    background: #1e2123;
    /*border: 2px solid #229089;*/
    border: 2px solid #229089;
    color: #f9fdff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 18px;
    font: inherit;
}

.disabled {
    background: transparent;
    border: 2px solid #868585;
    opacity: 0%;
}

.hidden {
    display: none;
}

.disabled:hover {
    cursor: default;
}

.spinner {
    display: inline-block;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    width: 80%;
    margin-top: 20px;
    margin-right: 10%;
    margin-left: 10%;
    height: 54px;

    /*border-radius: 32px;*/
    /*text-shadow: 2px 6px 20px rgba(0, 0, 0, 0.4);*/
    /*box-shadow: rgba(0, 0, 0, 0.5) 1px 2px 8px 0px;*/
    /*background: #1e2123;*/
    border: 0px solid #229089;
    color: #f9fdff;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
}


.hidden {
    display: none;
}

audio {
    margin-top: 20px;
    width: 80%;
    margin-right: 10%;
    margin-left: 10%;
}


.lds-dual-ring {
    display: inline-block;
    width: 54px;
    height: 48px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 32px;
    height: 32px;
    margin: 7px;
    border-radius: 50%;
    border: 4px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.square-form{
    width: 400px;
    margin-top: 10px;
    font-size: 1.5rem;
    padding: 3px 10px 3px 10px;
    border: none;
}

.square-form:focus{
    border: none;
}