/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background-color: #f8f8f8;
    color: #2c3e50;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

h1 {
    font-size: 2.2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 2rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

/* Content Sections */
.content-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.info-card {
    margin: 2rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border: 1px solid #d1d1d1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.info-card h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.navigation-notice {
    text-align: center;
    color: #34495e;
    font-style: italic;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
}

/* Navigation Elements */
.navigation-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e5e5;
}

/* Buttons */
button, .button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem 0;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .button:hover {
    background: #2c3e50;
    color: #fff;
}

.spread-button {
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #2c3e50;
    font-size: 1.1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.spread-button:hover {
    background: #2c3e50;
    color: #fff;
    transform: translateX(5px);
}

.flex {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Image Styles */
img {
    max-width: 300px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.flex img {
    max-width: 200px;
}

@media (max-width: 768px) {
    img {
        max-width: 250px;
    }
    .flex img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    img {
        max-width: 200px;
    }
    .flex img {
        max-width: 120px;
    }
}

.deck-selection {
    margin: 2rem 0;
    width: 100%;
}

.deck-selection button {
    width: 100%;
    margin-bottom: 1rem;
}

/* Image Grid Layout */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Input Form */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group input[type="text"] {
    flex: 1;
    min-width: 300px;
    padding: 0.8rem;
    border: 1px solid #2c3e50;
    font-size: 1rem;
}

.form-group select {
    width: auto;
    padding: 0.4rem;
    font-size: 0.9rem;
    border: 1px solid #2c3e50;
}

.form-group2 select {
    width: auto;
    padding: 0.4rem;
    font-size: 1.5rem;
    border: 1px solid #2c3e50;
}

.form-group label {
    min-width: 200px;
    color: #2c3e50;
}

/* Card Configuration */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: flex-start;
}

.card {
    flex: 0 1 200px;
    background: #fff;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.card em {
    color: #666;
    font-size: 0.9rem;
}

/* Numerology Results */
.numerology-result {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
}

.numerology-insight {
    margin: 0.5rem 0;
    padding: 1.0rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.numerology-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Sections */
.section-small {
    margin-bottom: 2rem;
}

.section-main {
    font-size: 1.2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-large {
    margin-top: 2rem;
}

/* Quote Styling */
.quote {
    font-style: italic;
    color: #34495e;
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 3px solid #2c3e50;
}

/* Lists */
ul {
    margin: 1rem 0 1rem 2rem;
}

ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: #34495e;
}


/* Tarot Interpretation Page */
.interpretation-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.spread-config {
    padding: 1rem;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    font-size: 0.9rem;
    color: #666;
}

.reading-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.try-again {
    display: inline-block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.try-again:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.restart-section {
    text-align: center;
    margin: 2rem 0;
}

/* Dividers */
.content-divider {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid #3498db;
    width: 50%;
}

.divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    button, .button {
        width: 100%;
    }
}  
/* Focus outline for accessibility */  
button:focus,  
.button:focus {  
    outline: 3px solid #ffb400;  
    outline-offset: 2px;  
} 
