html,
body {
    margin: 0;
    height: 100%;
    background-color: #000000;
}

.main1,
.main2 {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    background: #0d1317;
}

#c {
    width: 100%;
    height: 100%;
    display: block;
}

#icon {
    height: 3em;
    width: 3em;
}

#pot {
    bottom: 10%;
    display: block;
    position: absolute;
    animation: linear infinite alternate;
    animation-name: run;
    animation-duration: 1s;
}

nav.buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: absolute;
    justify-content: center;
    align-items: center;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    width: auto;
    height: auto;
    box-sizing: border-box;
    opacity: 0.6;
    transition: all 0.26s ease;
    -webkit-transition: all 0.26s ease;
    border-top-right-radius: 6px;
}

nav.buttons:hover,
.nav.buttons:active {
    opacity: 1.0;
}

.ui {
    position: relative;
}

.ui2 {
    position: relative;
    //display: inline-block;
    //width: calc(3vw + 20px);
    //height: calc(3vw + 20px);
    width: calc(2vw + 16px);
    height: calc(2vw + 16px);
    border: 4px solid rgb(83, 83, 83);
    border-color: rgb(83, 83, 83);
    margin: 1px;
    //object-fit: contain;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0.75;
    overflow: hidden;
    text-align: center;
    box-shadow: 2px 2px 12px rgb(0, 0, 0);
}

.ui2:hover {
    border: 4px solid rgb(154, 154, 154);
    border-color: rgb(154, 154, 154);
    opacity: 1.0;
}

.ui2on,
.ui2on:hover {
    border: 4px solid red;
    border-color: red;
    opacity: 1.0;
}

.ui2 img {
    width: 100%;
    height: 100%;
}

button {
    display: inline-block;
    margin: 5px;
}

@-webkit-keyframes run {
    0% {
        left: 45%;
        transform: translateX(0);
    }
    100% {
        left: 55%;
        transform: translateX(-100%);
    }
}

.navnav {
    position: absolute;
    top: 0;
    left: auto;
    right: 0px;
    width: 150px;
    height: 100%;
    background-color: rgb(91, 90, 90);
    overflow: hidden;
    overflow-y: scroll;
}

.navnav img {
    width: 90px;
    height: 90px;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 15vw;
    //background: rgba(255, 255, 255, 0.92);
    //background-color: red;
    height: auto;
    z-index: 120;
    display: block;
    align-items: center;
    box-sizing: border-box;
    padding: 3px 0 0 3px;
}

.logo img {
    width: 100%;
    cursor: pointer;
}

.adreswww {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 9vw;
    //background: rgba(255, 255, 255, 0.92);
    //background-color: red;
    height: auto;
    z-index: 120;
    display: block;
    align-items: center;
    box-sizing: border-box;
    padding: 3px 0 0 3px;
    opacity: 0.85;
    display: none;
}

.adreswww img {
    width: 100%;
    cursor: pointer;
}

.udostepnijbox {
    top: -90px;
    right: 0;
    width: 100%;
    height: 90px;
    border: 0px solid black;
    z-index: 8900;
    position: absolute;
    background-color: rgba(0, 132, 212, 0.86);
    display: block;
}

.udostepnijboxiframe {
    top: 10px;
    left: 10px;
    width: calc(100% - 80px);
    height: 58px;
    border: 1px solid black;
    z-index: 900;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.0);
    display: block;
    border: 0px solid #ffaa00;
}

.udostepnijbox-close {
    top: 17px;
    right: 16px;
    width: 45px;
    height: 45px;
    border: 0px solid black;
    z-index: 902;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
}

.udostepnijbox-close:hover {
    background-color: rgba(0, 132, 212, 1.0);
}

.lil-gui.autoPlace {
    max-height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
}

@media only screen and (max-width: 1200px) {
    .logo {
        width: 18vw;
    }
    .main1 {
        position: relative;
        width: calc(100% - 15vh);
        height: 100%;
        display: block;
        background: #0d1317;
    }
    .lil-gui .autoPlace {
        max-height: 100%;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1001;
    }
    nav.buttons {
        display: flex;
        flex-direction: column-reverse;
        position: absolute;
        bottom: 0;
        left: auto;
        right: 0;
        margin: 0;
        padding: 0px;
        background: rgba(0, 0, 0, 1.0);
        width: 15vh;
        height: 100%;
        box-sizing: border-box;
        opacity: 1;
        transition: all 0.26s ease;
        -webkit-transition: all 0.26s ease;
        border-top-right-radius: 0px;
    }
    .ui2 {
        position: relative;
        width: calc(8vh + 0px);
        height: calc(8vh + 0px);
        border-width: 0.6vh;
        border-color: rgb(83, 83, 83);
        margin: 1px;
        //object-fit: contain;
        cursor: pointer;
        border-radius: 50%;
        opacity: 0.75;
        overflow: hidden;
        text-align: center;
        box-shadow: 2px 2px 12px rgb(0, 0, 0);
    }
    .ui2:hover {
        border-width: 0.6vh;
        border-color: rgb(154, 154, 154);
        opacity: 1.0;
    }
    .ui2on,
    .ui2on:hover {
        border-width: 0.6vh;
        border-color: red;
        opacity: 1.0;
    }
    .lil-gui.autoPlace {
        max-height: 100%;
        position: fixed;
        top: 0;
        right: 10%;
        z-index: 1001;
    }
}

@media only screen and (orientation:portrait) and (max-width: 1000px) {
    .logo {
        width: 32vw;
    }
    .main1 {
        position: relative;
        width: 100%;
        height: 90%;
        display: block;
        background: #0d1317;
    }
    nav.buttons {
        display: flex;
        flex-direction: row;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px;
        background: rgba(0, 0, 0, 1.0);
        width: 100%;
        height: 10%;
        box-sizing: border-box;
        opacity: 1;
        transition: all 0.26s ease;
        -webkit-transition: all 0.26s ease;
        border-top-right-radius: 0px;
    }
    .ui2 {
        position: relative;
        width: calc(8.5vw + 0px);
        height: calc(8.5vw + 0px);
        border-width: 0.6vw;
        margin: 1px;
        //object-fit: contain;
        cursor: pointer;
        border-radius: 50%;
        opacity: 0.75;
        overflow: hidden;
        text-align: center;
        box-shadow: 2px 2px 12px rgb(0, 0, 0);
    }
    .ui2:hover {
        border-width: 0.6vw;
        opacity: 1.0;
    }
    .ui2on,
    .ui2on:hover {
        border-width: 0.6vw;
        opacity: 1.0;
    }
    #dg-new-constructor {
        padding: 10px;
        color: #222;
        font-family: Monaco, monospace;
        font-size: 6px;
        border: 0;
        resize: none;
        box-shadow: inset 1px 1px 1px #888;
        word-wrap: break-word;
        margin: 12px 0;
        display: block;
        width: 240px;
        overflow-y: scroll;
        height: 100px;
        position: relative
    }
    .lil-gui.autoPlace {
        max-height: 100%;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1001;
    }
}