@font-face {
    font-family: "Noto Serif";
    src: url("../font/NotoSerif.ttf");
}

@font-face {
    font-family: "Noto Serif SC";
    src: url("../font/NotoSerifSC.ttf");
}

@font-face {
    font-family: "Hana Min A";
    src: url("../font/HanaMinA.ttf");
}

@font-face {
    font-family: "Hana Min B";
    src: url("../font/HanaMinB.ttf");
}

@font-face {
    font-family: "Charis SIL";
    src: url("../font/CharisSIL.ttf");
}

@font-face {
    font-family: "Noto Naskh Arabic";
    src: url("../font/NotoNaskhArabic.ttf");
}

@font-face {
    font-family: "Noto Serif Tibetan";
    src: url("../font/NotoSerifTibetan.ttf");
}

.alt {
    font-family: "Hana Min A", "Hana Min B", serif;
}

.ar {
    font-family: "Noto Naskh Arabic", sans-serif;
}

.bo {
    font-family: "Noto Serif Tibetan", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Noto Serif", "Noto Serif SC", serif;
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 0 10px #222222;
}

html, body {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
    overflow: visible;
}

::-webkit-scrollbar {
    display: none;
}

.bg-text {
    position: absolute;
    top: 13px;
    left: 15px;
    text-align: left;
    font-size: 14px;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-list li a {
    text-decoration: none;
    padding: 8px 15px;
    transition: background 0.3s;
}

.nav-list li a:hover {
    background-color: #ffffff20;
    border-radius: 4px;
}

article {
    position: relative;
    z-index: 1;
    max-width: 900px auto;
    width: 75%;
    margin: 12px auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 20px;
    background: #6c6c6c50;
}

h1 {
    line-height: 1.5;
    text-align: center;
    font-size: 30px;
}

p {
    text-align: justify;
    line-height: 1.7;
    margin: 14px auto;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

button {
    padding: 10px 20px;
    font-size: 19px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 19px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

button:hover {
    color: #000000;
    background-color: #ffffff;
    text-shadow: none;
}

.lyric-line,
.lyric-line-v,
.lyric-alt,
.lyric-ipa,
.lyric-translation,
.lyric-pin {
    text-align: center;
}

.lyric-line-v {
    color: #adff2f;
}

.hidden {
    display: none;
}

.lyric-ipa {
    font-family: "Charis SIL", "Times New Roman", Times, sans-serif;
    color: #ffff00;
}

.lyric-translation {
    font-family: Kai, "Kaiti SC", 楷体, STKaiti, KaiTi, KaiTi_GB2312, san-serif;
}

.lyric-pin {
    font-family: "Times New Roman", Times, sans-serif;
    font-style: italic;
    color: #ffff00;
}

.lyric-alt.show,
.lyric-ipa.show,
.lyric-translation.show,
.lyric-pin.show {
    display: block;
}

.note {
    border-bottom: 1px dotted;
    position: relative;
    cursor: help;
}

.tooltip {
    visibility: hidden;
    background: #33333390;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    width: auto;
    white-space: nowrap;
}

.note:hover .tooltip {
    visibility: visible;
}

.pdf-container {
    display: block;
}

.message-container {
    display: none;
}

@media screen and (max-width: 768px) {    
    nav, .bg-text, article {
        display: none;
    }
    .message-container {
        display: block;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        font-size: 25px;
    }
}