.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 ul {
    list-style-type: disc;
    margin-left: 35px;
    padding-left: 0;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

.text ol {
    margin-left: 35px;
    padding-left: 0;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

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

.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: 56px;
    color: #333;
    margin: 0 auto;
    text-align: center;
    padding: 10px 0;
}

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

.text a { color: #1A73E8; }
.parent-vowel h2, h3 { margin-bottom: 20px; }

#counter {
    font-size: 72px;
    margin: 20px 0;
}

/* ----- icon + centered text button helpers ----- */
.btn-with-icon{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* keeps text centered */
    gap: 0;
    overflow: hidden;
}

.btn-with-icon .btn-icon{
    position: absolute;
    left: 18px;
    font-weight: 700;
    line-height: 1;
}

.btn-with-icon .btn-text{
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Click button */
#clickMeButton {
    font-size: 54px;
    padding: 32px 0;
    width: 90%;
    box-sizing: border-box;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 14px;
}

#clickMeButton .btn-icon{
    font-size: 44px;
}

/* Row for Decrement + Reset */
.button-row{
    width: 90%;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Decrement button (wide, same row as reset) */
#decrementButton {
    flex: 1.4;            /* makes it wider than reset */
    font-size: 24px;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#decrementButton .btn-icon{
    font-size: 28px;
}

/* Reset button (still wide-ish, but less than decrement) */
#resetButton {
    flex: 1;
    font-size: 18px;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Hover/active */
#clickMeButton:hover { background-color: #45a049; }
#clickMeButton:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

#decrementButton:hover { background-color: #e64a19; }
#decrementButton:active {
    background-color: #d84315;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

#resetButton:hover { background-color: #c62828; }
#resetButton:active {
    background-color: #b71c1c;
    box-shadow: 0 3px #666;
    transform: translateY(2px);
}

/* Breakdown box */
.click-breakdown {
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    background: #f9f9f9;
    box-sizing: border-box;
}

.click-breakdown-title {
    margin: 0 0 12px 0;
    font-size: 22px;
}

.click-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.click-metric {
    border: 1px solid #000;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.click-metric-label {
    font-size: 14px;
    margin-bottom: 6px;
}

.click-metric-value {
    font-size: 28px;
    color: #1a73e8;
}

/* Responsive */
@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) {
    .vc-title { font-size: 42px; }

    .parent-vowel {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
        grid-row-gap: 0;
    }
    .div3-vowel { grid-area: 1 / 1 / 2 / 2; }

    .click-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    #clickMeButton { width: 100%; }
    .button-row { width: 100%; flex-direction: column; }
    #decrementButton, #resetButton { width: 100%; }
    .click-breakdown { width: 100%; }
    .click-metrics-grid { grid-template-columns: 1fr; }
    .vc-title { font-size: 36px; }
}

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