@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    text-align: center;
    background-color: #AB141C;
}

.cloud {
    filter: grayscale(100%);
    mix-blend-mode: luminosity;
}

.background {
    background-color: #193060;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container {
    max-width: 1530px;
    margin: auto;
}

/*Headline/Banner Title*/
h1 {
    font-family: "Bona Nova", serif;
    font-weight: 700;
    font-size: 64px;
    color: #1C0A0A;
}

/*Content Title/Banner Subtitle*/
h2 {
    font-family: "Bona Nova", serif;
    font-weight: 700;
    font-size: 40px;
    color: #1C0A0A;
}

/*Images with scroll/links and small titles, subtitles*/
h3 {
    font-family: "Bona Nova", serif;
    font-weight: 400;
    font-size: 24px;
    color: #1C0A0A;
}

/*Body Text*/
p {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 200;
    font-size: 20px;
    line-height: 150%;
    color: #1C0A0A;
}

/*Image captions, Copyright*/
.smalltext {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 200;
    font-size: 16px;
    color: #1C0A0A;
}

a {
    font-family: "Bona Nova", serif;
    font-size: 20px;
    text-decoration: none;
    color: #FFCE48;
}

/*for text colour,
e.g. <p class="yellow smalltext"></p>*/
.yellow {
    color: #FFCE48;
}

.white {
    color: white;
}

.red {
    background-color: #AB141C;
}

.blue {
    background-color: #193060;
}

.beige {
    background-color: #FBE8BD;
}

button {
    font-family: "Bona Nova", serif;
    font-weight: 400;
    font-size: 20px;
    color: #FFCE48;
    background-color: #AB141C;
    padding: 10px 20px;
    min-width: 140px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #193060;
}

.backtotop {
    position: fixed;
    z-index: 10;
    bottom: 0;
    right: 0;
    margin-bottom: 30px;
    margin-right: 100px;
}

.title {
    border-radius: 0 320px 320px 0;
    padding: 20px 90px;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 30px;
    width: fit-content;
    scroll-margin-block-start: 90px;
}

.title h2 {
    margin: 0;
}

.sectiontitle {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 20px 80px;
    gap: 70px;
}

.sectiontitle p {
    text-align: left;
}

.headercolour {
    background-color: #AB141C;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: auto;
    padding: 20px 30px;
}

.menu {
    display: flex;
    width: 100%;
    gap: 80px;
}

.mobilemenu {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #FFCE48;
    border-radius: 5px;
}

.submenu {
    display: none;
    position: absolute;
    bottom: -90px;
    left: 0;
    width: 230px;
    padding: 10px;
    background-color: #AB141C;
}

.submenu a {
    display: block;
    padding: 5px 10px;
    text-align: left;
}

.submenu a:hover {
    background-color: #193060;
}

.menuitem {
    padding: 5px 0;
    position: relative;
    border-bottom: #AB141C 1px solid;
    transition: 0.3s ease;
}

.headerunderline {
    border-bottom: #FFCE48 1px solid;
}

.menuitem:hover {
    border-bottom: #FFCE48 1px solid;
}

.menuitem:hover .submenu {
    display: block;
}

.logo {
    height: 40px;
}

.footercolour {
    background-color: #AB141C;
    margin: 0;
    padding: 30px 30px;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1280px;
    margin: auto;
}

.footermenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 100px;
    margin-bottom: 20px;
    padding: 20px 40px;
    border-bottom: #FFCE48 1px solid;
}

/* Tablet and mobile styles */
@media screen and (max-width: 1080px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    .smalltext {
        font-size: 12px;
    }

    .chinesetext {
        width: 400px;
    }

    button {
        min-width: 112px;
        font-size: 16px;
    }

    a {
        font-size: 16px;
    }

    .backtotop {
        margin: 16px;
    }

    .logo {
        height: 30px;
    }

    .title {
        padding: 15px 50px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .menu {
        position: fixed;
        display: flex;
        justify-content: center;
        z-index: 11;
        left: -100%;
        top: 50px;
        background-color: #AB141C;
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .submenu {
        bottom: -80px;
    }

    .menuitem {
        margin: 16px 0;
    }

    .menu.active {
        left: 0;
    }

    .mobilemenu {
        display: block;
    }

    .mobilemenu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobilemenu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobilemenu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .backtotop {
        margin-right: 30px;
    }

    .header {
        align-items: center;
        padding: 15px 25px;
    }

    .footermenu {
        gap: 50px;
    }

    .footermenu div {
        width: 20%;
    }

    .cloud {
        height: 200px;
    }
}

/* Tablet styles */
@media screen and (max-width: 800px) {
    .menu {
        position: fixed;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: -1;
        left: -100%;
        top: 50px;
        background-color: #AB141C;
        width: 100%;
        height: 90vh;
        text-align: center;
        transition: 0.3s;
        padding: 16px 0;
        padding-bottom: 30px;
    }

    .menuitem {
        margin: 0 30px;
    }

    .submenu {
        display: block;
        position: absolute;
        bottom: -80px;
        left: 50%;
        transform: translateX(-50%);
        width: 230px;
        padding: 10px;
        background-color: #AB141C;
    }

    .submenu a {
        display: block;
        padding: 5px 10px;
        text-align: center;
    }

    .submenu a:hover {
        background-color: #193060;
    }

    .menuitem {
        padding: 5px 0;
        position: relative;
        border-bottom: #AB141C 1px solid;
        transition: 0.3s ease;
        border-bottom: #FFCE48 1px solid;
    }

    .headerunderline {
        border-bottom: #FFCE48 1px solid;
    }

    .menuitem:hover {
        border-bottom: #FFCE48 1px solid;
    }

    .menuitem:hover .submenu {
        display: block;
    }

    .sectiontitle {
        margin: 0;
        display: flex;
        align-items: center;
        padding: 10px 30px;
        gap: 30px;
    }

    .sectiontitle p {
        text-align: left;
    }
}

/* Mobile styles */
@media screen and (max-width: 600px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    .smalltext {
        font-size: 12px;
    }

    .chinesetext {
        width: 300px;
    }

    button {
        min-width: 112px;
        font-size: 16px;
    }

    a {
        font-size: 16px;
    }

    .sectiontitle {
        flex-direction: column;
        padding: 30px;
        gap: 15px;
    }

    .sectiontitle h2 {
        margin: 0 auto;
    }

    .sectiontitle p {
        text-align: center;
        margin: 0 auto;
    }

    .backtotop {
        margin: 16px;
    }

    .footer {
        margin-bottom: 60px;
    }

    .footermenu {
        gap: 20px;
    }

    .footermenu div {
        width: 28%;
    }

    .cloud {
        height: 134px;
    }
}