/* Bubble Text Generator Styles */
.bubble-text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.bubble-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bubble-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.bubble-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.bubble-tool-section {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.tool-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .tool-wrapper {
        flex-direction: row;
    }
}

.input-section, .output-section {
    flex: 1;
}

.input-section textarea, .output-section .bubble-output {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s;
}

.input-section textarea:focus, .output-section .bubble-output:focus {
    border-color: #a777e3;
    outline: none;
}

.bubble-output {
    background-color: #f9f9f9;
    overflow-wrap: break-word;
    line-height: 1.6;
    font-size: 1.2rem;
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.bubble-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.bubble-btn:not(.tertiary) {
    background-color: #6e8efb;
    color: white;
}

.bubble-btn.secondary {
    background-color: #4CAF50;
}

.bubble-btn.tertiary {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.bubble-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bubble-btn:active {
    transform: translateY(0);
}

.preview-text {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

#previewText {
    font-style: normal;
    color: #333;
    word-break: break-all;
}

.bubble-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h2 {
    color: #6e8efb;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-card p, .info-card li {
    line-height: 1.6;
    color: #555;
}

.info-card ol, .info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

.bubble-faq-section {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bubble-faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #6e8efb;
    font-size: 1.8rem;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* Bubble text character styling */
.bubble-char {
    display: inline-block;
    background-color: #000;
    color: white;
    border-radius: 50%;
    width: 1.2em;
    height: 1.2em;
    text-align: center;
    line-height: 1.2em;
    margin: 0 2px;
    font-weight: bold;
}