@import '/app/assets/styles/icons.css';

body {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background: #161616;
    overflow: hidden;
    font-family: sans;
}


canvas.intro3d{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:transparent;
    pointer-events: none;
    z-index:99;
    opacity: 1; transform: scale(1) 
}

canvas.intro3d.ready{
    animation: logoanim 1.5s ease-out forwards; 
}

@keyframes logoanim{
    0%   { filter: blur(14px); opacity: 0; transform: scale(0.1) }
    100% { filter: blur(0);    opacity: 1; transform: scale(1)  }
}
    
@keyframes startbtnanim{
    0%   { opacity: 0; }
    40%   { opacity: 0.8; }
    100% { opacity: 1;   }
}
@keyframes spin {
  0% { transform: rotate(0deg) ; }
  100% { transform: rotate(360deg) ; }
}
.loading{
    animation: spin 1s infinite linear;
    font-family: 'glyphs';
    color: #7E6;
    font-size: 4em;;
    z-index: 99999;  
    position:absolute;
    left:50%;
    top:50%;
    transform: translateX(-50%) translateY(-50%);
}

#startbtn{
    cursor: default;
    position: absolute;
    bottom: 15vh;
    color: aliceblue;
    font-style: italic;
    font-size: 1.5rem;
    border-radius: 100px;
    padding: 5px 40px;
    background: radial-gradient(#82cc50, #0a8200);
    box-shadow: 2px 2px 10px #BAFFEF, -2px -2px 10px #BAFFEF, -2px 0 10px #BAFFEF, 0 -2px 10px #BAFFEF;
    animation: startbtnanim 5s ease-out forwards;
    z-index: 99;
    display: none;
}
#startbtn[disabled]{
    filter: brightness(.3);
}

#login-dialog{
    width: 22rem;
    z-index: 99;
    border-radius: 1rem;
    box-shadow: 2px 2px 10px #BAFFEF, -2px -2px 10px #BAFFEF, -2px 0 10px #BAFFEF, 0 -2px 10px #BAFFEF;
    background: radial-gradient(#8cf44677, #14ff0078);
    padding: 2rem 3rem 1rem 3rem;
    margin-top: -68vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    font-size: 1.3rem;
    transform: perspective(200px) rotateY(0deg) rotateX(6deg) rotateZ(0deg);
    transform-style: preserve-3d;
    color: #FFF;
}
#login-dialog.show {
    opacity: 1;
    visibility: visible;
}
#login-dialog > div.cols2{
    display: grid !important;
    grid-gap: 10px;
    grid-template-columns: 7rem 15rem;
}
#login-dialog > div{
    margin-bottom: 1rem;
}
#login-dialog input{
    line-height: 2rem;
    width: 15rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}
#login-dialog button{
    justify-self: end;
    font-size: 1rem;
    float: right;
}
#login-dialog div.loginerr{
    background-color: #326A1E;
    font-size: 1rem;
    color: #FFF;
    padding: .1rem .5rem;
    border-radius: 5px;
    text-align: center;
    display:none; 
}
#login-dialog div.loginerr.show{
    display:block!important; 
}