.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;
}

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

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

.bc-intro {
    width: 100%;
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

.bc-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;
}

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

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

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

.bc-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);
}

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

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

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

#bc-byteCount,
#bc-characterCount {
    font-size: 40px;
}

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

.bc-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;
}

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

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

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

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

.bc-select {
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    font-size: 16px;
    cursor: pointer;
}

.bc-select:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Byte Details Table */
.bc-table-section {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 20px;
}

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

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

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

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

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

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

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

.bc-byte-table tr:hover {
    background-color: #eef4ff;
}

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

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

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

#bc-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) {
    .bc-container {
        padding: 15px;
    }

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

    .bc-intro {
        font-size: 16px;
    }

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

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

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

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

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

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

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

    .bc-option {
        width: 100%;
        justify-content: space-between;
    }

    .bc-select {
        width: 100%;
        max-width: 220px;
    }

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

    .bc-byte-table {
        font-size: 14px;
    }

    .bc-byte-table th,
    .bc-byte-table td {
        padding: 8px;
    }

    #bc-downloadCsvButton {
        width: 100%;
    }

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

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

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

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

    .text {
        padding: 5px;
    }

    #bc-byteCount,
    #bc-characterCount {
        font-size: 30px;
    }

    .bc-byte-table {
        font-size: 13px;
    }

    .bc-byte-table th,
    .bc-byte-table td {
        padding: 6px;
    }

    .bc-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .bc-select {
        max-width: none;
    }
}

/* Final hamburger menu override */
@media screen and (max-width: 1024px) {
    body #menu {
        position: fixed !important;
        top: 70px !important;
        left: auto !important;
        right: -280px !important;
        transform: none !important;
        translate: none !important;
        width: 260px !important;
        height: auto !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        background-color: #ffffff !important;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.18) !important;
        z-index: 999999 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding: 20px 0 !important;
        transition: right 0.3s ease !important;
    }

    body #menu.activated,
    body #menu.active,
    body #menu.show-menu {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        translate: none !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body #menu .list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        list-style: none !important;
    }

    body #menu .list-item {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body #menu .list-link {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        color: #333333 !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #eeeeee !important;
        text-decoration: none !important;
        font-size: 16px !important;
    }

    body #menu .list-link:hover {
        background-color: #f5f5f5 !important;
    }

    .menu-toggle-icon {
        cursor: pointer !important;
        z-index: 1000000 !important;
        position: relative !important;
    }

    .menu-toggle-icon .close-menu-icon {
        display: none !important;
    }

    .menu-toggle-icon.activated .open-menu-icon,
    .menu-toggle-icon.active .open-menu-icon {
        display: none !important;
    }

    .menu-toggle-icon.activated .close-menu-icon,
    .menu-toggle-icon.active .close-menu-icon {
        display: block !important;
    }
}