/*Krypt.os terminal v 2.01 STYLESHEET */

body {
   
    background: linear-gradient(45deg, #0a0a0a 5%, #1e1e1e 40%, #3a3a3a 95%);

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    
    
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 35px;
    border-radius: 8px;
    background: linear-gradient(45deg,
            rgb(121, 121, 121) 5%,
            rgb(155, 155, 155) 10%,
            rgb(105, 105, 105) 30%,
            rgb(144, 141, 167) 50%,
            rgb(93, 93, 94) 70%,
            rgb(121, 114, 133) 80%,
            rgb(82, 82, 82) 95%);
    box-shadow: 0px -1px 30px rgb(0, 0, 0 );
    border-left: 30px solid #777777;
    border-right: 30px solid #838383;
    border-top: 30px solid #858585;
    border-bottom: 30px solid #444;
    
}

.tv-frame {
    
    width: 80vw;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    position: relative;
    background: #222 url('colorbars3.gif') center/contain no-repeat;
    overflow: hidden;
    box-shadow: inset 0px 0px 30px rgb(0, 0, 0);
    border-top: 9px solid #444;
    border-left: 12px solid #535353;
    border-bottom: 9px solid #757575;
    border-right: 12px solid #8d8d8d;
}

video {
    width: 100%;
    max-height: max-content;
    
    background: rgb(44, 44, 44);
    position: absolute;
    box-shadow: inset 0px 0px 50px rgb(0, 0, 0);
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
    object-fit: contain;
}

.terminal {
    position: relative;
    user-select: none;
    width: 80vw;
    max-width: 600px;
    /*background: #1b1b1b;*/
    color: rgb(200, 200, 200, 0.8);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 14px;
    padding: 0px;
    border-radius: 4px;
    text-align: left;
    white-space: nowrap;
    
    height: 300px;
    margin-top: 20px;
    overflow-y: auto;
    background: black;
    border-left: 12px solid #636363;
    border-bottom: 10px solid #757575;
    border-right: 12px solid #8d8d8d;
    border-top: 7px solid #444;
}

.terminal::before {
    
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: url('scanlines.gif') center/cover no-repeat;
    opacity: .1;*/
    pointer-events: none;
    z-index: 1;
}

#terminalText,
.terminal input {
    position: relative;
    z-index: 0;
}

#terminalText {
   
    max-height: calc(100% - 50px);
    overflow-y: auto;
    /*scrollbar-width: overflow-y;*/
    padding-right: 5px;
    padding-left: 12px;
    padding-bottom: 15px;
    padding-top: 6px;
    z-index: 0;
}

#terminalText::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
#terminalText::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
#terminalText::-webkit-scrollbar-track {
    background: #1b1b1b;
}

#terminalText::-webkit-scrollbar-corner {
    background-color: #1b1b1b; 
}





.terminal input {
   
    background: none;
    border: none;
    color: rgb(200, 200, 200, 0.8);

    font: inherit;
    outline: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    padding: 5px;
    text-align: left;
    padding-left: 12px;
    caret-color: rgb(200, 200, 200, 0.8);
    
    font-size: 14px;
    
}










@media (max-width: 400px) {

    .tv-frame,
    .terminal,
    .container {
        width: 90vw;
        font-size: 14px;
    }
}