@font-face {
    font-family: 'IekieFont';
    src: url('https://cdn.jsdelivr.net/gh/huy8895/huy8895.github.io.asset/font/trungquoc/iekie.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 8pt;
    line-height: 1.8;
    color: #333;
    background-color: #fdfdfd;
    margin: 0;
    padding: 20px 30px;
}

.zh {
    font-family: 'IekieFont', sans-serif;
    font-size: 24pt;
    line-height: 1.5;
}

h1, h2, p, ul {
    font-size: 10pt;
}

h2 {
    font-size: 14pt;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5em;
    color: #4a4a4a;
}

ul.toc {
    list-style: none;
    padding: 1em 1.5em;
    background-color: #f5f5f5;
    border-left: 4px solid #0073e6;
    margin-top: 2em;
    margin-bottom: 2em;
    display: inline-block;
    min-width: 300px;
}

ul.toc li {
    margin-bottom: 0.5em;
}

ul.toc a {
    font-weight: bold;
}

a {
    color: #0073e6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.explanation-item {
    margin-bottom: 1.5em;
    padding: 0.5em 1em;
    border-left: 3px solid #ccc;
    background-color: #fafafa;
}

.explanation-item strong.zh-term {
    font-size: 19pt;
    color: #d63384;
    font-family: 'IekieFont', sans-serif;
}

.explanation-item .zh-example {
    font-family: 'IekieFont', sans-serif;
    font-size: 17pt;
    color: #555;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1em;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

details {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 2em;
    background-color: #fafafa;
    overflow: hidden;
}

summary {
    cursor: pointer;
    padding: 0.5em 1em;
    background-color: #f1f1f1;
    font-weight: bold;
}

summary:hover {
    background-color: #e9e9e9;
}

summary h2 {
    display: inline-block;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 14pt;
}

.transcript-content {
    padding: 1em 1.5em;
    border-top: 1px solid #ddd;
}
.timestamp-list {
    list-style: none;
    padding-left: 0;
}
.timestamp-list li {
    margin-bottom: 0.5em;
}
.timestamp-list a {
    font-weight: bold;
}
details[open] summary {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}
details[open] .transcript-content {
    max-height: 70vh;
    overflow-y: auto;
}

 .social .youtube {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     /* background-color: #04cb22; */
     text-align: center;
 }

.social .spotify-channel {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background-color: #04cb22; */
    text-align: center;

}

.social {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: fixed;
    bottom: 50%;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.social:hover {
    cursor: pointer;
}

.social .youtube {
    width: 60px;
    height: 60px;
    /* background-color: #00cc00; */
    color: black;
    font-size: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    animation: shake 2s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social .spotify-channel {
    width: 60px;
    height: 60px;
    /* background-color: #00cc00; */
    color: black;
    font-size: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    animation: shake 3s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social .coffe {
    width: 60px;
    height: 60px;
    /* background-color: #00cc00; */
    color: black;
    font-size: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    animation: shake 3s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-1px);
    }

    40% {
        transform: translateX(1px);
    }

    60% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(1px);
    }
}

.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    /* background-color: black; */
    color: red;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

}

.show-tooltip .tooltip {
    opacity: 1;
}

.copyright {
    font-size: 12px;
    font-weight: bold;
}
