/* General Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styling */
header {
    position: relative; /* This allows the Home button to be positioned inside the header */
    background-color: #2e2e38;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Styling for the Home Button in the Header (Upper Left) */
.header-home-btn {
    position: absolute;
    top: 20px;
    left: 40px;
    padding: 8px 16px;
    background-color: #e63946;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    z-index: 10; /* Ensure the button appears above other elements */
}
.header-home-btn:hover {
    background-color: #d62828;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
}


/* Main Content Area */
main {
    width: 90%;
    max-width: 1000px;
    text-align: center;
    margin-top: 20px;
}

/* Tarot Card Image Styling */
.tarot-card {
    width: 100px;
    height: auto;
    transition: transform 0.5s ease;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.tarot-card.reversed {
    transform: rotate(180deg);
}

/* Card Container */
.card-container {
    display: inline-block;
    margin: 10px;
    position: relative;
}

/* Label for the card position (e.g., Past, Present, Future) */
.card-label {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Celtic Cross Layout */
#reading.celtic-cross {
    display: grid;
    grid-template-columns: repeat(3, 1fr) min-content; /* Right vertical stack */
    grid-template-rows: repeat(5, auto);
    grid-gap: 10px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards for the Cross Layout */
#reading.celtic-cross .card-1 {
    grid-column: 2;
    grid-row: 3; /* Middle */
    position: relative;
    z-index: 2;
}

#reading.celtic-cross .card-2 {
    grid-column: 2;
    grid-row: 3;
    transform: rotate(90deg);
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

#reading.celtic-cross .card-3 {
    grid-column: 2;
    grid-row: 4;
}

#reading.celtic-cross .card-4 {
    grid-column: 1;
    grid-row: 3;
}

#reading.celtic-cross .card-5 {
    grid-column: 2;
    grid-row: 2;
}

#reading.celtic-cross .card-6 {
    grid-column: 3;
    grid-row: 3;
}

/* Cards 7-10 (right vertical stack) */
#reading.celtic-cross .card-7 {
    grid-column: 4;
    grid-row: 1;
}

#reading.celtic-cross .card-8 {
    grid-column: 4;
    grid-row: 2;
}

#reading.celtic-cross .card-9 {
    grid-column: 4;
    grid-row: 3;
}

#reading.celtic-cross .card-10 {
    grid-column: 4;
    grid-row: 4;
}

/* Relationship Spread (Cross Layout) */
#reading.love-spread {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

#reading.love-spread .card-1 {
    grid-column: 2;
    grid-row: 1;
}

#reading.love-spread .card-2 {
    grid-column: 3;
    grid-row: 2;
}

#reading.love-spread .card-3 {
    grid-column: 2;
    grid-row: 2;
}

#reading.love-spread .card-4 {
    grid-column: 1;
    grid-row: 2;
}

#reading.love-spread .card-5 {
    grid-column: 2;
    grid-row: 3;
}

/* 5-Card Spread (V-Shaped Layout) */
#reading.specific-issue {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

#reading.specific-issue .card-1 {
    grid-column: 2;
    grid-row: 1;
}

#reading.specific-issue .card-2 {
    grid-column: 1;
    grid-row: 2;
}

#reading.specific-issue .card-3 {
    grid-column: 2;
    grid-row: 2;
}

#reading.specific-issue .card-4 {
    grid-column: 3;
    grid-row: 2;
}

#reading.specific-issue .card-5 {
    grid-column: 2;
    grid-row: 3;
}

/* One Card Layout for Daily Focus */
#reading.one-card {
    display: flex;
    justify-content: center;
}

/* Remove the previous Home button from the bottom */
.home-btn {
    display: none;
}

/* Button Styling */
.draw-btn {
    padding: 12px 24px;
    background-color: #2e2e38;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.draw-btn:hover {
    background-color: #444;
}

/* Dropdown Select Styling */
select {
    padding: 10px;
    margin: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Footer Styling */
footer {
    background-color: #2e2e38;
    color: white;
    width: 100%;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
}

/* Responsive Styling for Smaller Screens */
@media (max-width: 768px) {
    .tarot-card {
        width: 80px; /* Smaller size for mobile */
        height: auto;
    }

    main {
        width: 100%;
    }
}
