/* General Styles for All Pages */
body {
    margin: 0;
    font-family: 'Times New Roman', serif;
    background-color: #f4f1e5;
}

h2, p {
    margin: 0;
    padding: 0;
    color: #4d3826;
}

/* Index Page Styles */
#index-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #e5d7ba;
}

#index-page img {
    max-width: 50%;
    height: auto;
}

#index-page .text-box {
    text-align: center;
    padding: 20px;
    border: 2px solid #a88d44;
    background-color: #fff;
    border-radius: 10px;
}

/* Choose-Hero Page Styles */
#choose-hero-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #e5d7ba;
}

#choose-hero-page h2 {
    margin-bottom: 20px;
    text-align: center;
}

#choose-hero-page .hero-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 30px;
    width: 60%;
    justify-content: center;
}

#choose-hero-page .hero-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#choose-hero-page .hero-item img {
    width: 100%;
    max-width: 200px; /* Limiting the size of hero images */
    height: auto;
    border: 2px solid #a88d44;
    border-radius: 10px;
    margin-bottom: 10px;
}

#choose-hero-page .hero-item p {
    text-align: center;
    font-size: 18px;
    margin-top: 0;
}

/* Hero Page Styles */
#hero-page {
    display: flex;
    justify-content: space-between;
    height: 100vh;
    background-color: #e5d7ba;
}

#hero-page .game-layout {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

#hero-page .hero-display {
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-page #hero-img {
    width: 200px;
    height: auto;
    border: 2px solid #a88d44;
    border-radius: 10px;
}

#hero-page .scroll-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-page .scroll-box {
    border: 2px solid #a88d44;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    height: 300px;
    overflow-y: auto;
}

#hero-page .stat-section {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero-page .stat-bar-container {
    width: 80%;
    margin: 10px auto;
    background-color: #d3d3d3;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    border: 2px solid #a88d44;
    padding: 5px;
}

#hero-page .stat-bar {
    height: 20px;
    border-radius: 10px;
    transition: width 0.3s ease;
}

#hero-page .health-bar { background-color: #ff4d4d; } /* Red for health */
#hero-page .mana-bar { background-color: #4d79ff; } /* Blue for mana */
#hero-page .stamina-bar { background-color: #4dff4d; } /* Green for stamina */
#hero-page .psych-bar { background-color: #ffcc4d; } /* Yellow for psych points */

#hero-page .stat-label {
    font-size: 14px;
    margin-bottom: 5px;
}
