@keyframes slowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #0f0f0f, #1c1c1c, #2d1b3d, #141414);
    background-size: 400% 400%;
    animation: slowFlow 60s ease infinite;
    color: #f0f0f0;
    font-family: 'Playwrite IE', cursive;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/* YAZI ALANI - SOL ÜST */
#text-container {
    position: absolute;
    top: 60px;
    left: 60px;
    width: 45%;
    text-align: left;
    z-index: 10;
}

#typewriter {
    font-size: 0.85rem; /* Yazıları küçülttük */
    line-height: 2.4;   /* Satır boşluklarını eşitledik */
    white-space: pre-wrap;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.2);
}

/* MESAJ KUTUSU - SAĞ ÜST (Resimdeki gibi düzeltildi) */
#message-box {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 340px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Elemanlar arası eş boşluk */
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
}

#message-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Textarea Düzeltmesi */
#replyText {
    width: 100%;
    height: 110px;
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(147, 112, 219, 0.2);
    border-radius: 20px;
    padding: 15px;
    color: #e0e0e0;
    font-family: 'Playwrite IE', cursive;
    font-size: 0.8rem;
    resize: none;
    outline: none;
    box-sizing: border-box; /* Taşmayı önler */
    transition: border 0.3s;
}

#replyText:focus {
    border: 1.5px solid rgba(147, 112, 219, 0.5);
}

/* Buton Düzeltmesi */
button {
    width: 100%;
    background: rgba(147, 112, 219, 0.05);
    color: #b39ddb;
    border: 1.5px solid rgba(147, 112, 219, 0.3);
    padding: 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Playwrite IE', cursive;
    font-size: 0.9rem;
    transition: all 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    background: rgba(147, 112, 219, 0.15);
    color: #fff;
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.2);
}