@import url("global.css");
@import url("controller.css");

html, body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    justify-content: center;
    position: relative;
    width: 100vw;
    overflow-x: hidden;
    background: var(--cyb-backdrop-color);
    display: flex;
    touch-action: pan-x pan-y;
    height: -webkit-fill-available;
    -webkit-overflow-scrolling: touch;
}

body[data-section=workbench] #workbench-description > .label:first-of-type,
body[data-section=workbench] #workbench-description h1 {
    display: none;
    visibility: hidden;
}

.environment, #laboratory, #table, section[data-section=loading] p.side {
    display: none; 
    visibility: hidden;
}

h1 {
    font: 400 50px/100% var(--font-primary);
    text-transform: uppercase;
    font-variant-ligatures: none;
}

h2 {    
    font: 400 28px/100% var(--font-primary);
    text-transform: uppercase;
    font-variant-ligatures: none;
}

h3 {    
    font: 400 22px/100% var(--font-primary);
    font-variant-ligatures: none;
}

p {
    font: 400 14.5px/25px var(--font-secondary);
    font-variant-ligatures: none;
}

label {
    font: bold 11.5px/20px var(--font-secondary);
    font-variant-ligatures: none;
}

#holo-main-ai {
    text-align: left;
}

#holo-main-supply {
    text-align: right;
}


body[data-section=workbench] main {
    padding: 0;
}
body[data-section=loading] main {
    padding: 30px;
}


body[data-section=loading],
body[data-section=loading] #holo,
body[data-section=loading] main,
body[data-section=loading] main section[data-section=loading],
body[data-section=loading] main section[data-section=loading] article {
    position: fixed;
    width: 100vw;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body[data-section=loading] main section[data-section=loading] article {
    margin: 0 !important;
}

body[data-section=loading] main section[data-section=loading] article img {
    position: absolute;
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
}

body[data-section=loading] main section[data-section=loading] article h2 {
    position: absolute;
    top: calc(8vh + 120px);
    width: 80vw;
    left: 10vw;
}


body[data-section=loading] main section[data-section=loading] article span#loading-bar {
    position: absolute;
    bottom: calc(20vh + 25px);
    width: 80vw;
    left: 10vw;
}


html.mobile body[data-section=loading] main section[data-section=loading] article span#loading-bar {
    bottom: calc(7vh + 25px);
}





body[data-section=loading] main section[data-section=loading] article label {
    position: absolute;
    bottom: 20vh;
    width: 80vw;
    left: 10vw;
    margin-bottom: 0;
}

html.mobile body[data-section=loading] main section[data-section=loading] article label {
    bottom: 7vh;
}




body[data-section=loading] main article button {
    position: absolute;
    bottom: 7vh;
    left: 50%;
    transform: translateX(-50%);
}


html.mobile body[data-section=loading] main article button {
    display: none;
    visibility: hidden;
}





body[data-section=insights] main,
body[data-section=mint] main {
    padding: 0px 10px;
}


#workbench-preview {
    background-image: url(../img/img_shape.svg);
    background-repeat: no-repeat;    
    background-size: 100% 100%;
    width: 90vw !important;
    height: 90vw !important;
    margin: 80px auto 15px;
    position: relative !important;
    max-width: 450px;
    max-height: 450px;
    z-index: 2;
    border-bottom-right-radius: 25px;
}


#workbench-preview img {
    position: absolute;
    width: calc(90vw * 2.222) !important;
    height: 90vw !important;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    max-width: 1000px;
    max-height: 450px;
}



#workbench-preview img[data-upgrade=shell] {
    width: 100% !important;
    height: 100% !important;
    max-width: 450px;
    max-height: 450px;
}



.holo {
    border-radius: 30px;    
}

section[data-section=workbench] p {
    margin-right: 0;
}



main {
    position: relative;
    margin: 0;
    width: 90vw;
    margin: 0 5vw;
}



nav, aside {
    min-width: 100vw;
}


nav {
    min-height: 400px;
    position: relative;
}

#navigation-button {
    top: 25px;
    left: 25px;
}

#aside-button {
    background: color-mix(in srgb, var(--cyb-backdrop-color) 80%, rgba(0,0,0,1));
    outline: none;
}


.logo-bar {
    display: block;
    text-align: center;
    padding: 35px 0 27.5px;
    margin: 0 auto;
}

nav h2, aside h2 {
    margin: 30px 35px 0;
}

nav label, aside label:first-of-type {    
    margin: 0 25px 0;
}

nav ul {
    list-style-type: none;
    font-size: 18px;
    font-family: "Squada One";
    font-weight: normal;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.3px;    
    margin: 15px 15px 0;
    padding: 0 0 90px 0;
}


aside ul {
    list-style-type: none;
    font-size: 18px;
    padding: 0;
    margin: 0 12.5px 0 25px;
}


aside ul li {
    padding: 12px 0 12px 45px;
    position: relative;
    display: block;
}


aside ul li.disabled {
    pointer-events: none;
    opacity: 0.5;
}


aside ul li::before {
    content: " ";
    width: 25px;
    height: 25px;
    border-radius: 25px;
    border: 2px solid var(--cyb-theme-color);
    position: absolute;
    display: block;
    left: 0;
    top: 20px;
    outline: 2.5px solid var(--cyb-outlines);
}

