:root {
    /* tm-primary colors */
    --tm-primary-15: #fff3ff;
    --tm-primary-25: #feeffa;
    --tm-primary-50: #fcdff4;
    --tm-primary-100: #f9bfea;
    --tm-primary-200: #f6a0df;
    --tm-primary-300: #f380d5;
    --tm-primary-400: #f060ca;
    --tm-primary-500: #d856b6;
    --tm-primary-600: #c04da2;
    --tm-primary-700: #a8438d;
    --tm-primary-800: #903a79;
    --tm-primary-900: #783065;
    --tm-primary-950: #602651;
}

.table {
    width: 100%;
    margin: 0 auto;
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.5rem;
}

.table th {
    background-color: var(--tm-primary-500);
    color: white;
    font-size: 1.2rem;
}

.table td {
    font-size: 1rem;
}

/* Style for unavailable cells */
.table td.unavailable::after {
    content: "✗";
    color: var(--tm-primary-600);
}

/* Style for available cells */
.table td.available {
    color: var(--tm-primary-700);
    font-weight: bold;
}

/* Media query for small screens (e.g., below 767.98px) */
@media (max-width: 767.98px) {
    .table {
        display: block;
        overflow-x: auto;
    }

    .table thead {
        display: none;
    }

    .table tbody,
    .table tr {
        display: block;
        width: 100%;
    }

    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #dee2e6;
        padding: 0.5rem;
        position: relative;
    }

    .table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
        color: var(--tm-primary-500);
        white-space: nowrap;
    }

    .table td[data-label] {
        width: 100%;
    }

    .table td[data-label="Μάθημα"]::before {
        content: "Μάθημα: ";
    }

    .table td[data-label="Παιδιά (Kids)"]::before {
        content: "Παιδιά: ";
    }

    .table td[data-label="Έφηβοι (Teens)"]::before {
        content: "Έφηβοι: ";
    }

    .table td[data-label="Ενήλικες (Adults)"]::before {
        content: "Ενήλικες: ";
    }
}

/* Quiz Styles */
.quiz-container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--tm-primary-15);
    border-radius: 10px;
    text-align: center;
    position: relative;
    min-height: 300px; /* Ensure minimum height for centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quiz-question {
    display: none;
    width: 100%;
}

.quiz-question.active {
    display: block;
}

.quiz-option {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: var(--tm-primary-100);
    border: none;
    border-radius: 5px;
    color: black;
    cursor: pointer;
    width: 80%;
    max-width: 400px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.quiz-option:hover {
    background-color: var(--tm-primary-200);
}

.quiz-result {
    display: none;
    text-align: center;
    padding: 20px;
    background-color: var(--tm-primary-50);
    border-radius: 5px;
    width: 80%;
    max-width: 400px;
}

.quiz-result.active {
    display: block;
}

#restart-btn {
    background-color: var(--tm-primary-500);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#restart-btn:hover {
    background-color: var(--tm-primary-700);
}

h1 {
    text-align: center;
    color: #b334a2;
}
.question {
    margin: 1.5rem 0;
}
.question h3 {
    margin-bottom: 0.5rem;
}
.option {
    display: block;
    margin: 0.3rem 0;
}
button {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: #b334a2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}
.result {
    margin-top: 2rem;
    background-color: #fcd4ff;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    display: none;
}