textarea {
    width: 100%;
    max-width: 400px;
    height: 120px;
    resize: none;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: #444;
}

.main-container {
    text-align: center;
    max-width: 600px;
    width: 90%;
    margin: auto;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: clamp(32px, 8vw, 42px);
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff4b8b, #ff7eb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(255, 75, 139, 0.15));
}

.subtitle {
    color: #666;
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

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, #ff758c, #ff7eb3);
    display: block;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    width: 60%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
    transition: all 0.3s ease;
}

.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, 182, 193, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: float linear infinite;
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-120vh);
    }
}

@media (max-width:600px) {

    .bubble {
        background: rgba(255, 182, 193, 0.15);
    }

    .bubble:nth-child(2),
    .bubble:nth-child(4) {
        display: none;
    }
}

#result {
    margin-top: 30px;
}