html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Ubuntu Mono';
    font-weight: 800; /* Added for better readability */
    -webkit-font-smoothing: antialiased; /* Better font rendering */
    -moz-osx-font-smoothing: grayscale; /* Better font rendering */
}

.window {
    width: 95%;
    max-width: 800px;
    min-width: 280px;
    margin-top: 20px;
    height: 90vh;
    border: 7px solid #333333;
    border-radius: 5px;
    background-color: #000000;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.title-bar {
    background-color: #333333;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #555555;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: default;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}

.buttons {
    display: flex;
    gap: 0.7rem;
}

.button {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background-color: #FF5F57;
}

.button.minimize {
    background-color: #FFBD2E;
}

.button.maximize {
    background-color: #28C840;
}

.content {
    padding: 1.25rem;
    text-align: left;
    white-space: pre-wrap;
    word-break: keep-all;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-size: 2rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
    cursor: default;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}

.line {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-bottom: 0.4rem;
}

.cursor {
    display: inline-block;
    width: 0.875rem;
    height: 1.4rem;
    background-color: #00FF00;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 32px;
    }
    
    .window {
        width: 98%;
        height: 95vh;
        margin: 0.3125rem;
        padding: 0;
    }
    
    .content {
        padding: 0.625rem;
        line-height: 1.6;
    }
    
    .title-bar {
        padding: 0.875rem 1.125rem;
    }
    
    .button {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .cursor {
        height: 1.4rem;
    }
    
    .prompt-symbol {
        margin-right: 0.875rem;
    }
    
    .line {
        margin-bottom: 1rem;
        padding: 0 0.3125rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 24px;
    }
    
    .window {
        width: 98%;
        height: 95vh;
    }
    
    .content {
        padding: 0.625rem;
    }
}

@media screen and (max-width: 480px) and (min-height: 800px) {
    html {
        font-size: 36px;
    }
}
