/* Full-page background */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: url('https://static.vecteezy.com/system/resources/previews/005/437/977/original/dark-forest-with-sunbeam-through-the-trees-vector.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #d4e9d4;
    position: relative;
}

/* Overlay to make content readable */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: -1; /* Place behind content */
}

/* Container for the content */
.container {
    background: rgba(20, 82, 20, 0.7); /* Semi-transparent green background */
    border-radius: 12px;
    padding: 1.5em;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Page title styling */
.page-title {
    text-align: center;

    font-size: 2em;
    margin-bottom: 1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Form and button styling */
.tarot-form, .new-reading-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin-top: 1.5em;
}

h1 {
    text-align: center;
}

h2, h3 {
    padding: 0.7em 1.5em;
    background: #08813a;
    border: none;
    border-radius: 20px;
    color: white;
}

.btn-submit {
    padding: 0.7em 1.5em;
    background: #2ecc71;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background: #27ae60;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Card layout */
.card-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-top: 1.5em;
}

.card {
    background: rgba(20, 82, 20, 0.8); /* Semi-transparent green */
    border: 1px solid #1f6b1f;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 150px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card img {
    max-width: 100%;
    border-radius: 6px;
    cursor: pointer;
}

.card-details {
    margin-top: 1em;
    color: #d4e9d4;
    display: none; /* Hidden by default */
}

.card-details h3 {
    color: #2ecc71;
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.card img.reversed {
    transform: rotate(180deg);
}

/* Menu styling */
nav {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 1em 0;
}

nav a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

nav a:hover {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: bold;

}
a:hover {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

footer {
    text-align: center;
}