/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8e6;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(144, 238, 144, 0.3);
    border-radius: 10px;
}

h1 {
    font-size: 3rem;
    color: #2e7d32;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    color: #558b2f;
    font-weight: normal;
}

/* Character Container Styles */
.character-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.character-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.character-portrait {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.character-info {
    flex: 2;
    min-width: 300px;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    color: #2e7d32;
    margin-bottom: 10px;
    border-bottom: 2px solid #a5d6a7;
    padding-bottom: 5px;
}

/* Dialogue Box Styles */
.dialogue-box {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.dialogue-box:before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

#dialogue-text {
    font-size: 1.2rem;
    text-align: center;
    color: #2c3e50;
}

/* Click Area Styles */
.click-area {
    background-color: #81c784;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.click-area:hover {
    background-color: #66bb6a;
}

.click-area p {
    font-weight: bold;
}

/* Facts Section Styles */
.facts-section {
    margin-top: 40px;
}

.facts-section h3 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.fact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.fact-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.fact-card:hover {
    transform: translateY(-5px);
}

.fact-card h4 {
    color: #2e7d32;
    margin-bottom: 10px;
    border-bottom: 2px solid #a5d6a7;
    padding-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .character-container {
        flex-direction: column;
    }
    
    .character-image, .character-info {
        width: 100%;
    }
    
    .fact-cards {
        grid-template-columns: 1fr;
    }
}
