body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    text-align: center;
    margin: 0;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 107, 0.4) 0%,
        rgba(255, 159, 67, 0.4) 25%,
        rgba(103, 178, 241, 0.4) 50%,
        rgba(145, 126, 255, 0.4) 75%,
        rgba(255, 107, 213, 0.4) 100%
    );
    animation: gradientMove 15s ease infinite;
    background-size: 400% 400%;
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.4) 0%, transparent 40%),
        linear-gradient(120deg, 
            rgba(255, 107, 107, 0.2) 0%,
            rgba(255, 159, 67, 0.2) 25%,
            rgba(103, 178, 241, 0.2) 50%,
            rgba(145, 126, 255, 0.2) 75%,
            rgba(255, 107, 213, 0.2) 100%
        );
    z-index: -1;
    animation: gradientMove 15s ease infinite alternate;
    background-size: 400% 400%;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    padding: clamp(15px, 2vw, 25px);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.container:hover {
    transform: translateY(-5px);
}

h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    margin: 10px 0;
}

.text-box {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 15px;
    padding: clamp(10px, 2vw, 20px);
    font-size: clamp(14px, 1.6vw, 16px);
    border: none;
    background: #f8f9fa;
    border-radius: 10px;
    line-height: 1.4;
    color: #2c3e50;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

textarea {
    width: 96%;
    height: clamp(80px, 15vh, 120px);
    font-size: clamp(14px, 1.8vw, 16px);
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: none;
    margin-bottom: 15px;
}

textarea:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

button {
    background: #4dabf7;
    color: white;
    border: none;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
    font-size: clamp(14px, 1.8vw, 16px);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    background: #339af0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 171, 247, 0.3);
}

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

#result {
    margin-top: 10px;
    font-size: clamp(16px, 2vw, 20px);
    color: #495057;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 10px;
        padding: 20px;
    }
    
    button {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
}

@media (max-height: 700px) {
    .profile-thumbnail {
        width: 50px;
        height: 50px;
        margin-bottom: 5px;
    }

    .profile-thumbnail::before {
        font-size: 1.2em;
    }

    .profile-name {
        font-size: 1em;
        margin: 5px 0;
    }

    h2 {
        margin: 5px 0;
    }

    .text-box {
        margin-bottom: 10px;
        padding: 10px;
    }

    textarea {
        height: clamp(60px, 12vh, 80px);
        margin-bottom: 10px;
    }

    button {
        padding: 8px 20px;
    }
}

.profile-thumbnail {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    margin: 0 auto 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #4dabf7, #339af0);
    box-shadow: 0 4px 20px rgba(77, 171, 247, 0.3);
    animation: float 3s ease-in-out infinite;
}

.profile-thumbnail::before {
    content: 'PYP';
    font-size: clamp(1.5em, 3vw, 2.2em);
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-name {
    font-size: clamp(1.2em, 2vw, 1.6em);
    font-weight: 600;
    color: #2c3e50;
    margin: 5px 0;
    background: linear-gradient(45deg, #4dabf7, #339af0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(77, 171, 247, 0.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-details p {
    margin: 0;
}