@font-face {
    font-family: 'Terminus';
    src: url('assets/fonts/terminus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Terminus';
    src: url('assets/fonts/terminus-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Terminus';
    src: url('assets/fonts/terminus-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Terminus';
    src: url('assets/fonts/terminus-bold-italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}
strong {
    font-weight: bold; /* Uses the bold font file */
}
em {
    font-style: italic; /* Uses the italic font file */
}
strong em {
    font-weight: bold; /* Uses the bold-italic font file */
    font-style: italic; /* Uses the bold-italic font file */
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    font-family: 'Terminus', monospace;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

#container {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    line-height: 1.2;
    display: flex;
    overflow: hidden;
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    text-shadow: 
        0 0 5px #00ff00b0,
        0 0 10px #00ff00b0,
        0 0 20px #00ff00b0;
    color: rgba(0, 255, 0, 0.4);
    white-space: pre;
    pointer-events: none; 
    
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

#foreground {
    position: absolute;
    left: 0;
    top: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-shadow: 
        0 0 5px #00ff00, /* Small green glow */
        0 0 10px #00ff00, /* Larger green glow */
        0 0 20px #00ff00; /* Even larger green glow */
    color: #aaffaa; /* White text */
}

#foreground h1, #foreground p, #foreground a {
    font-size: inherit; /* Ensure all text is 16px */
    line-height: inherit; /* Match line height to the background */
    margin: 0; /* Remove default margins */
}

#foreground h1 {
    white-space: pre;
}

#foreground a {
    color: #aaffaa; /* Ensure the link color matches the terminal theme */
}

@property --scrambled {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

.scramblable {
    --scrambled: 1;
    transition: --scrambled 1.5s;
}

.show {
    --scrambled: 0;
}
