
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #F5F4EE;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    padding: 1rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.main-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.card-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-container {
    perspective: 1000px;
    margin-bottom: 1rem;
}

.card {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    margin: 0 auto;
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.card-face-down {
    background-color: #FAFAF8;
    border: 10px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back-content .logo {
    max-width: 80%;
    height: auto;
}

.card-face-up {
    background-color: #fff;
    transform: rotateY(180deg);
}

#card-text {
    font-size: 1.5rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 300;
}

.navigation-buttons {
    margin-bottom: 1rem;
    display: flex; /* Ensure buttons are side-by-side */
    justify-content: center;
    gap: 1rem; /* Space between buttons */
}

.action-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    gap: 1rem;
    max-width: 250px; /* Limit width */
}

.action-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.nav-button,
.action-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0;
    border: 2px solid #333;
    border-radius: 30px;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    box-sizing: border-box; /* Changed to block for full width on mobile */
}

.nav-button:hover,
.action-button:hover {
    background-color: #333;
    color: #fff;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Specific styling for nav-buttons to override .action-button's width: 100% */
.nav-button {
    width: auto; /* Allow buttons to size based on content */
}

.action-button {
    background-color: #333;
    color: #fff;
}

.action-button:hover {
    background-color: #555;
    border-color: #555;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 2rem;
    }

    .action-buttons {
        max-width: 300px;
        text-align: center;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .card {
        width: 280px;
        height: 373px;
    }

    #card-text {
        font-size: 1.3rem;
    }
}