aside ul li.active::before {
    background-color: var(--cyb-theme-color);
    background-image: url(../img/ic_checkmark.svg);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center;
}

aside ul li {
    border-bottom: 1px solid rgba(0,0,0,1);
}

aside ul li:last-of-type {
    border-bottom: none;
}

aside ul li span:first-of-type {
    margin-bottom: 6px;
}

aside ul li span {
    display: block;
}

.shell-metal,
.upgrade-part {
    font-size: 18px;
    font-family: "Squada One";
    font-weight: normal;
    color: var(--cyb-white);
}

.shell-color,
.upgrade-selection {
    text-transform: uppercase;
    font-size: 12px;
    font-family: "Space Mono";
    font-weight: bold;
    color: var(--cyb-white);    

}

nav ul li {
    height: 40px;
    margin-bottom: 5px;
    background-color: transparent;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--cyb-theme-color);
    display: flex; 
    align-items: center;     
    gap: 15px;
}


#holo-aside-scroll-container {
    padding-bottom: 100px;
    overflow: hidden !important;
    height: auto !important;
    position: relative !important;
    right: 0;
}


#holo-navigation-sound {
    display: none;
    visibility: hidden;
}


nav ul li.active {
    color: var(--cyb-outlines);
    background-color: var(--cyb-theme-color);
    outline: 2px solid var(--cyb-outlines);
    box-shadow: 0 0 15px 2px color-mix(in srgb, var(--cyb-theme-color) 40%, transparent);
}

#close-button {
    position: fixed;
}

.tab-controls {
    position: fixed;
    bottom: 12.5px;
    left: 10px;
    width: calc(100vw - 20px);
    height: 45px;
    border-radius: 45px;
    z-index: 3;
    background: color-mix(in srgb, var(--cyb-backdrop-color) 80%, rgba(0,0,0,.87));    
}

.tab-controls ul {
    text-align: center;
    align-items: center;
    justify-content: center;   
    list-style-type: none;
    display: flex;
    flex-direction: row;
    font-size: 17px;
    color: var(--cyb-white);
    font-family: "Squada One";
    font-weight: normal;
    padding: 0;
    margin: 0;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.3px;
    text-transform: uppercase; 
    padding: 2.5px 2.5px;  
    height: 100%;
}


.tab-controls > div {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}


.tab-controls ul li {
    height: 40px;
    padding: 11px 11px 0;
    border-radius: 30px;
    width: 100%;
}


.tab-controls ul li.active {    
    background-color: var(--cyb-theme-color);
    color: var(--cyb-outlines);    
    padding: 9px 15px 0;
    border: 2px solid var(--cyb-outlines);
}

nav li svg path {
    fill: var(--cyb-theme-color);
}

nav li.active svg path {
    fill: var(--cyb-outlines);
}


nav a {
    text-align: center;
    align-items: center;    
    font-size: 16px;
    color: var(--cyb-white);
    font-family: "Squada One";
    font-weight: normal;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

#workbench-description {
    min-width: 315px;
}

section[data-section=workbench] #workbench-description div {
    margin-top: 15px;
    margin-bottom: 20px;    
}


section[data-section=workbench] #workbench-description {
    width: 100%;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    padding: 35px 5vw 0;
}

#workbench-preview-specs {
    display: flex;
    flex-direction: row;
    margin: 0;
    width: 100%;
}

#workbench-preview-specs div {
    width: 100%;
}


#mint-detail-list {
    display: flex;
    flex-direction: row;
    max-width: 560px;
    flex-wrap: wrap;
}

#mint-detail-list div {    
    min-width: 120px;
}

#mint-detail-list div span.label {
    display: block;
    text-align: center;
}

#mint-detail-list div h3 {
    display: block;
    text-align: left;
}

#sound-controls {
    visibility: hidden;
    display: none;
}

#close-button {
    bottom: 20px;
    left: 50%; 
    transform: translateX(-50%);
    width: 140px;
}

body[data-section=loading] section[data-section=loading],
body[data-section=loading] section[data-section=loading] h1 {
    text-align: center;
}

body[data-section=loading] section[data-section=loading] #loading-bar {
    width: 100%;
}

main section {
    margin: 0 auto;
    max-width: 800px;
}

#aside-button {
    display: none !important;
    visibility: hidden !important;
}

body[data-section=workbench] #workbench-description button {
    width: 100%;
    margin: 0 auto;
} 


body[data-section=workbench] #workbench-description button svg {
    margin-top: -1px;
}


body[data-section=workbench] #workbench-description > label:first-of-type {
    display: none;
    visibility: hidden;
}

section[data-section="connect"] ul {
    max-width: none;
}


section[data-section="connect"] ul li {
    height: 66px;
}

section[data-section="connect"] ul li a svg {
    margin-left: 20px;
}

section[data-section="connect"] ul li a::after {
    right: 22.5px;
}


section:not([data-section=workbench]) article {
    margin: 120px 10px 0;
    padding-bottom: 80px;
}

section[data-section=workbench] article[data-tab=workbench] {
    padding-bottom: 100px;
}

section:not([data-section=workbench]) h1 {    
    margin-bottom: 12.5px;
}

section:not([data-section=workbench]) h3 {    
    line-height: 29px;
    margin-bottom: 22.5px;
}

section[data-section=insights] p,
section[data-section=mint] p {
    margin-bottom: 20px;
}