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

/* Tanka Checker 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: 260px;
    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: none;
    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;
    flex-wrap: nowrap;
}

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

.vc-counts > div:not(:last-child) {
    border-right: none;
}

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

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

.count-type-label {
    font-size: 12px;
    font-weight: 300;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.line-label-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 6px;
    min-height: 28px;
    transition: transform 0.2s ease;
}

.line-label {
    color: #444;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
}

.line-status {
    width: 0;
    overflow: hidden;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    transition: width 0.2s ease, margin-left 0.2s ease;
}

.line-status.match {
    color: #188038;
    width: 20px;
    margin-left: 8px;
}

.line-status.over {
    color: #d93025;
    width: 20px;
    margin-left: 8px;
}

.line-label-row:has(.line-status.match),
.line-label-row:has(.line-status.over) {
    transform: translateX(-8px);
}

.count-under {
    background-color: white;
}

.count-match {
    background-color: #e6f4ea;
}

.count-over {
    background-color: #fce8e6;
}

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

.blackColor {
    color: black;
}

.expected-syllables {
    font-size: 0.72em;
    color: #777;
    font-weight: 400;
}

#vc-exceedMessage {
    color: red;
    border: 3px solid red;
    padding: 10px;
    margin-bottom: 10px;
    display: none;
    width: 100%;
    text-align: center;
}

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

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

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

    .vc-textarea {
        height: 250px;
    }

    .vc-counts {
        flex-direction: column;
    }

    .vc-counts > div {
        min-width: 100%;
        border-top: 1px solid black;
        border-left: 1px solid black;
        border-right: 1px solid black;
        border-bottom: none;
        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-button {
        width: 100%;
    }

    .count-type-label {
        font-size: 11px;
    }

    .line-label {
        font-size: 20px;
    }

    .line-status {
        font-size: 22px;
    }

    .line-status.match,
    .line-status.over {
        width: 18px;
        margin-left: 6px;
    }

    .line-label-row:has(.line-status.match),
    .line-label-row:has(.line-status.over) {
        transform: translateX(-6px);
    }

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

    .text {
        padding: 5px;
    }

    .line-label {
        font-size: 18px;
    }

    .line-status {
        font-size: 20px;
    }

    .line-status.match,
    .line-status.over {
        width: 16px;
        margin-left: 5px;
    }

    .line-label-row:has(.line-status.match),
    .line-label-row:has(.line-status.over) {
        transform: translateX(-5px);
    }

    .vc-counts > div > div:last-child {
        font-size: 34px;
    }
}