.fill-in-blank-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    max-width: 1200px;
    padding-inline: 15px;
    margin: 0 auto;
}

.answer-bank {
    flex-basis: 20%;
    max-width: 20%;
    padding: 10px;
    border: 1px solid #ccc;
}

.question-container {
    flex-basis: 80%;
    max-width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.draggable-answer {
    padding: 5px;
    margin: 5px 0;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.draggable-answer.selected {
    background-color: #007bff;
    color: white;
}

.input-wrapper {
    position: relative;
    display: inline-block;
}

.input-wrapper input[type="text"] {
    box-shadow: none;
    border: none;
    border-bottom: 1px dashed #ccc;
    background-color: transparent;
}

.clear-answer {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    display: none;
    margin: 0;
}

.clear-answer:hover {
    color: var(--primary-color);
}

.dragging {
    opacity: 0.5;
}

.question {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
    flex-basis: calc(25% - 11.25px);
    max-width: calc(25% - 11.25px);
}

.question.drag-over {
    border-color: #007bff;
}

.input-wrapper {
    width: 100%;
}

.input-wrapper input {
    margin: 0;
}

.question-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.question-image img {
    position: absolute;
    inset: 0;
    font-family: "object-fit: cover;";
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.exe-pro {
    background-color: #fff;
    padding-block: 15px;
}

.question:hover {
    border: 2px solid var(--primary-color);
}

.vocabulary-submit {
    background-color: #f97630;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.input-wrapper.correct input {
    background-color: #4CAF50;
    color: white;
}

.input-wrapper.incorrect input {
    background-color: #F44336;
    color: white;
}

.vocabulary .exe-question {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 15px;
}

.vocabulary .exe-question > img {
    order: 1;
}

.vocabulary .exe-question p {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .fill-in-blank-container {
        flex-direction: column;
    }

    .answer-bank {
        max-width: 100%;
    }

    .question-container {
        max-width: 100%;
    }

    .answer-bank {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .answer-bank-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff; /* hoặc màu nền khác phù hợp với thiết kế của bạn */
        padding: 15px;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 20vh; /* Giới hạn chiều cao tối đa */
        overflow-y: auto; /* Cho phép cuộn nếu nội dung quá dài */
    }

    .question {
        flex-basis: calc(50% - 11.25px);
        max-width: calc(50% - 11.25px);
    }

    .draggable-answer {
        margin: 0;
    }
}