@font-face {
    font-family:detroit;
    src: url(detroit.otf);
}
* {font-family: detroit, Arial, Helvetica, sans-serif; user-select: none;box-sizing: border-box;}

html, body {margin:0;padding:0;height:100%;}
body {
    cursor: url(cursor.png) 0 0, auto; overflow-x: hidden;backface-visibility: hidden;
}

#modelList {
    margin-top:50px;
    flex-wrap: wrap;
    justify-content: center;
    backface-visibility: hidden;
    /*transition: all 0.3s linear;*/
}

.box .focusBox {
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.1, 0.9, 0.9, 0.1);
    /*clip-path: polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);*/
    clip-path: polygon(
        0% 15%, 0 0, 15% 0%, 50% 50%, 85% 0%, 100% 0, 100% 15%, 50% 50%, 100% 85%, 100% 100%, 85% 100%, 50% 50%, 15% 100%, 0 100%, 0% 85%, 50% 50%
    );
    
    outline-offset: 100px;
    outline-style: solid;
    outline-width: 2px;
    outline-color: transparent;
    pointer-events: none;
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom:-50px;
    
    outline-offset: -10px;
    outline-color: transparent;
    /*border:2px solid transparent;*/
    /*transform:scale(1.2);*/
}
.box:hover .focusBox, .box.selected .focusBox {
    border-color: rgba(0,0,0,0.5);
    outline-offset: -40px;
    outline-color: #000;
    outline-color:rgb(255, 255, 255);
    outline-style: solid;
}

.focusInfo, .focusInfoBottom {
    position: absolute;
    font-family: monospace;
    color: rgba(255,255,255,0.5);
    text-align: center;
    width: 100%;
    top: -20px;
    display: none;
}

.focusInfoBottom {
    top: inherit;
    bottom:-20px;
}
.box:hover .focusInfo, .box.selected .focusInfo,
.box:hover .focusInfoBottom, .box.selected .focusInfoBottom {
    display: block;
}

.box:hover img {
    filter: brightness(1.2);
}
.box:active img {
    filter: brightness(0.5);
}

.box h2 {
    margin-block-start: 10px;
    margin-block-end: 5px;
}

.box article {
    max-height: 300px;
    overflow: hidden;
    margin-top: 0;
}

.box {
    position:relative;
    margin: 15px;
    min-width: 12%;
    max-width: 12%;    
}

.box > div {
    height:100%;
    border: 1px solid #aaa;
    
    background-color: rgb(255 255 255 / 50%);
    
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);

    /*border-radius: 23px;*/
    transition: all 0.2s ease-out;
    cursor: pointer;
}
.box:hover > div {
    transform: translateY(-20px);
    background-color: rgb(255 255 255 / 100%);
    cursor: url(pointer.png) 8 0, auto;
    border: 1px solid rgba(0, 140, 255);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.4);
    /*margin-top: -20px;
    margin-bottom: 50px;*/

    filter: blur(0px);
    box-shadow: 0 0 32px 0 rgba(0, 140, 255, 0.8);

}

.box:active > div {
    background-color: rgb(128 128 128 / 100%);
}


@media screen and (max-width: 1280px) {
    .box {
        min-width: 10%;
        max-width: 20%;                
    }
}

@media screen and (max-width: 800px) {
    .box {
        min-width: 50%;
        max-width: 50%;
    }
}        

body:hover .box:hover {
    filter: blur(0px);
}

.box img.modelThumb {
    width: 100%;
    -webkit-user-drag: none;
    transition: filter 0.2s ease-out;
    /*border-top-left-radius: 23px;
    border-top-right-radius: 23px;*/
}

.box img.modelOverride {
    width: 25%;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 400px;
}

.box img.modelOverride:hover {
    filter: brightness(0.5) sepia(100%) hue-rotate(160deg) saturate(4);
}

.info {
    margin: 20px;
    margin-top: 10px;
    max-height: 200px;
    overflow: hidden;
}



.divider {
    border-bottom: 2px solid #0000001c; margin-left:-20px;margin-right:-20px; margin-top:0px; margin-bottom:10px;
}

.hidden {
    margin-left: 0px;
    opacity: 0;
    transition: all 1s;
}

.shown {
    margin-left: 60px;
    opacity: 1;
    transition: all 1s ease;
}


input,select {
    border: 1px solid black;
    border-radius:2px;
    background-color: rgb(53 53 53);
    font-family: monospace;
    font-size: 18px;
    width: 100%;
    text-align: center;
    color: #b1efff;
    text-shadow: 0px 0px 8px #07cdff;
    cursor: url(cursor.png) 0 0, auto; 
    padding:5px;
}

input:focus {
    outline:none;
}

input::selection {
    color: #ffffff;
    text-shadow: 0px 0px 8px #07cdff;
}

input+span {
    margin-bottom:-20px;
    font-style: italic;
}

