/* GENERAL */
html {
    height: 100%;
    font-size: 14px;
}

body {
    font-weight: 300;
    font-family: "IBMPlexSans-Light", sans-serif;
    background-color: #ffffff;
    height: 100%;
    overflow: hidden;
}

#wrap {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* SIGN IN */
#sign-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    display: none;
    background-color: #ffffff;
}

#sign-container.active {
    display: flex;
}

#sign-inner {
    width: 300px;
    max-width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#sign-back{
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 10px;
    cursor: pointer;
}

#sign-title {
    font-size: x-large;
    margin-bottom: 40px;
    text-align: center;
}

.sign-form {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.sign-form.active {
    display: flex;
}

.sign-submit {
    cursor: pointer;
    padding: 5px 10px;
    align-self: center;
    background: none;
    border: 1px solid;
    border-radius: 6px;
    margin-top: 10px;
}

#sign-switch {
    margin-top: 10px;
    padding: 5px 7px;
    cursor: pointer;
}


/* FUN */
#fun-container {
    display: none;
    width: 100%;
    height: 100%;
}

#fun-container.active {
    display: block;
}

#sdev-leaderboard{
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
}

#sdev-leaderboard.active{
    display: flex;
}

#sdev-leaderboard-inner{
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 20px;
    color: #efefef;
    background-color: #00000099;
    border-radius: 4px;
    max-width: 100vw;
    width: 40%;
    min-width: fit-content;
}

#sdev-leaderboard-title{
    font-size: xx-large;
    text-align: center;
}

#sdev-leaderboard-list{
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.leaderboard-item{
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 5px 10px;
}

.leaderboard-item.active{
    background-color: #8de31e60;
}

#sdev-controls {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 8px;
    width: 100%;
    background-color: #00000099;
    font-size: 12px;
}

.sdev-controls-item {
    cursor: pointer;
}

.sdev-controls-item img {
    width: 24px;
    height: 24px;
}

#sdev-controls-signin{
    display: none;
    color: #efefef;
    align-content: center;
}

#sdev-controls-signin.active{
    display: block;
}

#sdev-controls-signoff{
    display: none;
}

#sdev-controls-signoff.active{
    display: block;
}

#sdev-controls-username{
    align-self: center;
     font-size: larger;
    color: #efefef;
    margin-right: auto;
    cursor: pointer;
}

#sdev-controls-download {
    display: none;
}

#sdev-controls-download.active {
    display: block;
}


/* UNITY */
#unity-canvas {
    width:100%;
    height:100%;
}

#unity-fullscreen-button {
    background: url('../assets/img/fullscreen_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg') no-repeat center;
    width: 24px;
    height: 24px;
    align-self: center;
}

#unity-logo {
    background: url('../assets/img/screenart_favicon.png') no-repeat center;
}


/* POPUP */
#popup-container{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(4px);
}

#popup-container.active{
    display: flex;
}

#popup {
    padding: 48px;
    background-color: #fff;
    text-align: center;
    position: relative;
    border-radius: 4px;
}

#popup-title{
    font-weight: 600;
    margin-bottom: 16px;
}

#popup-info {
    text-align: center;
}

#popup-confirm {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #121212;
    color: #fff;
    border-radius: 4px;
    margin-top: 24px;
}


/* SDEV FIELD */
.sdev-form-field{
    position: relative;
    height: 40px;
    display: flex;
    flex-direction: row;
    border-radius:4px;
    min-width: 120px;
    outline: 2px solid #555;
    width: 100%;
}

.sdev-form-field .sdev-form-label{
    height: 100%;
    top:0;
    left: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    transition: all 150ms cubic-bezier(.31,.16,.08,1);
    pointer-events: none;
}

.sdev-form-field.active .sdev-form-label{
    height:0;
    left:12px;
}

.sdev-form-field .sdev-form-label span{
    line-height:1;
    background-color:#fff;
    padding: 2px 4px;
    transition: all 100ms ease-in-out;
    border-radius: 2px;
}

.sdev-form-field[data-disabled="true"] .sdev-form-label span {
    background-color: #dcdcdc;
}

.sdev-form-field.active .sdev-form-label span{
    font-size:80%;
}

.sdev-form-field input{
    height: 100%;
    border:none;
    border-radius: 4px;
    padding-left: 4px;
    width: 100%;
    color: #3e3e3e;
}

.sdev-form-field input:disabled{
    background-color: #dcdcdc;
}

.sdev-form-field input:focus{
    outline: 3px solid #555;
}

.sdev-form-visibility {
    width: 38px;
    height: 38px;
    margin-left: -38px;
    cursor: pointer;
    background-image: url(../assets/img/visibility_off_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 48% auto;
    filter: invert(1);
    opacity: 0.6;
}