/* Basic Styling inspired by biblechallenge.pro */
body {
    font-family: sans-serif;
    background-color: #1a1a2e; /* Dark blue background */
    color: #e0e0e0; /* Light text color */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #162447; /* Slightly lighter blue */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4b5d67;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

header .logo a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

header .logo .part1 {
    color: #FF3333; /* Red similar to BibleChallenge */
}

header .logo .part2 {
    color: #33FFFF; /* Cyan similar to BibleChallenge */
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #1f4068;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

.container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* --- Homepage Styles --- */
.game-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-mode-card {
    background-color: #162447; /* Card background */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.game-icon {
    width: 160px; /* Adjust size as needed, maintain 2:1 ratio */
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain; /* Or cover, depending on icon style */
    background-color: #e0e0e0; /* Placeholder background for icon */
    border-radius: 8px; /* Optional: slightly rounded corners */
}

.game-mode-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.game-mode-card p {
    font-size: 0.9rem;
    color: #b0b0b0; /* Lighter gray for description */
    margin-bottom: 1rem;
    flex-grow: 1;
}

.play-button, .button-link {
    display: inline-block;
    background-color: #e43f5a; /* Accent color */
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.play-button:hover, .button-link:hover {
    background-color: #b83248; /* Darker accent */
}

/* --- Game Page Styles --- */
.game-container {
    padding-top: 1rem;
}

.score-board {
    display: flex;
    justify-content: space-around;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background-color: #162447;
    padding: 0.5rem;
    border-radius: 5px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-area {
    display: flex;
    justify-content: space-around;
    align-items: stretch; /* Make cards equal height */
    gap: 1rem;
    margin-top: 2rem;
    position: relative; /* For VS positioning */
}

.item-card {
    background-color: #1f4068; /* Slightly different card color */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 40%; /* Adjust width as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    background-color: #e0e0e0; /* Placeholder */
}

.item-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.item-card p {
    margin: 0.2rem 0;
    color: #b0b0b0;
}

.item-card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0.5rem 0;
    /* Styles for animation will be added later */
    display: inline-flex; /* For animation */
    flex-wrap: nowrap;
}

.item-card .unit {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.vs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #e43f5a; /* Accent color */
    background-color: #1a1a2e;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 1;
}

.value-hidden {
    margin: 1rem 0;
}

.choice-button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.choice-button.higher {
    background-color: #28a745; /* Green */
}

.choice-button.higher:hover {
    background-color: #218838;
}

.choice-button.lower {
    background-color: #dc3545; /* Red */
}

.choice-button.lower:hover {
    background-color: #c82333;
}

/* --- Overlay Styles (Game Over, Congrats) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.overlay-content {
    background-color: #162447;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
}

.overlay-content h2 {
    margin-top: 0;
    color: #ffffff;
}

.overlay-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.overlay-content button, .overlay-content .button-link {
    margin: 0.5rem;
    padding: 0.8rem 1.5rem;
}

/* --- Share Modal Specific --- */
#share-victory-modal .share-links a {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}
#share-twitter {
    background-color: #1DA1F2; /* Twitter Blue */
}
#share-facebook {
    background-color: #1877F2; /* Facebook Blue */
}


/* --- Footer --- */
footer {
    background-color: #162447;
    color: #b0b0b0;
    text-align: center;
    padding: 1rem;
    margin-top: auto; /* Pushes footer to the bottom */
    border-top: 1px solid #4b5d67;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header .logo a {
        font-size: 1.5rem; /* Adjust logo size */
    }
    nav {
        margin-top: 1rem;
    }
    nav a {
        margin: 0 0.5rem;
    }
    .container h2 {
        font-size: 1.5rem;
    }
    .comparison-area {
        flex-direction: column;
        align-items: center;
        gap: 2rem; /* Increased gap for vertical layout */
    }
    .item-card {
        width: 80%;
        padding: 1.5rem;
    }
    .vs {
        position: static; /* Remove absolute positioning */
        transform: none;
        margin: -1rem 0; /* Adjust margin to fit between cards */
        padding: 0.2rem;
    }
    .score-board {
        font-size: 1rem;
        max-width: 250px;
    }
    .item-image {
        width: 100px;
        height: 100px;
    }
    .item-card .value {
        font-size: 2rem;
    }
    .overlay-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    header .logo a {
        font-size: 1.3rem; /* Further adjust logo size */
    }
    .item-card {
        width: 90%;
    }
}

