* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Special Elite', monospace;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.prompt-container {
    font-size: 2rem;
    text-align: center;
    min-height: 3rem;
    margin-bottom: 20px;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#journal-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#journal-entry {
    width: 100%;
    min-height: 200px;
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    font-family: inherit;
    resize: vertical;
    font-size: 1rem;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
    align-self: flex-end;
}

button:hover {
    background-color: #444;
}

#ai-response-container {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

#ai-response-container.visible {
    opacity: 1;
}

#ai-response {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
    min-height: 200px;
    white-space: pre-wrap;
}

.hidden {
    display: none;
}