.page-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; 
    max-width: 100vw;

    row-gap: 0px;
    padding: 0px;
    margin: 0px;

    border:none;
}

#unit-select {
    & input {
        position: relative;
        width: calc(100% - 32px);
        height: 32px;
    
        padding-left: 16px;
        padding-right: 16px;
        margin: 0px;

        background-color: var(--theme-gray-dark);
        border-color: var(--theme-accent-2-dark);
        border-width: 0px 0px 2px 0px;
    
        font-family: "BW";
        font-size: 24px;
        color: var(--theme-white);

        &:focus {
          border-color: var(--theme-accent-2-base);
          outline-style: none;
        }
      }

    & .units-container {
        display: grid;
    
        min-width: 265px;
    
        row-gap: 0px;
        margin: 0px 8px 0px 8px;
        padding: 3px 0px 4px 0px;
    
        justify-content: space-evenly;
    }
}

.frame-container {
    flex-direction: column;  
    flex-grow: 1;
    position: relative;

    background-image: url('/image/background/characters_bg.png');
    background-color: var(--theme-black);
    border-width: 0px 0px 0px 4px;
    border-color: var(--theme-accent-2-light);
    border-style: solid;

    justify-content: center;
    --faderColor: rgba(0,0,0,1);

    &:before {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;
        z-index: 999;

        background-color: var(--faderColor);

        content: '';
        pointer-events: none;
        transition: background-color 0.5s;
    }

    & .tab {
        min-height: calc(100vh - 346px);
    }

    & .name-bar {
        display: block;
        position: relative;

        margin-top:0px;
        padding: 4px 0px 4px 0px;  

        background-color: var(--theme-accent-1-base);
        border-color: var(--theme-white);
        border-style: solid;
        border-width: 0px 0px 4px 0px;
        
        color: var(--theme-white);
        text-align: center;
        line-height: 0px;
        mask-image: linear-gradient(#FFFFFF, #FFFFFF);
        overflow:hidden;
    }

    & h3 {
        margin: 8px 8px 8px 8px;
        padding: 8px 8px 8px 8px;

        text-align: center;
        color: var(--theme-white);
        font-family: "BW";
        font-style: normal;
        font-size: 32px;
    }

    & #nav-menu {
        display: flex;
        flex-direction: row;
    
        min-height:64px;
    
        background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(16,16,16,1) 50%, rgba(99,99,99,1) 100%);
    
        & button {
            flex-grow: 1;       
            min-width: 64px;
    
            outline: outset var(--theme-gray-light) 2px;
            border-radius: 12px;
            background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(16,16,16,1) 50%, rgba(99,99,99,1) 100%); 
            border: outset 4px var(--theme-gray-base);
    
            color: var(--theme-white);
            font-family: "BW";
            font-size: 24px;
    
            margin: 8px;
    
            overflow: hidden;
    
            &:hover {
                background: linear-gradient(0deg, var(--theme-gray-dark) 0%, var(--theme-accent-1-base) 50%, var(--theme-accent-1-light) 100%); 
                cursor: pointer;
            }
    
            &:active {
                border-style: outset;
            }
    
            
            &:disabled {
                background: linear-gradient(0deg, rgb(41, 41, 41) 0%, rgb(83, 83, 83) 50%, rgb(119, 119, 119) 100%); 
                
                &:hover {
                    cursor: default;
                }
            }
        }
    }

    & #tab-description {

        & .container {
            min-height: 100px;
            min-width: 50%;
        
            margin-left: 16px;
            margin-right: 16px;
            margin-bottom: 32px;
        }
        
        & .bio {
            display: grid;
            grid-template-columns: auto auto;
        
            border: 2px solid var(--theme-gray-base);
            background: linear-gradient(
                var(--theme-gray-dark),
                var(--theme-gray-dark) 3px,
                #272727 3px,
                #272727 9px
            );
            background-size: 100% 9px;
            box-shadow: 8px 8px 8px var(--theme-gray-dark);
            box-sizing: border-box;
            border-radius: 8px;
        
            align-items: center;
            
            & .left {
                height: fit-content;
        
                margin: 16px 0px 16px 16px;
                padding: 8px 8px 8px 8px;

                background-color: var(--theme-accent-2-light);
                outline: solid var(--theme-accent-2-dark) 2px;
                border-top-left-radius: 8px;
                border-bottom-left-radius: 8px;
        
                font-size: 24px;
                font-family: "BW";
                color: var(--theme-white);
            }
        
            & .right {
                position: relative;
                min-height: 18px;
                height: fit-content;

                margin: 16px 16px 16px 0px;
                padding: 8px 8px 8px 8px;

                background-color: var(--theme-white);
                outline: solid var(--theme-gray-base) 2px;
                border-top-right-radius: 8px;
                border-bottom-right-radius: 8px;
        
                font-size: 24px;
                font-family: "BW";
                color: var(--theme-black);
            }
            
        }
    
        & .container.details-block {
            padding:16px;

            background-color:var(--theme-gray-base);

            & .scan-container.title {
                width: fit-content;
                min-width: 35%;
            
                padding: 4px 8px 4px 8px;

                font-size: 32px;
                font-family: monospace;
                font-style: italic;
            }
        }
        
        & .player-name-container {
            width: 100%;
            padding: 0px;
        
            & a {
                display:inline-block;
                width: 100%;

                background-color: var(--theme-gray-dark);
                border: 2px var(--theme-white) solid;
                border-radius: 16px;
                
                color:var(--theme-white);
                text-align: center;
        
                &:hover {
                    background-color: var(--theme-accent-1-dark);          
                }
            }
        
        }
    }

    & .char-header { 
        display: flex;
        flex-direction: column;
        align-items: center;
        
    }
}

.edit-mode {
    display: none;
}

.registerButton {
    width:100%;
    height:100%;

    background: linear-gradient(0deg, var(--theme-primary-1-base), var(--theme-primary-2-light));
    transition: all 0.1s linear;

    &:hover {
        transform: scale(1, 1.1);
        cursor: pointer;
    }
}

.avatar {
    position: relative;
    max-height: 100%;
    height: 256px;
    width: min-content;
    
    padding: 0px;
    margin: 8px 8px 8px 8px;

    background: radial-gradient(var(--theme-gray-base), var(--theme-gray-dark));
    box-shadow: 8px 8px 8px var(--theme-gray-dark);
    border: 3px outset var(--theme-white);
    border-radius: 32px;    

    overflow: hidden;
    z-index: 1;

    & img {
        position: relative;

        height: 256px;
        width: 256px;
        z-index: 3;
    }
}

.edit-button, .submit-button {
    flex-grow: 1;

    margin: 0px auto 16px auto;
    
    & input {
        width: 100%;

        padding: 8px 8px 8px 8px;

        border-bottom: outset var(--theme-gray-light) 2px;
        background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(16,16,16,1) 50%, rgba(99,99,99,1) 100%); 

        color: var(--theme-white);
        font-family: "BW";
        font-size: 24px;

        overflow: hidden;

        &:hover {
            background: linear-gradient(0deg, var(--theme-gray-dark) 0%, var(--theme-accent-1-base) 50%, var(--theme-accent-1-light) 100%); 
            cursor: pointer;
        }

        &:active {
            border-style: outset;
        }

        &:disabled {
            background: linear-gradient(0deg, rgb(68, 68, 68) 0%, rgb(105, 105, 105) 50%,  rgb(146, 146, 146) 100%); 
            color: var(--theme-gray-dark);
            cursor: auto;
        }
    }
}


