/* GENEL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden !important;
    background: linear-gradient(135deg, #ffdddd, #ffe6b3, #e1ffd9);
    background-size: 300% 300%;
    animation: bgMove 12s ease infinite;
    font-family: Arial, sans-serif;
}

/* ARKA PLAN ANİMASYONU */
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* YILBAŞI GLOWLARI — KESİNLİKLE KAYMA YAPMAZ */
.glow, .glow2 {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.glow {
    width: 350px;
    height: 350px;
    background: #ff6b6b;
    filter: blur(140px);
    opacity: 0.35;
    top: -80px;
    left: -80px;
}

.glow2 {
    width: 320px;
    height: 320px;
    background: #8aff95;
    filter: blur(140px);
    opacity: 0.30;
    bottom: -70px;
    right: -70px;
}

/* BAŞLIKLAR */
h2, h3 {
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin: 20px 0;
}

/* ANA KUTU */
.box, .incoming {
    width: 380px;
    max-width: 90%;
    margin: 20px auto;
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.20);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* MESAJ ALANI */
textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border-radius: 12px;
    border: none;
    outline: none;
    resize: none;
    background: rgba(255,255,255,0.25);
    color: #000;
    font-size: 16px;
}

/* BUTON */
#sendBtn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #d62828;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}

#sendBtn:hover {
    transform: scale(1.05);
}

#sendBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,200,0.6), transparent);
    transition: 0.6s;
}

#sendBtn:hover::before {
    left: 150%;
}

/* MESAJ BALONLARI */
.msg {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
}

.msg.me {
    background: linear-gradient(135deg, #ff4d4d, #d62828);
    animation: slideRight 0.4s ease;
}

.msg.other {
    background: linear-gradient(135deg, #2ecc71, #1b9c51);
    animation: slideLeft 0.4s ease;
}

/* ANİMASYONLAR */
@keyframes slideRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* KAR YAĞIŞI */
#snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: fixed;
    top: -40px;
    pointer-events: none;
    animation: fallSnow linear forwards;
}

@keyframes fallSnow {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(20px) translateY(50vh) rotate(180deg);
    }
    100% {
        transform: translateX(-20px) translateY(110vh) rotate(360deg);
    }
}


@keyframes fall {
    to { transform: translateY(110vh); }
}

/* KARAKTER SAYACI */
#charCount {
    font-size: 14px;
    color: #ffdf80;
    text-align: right;
    margin-top: 6px;
}
h2,h3{
    text-align: center;
}