@font-face {
    font-family: 'Open Sans Bold';
    src: url(https://cdn.jsdmirror.com/gh/EMIYangR/CDN/font/OpenSans-Bold.ttf) format('truetype'),
        url(https://cdn.jsdelivr.net/gh/EMIYangR/CDN/font/OpenSans-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'Open Sans Regular';
    src: url(https://cdn.jsdmirror.com/gh/EMIYangR/CDN/font/OpenSans-Regular.ttf) format('truetype'),
        url(https://cdn.jsdelivr.net/gh/EMIYangR/CDN/font/OpenSans-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Zhuque Fangsong';
    src: url(https://cdn.jsdmirror.com/gh/EMIYangR/CDN/font/ZhuqueFangsong-Regular.ttf) format('truetype'),
        url(https://cdn.jsdelivr.net/gh/EMIYangR/CDN/font/ZhuqueFangsong-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'LXGW ZhenKai';
    src: url(https://cdn.jsdmirror.com/gh/EMIYangR/CDN/font/lxgwhenkai.ttf) format('truetype'),
        url(https://cdn.jsdelivr.net/gh/EMIYangR/CDN/font/lxgwhenkai.ttf) format('truetype');
}

@keyframes float {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-100vh) scale(1.5);
    }
}

* {
    font-family: "Zhuque Fangsong";
    margin: auto;
    padding: 0;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (orientation: landscape) {
    body {
        background-image: url(../img/background.png);
    }

    #header {
        padding: 10px 0;
    }

    #header ul {
        margin-left: 60px;
    }

    #header a {
        padding: 10px 20px;
        font-size: larger;
    }

    .mobile {
        display: none;
    }

    #contents {
        padding: 80px 50px 0;
    }

    #welcome {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .link-box {
        padding: 10px;
    }

    #highlight-box {
        margin-bottom: 36px;
    }

    #cw {
        font-size: small;
    }

}

@media (orientation: portrait) {
    body {
        background-image: url(../img/background_m.png);
    }

    #header {
        padding: 5px 0;
    }

    #header ul {
        margin-left: 20px;
    }

    #header a {
        padding: 10px;
        font-size: small;
    }

    .desktop {
        display: none;
    }

    #contents {
        padding: 60px 0 25px 20px;
    }

    #welcome {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    #highlight-box p {
        font-size: smaller;
    }

    #cw {
        font-size: x-small;
    }

    .link-box {
        padding: 2px 5px;
    }

    #highlight-box {
        margin-bottom: 30px;
    }
}

body {
    background-position: right;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: auto;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #7cf;
    z-index: 1;
}

#header ul {
    list-style: none;
    display: flex;
}

#header li {
    margin: 0 10px;
}

#header a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

#tool {
    margin-bottom: 30px;
}

#contents {
    min-height: 50vh;
}

/* #contents {
    justify-content: center;
    align-items: center;
    align-content: space-around;
    flex: 1;
} */

#welcome {
    font-family: "LXGW ZhenKai";
    color: #2a9d8f;
    text-align: left;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

#contents #mine a,
#contents #tools a,
#contents #friends a {
    float: left;
    margin: 5px 10px;
}

#contents #tools,
#contents #friends,
#highlight-box {
    clear: both;
}

.link-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 275px;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    text-align: left;
}

.link-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.link-box .icon {
    font-size: 2rem;
    margin-right: 15px;
    color: #007bff;
}

.link-box .icon img {
    width: 25px;
}

.link-box .details {
    flex: 1;
}

.link-box .details p {
    margin: 5px 0;
    color: #555;
}

.link-box .details a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.link-box .details a:hover {
    text-decoration: underline;
}

#footer {
    margin-top: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    text-align: center;
}

#footer {
    line-height: 1.7;
    font-style: normal !important;
    color: #552d36;
    box-sizing: border-box;
    margin: 0px auto;
    border-top: 5px solid #ffdcd6;
}

#cw p,
#year {
    font-family: "Open Sans Bold";
    text-align: center;
    width: 100%;
}

.symbol {
    position: absolute;
    font-size: 2rem;
    color: #ff69b4;
    pointer-events: none;
    animation: float 3s ease-in-out forwards;
}