.audio-player {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.audio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 5px;
}

.control-btn:hover {
    background-color: #0056b3;
}

.control-btn:not(#start-record-btn):not(#stop-record-btn) .dashicons {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1px;
}

#start-record-btn,
#stop-record-btn {
    display: flex;
    align-items: center;
}

#start-record-btn .dashicons,
#stop-record-btn .dashicons {
    margin-left: 5px;
}

#playback-speed {
    padding: 5px;
    appearance: none;
    background-image: unset;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0;
}

.progress-bar-container {
    max-width: 525px;
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #007bff;
    transition: width 0.1s linear;
}

.time-display {
    text-align: right;
    font-size: 14px;
    display: flex;
    gap: 5px;
    min-width: 75px;
}

.active {
    background-color: #28a745;
}

input[type=text].fill-blank-input {
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #999999;
    background-color: transparent;
    padding: 0px 5px;
    font-size: inherit;
    font-family: inherit;
    width: 100px;
    height: 32px;
    text-align: center;
}

input[type=text].fill-blank-input:focus {
    outline: none;
    border-bottom-color: #007bff;
}

.exe-pro {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
}

.exe-pro > div {
    flex-basis: 50%;
    max-width: 50%;
    background-color: #fff;
    padding: 15px;
}

.fill-in-blank-action {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fill-in-blank-action .action button {
    margin: 0;
    border: 1px solid #ccc;
    font-weight: 500;
    border-radius: 5px;
}

.fill-in-blank-action .action button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.fill-in-blank-question {
    margin-bottom: 15px;
}

#reset-btn {
    margin-right: 15px;
}

.answer {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.pronunciation {
    margin-bottom: 15px;
	display: flex;
    flex-wrap: wrap;
}

.pronunciation strong:has(.translate-word) {
  display: flex;
  align-items: center;
}

.pronunciation-popup {
    display: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    width: fit-content;
}

.pronunciation-popup .dashicons {
    cursor: pointer;
    margin-left: 5px;
}

.pronunciation-play {
    display: inline-block;
    width: 30px;
    height: 28px;
    position: relative;
    color: #ccc;
}

.pronunciation-play:hover,
.pronunciation-play:focus {
    color: var(--primary-color);
}

.pronunciation-play::after {
    font-size: 8px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.us-pronunciation:after {
    content: 'US';
}

.uk-pronunciation:after {
    content: 'UK';
}

span.translate-word {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: from-font;
    cursor: pointer;
    margin: 5px;
}

.speaking-practice {
    display: none;
}

.speaking-practice .control-btn {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    width: auto;
    height: auto;
}

.speaking-practice .control-btn:hover {
    background-color: #0056b3;
}

#recorded-audio {
    margin-top: 10px;
}

#transcript-display {
    width: 100%;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.pronunciation-title {
    color:#999;
}
  
.pinwheel {
    --uib-size: 45px;
    --uib-speed: 1s;
    --uib-color: #141414;
    --uib-line-weight: 3.5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--uib-size);
    width: var(--uib-size);
}

.pinwheel__line {
    position: absolute;
    top: calc(50% - var(--uib-line-weight) / 2);
    left: 0;
    height: var(--uib-line-weight);
    width: 100%;
    border-radius: calc(var(--uib-line-weight) / 2);
    background-color: var(--uib-color);
    animation: rotate var(--uib-speed) ease-in-out infinite;
}

.pinwheel__line:nth-child(2) {
    animation-delay: calc(var(--uib-speed) * 0.075);
    opacity: 0.8;
}

.pinwheel__line:nth-child(3) {
    animation-delay: calc(var(--uib-speed) * 0.15);
    opacity: 0.6;
}

.pinwheel__line:nth-child(4) {
    animation-delay: calc(var(--uib-speed) * 0.225);
    opacity: 0.4;
}

.pinwheel__line:nth-child(5) {
    animation-delay: calc(var(--uib-speed) * 0.3);
    opacity: 0.2;
}

.pinwheel__line:nth-child(6) {
    animation-delay: calc(var(--uib-speed) * 0.375);
    opacity: 0.1;
}

.progress-bar-container {
    position: relative;
    cursor: pointer;
}

#progress-handle {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

input[type=text].fill-blank-input.correct {
    background-color: #d4edda !important;
    color: #155724 !important;
}

input[type=text].fill-blank-input.incorrect {
    background-color: #ffcccc !important;
    color: #ff0000 !important;
}

@media screen and (max-width: 768px) {
    .audio-controls {
        gap: 7.5px;
    }

    .fill-in-blank-action .note {
        display: none;
    }

    .progress-bar-container {
        display: none;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}