.dt-container {
    width: 100%;
    max-width: 1200px;
    padding: 30px;
    background-color: transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.8);
    margin: 0% auto;
}

table.dataTable {
    background-color: transparent;
    box-shadow: 0 0 0 rgba(92, 62, 62, 0.2);
}

table.dataTable tbody tr:hover {
    background-color: transparent;
}

table.dataTable thead {
    display: none;
}

table.dataTable tbody td {
    padding: 0;
    border: none;
    max-width: none;
}

table.dataTable tbody tr {
    border: 0;
}

table.dataTable tbody td a {
    padding: 0;
}

div.dt-container div.dt-search {
    text-align: center;
}

div.dt-container div.dt-search input {
    width: 100%;
    max-width: 500px;
}

.quiz-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
    z-index: 10;
    margin: 0 auto;
    gap: 60px;
    width: 100%;
}


.quizzes .quiz-item {
    margin: 30px auto;
}

/* === 卡片區塊 === */
.quiz-item {
    margin: auto;
    width: 100%;
    max-width: 1000px;
    background-color: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    color: #f0f0f0;
    box-shadow: 0 0 20px rgba(0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.quiz-item:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.quiz-item img {
    width: 200px;
    height: 100%;
    max-height: 150px;
    object-fit: contain;
    margin: auto;
}


.quiz-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

/* === 標題與描述 === */
.quiz-item .title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.quiz-item .description {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
    min-height: 60px;
}

.quiz-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

/* === 開始按鈕 === */
.btn-outline-primary {
    align-self: flex-start;
    border: 1px solid #00c3ff;
    color: #00c3ff !important;
    background-color: transparent;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 14px !important;
    margin: auto 0 auto auto;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #00c3ff;
    color: #000000 !important;
    border: 0;
    box-shadow: 0 0 10px #00c3ff80;
    border-radius: 5px;
    transform: translateY(-0);
}

.btn-outline-success {
    align-self: flex-start;
    border: 1px solid #ff9800;
    color: #ff9800  !important;
    background-color: transparent;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 14px !important;
    margin: auto auto auto 0;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: #ff9800;
    border: 0;
    color: #ffffff !important;
    box-shadow: 0 0 10px #ff980080;
    border-radius: 5px;
    transform: translateY(-0);
}






@media only screen and (max-width: 991.98px) {
    div.dt-container div.dt-search {
        text-align: right;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    table.dataTable td {
        padding-left: 0%;
    }

    table.dataTable tr {
        padding: 0;
        border-bottom: 0px solid var(--blue);
    }

    .quiz-content {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .quiz-item {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .quiz-item .title {
        width: 100%;
        font-size: 18px;
        text-align: center;
    }

    .quiz-item .description {
        width: 100%;
        font-size: 15px;
        text-align: center;
    }

    .quiz-buttons {
        width: fit-content;
        flex-wrap: wrap;
    }
}


@media (max-width: 768px) {

    .coding-container {
        gap: 40px;
    }

}

@media (max-width: 425px) {

    .dt-container {
        padding: 10px 2vw;
    }

    table.dataTable {
        width: 100%;
        margin: 10px 0;
    }

}