/* --- Base and General Styles --- */
body {
    font-family: 'Cinzel', serif;
    background-color: #7b3f00; /* Fallback color */
    background-image: url('assets/images/tarotbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    margin: 0;
    padding: 2em;
}

/* --- App Container and Header Styles --- */
#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5em;
    /* text-transform is not needed, user-typed case is preserved */
}

#intro {
    /* Container Styling */
    background-color: rgba(60, 35, 10, 0.7); /* Very dark brown, slightly transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5em;
    max-width: 600px;
    margin: 0 auto 2em auto; /* Centers the box and adds space below */

    /* Text Styling */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1em;
    line-height: 1.6;
    font-style: normal;
    text-align: center; /* This centers the text */
    text-transform: none; /* Ensures regular sentence case */
}

button {
    padding: 12px 25px;
    font-size: 1.2em;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    border: none;
    background-color: #d35400;
    color: #fff;
    border-radius: 5px;
    transition: transform 0.2s;
    text-transform: uppercase; /* Keeps button text in caps */
}

button:hover {
    transform: scale(1.05);
}

/* --- Main Card Container (#threeCardContainer) --- */
#threeCardContainer {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: nowrap; /* Forces cards into a single row on desktop */
    gap: 25px;
    width: 100%;
    margin-top: 2em;
    padding: 2em;
    background-image: url('assets/images/mat.png');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#threeCardContainer.hidden {
    display: none;
}

/* --- Individual Card Slot Styles --- */
.slot {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5em;
    border-radius: 10px;
}

.slot > button {
    margin-top: 1em;
}

.slot h3 { /* For "Past", "Present", "Future" */
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 0.5em;
    font-size: 1.3em;
    text-transform: none; /* **FIX**: Changed to regular sentence case */
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1em;
    font-weight: bold;
    color: #f0e6d2;
    margin: 0.5em 0 1em 0;
    min-height: 2.2em;
    text-transform: none; /* Ensures regular sentence case */
}

.slot img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.interpretation {
    text-transform: none;
    margin-top: 1em;
    padding: 1em; /* Added padding */
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    
    /* These lines create the container box */
    background-color: rgba(0, 0, 0, 0.4); /* Darker, semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    border-radius: 8px; /* Rounded corners */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    #threeCardContainer {
        flex-direction: column;
        align-items: center;
    }

    .slot {
        width: 90%;
        max-width: 450px;
    }
}

@media (max-width: 480px) {
     body {
        padding: 1em;
     }
     h1 {
        font-size: 1.8em;
     }
     #threeCardContainer {
        padding: 1em;
     }
}
/* --- Add this for Image Zoom Modal --- */

#imageModal {
    position: fixed; /* Stays in place even if scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark, semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensures it's on top of everything */
    cursor: pointer; /* Indicates the background is clickable to close */
    animation: fadeIn 0.3s ease; /* Smooth fade-in effect */
}

#imageModal.visible {
    display: flex; /* Made visible with JavaScript */
}

#modalImage {
    max-width: 90%;
    max-height: 90vh; /* Limits height to 90% of the viewport height */
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    cursor: default; /* Default cursor for the image itself */
}

#modalClose {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 3em; /* Larger, easier to click */
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

#modalClose:hover {
    color: #d35400; /* Orange color on hover */
}

/* Re-using your fadeIn animation for the modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* --- Styles for Header Banner and Intro Box --- */

/* 1. Style the new title banner image */
#title-banner {
    max-width: 100%;
    width: 500px; /* Adjust this width as needed */
    height: auto;
    margin-bottom: 1em; /* Space between banner and intro */
}

/* 2. Style the intro text container */
#intro {
    background-color: rgba(60, 35, 10, 0.7); /* Very dark brown, slightly transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Rounded corners */
    padding: 1.5em;
    max-width: 600px; /* Set a max-width for better readability */
    margin: 0 auto 2em auto; /* Center it and add space below */
    
    /* Font and text styling */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Same readable font as interpretations */
    font-size: 1em;
    line-height: 1.6;
    text-align: left;
    text-transform: none; /* Ensures regular sentence case */
    font-style: normal; /* Removes previous italic style */
}

#intro strong {
    font-weight: bold; /* Ensures the last sentence is bold */
}
/* --- Footer Logo Styles --- */

#footer-logo-container {
    padding: 40px 0 20px 0; /* Adds space above and below the logo */
    text-align: center;
    width: 100%;
}

#footer-logo-container img {
    width: 100px; /* You can adjust this size as needed */
    height: auto;
    opacity: 0.8; /* Slightly transparent by default */
    transition: opacity 0.3s ease; /* Smooth transition for the hover effect */
}

#footer-logo-container img:hover {
    opacity: 1; /* Becomes fully opaque on hover */
}
/* --- Footer Ad Styles --- */
#footer-ad-container {
    text-align: center;
    padding: 20px 0;
}
#footer-ad-container img {
    max-width: 100%;
    height: auto;
}
