/* Ocean Blue Theme with Doodles - CommentSense */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Floating Wave Doodles */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Floating Bubbles */
.bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 15s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 50%;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 70px;
    height: 70px;
    left: 70%;
    animation-delay: 6s;
}

.bubble:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 85%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.6;
    }
}

.container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 147, 233, 0.3);
    position: relative;
    z-index: 10;
}

/* Decorative Corner Doodles */
.container::before {
    content: '🐠';
    position: absolute;
    top: -25px;
    right: 20px;
    font-size: 50px;
    animation: swim 3s infinite ease-in-out;
}

.container::after {
    content: '🐚';
    position: absolute;
    bottom: -20px;
    left: 20px;
    font-size: 40px;
    animation: wiggle 2s infinite ease-in-out;
}

@keyframes swim {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(10px) rotate(5deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

h1 {
    margin-bottom: 5px;
    color: #0093E9;
    font-size: 42px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 147, 233, 0.1);
    position: relative;
}

/* Wave decoration under title */
h1::after {
    content: '〰️〰️〰️';
    display: block;
    font-size: 20px;
    margin-top: 5px;
    letter-spacing: 5px;
    opacity: 0.5;
}

.subtitle {
    color: #555;
    font-size: 15px;
    margin-bottom: 30px;
    font-weight: 500;
    position: relative;
    padding-left: 30px;
}

/* Droplet icon before subtitle */
.subtitle::before {
    content: '💧';
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 20px;
    animation: drip 2s infinite ease-in-out;
}

@keyframes drip {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    font-size: 15px;
    margin-bottom: 20px;
    border: 2px solid #80D0C7;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

textarea:focus {
    outline: none;
    border-color: #0093E9;
    box-shadow: 0 0 0 3px rgba(0, 147, 233, 0.2);
}

/* Textarea wrapper for decoration */
.textarea-wrapper {
    position: relative;
}

.textarea-wrapper::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.3;
    pointer-events: none;
}

button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 147, 233, 0.4);
    position: relative;
    overflow: hidden;
}

/* Wave effect on button */
button::before {
    content: '🌊';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: all 0.3s ease;
}

button:hover::before {
    left: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 147, 233, 0.6);
}

button:active {
    transform: translateY(0);
}

.result {
    margin-top: 25px;
    background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0093E9;
    position: relative;
}

/* Decoration for result box */
.result::before {
    content: '🎯';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 25px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.result h3 {
    margin-top: 0;
    color: #0093E9;
    font-size: 20px;
    position: relative;
    padding-left: 30px;
}

/* Star decoration for result title */
.result h3::before {
    content: '⭐';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
}

.hidden {
    display: none;
}

pre {
    font-size: 14px;
    white-space: pre-wrap;
    background: white;
    padding: 15px;
    border-radius: 8px;
    color: #333;
    line-height: 1.6;
    border: 2px dashed #80D0C7;
}

/* Floating stars decoration */
.star-decoration {
    position: fixed;
    font-size: 25px;
    pointer-events: none;
    animation: twinkle 3s infinite ease-in-out;
    z-index: 1;
}

.star-decoration:nth-child(6) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.star-decoration:nth-child(7) {
    top: 25%;
    right: 8%;
    animation-delay: 1s;
}

.star-decoration:nth-child(8) {
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Ocean creatures floating around */
.ocean-creature {
    position: fixed;
    font-size: 40px;
    pointer-events: none;
    z-index: 1;
    animation: float-creature 20s infinite ease-in-out;
}

.ocean-creature:nth-child(9) {
    top: 20%;
    left: -50px;
    animation-delay: 0s;
}

.ocean-creature:nth-child(10) {
    top: 60%;
    left: -50px;
    animation-delay: 5s;
}

@keyframes float-creature {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(calc(100vw + 100px)) translateY(-30px);
    }
    51% {
        transform: translateX(calc(100vw + 100px)) translateY(-30px) scaleX(-1);
    }
    100% {
        transform: translateX(0) translateY(0) scaleX(-1);
    }
}