:root{

    --sidebar-width:250px;
    --highlight-color:orange;
    --support-color:grey;
    --border-radius:12px;
    --color1:#0e0e0e;
    --color2:#1d1d1d;
    --border:1px;
    --blur:6px;
    --opacity:0.25;
    --text-color:rgb(128, 128, 128, calc(var(--opacity)*4));
}

body{
    margin: 0px;
    display: flex;
    flex-direction: row;
    font-family: 'Roboto', sans-serif;
    user-select: none;
}

#header,#control-div,#footer{
    display: flex;
    flex:1;
    justify-content: center;
}

#header{
    padding-top:16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#control-div{
    flex-direction: column;
    align-items: center;
}

#footer{
    align-items: flex-end;
}

#logo{
    font-size:28px;
    font-weight:700;
    letter-spacing: 1px;
    color:whitesmoke;
}

#caption{
    font-size:12px;
    line-height: 36px;
    color:gray;
}

#link{
    text-decoration: none;
    color:grey;
}

#settings-div{
    width:400px;
    height:auto;
    min-height:100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color:#1d1d1d;
}

#workspace-div{
    width:100%;
    height:auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background:linear-gradient(135deg, var(--color1) 50%, var(--color2));
}

#circle-org{
    width:300px;
    height:300px;

    border-radius: 50%;
    margin-top: -230px;
    margin-right: -180px;
    background: linear-gradient(135deg,#ffb566,#ff6677);
}

#circle-blue{
    width: 175px;
    height: 175px;
    border-radius: 50%;
    margin-top: 225px;
    margin-left: -90px;
    background: linear-gradient(135deg,#de82ca,#259fac);
}

#subject-div{
    width:420px;
    height:260px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#sub-title{
    color:var(--text-color);
    font-weight: 300;
    font-size:12px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.glass{
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: var(--border) solid #ffffff2e;
}

.glass-light{
    background: hsla(0, 0%, 100%, var(--opacity));
    box-shadow: 0 6px 15px 0 #8e8e8e30;
}

.glass-dark{
    background: hsla(0, 0%, 35%, var(--opacity));
    box-shadow: 0 6px 15px 0 #0e0e0e30;
}

#error-div{
    position: fixed;
    text-align: center;
    font-size: 14px;
    background-color: #ffdbdb;
    padding: 16px;
    color: red;
    border-radius: 4px;
    right: 16px;
    top: 16px;
    box-shadow: 0px 4px 12px #00000026;
}

.control{
    display: flex;
    flex-direction: column;
}

.vertical-space{
    height:40px
}

.label{
    color:lightgrey;
    font-size:14px;
    padding-bottom:12px;
    width: var(--sidebar-width);
}

.range-selector {
    -webkit-appearance: none;
    width: var(--sidebar-width);
    height: 4px;
    border-radius: 4px;
    -webkit-transition: .2s;
    transition: opacity .2s;
    background: var(--support-color);
    outline: none;
}

.range-selector::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
}

.range-selector::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
}

#light-source-div,#shadow-type-div,#color-div{
    width:var(--sidebar-width);
}

.source-div{
    display: flex;
    flex-direction: row;
}

#shadow-type-div,#color-div{
    display: flex;
    flex-direction: row;
}

.rect{
    width:120px;
    height:32px;
    background-color: var(--support-color);
    margin:4px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#1d1d1d;
    font-weight: 500;
    font-size:14px;
    transition:all 0.2s ease-in-out;
}

.box{
    width:40px;
    height:40px;
    background-color: var(--support-color);
    margin:4px;
    border-radius: 2px;
    transition:all 0.2s ease-in-out;
}


.box:hover,.rect:hover{
    background-color: #b8b8b8;
    cursor: pointer;
    transition:all 0.2s ease-in-out;
}

.active{
    background-color:var(--highlight-color);
}

#css-btn{
    margin-top:48px;
    width:var(--sidebar-width);
    height:48px;
    background-color: #0565FF;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

#css-btn:hover{
    background-color: #003281;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#gen-css-txt{
    color:white;
}

#modal-div{
    position:fixed;
    width:100%;
    height:100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal{
    width:700px;
    height:auto;
    background-color: white;
    border-radius: 6px;
    box-shadow: 3px 3px 14px #484848;
    padding:24px;
}

#mod-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mod-title{
    font-size:24px;
    font-weight: 400;
    color:#484848;
    line-height: 32px;
}

#mod-body{
    background-color: #1d1d1d;
    border-radius: 4px;
    color: navajowhite;
}

code{
    font-size: 15px;
    user-select: text;
    white-space: pre-wrap;
}

code:hover{
    cursor: text;
}

pre{
    padding:16px;
    padding-bottom: 0px;
}

#mod-foot{
    text-align: center;
}

#close-btn{
    cursor: pointer;
}



.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--support-color);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 0px;
    bottom: 0px;
    background-color: white;
    box-shadow: 3px 3px 14px #484848;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--highlight-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--highlight-color);
}

input:checked + .slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
}




@media only screen and (max-width: 600px) {
    body {
        display: flex;
        flex-direction: column;
    }

    #settings-div{
        width:100vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color:#1d1d1d;
    }

    #workspace-div{
        width:100vw;
        padding:80px 16px;
        overflow:scroll;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        background:linear-gradient(135deg, var(--color1) 50%, var(--color2));
    }


    #circle-org{
        width:150px;
        height:150px;
        border-radius: 50%;
        margin-top: -230px;
        margin-right: -180px;
        background: linear-gradient(135deg,#ffb566,#ff6677);
    }

    #circle-blue{
        width: 85px;
        height: 85px;
        border-radius: 50%;
        margin-top: 225px;
        margin-left: -90px;
        z-index: -1;
        background: linear-gradient(135deg,#de82ca,#259fac);
    }

    #subject-div{
        width:420px;
        height:260px;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
}