.btn, input::-webkit-file-upload-button {
    border:0;
    font-size: 10pt; font-family: detroit;
    background-color: rgb(255, 255, 255,0.7); /*#0058aa*/
    
    padding:10px;
    color:rgb(0, 87, 185);
    cursor: url(pointer.png) 8 0, auto;
    text-decoration: none;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow:0px 2px 3px 0px rgba(0,0,0,0.2);
    text-shadow: none;
    border-radius: 2px;
}

input::-webkit-file-upload-button {
    background-image: url(btn.svg);
    color: #fff;
}

.btn:hover, input::-webkit-file-upload-button:hover {
    background-color: rgb(0, 95, 196,1);
    background-image: url(btn.svg);
    background-size: cover;
    box-shadow: 0 0 32px 0 rgba(0, 140, 255, 0.8);
    color: #fff;
}

.btn[disabled] {
    color: rgb(132, 196, 255);
    background-color: #444444;
    filter: saturate(0.0);
    opacity: 0.2;
    cursor: url(cursor.png) 0 0, auto; 
}

.btn:not([disabled]) em {
    display:block;
    z-index: 999;
    transition: all 0.2s ease-out;
    /*clip-path: polygon(
        0% 15%, 0 0, 15% 0%, 50% 50%, 85% 0%, 100% 0, 100% 15%, 50% 50%, 100% 85%, 100% 100%, 85% 100%, 50% 50%, 15% 100%, 0 100%, 0% 85%, 50% 50%
    );*/
    
    clip-path: polygon(
        0% 30%, 0 0, 15% 0%, 50% 50%, 85% 0%, 100% 0, 100% 30%, 50% 50%, 100% 70%, 100% 100%, 85% 100%, 50% 50%, 15% 100%, 0 100%, 0% 70%, 50% 50%
    );
    outline-offset: 0px;
    outline-style: solid;
    outline-width: 2px;
    outline-color: transparent;
    pointer-events: none;
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom:-30px;
    
    outline-offset: -10px;
    outline-color: transparent;
    /*border:2px solid transparent;*/
    /*transform:scale(1.2);*/ 
}

.btn:hover em {
    border-color: rgba(0,0,0,0.5);
    outline-offset: -20px;
    outline-color: #000;
    outline-color:black;
    outline-style: solid;
}


.btn:active {
    filter: brightness(0.5);
}

#taskQueueBar {
    display: none; position: fixed; bottom:0;left:0;height:100px;background-color:#0060b3bf; z-index:999; color: #fff;clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%);
    padding-right: 50px;
}

#taskQueueBarThumb {
    height: 100%; float: left; margin-right: 10px; clip-path: polygon(0 0, 75% 0, 100% 100%, 25% 100%);
}

#taskQueueBar .btn {
    background-color: #fff;
}

.selectedBox {
    background-color: #0060b387;position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;color:#fff;z-index: 99;
}

.selectedBox span {
    display: block;top: 50%;position: absolute;text-align: center;width: 100%;font-size: 32pt;font-weight: 900;
}


#spinner {
    position: fixed;top:0;left:0;z-index:9999;width:100%;height:100%; 
    display: flex;
    align-items: center; justify-content: center;
    display: none;
}
#spinner img {
    max-width: 25%;
}

.info-overflow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgb(125 125 125) 50%, rgba(255,255,255,0) 100%);
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-overflow a{
    border: 0;
    font-size: 10pt;
    font-family: detroit;
    background-color: #444444;
    padding: 10px;
    color: #fff;
    cursor: url(pointer.png) 8 0, auto;
    text-decoration: none;
}

.info-overflow a:hover{
    background-color: #000;
}


#dialogBox, #dialogGame {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none; 
    color:#fff;
    BACKGROUND-COLOR: rgba(0,0,0,0.5);
}
#dialogBox div{
    max-width: 40%;
    color: #fff;
    text-shadow: 2px 2px 8px black;
    background-color: rgba(0,0,0,0.5);
    padding: 100px;
}
#dialogBox .btn{
    margin-top: 20px;
    display: table;
}

#dialogGame .btn {
    display: inline-block;
    justify-content: center;
    text-align: center;
    background-image: url(btn2.svg);
    background-size: cover;
    filter: saturate(0.0);
}

#dialogGame .btn:hover {
    filter: saturate(1.0);
}

#dialogGame img {
    width: 20vh;
    padding: 20%;
}

#dialogGame.off {
    display:none;
}

.swapCombo {
    display: inline-block; padding: 0 !important; margin:5px; background-color: transparent !important;
    white-space: nowrap;
}

.swapCombo img {
    width: 50%;
}

.swapCombo img:nth-child(1) {
    border-top-left-radius:12px;border-bottom-left-radius:12px;
}
.swapCombo img:nth-child(2) {
    border-top-right-radius:12px;border-bottom-right-radius:12px;
}

@keyframes example {
    0%   {background-color: rgb(131, 0, 0);}
    50%  {background-color: red;}
    100% {background-color: rgb(131, 0, 0);}
  }

