body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #e0f0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-layout {
    display: grid;
    grid-template-areas:
        "header header"
        "nav main"
        "footer footer";
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    border: 3px solid #00FF00;
    background-color: #fff;
}

#header {
    grid-area: header;
    background-color: #4C7C5F;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    font-size: 24px;
}

#navigation {
    grid-area: nav;
    background-color: #6AA97E;
    padding: 20px;
}

#content {
    grid-area: main;
    background-color: #9CC4A5;
    padding: 20px;
    overflow-y: auto;
    min-height: 400px; /* Ensure minimum height for content */
}

#footer {
    grid-area: footer;
    background-color: #3E5C47;
    color: #FFFFFF;
    text-align: center;
    padding: 10px;
}

a {
    color: #0000FF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#navigation a {
    display: block;
    padding: 10px 0;
    color: #fff;
}

@media (max-width: 768px) {
    #main-layout {
        grid-template-areas:
            "header"
            "nav"
            "main"
            "footer";
        grid-template-columns: 1fr;
    }

    #navigation {
        text-align: center;
    }
}

/* Existing animations and specific styles */
@keyframes slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

#klungo-image {
    display: block;
    margin: 0 auto;
    animation: slide 5s ease-in-out infinite;
}

.game-icon {
    width: 64px;
    height: 64px;
}

.klungo-container {
    position: fixed;
    z-index: 100;
}

.klungo-image {
    width: 150px;
    height: auto;
}

@keyframes klungoSpin {
    from {
        transform: rotate(0deg) scale(1.2);
    }
    to {
        transform: rotate(360deg) scale(1.2);
    }
}

/* Add these new styles */
.character-profile {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(76, 124, 95, 0.95);
    border: 3px solid #00FF00;
    border-radius: 15px;
    padding: 15px;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: white;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #00FF00;
    object-fit: cover;
}

.profile-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.profile-title {
    font-size: 0.9em;
    color: #a3ffa3;
    margin: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px;
    font-size: 0.9em;
    margin-top: 10px;
}

.stat-label {
    color: #a3ffa3;
}

.stat-value {
    text-align: right;
}

.profile-quote {
    font-style: italic;
    font-size: 0.8em;
    margin-top: 10px;
    color: #d4ffd4;
    border-top: 1px solid #a3ffa3;
    padding-top: 5px;
}
