.footer {
    width: 100%; /* Ensure footer stretches across the full width */
}

.parent-vowel {
    display: grid;
    grid-template-columns: 1fr 8fr 1fr 300px;
    grid-template-rows: 1fr;
    grid-column-gap: 2px;
    grid-row-gap: 2px;
}

.div1-vowel { 
    grid-area: 1 / 1 / 2 / 2; 
}

.div2-vowel { 
    grid-area: 1 / 3 / 2 / 4; 
}

.div3-vowel { 
    grid-area: 1 / 2 / 2 / 3; 
}

.sidebar { 
    grid-area: 1 / 4 / 2 / 5;
}

.text {
    padding: 5px;
}

.text a {
    color: #1A73E8;
}

.text b,
.text strong {
    font-weight: 700;
}

.text ul {
    list-style-type: disc;
    margin-left: 30px;
    padding-left: 0;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

/* Base styles */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

.parent-vowel p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

.parent-vowel p a {
    color: #1A73E8;
}

.parent-vowel h2,
.parent-vowel h3 {
    margin-bottom: 20px;
}

/* Unique Character Counter specific styles */
.vc-container {
    max-width: none;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
}

.vc-title {
    font-size: 32px;
    color: #333;
    margin: 0;
    text-align: center;
    padding: 10px 0;
}

.vc-textarea {
    width: 100%;
    height: 300px;
    min-height: 100px;
    border: 4px solid #ccc;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 10px;
    margin-top: 5px;
    transition: border-color 0.3s;
}

.vc-textarea:hover {
    border-color: #A9A9A9;
}

.vc-textarea:focus {
    outline: none;
    border-color: black;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
}

.vc-counts {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin: 10px 0;
}

.vc-counts > div {
    flex: 1;
    text-align: center;
    border: 1px solid black;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vc-counts > div:not(:last-child) {
    border-right: 1px solid black;
}

.vc-counts > div > div:first-child {
    margin-bottom: 5px;
}

.vc-counts > div > div:last-child {
    font-size: 40px;
    color: #1a73e8;
}

#vc-uniqueCharacterCount,
#vc-characterCount {
    font-size: 40px;
}

.vc-controls-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 10px 0;
}

.vc-button {
    padding: 16px;
    background-color: #1d7b1e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    margin: 0 0 0 auto;
}

.vc-button:hover {
    background-color: #45a049;
}

/* Options */
.vc-options {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    font-size: 18px;
}

.vc-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.vc-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Unique Character Table */
.vc-table-section {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 20px;
}

.vc-table-section h2 {
    margin-bottom: 10px;
    text-align: center;
}

.vc-table-section p {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.vc-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 15px;
}

.vc-character-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.vc-character-table th,
.vc-character-table td {
    border: 1px solid #cccccc;
    padding: 10px;
    text-align: center;
    word-break: break-word;
}

.vc-character-table th {
    background-color: #1a73e8;
    color: #ffffff;
    font-weight: 600;
}

.vc-character-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

.vc-character-table tr:hover {
    background-color: #eef4ff;
}

.vc-character-table td:first-child {
    font-weight: 600;
    color: #1a73e8;
}

.vc-character-table tfoot td {
    font-weight: 700;
    background-color: #f1f5ff;
}

.vc-table-limit-message {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin: 10px 0 15px 0;
    font-weight: 500;
}

#vc-downloadCsvButton {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.info-icon {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #1A73E8;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (min-width: 1200px) {
    .div3-vowel { 
        max-width: 900px;
    }
}

@media (max-width: 1200px) {
    .parent-vowel {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-rows: 1fr;
        grid-column-gap: 2px;
        grid-row-gap: 2px;
    }

    .div1-vowel { 
        display: none;
    }

    .div2-vowel { 
        display: none;
    }

    .div3-vowel { 
        grid-area: 1 / 1 / 2 / 2; 
    }

    .sidebar { 
        grid-area: 1 / 2 / 2 / 3;
    }
}

/* 992px */
@media (max-width: 992px) {
    .parent-vowel {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 0;
        grid-row-gap: 0;
    }

    .div3-vowel { 
        grid-area: 1 / 1 / 2 / 2; 
    }

    .sidebar {
        display: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .vc-container {
        padding: 15px;
    }

    .vc-title {
        font-size: 30px;
    }

    .vc-textarea {
        height: 250px;
        min-height: 100px;
        resize: vertical;
    }

    .vc-counts {
        flex-direction: column;
        gap: 10px;
    }

    .vc-counts > div {
        border: 1px solid black;
        box-shadow: none !important;
    }

    .vc-counts > div:last-child {
        border-bottom: 1px solid black;
    }

    .vc-counts > div:not(:last-child) {
        border-right: 1px solid black;
    }

    .vc-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .vc-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vc-button {
        width: 100%;
        margin: 0;
    }

    .vc-character-table {
        font-size: 14px;
    }

    .vc-character-table th,
    .vc-character-table td {
        padding: 8px;
    }

    #vc-downloadCsvButton {
        width: 100%;
    }

    .remove-middle-border > div::after {
        box-shadow: none !important;
    }

    .remove-middle-border > div {
        box-shadow: none !important;
    }
}

@media (max-width: 400px) {
    .vc-container {
        padding: 10px;
    }

    .vc-textarea {
        height: 180px;
        min-height: 100px;
        resize: vertical;
    }

    .text {
        padding: 5px;
    }

    #vc-uniqueCharacterCount,
    #vc-characterCount {
        font-size: 30px;
    }

    .vc-character-table {
        font-size: 13px;
    }

    .vc-character-table th,
    .vc-character-table td {
        padding: 6px;
    }
}