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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}


.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}


#title-screen {
    position: relative;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#title-screen h1 {
    font-size: 3rem;
    font-weight: 400;
    color: #4ecdc4;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    color: #999;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.input-container {
    display: flex;
    gap: 10px;
    max-width: 500px;
    width: 100%;
}

#title-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

#title-input:focus {
    border-color: #4ecdc4;
}

#title-input::placeholder {
    color: #777;
}

#go-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-family: inherit;
    background: #4ecdc4;
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

#go-btn:hover {
    background: #45b7aa;
    transform: translateY(-1px);
}

.hint {
    margin-top: 30px;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
    max-width: 400px;
}


#note-screen {
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #111;
    border-bottom: 1px solid #222;
}

#current-title {
    font-size: 1.2rem;
    color: #4ecdc4;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    font-family: inherit;
    padding: 4px 0;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s;
    min-width: 0;
    max-width: none;
    flex: 1;
    cursor: pointer;
}

#current-title:focus {
    border-bottom-color: #4ecdc4;
    cursor: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

#save-indicator {
    color: #4ecdc4;
    font-size: 1.5rem;
    animation: fadeIn 0.3s ease;
}

#save-indicator.hidden {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#back-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: #1a1a1a;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#back-btn:hover {
    color: #fff;
    border-color: #4ecdc4;
    background: #222;
}

#note-content {
    flex: 1;
    padding: 25px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.7;
    background: #0a0a0a;
    color: #e0e0e0;
    border: none;
    outline: none;
    resize: none;
}

#note-content::placeholder {
    color: #666;
}

footer {
    padding: 10px 25px;
    background: #111;
    border-top: 1px solid #222;
}

.info {
    font-size: 0.75rem;
    color: #777;
}

/* Responsive */
@media (max-width: 600px) {
    #title-screen h1 {
        font-size: 2rem;
    }

    .input-container {
        flex-direction: column;
    }

    #go-btn {
        width: 100%;
    }
}

.lang-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: bold;
    background: transparent;
    color: #999;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.lang-toggle:hover {
    color: #4ecdc4;
    border-color: #4ecdc4;
}