/* 
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    text-align: center;
} */

/* .container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 1200px;
    animation: fadeIn 1s ease-in-out;
} */
 

.container-pronunciation {
    display: flex;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

/* Mặc định */
.show-result-pronunciation {
    width: 0%;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
}

.phoneme-grid {
    width: 100%;
    transition: width 0.3s ease-in-out;
}

/* Khi có kết quả */
.show-result-pronunciation.active {
    width: 50%;
    overflow: visible;
}

.phoneme-grid.shrink {
    width: 50%;
}
.title-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* Căn giữa ngang */
    align-items: center; /* Căn giữa dọc */
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
}
/* Mobile: Khi có kết quả, show-result-pronunciation full và hiển thị trước */
@media (max-width: 768px) {
    .container-pronunciation {
        flex-direction: column; /* Chuyển sang dạng cột */
    }

    .show-result-pronunciation {
        width: 100%;
        display: none; /* Ẩn mặc định */
    }

    .phoneme-grid {
        width: 100%;
    }

    /* Khi có kết quả */
    .show-result-pronunciation.active {
        display: block;
    }

    .phoneme-grid.shrink {
        display: none; /* Ẩn phoneme-grid khi có kết quả */
    }
}


h1 {
    color: #333333;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* .content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
} */

.phoneme-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    /* border-radius: 10px; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideInFromLeft 1s ease-in-out;
}

.phoneme {
    background-color: #4caf50;
    color: #000000;
    padding: 10px;
    /* border-radius: 10px; */
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    animation: zoomIn 0.5s ease-in-out;
    font-family: "proxima-nova";
}

.pronunciation-wrapper {
    background: linear-gradient(to right, #6a11cb, #2575fc);
}

.phoneme:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-section {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px;
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    animation: slideInFromRight 1s ease-in-out;
}

#pronunciation-video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.audio-examples {
    text-align: center;
}

/* .audio-example p {
    margin-bottom: 0px;
} */

.audio-examples p {
    margin-bottom: 10px;
    color: #777;
    font-size: 1.3em;
    font-family: "proxima-nova";
    display: contents;
}

.audio-examples p strong {
    color: #000000;
}

audio {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f1f1f1;
}

.popup-btn1 {
    background-color: #2575fc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    margin-left: 10px;
    font-size: 16px;
}

.popup-btn1:hover {
    background-color: #1a5cb7;
}

.popup-btn2 {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    margin-left: 10px;
    font-size: 16px;
}

.popup-btn2:hover {
    background-color: #1a5cb7;
}

.popup-btn3 {
    background-color: #d7371f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    margin-left: 10px;
    font-size: 16px;
}

.popup-btn3:hover {
    background-color: #1a5cb7;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
    width: 80%;
    max-width: 600px;
    animation: zoomIn 0.5s ease-in-out;
    color: #333333;
    overflow: scroll;
    height: 500px;
}

.popup-content::-webkit-scrollbar {
    display: none;
    /* Hides scrollbar for webkit browsers */
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* .audio-example {
    margin-bottom: 10px;
} */

.audio-icon {
    display: inline-block;
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
}

.audio-text {
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
}

[role="button"] {
    cursor: pointer !important;
    display: inline-block;
    padding-left: 25px;
    background-image: url('/themes/tailwind/images/volume-do-4-xxl.png');
    background-size: 18px;
    background-repeat: no-repeat;
    padding-top: 4px;
    padding-bottom: 2px;
    background-position: left center;
}

[role="button2"] {
    cursor: pointer !important;
    display: inline-block;
    padding-left: 25px;
    background-image: url('/themes/tailwind/images/volume-do-4-xxl.png');
    background-size: 18px;
    background-repeat: no-repeat;
    padding-top: 4px;
    padding-bottom: 10px;
    background-position: left center;
}

.docto {
    color: #777;
    padding-right: 15px;
    font-family: "proxima-nova";
    font-size: 16px;
    line-height: 1.6em;
    letter-spacing: 0px;
    font-weight: 300;
    font-style: normal;
}

.docto2 {
    color: #2351d2;
}

.docto:hover {
    display: inline-block;
    padding-left: 25px;
    background-image: url('/themes/tailwind/images/volume-up-4-xxl.png');
    background-size: 18px;
    background-repeat: no-repeat;
    padding-top: 4px;
    padding-bottom: 4px;
    background-position: left center;
}

.docto2:hover {
    display: inline-block;
    padding-left: 25px;
    background-image: url('/themes/tailwind/images/volume-up-4-xxl.png');
    background-size: 18px;
    background-repeat: no-repeat;
    padding-top: 4px;
    padding-bottom: 10px;
    background-position: left center;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .phoneme-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .video-section {
        /* margin-top: 6em; */
        width: 100%;
    }
    
    .container .ipa-name{
        margin-top: 8em;
    }
}

@media (max-width: 480px) {
    .phoneme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-section {
        /* margin-top: 12em; */
        width: 100%;
    }
    .container .ipa-name{
        margin-top: 8em;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Ẩn toàn bộ thanh điều khiển video */
/* video::-webkit-media-controls-enclosure {
    display: none;
} */

/* Hiển thị lại nút play */
video::-webkit-media-controls-play-button {
    display: block !important;
}

/* Ẩn các phần tử khác của thanh điều khiển video */
/* video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button, */
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-seek-back-button,
video::-webkit-media-controls-seek-forward-button {
    display: none !important;
}

/* Cho Firefox */
/* video::-moz-media-controls-enclosure {
    display: none;
} */

video::-moz-media-controls-play-button {
    display: block !important;
}

video::-moz-media-controls-current-time-display,
video::-moz-media-controls-time-remaining-display,
video::-moz-media-controls-timeline,
video::-moz-media-controls-seek-back-button,
video::-moz-media-controls-seek-forward-button {
    display: none !important;
}

/* Cho các trình duyệt khác */
/* video::-ms-media-controls-enclosure {
    display: none;
} */

video::-ms-media-controls-play-button {
    display: block !important;
}

video::-ms-media-controls-current-time-display,
video::-ms-media-controls-time-remaining-display,
video::-ms-media-controls-timeline,
video::-ms-media-controls-seek-back-button,
video::-ms-media-controls-seek-forward-button {
    display: none !important;
}
