:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    user-select: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
    width: 100%;
}

h1 {
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
    opacity: 0.8;
}

input[type="password"] {
    background-color: #000;
    border: 1px solid #222;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.5rem;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    text-align: center;
    outline: none;
    border-radius: 0;
    font-family: 'Courier New', Courier, monospace;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

input[type="password"]:focus {
    border-color: #555;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

button {
    background-color: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 12px 60px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.4s ease;
    text-transform: lowercase;
    letter-spacing: 4px;
}

button:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.hint {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    opacity: 0.5;
    font-style: normal;
    letter-spacing: 1px;
    text-align: center;
    margin-top: -20px;
}

.feedback {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    text-align: center;
    color: #999;
    min-height: 1.2rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.4rem;
    }

    input[type="password"] {
        font-size: 1.2rem;
        padding: 12px 15px;
    }

    button {
        padding: 10px 40px;
        font-size: 1rem;
    }

    .container {
        gap: 40px;
    }

    #welcome-screen {
        font-size: 1.8rem;
    }

    #notes-screen {
        padding: 15px;
    }

    #notes-area {
        font-size: 1rem;
    }
}

#welcome-screen {
    display: none;
    position: absolute;
    inset: 0;
    background: #000;
    color: #fff;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 10;
}

#notes-screen {
    display: none;
    position: absolute;
    inset: 0;
    background: #000;
    box-sizing: border-box;
    padding: 40px;
    z-index: 5;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s ease;
}

#notes-area {
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    line-height: 1.5;
}
