

#splash {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#splash.hidden { display: none; }
.splash-content { color: #0f0; font-family: monospace; font-size: 22px; }

.terminal, .ImagePersonal { box-sizing: border-box; }

.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    height: calc(100vh - 160px); /* Further reduced height */
}

.ImagePersonal { grid-area: 1 / 1 / 2 / 3; }
.terminal { grid-area: 1 / 3 / 2 / 6; }

body { 
    background: #000;
    font-family: monospace;
    padding: 0; 
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.line { display: flex; }

.prompt { color: rgb(0, 195, 255); margin-right: 5px; }
.command { color:#0f0; margin-left: 8px; }

input { background: transparent; border: none; color: #0f0; outline: none; flex: 1; }

.container h1{
    margin-bottom: 2px; /* Reduced from 3px */
    color: #0f0;
}
.container{
    border: solid 0.1px #0f0;
    padding: 10px; /* Further reduced padding */
}

.container p{
    margin-top: 5px; /* Further reduced margin */
    color: rgb(255, 255, 255);
}

.ImagePersonal{
    height: 100%;
    width: 100%;
    border: solid 1px #0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.terminal{
    border: solid 1px #0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Further reduced gap */
    padding: 6px; /* Further reduced padding */
    color: #ffffff;
    line-height: 1.2; /* Further reduced line height */
    overflow: hidden;
}

/* preserve newlines and spacing for outputs */
.terminal pre.output {
    margin: 0 0 2px 0; /* Further reduced margin */
    white-space: pre-wrap;
    color: #ffffff;
}

.foot{
    border: solid 1px #0f0;
    padding: 10px; /* Further reduced padding */
    text-align: center;
    color: #0f0;
    margin-top: auto; 
}
    
    .terminal p{
        border-bottom: solid 0.1px #0f0;
    }
    
    .terminal-link {
        color: #0f0;
        text-decoration: underline;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    
    .terminal-link:hover {
        color: #00ff00;
        text-decoration: none;
    }
    
    .terminal-link:visited {
        color: #00cc00;
    }
    
    .terminal{
        border: solid 1px #0f0;
        height: 100%;
        display: flex;
        flex-direction: column; /* stack terminal lines */
        gap: 6px;
        padding: 10px;
        color: #0f0;
        overflow: auto; /* enable scrolling when content grows */
    }

    .foot{
        border: solid 1px #0f0;
        padding: 20px;
        text-align: center;
        color: #0f0;
        margin-top: auto; 
    }


    
