textarea {
    width: 100%;
    max-width: 400px;
    height: 120px;
    resize: none;
}

body {
    margin: 0;
    font-family: sans-serif;
    background: linear-gradient(180deg, #e8edf7, #dfe5f2);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.main-container {
    text-align: center;
    max-width: 600px;
    width: 90%;
    margin: auto;
    z-index: 2;
}

h1 {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 10px;
}

.subtitle {
    color: #555;
    margin-bottom: 25px;
}

textarea {
    width: 100%;
    min-height: 140px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    resize: none;
    box-sizing: border-box;
}

button:hover {
    transform: translateY(-2px);
}

#inputText {
    width: 100%;
    min-height: 120px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    resize: none;
    overflow-y: auto;
}

#result {
    margin-top: 25px;
    width: 100%;
    min-height: 120px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    resize: none;
    overflow-y: auto;
}

#charCount {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 12px;
    color: #666;
}

.sendBtn {
    background: linear-gradient(90deg, #4a7cff, #8e3ff5);
    display: block;
    padding: 10px 30px;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    width: 50%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.copyBtn {
    margin-top: 20px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    display: block;
    padding: 10px 30px;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    width: 50%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-120vh);
    }
}

@media (max-width:600px) {

    .bubble:nth-child(2),
    .bubble:nth-child(4) {
        display: none;
    }
}

#result {
    margin-top: 30px;
}