@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap');

body {
    background-color: #fffdeb;
    color: #4b2d05;
    font-family: "Baloo 2", sans-serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.header {
    margin-bottom: auto;
    padding: 1rem;
    text-align: center;
    font-weight: 800;
}

.footer {
    padding: 1rem;
    text-align: center;
    font-weight: 400;
    margin-top: auto; /* pushes footer to the bottom */
}

h1 {
    font-size: 48px;
}

.section {
    padding: 0.5rem 1rem;
}

.link-button {
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 1rem 1.5rem;
    text-align: center;
    color: #598e89;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    vertical-align: middle;
    text-decoration: none;
}

.link-button:hover {
    color: #598e89 !important;
    background-color: #f0f5db;
    text-decoration: underline;
    border: 2px solid #8db726;
}

.link-button:active {
    background-color: #d4e9a8;
    text-decoration: underline;
    border: 2px solid #8db726;
}

.link-button:focus {
    background-color: #d4e9a8;
    text-decoration: underline;
    border: 2px solid #8db726;
}

.link-button:visited {
    color:#3b5e5a !important;
    text-decoration: none;
    font-weight:800;
}

.specimen-chart {
    max-width: 1200px;
    margin: auto auto;
    text-align: center;
}

.grid-1col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.flex-space {
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center; /* vertical */
    padding: 1rem;
}

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

.flex-space h3 {
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-transform: uppercase;
    gap: 1rem;
    padding: 1rem;
}

.flex-space p {
    font-family: 'DM Sans', sans-serif;
    gap: 1rem;
    padding: 1rem;
}

hr {
    border: none;
    border-top: 2px solid #8db726;
    margin: 1.5rem 0;
}

/* Alternating background colors */
.green {
    background-color: #d4e9a8;
    border-radius: 6px;
    border: 2px solid #8db726;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.white {
    background-color: #f0f5db;
    border-radius: 6px;
    border: 2px solid #8db726;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.img-placeholder {
    flex: 0 0 33.33%;
    height: 256px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e6dcc7;
}
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text
{
    flex: 1; /* takes the remaining two-thirds */
}

.text p {
    text-align: left;
    text-indent: 2rem;
}

.game-layout { 
    display: flex; 
    justify-content: center; 
    gap: 2rem; 
    margin-top: 2rem; 
}

.scratch-wrapper { 
    flex:1;
    justify-content: center; 
    margin: 2rem 0; 
}

.scratch-wrapper iframe { 
    width: 100%; 
    max-width: 900px;
    height: 700px;
    border: 2px solid #8db726;
    border-radius: 8px; 
}
    
/* Sidebar ad */ 
.ad-sidebar { 
    width: 250px; /* fixed narrow width */ 
    flex-shrink: 0; /* prevents shrinking */ 
} 
.ad-section { 
    background: #fafafa; 
    border: 1px solid #ddd; 
    padding: 1rem; 
    border-radius: 6px; 
    text-align: center; 
} /* Optional: stack on mobile */ 

@media (max-width: 800px) { 
    .game-layout { 
        flex-direction: column; 
        align-items: center; 
    } 
    .ad-sidebar { 
        width: 100%; 
        max-width: 300px; 
    } 
}
