/* Font Import */
@font-face {
    font-family: 'Greek-Freak';
    src: url('Greek-Freak.ttf') format('truetype'); /* Adjust the path if needed */
}
*{
    box-sizing: border-box;
}
html,body{
    height: 100%;
    margin: 0;
    padding: 0;
}
/* General Styles */
body {
    font-family: 'Greek-Freak', 'Georgia', serif;
    background-color: #F2EECC;
    display: grid;
    color: #333;
}
main {
    display: grid;
    padding: 20px;
    justify-items: center;
    gap: 20px;
    grid-template-columns: 1fr 2fr;
}
/* Header */
header {
    font-size: 1.5rem;
    background: #F2D680;
    color: #3D3927;
    padding: 20px;
    text-align: center;
}
h1 {
    font-size: 3rem;
    margin: 0;
    font-family: 'Greek-Freak', 'Georgia', serif; /* Greek-Freak as primary font */
}

/* Secondary Headings */
h2 {
    font-size: 1.5rem;
    color: #8C6B34;
    text-align: center;
    margin: 20px 0;
    font-family: 'Greek-Freak', sans-serif; /* Optional, adds Greek-style flair */
}

/* Main Container */
.main-container {
    display: flex;  /* Use flexbox for the layout */
    justify-content: center;
    align-items: center;
    height: 100vh;  /* Make sure the main container takes up the full viewport height */
    margin: 0;
    padding: 0;
}

.zeus-container, .hera-container {
    margin-bottom: 10px; /* Space between containers */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Zeus and Hera images styling */
.god-image { /* Adjust size as needed */
    opacity: 0.8; /* Slightly transparent initially */
    transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

/* Olympus Image Container */
.olympus-image-container {
    text-align: center;
}

.olympus-image {
    width: 80%; /* Adjust size as needed */
    max-width: 800px;
    height: auto;
}

/* Zeus Page Specific Styles */
.zeus-page {
    background-color: #E8E3D5;
}

.zeus-page header {
    background: linear-gradient(to bottom, #4A90E2, #357ABD);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zeus-page header h1 {
    font-size: 3.0rem;
    margin: 0;
    font-family: 'Greek-Freak', 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zeus-page .zeus-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 0px;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.zeus-page .zeus-image-container {

}

.zeus-page .god-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.zeus-page .zeus-text-container {
    padding: 0 20px;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: right;
    margin-bottom: 1rem;
}

.zeus-page .zeus-text-container p {
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: right;
}
/* Hover Effect - When hovering over the Olympus container, show Zeus and Hera */
.olympus-container:hover .zeus-container,
.olympus-container:hover .hera-container {
    display: block;
    opacity: 1; /* Make them visible */
    transform: translateY(-20px); /* Optional: slight upward movement */
}

/* Zeus and Hera hover effect */
.zeus-container:hover .god-image,
.hera-container:hover .god-image {
    transform: translateY(-10px);
    opacity: 1; /* Full opacity when hovered */
}

/* Map Container */
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

/* Responsive Image Map */
#interactive-map {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #ccc;
    touch-action: manipulation; /* Prevents pinch-to-zoom issues */
    pointer-events: none; /* Prevents interaction with the image itself */
}

/* Map Links (Interactive Areas) */
.map-link {
    position: absolute;
    display: block;
    background-color: rgba(255, 255, 255, 0); /* Transparent */
    z-index: 2;
    pointer-events: auto; /* Ensures links are clickable */
    touch-action: manipulation;
    transition: background-color 0.3s ease, outline 0.3 ease;
}

/* Specific positioning of map links */
.map-link.olympus {
    top: 18%;
    left: 40%;
    width: 12%;
    height: 10%;
}

.map-link.ocean {
    top: 22%;
    left: 57%;
    width: 13%;
    height: 10%;
}

.map-link.underworld {
    top: 44%;
    left: 45%;
    width: 14%;
    height: 12%;
}

/* Hover Effect for Map Areas */
.map-link:hover {
    outline: 2px solid #F6D55C;
    cursor: pointer;
    background-color: rgba(246, 213, 92,0.7);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #725C38;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #3D3927;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #786D4E;
}

footer {
    text-align: center;
    padding: 20px;
    background: #F2EECC;
    color: #395551;
    margin-top: auto;
}

footer a {
    color: #395551; 
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header, footer {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .map-container {
        padding: 5px;
        height: auto;
    }

    /* Resize the map links for mobile screens */
    .map-link {
        width: 20%;
        height: 12%;
    }

    h2 {
        font-size: 1rem;
    }
    .zeus-page header h1 {
        font-size: 2.5rem;
    }
    
    .zeus-page .zeus-container {
        grid-template-columns: 1fr;
    }

    .zeus-page .zeus-image-container {
        text-align: center;
        padding: 10px;
    }
}