#statusBar {
    display:inline-block;
    background-color: #505050;
    color: #fff;
    padding: 10px;
    border: 1px solid #c7c7c7; 
    font-size: 10pt;
    box-sizing: content-box;
    font-family: detroit;
    background-color: rgb(142 142 142 / 70%);
    padding: 9px;
    padding-left: 20px;
    color: rgb(80 80 80);
    text-decoration: none;
    display: inline-block;
    position: relative;
    /* text-transform: uppercase; */
    font-weight: bold;
    box-shadow: inset 0px 2px 3px 0px rgba(0,0,0,0.2);
    /* outline: 1px solid #c5c5c5; *//* outline-offset: -1px; */
    width: 200px;
    vertical-align: top;
}

#statusBar div {
    background-color: #ff0000;
    width: 10px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: inset 0px 2px 3px 0px rgba(0,0,0,0.2);
    background-color: red;
    animation-name: example;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

#statusBar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

#statusBar.ok div {
    box-shadow: 0px 0px 20px 3px rgb(73 221 255);
    background-color: #5ff8ff !important;
    filter: blur(2px);
    outline: 3px solid #3fdbff;
    outline-offset: -3px;    
    animation-name: none;
}



.discordlink {
    text-shadow: 0px 0px 10px rgb(73 221 255);
    color: #3fdbff;
}

.btnDonate {
    border:0;
    font-size: 10pt; font-family: detroit;
    background-color: rgb(255, 255, 255,0.7); /*#0058aa*/
    padding:10px;
    color:rgb(0, 87, 185);
    cursor: url(pointer.png) 8 0, auto;
    text-decoration: none;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow:0px 2px 3px 0px rgba(0,0,0,0.2);
}

#btnHelp .material-icons, .mg_selects .material-icons{
    font-size: 24px !important;
    /* position: relative; */
    margin-top: -20px !important;
    margin-bottom: -15px !important;
    padding-right: 0 !important;
}

.mg_selects .btn {
    font-size:unset; margin-left:2px;
}

.btn .material-icons {
    font-size: inherit;
    vertical-align: middle;
    padding-right: 5px;
}


.material-icons {
    vertical-align: middle;
}

#btnTools .material-icons {
    color:rgb(94, 82, 58);
}

#btnDonate .material-icons {
    color:rgb(175, 0, 0);    
}

.btn:hover .material-icons {
    color:inherit !important;
}

#toolList .box {
    min-width: auto;
    max-width: fit-content;
    height: fit-content;
}
.tool {
    width:400px; height:225px;
    background-image: url(tools-atlas.jpg);
}

#toolList .material-icons {
    padding-right:10px !important;
    color: #0787ff;
}

.tool.eye-swapper {
    background-position: 0 -225px;
}

.tool.download {
    background-position: 0 -450px;
}


#toolList {
    margin-top:-50px;
    flex-wrap: wrap;
    justify-content: center;
    backface-visibility: hidden;
    align-content: center;
    height:90%;
}


#mainContent {
    height:100%;
}

#toolbar {
    color:black;padding:20px;display: flex;justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.2); background: border-box; background-image: url(bar.png);background-size: auto 100%; box-shadow: 0px 0px 31px 0px rgba(0,0,0,0.75);
}

.page {
    display:none;
}

.page.open {
    display: flex;
}

#toolbar.unfocused {
    filter:blur(5px);pointer-events: none;
}


#eyeList .box {
    /*background-color: red;*/
    width: 100% !important;
    max-width: none;
    min-width: none;
    box-shadow: unset;
}

#eyeList .box > div {
    box-shadow: unset;
    border-radius: 0px;
}

#eyeList .box:hover > div {
    transform: none;
    cursor: url(cursor.png) 0 0, auto;
    background-color: rgb(255 255 255 / 50%);
    box-shadow: unset;
}

#eyeList .box:active > div {
    background-color: rgb(255 255 255 / 50%);
    box-shadow: unset;
}

#eyeList .box:hover img {
    filter:none;
}
#eyeList .box:active img {
    filter: none;
}

#eyeList .modelThumb {
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
}


#eyeList .box > div{
    display: flex;
    flex-wrap: wrap;
}


#eyeList .info {
    max-height: unset;
    /*border-right: 2px solid #aaa;*/
    border-right: 8px solid #0077de;
    border-radius: 0px;
    padding: 30px;
    background-color: #f1f1f1;
    margin:10px;
    flex: 1 0 auto;
}



#eyeList .info select{
    width: auto;
    margin-bottom: 4px;
    background-color: rgb(212 212 212);
    border: 1px solid #b9b9b9;
    text-shadow: none;
    color:#000;
}



/* HIDE RADIO */
[type=radio] { 
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* IMAGE STYLES */
[type=radio] + img {
    cursor: url(pointer.png) 8 0, auto;
}

/* CHECKED STYLES */
[type=radio]:checked + img {
    outline: 4px solid #0077de;
    outline-offset: -4px;
}
