body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    /* 禁止横向滚动 */
}

.footer {
    color: white;
}

@font-face {
    font-family: "Legwork Demo";
    src: url(../fonts/legworkDEMO.otf);
}

@font-face {
    font-family: "Oliver Regular";
    src: url(../fonts/oliver.ttf);
}

h1 {
    font-family: "Legwork Demo";
    color: #1C1C42;
    font-size: 38px;
}

h2 {
    font-family: "Oliver Regular";
    color: #5C4F66;
    font-size: 28px;
}

p {
    font-family: "Nunito Sans";
    color: #4A4A4A;
    font-size: 18px;
}

.navbar {
    position: sticky;
    top: 0;
    background-color: #FFFFFF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.navcontent {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #4A4A4A;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    margin-right: 10px;
    margin-left: 10px;
    padding: 14px 20px;
}

.menu a:hover {
    text-decoration: underline;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: #5F86AA;
    cursor: pointer;
}

#menu-checkbox:checked+.menu-toggle+.menu {
    display: flex;
}


footer {
    background-color: #5F86AA;
    padding: 20px 40px;
    font-size: 15px;
}

.footercontent {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

footer a {
    text-decoration: none;
    color: white;
}

footer a:hover {
    color: #5C4F66;
}

.footer.left {
    display: flex;
    align-items: center;
    margin-left: 30px;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    /* Align logo and underline vertically */
    gap: 10px;
    /* Add spacing between the logo and the line */
    margin-right: -200px;
}

.footer.logo {
    font-family: Legwork DEMO;
    font-size: 38px;
    margin-bottom: 20px;
}

.footer.info p {
    margin: 10px;
    margin-top: 12px;
}

.footer-right {
    display: flex;
    gap: 20px;
    align-self: flex-end;
}

.social-icon img {
    width: 80%;
}

@media screen and (max-width: 768px) {

    body,
    html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        /* 禁止横向滚动 */
    }

    h1 {
        font-size: 32px;
    }
}

/*mobile*/
@media screen and (max-width: 600px) {

    @font-face {
        font-family: "Legwork Demo";
        src: url(../fonts/legworkDEMO.otf);
    }

    @font-face {
        font-family: "Oliver Regular";
        src: url(../fonts/oliver.ttf);
    }

    body,
    html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        /* 禁止横向滚动 */
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    p {
        font-size: 16px;
    }

    .navbar {
        padding: 18px 10px;
    }

    .navcontent {
        justify-content: space-between;
    }

    .navbar .logo {
        position: static;
        order: 1;
        /* Logo appears on the left */
    }

    .menu-toggle {
        display: block;
        font-size: 30px;
        order: 2;
        /* Hamburger menu appears on the right */
    }

    .menu {
        flex-direction: column;
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background-color: #FEF7E7;
        justify-content: center;
        align-items: flex-end;
        z-index: 1000;
        gap: 5px;
    }

    .menu a {
        text-align: left;
        padding: 20px;
        font-size: 18px;
        color: #5C4F66;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

    .menu a:hover {
        color: #FFFFFF;
        background-color: #5C4F66;
        border-radius: 20px;
    }

    #menu-checkbox:checked+.menu-toggle+.menu {
        display: flex;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        left: 10px;
        display: block;
        color: #5F86AA;
    }

    .footer {
        padding: 20px 10px;
        position: relative;
    }

    .footercontent {
        flex-direction: column;
    }

    .footer.left {
        margin-bottom: 20px;
    }

    .footer.logo {
        font-size: 40px;
        margin-bottom: -50px;
    }

    .footer-right {
        align-self: normal;
        width: 100%;
        margin-left: 15%;
    }
}