#main {
    width: 100%;
}

.entry-header {
    text-align: center !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

h1 {
    font-size: 30px;
}

.pronunciation_test {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px !important;
}

.entry-content {
    max-width: 768px;
    padding: 10px;
}

.pronunciation-card-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px;
}

.pronunciation-card-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 768px;
    height: 55vh;
}

.pronunciation-unit-container {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgb(235, 235, 235);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: transform 0.2s;
    transform: translateX(0);
}

.pronunciation-unit-container.current {
    display: flex;
}

.pronunciation-unit,
.pronunciation-assessment-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    font-size: 30px;
}

.pronunciation-unit-container.slide-right {
    transform: translateX(30%);
    opacity: 0;
}

.pronunciation-unit-container.slide-left {
    transform: translateX(-30%);
    opacity: 0;
}

.pronunciation-unit-tip {
    font-size: 14px;
    color: rgb(100, 100, 100);
}

.pronunciation-unit-notice {
    color: darkviolet;
    display: none;
}

.pronunciation-unit-container-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pronunciation-unit-container-overlay button {
    pointer-events: auto;
}

.record-button {
    position: absolute;
    bottom: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    font-size: 35px;
    border-radius: 50%;
    background-color: crimson;
    border: 1px solid rgb(235, 235, 235);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.record-button.processing {
    background-color: lightgray;
    border: none;
}

.record-button i {
    z-index: 20;
}

.button-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.4);
    transition: width 1s linear;
    z-index: 10;
}

.next-unit-button,
.previous-unit-button {
    position: absolute;
    padding: 10px;
    font-size: 30px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid rgb(235, 235, 235);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    color: black;
}

.next-unit-button {
    right: -25px;
}

.previous-unit-button {
    left: -25px;
}

.next-unit-button:focus,
.previous-unit-button:focus {
    background-color: white;
    border: 1px solid whitesmoke;
    color: black;
}

.next-unit-button:hover,
.previous-unit-button:hover {
    background-color: whitesmoke;
    border: 1px solid whitesmoke;
    color: black;
}

.pronunciation-unit-control-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.pronunciation-unit-control-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid rgb(235, 235, 235);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    color: black;
}

.pronunciation-unit-control-buttons button:hover {
    background-color: whitesmoke;
}

.pronunciation-unit-control-buttons .play-recorded-audio-button {
    display: none;
}

.pronunciation-unit-counter {
    font-weight: bold;
    font-size: 22px;
    color: rgb(100, 100, 100);
}

.user-audio-input {
    display: none;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.recording {
    animation: pulse 1s infinite;
}

.pronunciation-assessment-wrapper {
    display: none;
}

.pronunciation-word {
    position: relative;
    cursor: pointer;
    line-height: 1.8;
}

.pronunciation-word-score {
    position: absolute;
    line-height: 1;
    white-space: nowrap;
    width: 100%;
    left: 0px;
    font-size: 12px;
}

.pronunciation-detail-popup {
    display: none;
    position: absolute;
    text-align: center;
    padding: 5px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid lightgray;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.pronunciation-detail {
    width: 350px;
    max-height: 50vh;
    overflow-y: auto;
}

.pronunciation-detail-popup-close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: white;
    padding: 0px;
    width: 30px;
    height: 30px;
    border: 1px solid gray;
    border-radius: 50%;
    font-size: 18px;
    color: black;
    font-weight: bold;
}

.pronunciation-detail-popup table {
    margin-bottom: 0px !important;
}

.word-audio-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.play-word-fast-audio-button, .play-word-slow-audio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-size: 16px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid rgb(235, 235, 235);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    color: black;
    cursor: pointer;
}

.pronunciation-overall-result {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pronunciation-overall-result div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 90px;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    font-size: 12px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, white 79%, transparent 80% 100%),
        conic-gradient(green 75%, lightgray 0);
}

.progress-title {
    width: 100%;
    text-align: center;
    font-size: 12px;
}

.post-locker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.post-locker i {
    position: absolute;
    background-color: white;
    border: 1px solid darkorange;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 50px;
    color: darkorange;
    text-align: center;
}

.comment-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.comments-area {
    width: 100%;
    max-width: 768px;
    border: 1px solid lightgray !important;
    border-radius: 5px;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .next-unit-button {
        right: -10px;
    }

    .previous-unit-button {
        left: -10px;
    }

    .pronunciation-card-wrapper {
        height: 65vh;
    }

    .pronunciation-unit,
    .pronunciation-assessment-wrapper {
        font-size: 25px;
    }
}