/* General body and container styling */
body {
    font-family: 'VT323', monospace;
    background-color: #000;
    color: #00ff00;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    /* Creates the CRT screen effect with scanlines */
    background-image: repeating-linear-gradient(
        #000000 0px,
        #000000 1px,
        #00ff001a 1px,
        #0000001a 2px
    );
}
/* Container for the entire terminal UI */
.terminal-container {
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px #00ff00;
    padding: 10px;
    box-sizing: border-box;
    background-color: #000; /* Ensure the background is black */
}
/* Generic box-shadow for a glowing border effect */
.glow-border {
    border: 1px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
}
/* A generic style for content sections */
.content-page {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    white-space: pre-wrap;
    scrollbar-width: none;
    line-height: 1.2;
}
.content-page::-webkit-scrollbar {
    display: none;
}
/* This class will be used to hide pages */
.hidden {
    display: none;
}
/* Header section with titles */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    padding-bottom: 5px;
}
/* Navigation tabs */
.terminal-nav {
    display: flex;
    gap: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #00ff00;
    box-shadow: 0 1px 5px #00ff00;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.terminal-tab {
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid transparent;
    text-shadow: 0 0 2px #00ff00;
    transition: all 0.2s ease;
}
.terminal-tab.active {
    border: 1px solid #00ff00;
    background-color: #00ff001a;
    box-shadow: 0 0 5px #00ff00;
}
/* Main content area split into two columns - This is the corrected layout for chat page */
.main-content {
    flex: 1;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
/* Left-side content (chat and input) */
.left-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Chat window */
.chat-window {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    white-space: pre-wrap;
    scrollbar-width: none; /* Firefox */
}
.chat-window::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
/* Reduced the margin for a tighter, more uniform look */
.chat-message {
    margin-bottom: 10px; /* Reduced from 10px */
    line-height: 1.2;
}
.chat-message.user {
    color: #00ffff; /* A slightly different color for user messages */
}
/* Input and virtual keyboard section */
.input-area {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
}
.input-field {
    display: flex;
    gap: 5px;
    align-items: center;
    width: 70%;
    height: 100%;
}
#chat-input{
    height: 90%;
}
.ethan-white{
    color: antiquewhite;
}

.input-field label {
    white-space: nowrap;
}
.input-field input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    outline: none;
    text-shadow: 0 0 2px #00ff00;
    box-shadow: 0 0 5px #00ff0020;
}
/* Specific style for login inputs */
.input-field.login input {
    border: 1px solid #00ff00;
    box-shadow: 0 0 3px #00ff00;
}
.input-field input:focus {
    box-shadow: 0 0 5px #00ff00;
}
.keyboard-area {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}
.key-button {
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    box-shadow: 0 0 3px #00ff00;
    padding: 2px 10px;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}
.key-button:active {
    box-shadow: 0 0 10px #00ff00;
    background-color: #00ff00;
    color: #000;
}
.send-button, .login-button {
    grid-column: span 5;
    text-align: center;
    padding: 10px;
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
}
.send-button:active, .login-button:active {
    box-shadow: 0 0 10px #00ff00;
    background-color: #00ff00;
    color: #000;
}
/* Right-side content (info panel) */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    text-align: center;
}
.ethan-pic{
    width: 50%;
}
.profile-info {
    flex: 1;
    width: 50%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}
.profile-img {
    width: 150px;
    height: 150px;
    border: 1px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
    object-fit: cover;
    object-position: center top; /* Focus on the face */
    filter: sepia(100%) hue-rotate(90deg) saturate(300%);
}
.bio-section {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    line-height: 1.2;
    scrollbar-width: none;
    color: white;
}
.bio-section::-webkit-scrollbar {
    display: none;
}
/* A simple message box for user feedback */
.message-box {
    padding: 10px;
    text-align: center;
    border: 1px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
    margin-top: 10px;
}
.message-box.error {
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}
/* Footer section */
.terminal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-top: 5px;
    border-top: 1px solid #00ff00;
    box-shadow: 0 -1px 5px #00ff00;
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .terminal-container {
        height: 95vh;
        padding: 10px;
        overflow-y: auto;
    }
    .main-content {
        flex-direction: column;
        overflow-y: auto;
    }
    .right-panel {
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        text-wrap: wrap;
        width: 100%;
    }
    .left-panel{
        width: 100%;
    }
    .profile-section {
        flex: 1;
    }
    .bio-section {
        flex: 2;
    }
    .keyboard-area {
        margin-right: 10px;
        grid-template-columns: repeat(4, 1fr);
    }
    .input-area {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }
    .input-field {
        width: 80%;
        height: 100%;
    }
    #chat-input{
        height: 90%;
    }
    .send-button {
        grid-column: span 4;
    }
    .profile-img {
        width: 80px;
        height: 80px;
    }
}