.footer {
    width: 100%;
}

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

/* Calculator 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%;
    margin: 5px 0;
    gap: 10px;
}

.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 > div:first-child {
    margin-bottom: 5px;
}

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

#vc-averageWordLength,
#vc-wordCount {
    font-size: 40px;
}

#vc-longestWordLength,
#vc-shortestWordLength,
#vc-wordsPerSentence,
#vc-wordsPerParagraph,
#vc-medianWordLength,
#vc-uniqueWordCount,
#vc-letterCount,
#vc-characterCount {
    font-size: 30px;
}

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

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

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

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

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

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

    .vc-textarea {
        height: 250px;
        min-height: 160px;
    }

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

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

    .vc-button {
        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: 140px;
    }

    .text {
        padding: 5px;
    }

    #vc-averageWordLength,
    #vc-wordCount {
        font-size: 30px;
    }

    #vc-longestWordLength,
    #vc-shortestWordLength,
    #vc-wordsPerSentence,
    #vc-wordsPerParagraph,
    #vc-medianWordLength,
    #vc-uniqueWordCount,
    #vc-letterCount,
    #vc-characterCount {
        font-size: 24px;
    }
}