/* အခြေခံ အပြင်အဆင် */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(Cotton\ Candy.jpg);
}

.container {
    max-width: 500;
    margin: 50px 15px;
    padding: 20px;
    background-color: pink;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Header နဲ့ Navigation အပြင်အဆင် */
header {
    background-color: white;
    color: deeppink;
    padding: 15px 20px;
    text-align: center;
}

header h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* link တွေကြား နေရာခြားဖို့ */
}

.nav-link {
    color: deeppink;
    text-decoration: none;
    padding: 8px 100px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: pink;
}

.nav-link.active {
    background-color: lightpink;
    /* လက်ရှိ ရွေးထားတဲ့ link ကို အရောင်ပြောင်းဖို့ */
    font-weight: bold;
}

/* Content Section အပြင်အဆင် */
.content-section {
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

/* ဤ CSS Class က အရေးကြီးဆုံးဖြစ်ပြီး Section ကို ဖျောက်ထားဖို့ သုံးတာပါ */
.hidden {
    display: none;
}

.btn1 {
    color: deeppink;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    outline: none;
    background-color: purple;
    border: 1px solid purple;
    cursor: pointer;
}

.btn1:hover {
    background-color: lightpink;
    /* လက်ရှိ ရွေးထားတဲ့ link ကို အရောင်ပြောင်းဖို့ */
    font-weight: bold;
}

#hidden-text {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    margin-top: 10px;
    background-color: #f9f9f9
}

/* ၁။ ပုံမှန် အနေအထား (ပုန်းကွယ်ထားခြင်း) */
#hiddenText {
    /* အစပိုင်းမှာ နေရာယူထားပေမယ့် လုံးဝ ပွင့်လင်းမြင်သာအောင် လုပ်ထားတယ် */
    opacity: 0;
    /* နေရာလွတ်ကို လုံးဝ ဖယ်ရှားပြီး ပုန်းကွယ်ထားတယ် */
    display: none;

    /* စာသားပုံစံအတွက် */
    padding: 20px;
    border: 1px solid #007bff;
    /* အရောင်လေး ပြောင်းထားပါတယ် */
    margin-top: 15px;
    background-color: #eaf5ff;
}

/* ၂။ Fade-in Animation သတ်မှတ်ခြင်း */
@keyframes fadeIn {
    from {
        opacity: 0;
        /* စတာနဲ့ လုံးဝ ပွင့်လင်းမြင်သာနေမယ် (မမြင်ရ) */
    }

    to {
        opacity: 1;
        /* ဆုံးသွားရင် လုံးဝ မမြင်သာတော့ဘူး (မြင်ရ) */
    }
}

/* ၃။ စာသားကို ပြသပြီး Animation ကို စတင်ဖို့အတွက် Class */
#hidden-text.show {
    display: block;
    /* နေရာယူပြီး ပြသဖို့ စတင်မယ် */
    opacity: 1;
    /* နောက်ဆုံးမှာ မြင်သာဖို့ သတ်မှတ်တယ် */

    /* Animation ကို သတ်မှတ်လိုက်မယ် */
    animation-name: fadeIn;
    /* အပေါ်က သတ်မှတ်ထားတဲ့ နာမည် */
    animation-duration: 0.8s;
    /* ကြာချိန် (ဥပမာ: 0.8 စက္ကန့်) */
    animation-fill-mode: forwards;
    /* Animation ပြီးသွားရင် နောက်ဆုံးအခြေအနေ (opacity: 1) ကို ဆက်ထိန်းထားဖို့ */
}

@media (max-width: 600px) {
    .nav-link {
        padding: 8px 20px;
    }

    .img-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 800px;
        padding: 10px;
        margin: 0 auto;
    }

    .img-container .same {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }


    .img-container img:hover {
        transform: scale(1.1);
    }

    .less {
        padding: 0;
        margin-left: 120px;
        width: 250px;
    }
}


.playlist-header {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}


.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ffccdd;
    cursor: pointer;
}

.song-item:last-child {
    border-bottom: none;
}

/* နှိပ်လိုက်ရင် အရောင်ပြောင်းဖို့ */
.song-item.playing {
    background-color: #ffd6e6;
}

.song-detail {
    flex-grow: 1;
    color: #444;
    line-height: 1.4;
}


.play-button {
    width: 35px;
    height: 35px;
    background-color: #ff80ab;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.play-button:hover {
    background-color: #e65287;
}

/* Play Icon (▶) */
.play-button::after {
    content: '▶';
    color: white;
    font-size: 12px;
    transform: translateX(1px);
}

/* Pause Icon (❚ ❚) Play နေရင် Icon ပြောင်းဖို့ */
.play-button.pause-state::after {
    content: '❚ ❚';
    font-size: 10px;
    transform: translateX(0);
}

/* Audio Player ကို လုံးဝ ဖျောက်ထားခြင်း */
.song-audio {
    display: none;
    opacity: 0;
    height: 0;
    width: 0;
}

.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin: 0 auto;
}

.img-container img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    /* ပုံကို ဆွဲဆန့်ခြင်းမရှိဘဲ ဖြတ်တောက်ပြီး ပြသဖို့ */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.img-container img:hover {
    transform: scale(1.1);
}

.note {
    text-align: left;
    padding: 10px 20px;
    outline: none;
    border: 1px solid deeppink;
    border-radius: 8px;
    flex-direction: column;
}

.less {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn2 {
    background-color: deeppink;
    color: white;
    outline: none;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in;
}

.btn2:hover {
    background-color: blue;
}

footer {
    text-align: center;
    font-style: 10px;
    font-weight: bold;
    color: blue;
}