/* Grundlegende Stile & Matrix-Theme */
body {
    background-color: #000000;
    color: #00FF41;
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    text-shadow: 0 0 5px #00FF41, 0 0 10px #00FF41;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

/* Eingabe-Container */
.wish-container {
    background-color: rgba(0, 10, 0, 0.8);
    border: 1px solid #00FF41;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    animation: fadeInTerminal 1.5s ease-out;
}

@keyframes fadeInTerminal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    letter-spacing: 3px;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 4px #00FF41, 0 0 11px #00FF41, 0 0 19px #00FF41;
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

.prompt {
    font-size: 1.1em;
    margin-bottom: 15px;
}

textarea {
    width: calc(100% - 22px);
    background-color: #001a00;
    border: 1px solid #00FF41;
    color: #00FF41;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    padding: 10px;
    margin-bottom: 15px;
    resize: vertical;
    box-shadow: inset 0 0 8px rgba(0, 255, 65, 0.3);
    outline: none;
}

textarea::placeholder { color: #008a22; opacity: 0.7; }
textarea:focus { box-shadow: 0 0 10px #00FF41, inset 0 0 8px rgba(0, 255, 65, 0.5); }

button {
    background-color: transparent;
    border: 1px solid #00FF41;
    color: #00FF41;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 0 5px #00FF41;
}
button:hover { background-color: #00FF41; color: #000000; box-shadow: 0 0 15px #00FF41; text-shadow: none; }
button:active { transform: scale(0.98); }

.feedback { margin-top: 15px; font-size: 1.1em; min-height: 1.5em; opacity: 0; transition: opacity 0.5s ease-in-out; }
.feedback.visible { opacity: 1; }

/* Pinwand-Container */
.pinwall-container {
    background-color: rgba(0, 10, 0, 0.8);
    border: 1px solid #00FF41;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.pinwall-container h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: flicker 4s infinite alternate 0.5s;
}

#pinwall {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    border: 1px dashed rgba(0, 255, 65, 0.3);
    padding: 15px;
}

#pinwall .loading-message,
#pinwall .empty-message {
    color: #00aa33;
    font-style: italic;
    text-align: center;
}

.wish-item {
    background-color: rgba(0, 255, 65, 0.05);
    border-left: 3px solid #00FF41;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeInWish 0.5s ease-out;
}

@keyframes fadeInWish {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scrollbar im Matrix-Stil (Webkit) */
#pinwall::-webkit-scrollbar { width: 8px; }
#pinwall::-webkit-scrollbar-track { background: #001a00; border: 1px solid #00FF41; }
#pinwall::-webkit-scrollbar-thumb { background: #00FF41; box-shadow: 0 0 5px #00FF41; }
#pinwall::-webkit-scrollbar-thumb:hover { background: #33ff66; }

/* Scrollbar im Matrix-Stil (Firefox) */
#pinwall {
    scrollbar-width: thin;
    scrollbar-color: #00FF41 #001a00;
}