/* === Reset & Base === */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

.homepage-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    height: 150px;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(to right, #f0f8ff, #d4edda);
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.hero-text h1 {
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(24, 55, 62, 0.108);
    color: #2d572c;
    margin-top:10%;
    margin-bottom: 2%;
}

.hero-text p {
    margin-top: -6px;
    font-size: 1.3rem; 
    display: inline-block; 
    transform: scaleY(1.1) skewX(-8deg) translateX(17%); 
    transform-origin: bottom;
    text-shadow: 1px 1px 2px #386b382e;
    color: #2d572c;
}

.hero-avatar img {
    z-index: 10;
    width: 10dvw;
    height: auto;
    object-fit: contain; 
    margin-left: 20px;
    position: absolute;
    /* translateY(20%);*/
    display: block;
    right: 0px;
    bottom: 0px;
    top: -10px;
}

.games-section,
.chatbot-section {
    text-align: center;
    margin-bottom: 50px;
}

.games-section h2,
.chatbot-section h2 {
    font-size: 1.8rem;
    color: #2f6b31;
    margin-bottom: 14px;
}

.game-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  

.game-card {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.game-label {
    margin-top: 7px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #202a1f;
    transition: color 0.3s ease;
}

.chatbot-button {
    display: inline-block;
    background-size: cover;
    background-position: center;
    width: 230px;
    height: 230px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chatbot-button:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.chatbot-text {
    margin-top: 7px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #172e15;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto !important; 
        min-height: 80px; 
        padding: 15px 10px;
        flex-direction: row !important; 
        justify-content: space-between;
    }

    .hero-text h1 {
        font-size: 1.7rem; 
    }

    .hero-text p {
        margin-top: 0px;
        font-size: .9rem; 
        display: inline-block; 
        transform: scaleY(1.1) skewX(-8deg); 
        transform-origin: bottom;
        text-shadow: 1px 1px 2px #386b382e;
    }
  
    .hero-avatar img {
        position: relative; /* Remove absolute floating */
        top: 10px; /* Reset the -61px top */
        right: auto;
        left: auto;
        width: 28dvw;
        margin: 10px auto 0; /* Add space above avatar */
    }
    
}