.fill-in-blank-widget :focus-visible {
    outline: 3px solid #c36;
    outline-offset: 0;
}

.hint {
    display: none;
    font-size: 20px;
    margin: 0 10px;
}

.feedback {
    display: none;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.quiz-success {
    text-align: center;
    display: none;
}

.quiz-result {
    margin: 10px;
    background: #fff;
    border-radius: 15px;
    border: 2px solid #c36;
    color: #000;
    padding: 10px;
    text-align: center;
    line-height: 1.75;
}

.quiz-result p .score {
    font-size: 17px;
    font-weight: bold;
    color: green;
}

.quiz-success .checkmark {
    font-size: 50px;
    color: #33691e;
    display: block;
}

.quiz-success p {
    font-size: 20px;
    color: #33691e;
    margin: 20px 0!important;
}

.blank-input {
    border-bottom: 2px solid #000!important;
    transition: background-color 0.3s ease, color 0.3s ease!important;
    border-top: none!important;
    border-left: none!important;
    border-right: none!important;
    text-align: center!important;
    font-size: 17px!important;
    margin: 5px 10px!important;
    width: 150px!important;
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-container button {
    width: 100%;
}

.start-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #FFFFFF;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 10px 20px;
    min-width: 200px;
    font-size: 20px;
    margin: 0 auto;
    cursor: pointer;
}

.time-elapsed {
    margin: 0 10px;
}

audio::-webkit-media-controls-enclosure {
    overflow: hidden !important;
}

audio::-webkit-media-controls-download-button {
    display: none !important;
}

audio::-webkit-media-controls-panel {
    display: flex !important;
    justify-content: space-between !important;
}

.widget-box {
    border: 1px solid;
    padding: 10px;
    border-radius: 20px;
}

.widget-box h3 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.widget-box button {
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #fff;
    font-size: 20px;
    cursor: pointer;
}

.widget-box button:not(:disabled):hover {
    background: #c36;
    transition: 0.3s;
    color: #fff;
}

.widget-box button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    transition: none;
}

.widget-box .timer {
    font-size: 17px;
}

.widget-box .question-text,
.widget-box .sentence-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 20px 10px;
    border-radius: 15px;
    border: 2px solid #c36;
    color: #000;
    line-height: normal;
}

.widget-box .question-text img,
.widget-box .sentence-text img {
    width: 200px;
    border-radius: 15px;
    box-shadow: 0 0 10px #00000017;
}

.widget-box .question-text .filled-option-cart {
    border: 2px solid #c36;
    border-radius: 15px;
    padding: 5px;
    cursor: pointer;
}

.choose-option-widget .question-text,
.true-false-widget .sentence-text {
    justify-content: space-around;
}

/* Loading */
.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    z-index: 9999;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top-color: #c36;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 99999;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media only screen and (max-width: 800px) {
    .blank-input {
        font-size: 15px;
        width: 80px;
        margin: 0 5px;
    }
    .feedback {
        font-size: 17px;
    }
    .hint {
        font-size: 17px;
    }
    .widget-box {
        padding: 10px;
    }
    .widget-box button {
        font-size: 17px;
    }
    .widget-box .timer {
        font-size: 15px;
    }
    .widget-box h3 {
        font-size: 15px;
    }
    .widget-box .question-text,
    .widget-box .sentence-text {
        gap: 5px;
        padding: 20px 10px;
        font-size: 15px;
    }
}

/* Alert */
.alert-container {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 400px;
}
.alert {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    overflow: hidden;
    box-sizing: border-box;
}
.alert.danger {
    border: 2px solid #cb1046;
}
.alert.success {
    border: 2px solid #0c6;
}
.alert.warning {
    border: 2px solid #cb7d10;
}
.alert .closebtn {
    margin-left: 15px;
    color: #000;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.alert .closebtn:hover {
    color: black;
}
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}