body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
}

.header {
    display: flex;
    align-items: center;
    background: #1976d2;
    color: #fff;
    padding: 0.5rem 1rem;
}

    
.logo a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
    cursor: pointer;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1000;
}

.side-menu.open {
    left: 0;
}

.side-menu-inner {
    padding: 1rem;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu li {
    margin-bottom: 0.5rem;
}

.side-menu a {
    text-decoration: none;
    color: #1976d2;
}

.menu-section-title {
    font-weight: 600;
    margin-top: 1rem;
}

.content {
    padding: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-image {
    background: #e3f2fd;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-placeholder {
    font-size: 2.5rem;
    color: #1976d2;
    font-weight: 700;
}

.card-title {
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
}



.flashcard-wrapper {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.flashcard-text {
    display: flex;
    flex-direction: column;
    font-size: 28px;
    padding: 40px;
    min-height: 415px;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    word-wrap: break-word;
    white-space: normal;
    
}



.flashcard, .flashcard-text {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.flashcard.show, .flashcard-text.show {
    opacity: 1;
}




.flashcard {
    max-width: 400px;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    background: #fff;
}


.click-hint {
    width: 40px;
    margin-top: 12px;
    opacity: 0.7;
}


.controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-success {
    background: #2e7d32;
    color: #fff;
}

.btn-secondary {
    background: #9e9e9e;
    color: #fff;
}

.progress-container {
    width: 100%;
    background: #ddd;
    border-radius: 999px;
    overflow: hidden;
    height: 12px;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #1976d2;
    transition: width 0.2s ease;
}

#progressText {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

/* Responsywność */
@media (min-width: 768px) {
    .content {
        padding: 2rem;
    }
}
