/* Kontejner cvičení */
.exercise-container {
    max-width: 650px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 20px;
    background: #fff7d6; /* jemná žlutá */
    border: 4px solid #ffd86b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: "Comic Sans MS", "Fredoka", Arial, sans-serif;
}

/* Nadpis */
.exercise-container h2 {
    text-align: center;
    font-size: 32px;
    color: #ff8c00;
    margin-bottom: 20px;
}

/* Jednotlivé příklady */
.example {
    margin: 15px 0;
    font-size: 26px;
    color: #333;
    display: flex;
    align-items: center;
}

/* Vstupní pole */
.example input {
    width: 90px;
    padding: 8px;
    margin-left: 10px;
    font-size: 24px;
    border-radius: 10px;
    border: 2px solid #ccc;
    text-align: center;
}

/* Správně / špatně */
.correct {
    background: #c8f7c5 !important;
    border-color: #4caf50 !important;
}

.wrong {
    background: #f7c5c5 !important;
    border-color: #e53935 !important;
}

/* Tlačítko */
button {
    display: block;
    margin: 25px auto 0;
    padding: 12px 25px;
    font-size: 24px;
    background: #6ec6ff;
    border: 3px solid #2196f3;
    border-radius: 15px;
    cursor: pointer;
    color: #003f7f;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background: #a8ddff;
}

/* Drag & drop prvky */
.dragdrop-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

/* Levý sloupec – příklady */
.drag-column {
    width: 40%;
    position: sticky;
    top: 20px; /* vzdálenost od horního okraje */
    align-self: flex-start;
}

/* Pravý sloupec – výsledky */
.drop-column {
    width: 40%;
}

/* Drag prvky */
.drag-item {
    padding: 12px 15px;
    margin: 8px;
    background: #d1f7c4;
    border: 2px solid #7bc67b;
    border-radius: 12px;
    cursor: grab;
    font-size: 22px;
    display: block;
    text-align: center;
}

/* Drop zóny */
.drop-zone {
    padding: 20px;
    margin: 15px 0;
    border: 3px dashed #aaa;
    border-radius: 15px;
    min-height: 50px;
    background: #f0f8ff;
    font-size: 22px;
    text-align: center;
}


/* Dekorativní ikonky */
.icon {
    font-size: 40px;
    margin: 10px;
    display: inline-block;
}

/* Hvězdičky jako odměny */
.reward-stars {
    text-align: center;
    margin-top: 20px;
}

.reward-stars span {
    font-size: 40px;
    margin: 5px;
    opacity: 0.3;
    transition: 0.3s;
}

.reward-stars span.active {
    opacity: 1;
}

/* Animace radosti */
.reward-animation {
    text-align: center;
    font-size: 60px;
    margin-top: 20px;
    display: none;
}

.reward-animation.show {
    display: block;
    animation: pop 0.6s ease-out;
}

@keyframes pop {
    0% { transform: scale(0.2); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}



/*===================================*/
/* Kontejner kalendáře */
.calendar-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff7d6;
    border: 4px solid #ffd86b;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: "Comic Sans MS", "Fredoka", Arial, sans-serif;
}

/* Nadpis */
.calendar-container h1 {
    text-align: center;
    font-size: 36px;
    color: #ff8c00;
    margin-bottom: 20px;
}

/* Mřížka úkolů */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}


/* Kartička úkolu */
.task-card {
    background: #dff7ff;
    border: 3px solid #7ecbff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.task-card:hover {
    background: #c8efff;
}

/* Číslo úkolu */
.task-number {
    font-size: 32px;
    font-weight: bold;
    color: #0077b6;
}

/* Hvězdičky */
.task-stars {
    margin-top: 10px;
    font-size: 28px;
    color: #ffb300;
}

/* Ikonky */
.calendar-icons {
    text-align: center;
    margin-top: 20px;
}

.calendar-icons span {
    font-size: 40px;
    margin: 5px;
}

/* === compare - porovnání === */
.compare-example {
    font-size: 28px;
    margin: 15px 0;
    text-align: center;
}

.compare-number {
    display: inline-block;
    width: 60px;
    font-weight: bold;
    color: #0077b6;
}

.compare-select {
    font-size: 28px;
    padding: 5px 10px;
    border-radius: 10px;
    border: 2px solid #7ecbff;
    background: #dff7ff;
    cursor: pointer;
}

.compare-select.correct {
    background: #c8ffc8;
    border-color: #4caf50;
}

