body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}

h2, h3 {
    color: #2c3e50;
}

p {
    color: #34495e;
    line-height: 1.6;
}

#introduction, #tarotReading, #disclaimer {
    margin-bottom: 2rem;
}

#questionInput {
    margin-bottom: 1rem;
}

#userQuestion {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 1rem 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#tarotCards {
    margin: 1rem 0;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tarotCards img {
    max-width: 100%;
    max-height: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#result {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

#cardName {
    font-weight: bold;
    color: #2c3e50;
}

#interpretation {
    font-style: italic;
    color: #7f8c8d;
}

#disclaimer {
    font-size: 0.9rem;
    color: #95a5a6;
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#moreDetails {
    background-color: #2ecc71;
    margin-left: 10px;
}

#moreDetails:hover {
    background-color: #27ae60;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#detailedInterpretation {
    margin-top: 20px;
}