.compare-select.wrong {
    background: #ffd6d6;
    border-color: #ff6b6b;
}

/* == kostky ===*/
.dice-example {
    font-size: 40px;
    margin: 20px 0;
    text-align: center;
}

.dice {
    margin: 0 10px;
}

.dice-example input {
    font-size: 28px;
    width: 80px;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid #7ecbff;
    background: #e8f8ff;
}

.dice-example input.correct {
    background: #c8ffc8;
    border-color: #4caf50;
}

.dice-example input.wrong {
    background: #ffd6d6;
    border-color: #ff6b6b;
}

/* == kostky png ===*/
.dice-png-example {
    font-size: 40px;
    margin: 25px 0;
    text-align: center;
}

.dice-png {
    width: 120px;
    height: 120px;
    margin: 0 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dice-op {
    font-size: 50px;
    margin: 0 15px;
    color: #444;
}

.dice-png-example input {
    font-size: 28px;
    width: 90px;
    padding: 8px;
    border-radius: 12px;
    border: 2px solid #7ecbff;
    background: #e8f8ff;
}

.dice-png-example input.correct {
    background: #c8ffc8;
    border-color: #4caf50;
}

.dice-png-example input.wrong {
    background: #ffd6d6;
    border-color: #ff6b6b;
}

/*=== kostky drop png ===*/
.dragdrop-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

.drag-column, .drop-column {
    width: 45%;
}

.drag-item {
    background: #f0faff;
    border: 2px solid #a3d9ff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 15px;
    cursor: grab;
    text-align: center;
}

.drop-zone {
    background: #fff7d6;
    border: 2px dashed #ffcc66;
    padding: 20px;
    margin: 10px 0;
    border-radius: 15px;
    min-height: 120px;
    font-size: 32px;
    text-align: center;
}

.drop-zone.dragover {
    background: #ffe9a8;
}

.dice-png {
    width: 100px;
    height: 100px;
    margin: 0 5px;
    border-radius: 15px;
}

.dice-op {
    font-size: 40px;
    margin: 0 10px;
}

/*=== pexeso ===*/
.pexeso-two-rows {
    max-width: 700px;
    margin: 0 auto;
}

.pexeso-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

/* Příklady (schované karty) */
.pexeso-card {
    width: 120px;
    height: 150px;
    perspective: 800px;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.pexeso-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
}

.card-front {
    background: #bde0fe;
    border: 2px solid #90caff;
}

.card-back {
    background: #e8f8ff;
    border: 2px solid #7ecbff;
    transform: rotateY(180deg);
}

.matched .card-inner {
    opacity: 0.4;
    pointer-events: none;
}

/* Výsledky (ODKRYTÉ) */
.pexeso-result {
    width: 120px;
    height: 150px;
    background: #fff7d6;
    border: 2px solid #ffcc66;
    border-radius: 15px;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.pexeso-result.matched {
    opacity: 0.4;
    pointer-events: none;
}

.option {
    list-style: none;
    padding: 8px 12px;
    margin: 6px 0;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.option .checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #666;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background: white;
    flex-shrink: 0;
}

.option.checked .checkbox {
    background: #4caf50;
    border-color: #4caf50;
}

.option.checked .checkbox::after {
    content: "✓";
    color: white;
    font-weight: bold;
    position: absolute;
    top: -2px;
    left: 4px;
}

.option.correct {
    background: #c8f7c5;
    border-color: #4caf50;
}

.option.wrong {
    background: #ffd6d6;
    border-color: #e74c3c;
}



.drag-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.drag-item {
    text-align: center;
    min-width: 40px;
}

.sort-task {
    padding: 16px;
    margin: 20px 0;
    border-radius: 12px;
    background: #f7faff;
    border: 2px solid #e0e7ff;
}

.slot-row, .number-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.slot {
    width: 50px;
    height: 50px;
    border: 2px dashed #aaa;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.symbol {
    font-size: 24px;
    width: 20px;
    text-align: center;
}

.number {
    width: 50px;
    height: 50px;
    border: 2px solid #666;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
}

.number.dragging {
    opacity: 0.5;
}

.check-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 8px;
    background: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
}

.sort-instruction {
    font-size: 18px;
    margin: 10px 0 20px;
    color: #444;
    text-align: center;
}

.reset-button {
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 6px;
    background: #ff9800;
    color: white;
    border: none;
    cursor: pointer;
}

