:root {
    --theme: rgb(38, 49, 63);
    --theme-mobile: #174861;
    --theme-video: #061958;
    --theme-jss: #0d4d68;
    --theme-hkwp: #336699;
    --theme-appit: #55325f;
}

html,
body {
    overflow-y: auto;
    /* Forces vertical scroll capability */
}

/* 1. Ensure the page allows scrolling */
html {
    margin: 0;
    padding: 0;
    scrollbar-width: 15px;
    ;
}

/* 2. Customize the Scroll Bar (Webkit browsers: Chrome, Edge, Safari) */
/* Width of the scroll bar */
::-webkit-scrollbar {
    width: 15px;
}

/* Background of the scroll track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #d1d1d1;
}

/* The moving part of the scroll bar (thumb) */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    /* Makes it round */
    border: 3px solid #f1f1f1;
    /* Adds padding around the thumb */
}

/* Change color when hovering over the scroll bar */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-body {
    max-height: 70vh;
    /* Limits height to 70% of the viewport height */
    overflow-y: auto;
    /* Adds a scroll bar automatically if content exceeds height */
    scrollbar-width: thin;
    /* Firefox optimization */
}

.progress-container {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    height: 8px;
    background: transparent;
}

.progress-bar {
    height: 8px;
    background: #04AA6D;
    /* Green color, change to match your theme */
    width: 0%;
}

body {

    scroll-behavior: smooth;
}

.btn-solo {
    border: none;
    background: none;
}

/*********** HEADER ************/

/* BACKGROUND */
header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#header-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    z-index: -2;
    background: url(../img/bg.jpeg) no-repeat center center;
    background-size: cover;
}

#split {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 2fr 5fr;
}

.banner {
    background: rgba(19, 13, 13, 0.863);
}

#btn-top {
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    z-index: 2;
    color: rgb(141, 140, 140);
    background: none;
    border: none;
    font-size: 2rem;
}

/* NAVIGATION */
nav {
    position: absolute;
    top: 1rem;
    right: 10px;
    z-index: 3;
}

#lang-container {
    background-color: rgba(173, 216, 230, 0.2);
    color: white;
    font-weight: bold;
    height: 2rem;
    margin-right: 10px;
}

.lang-button {
    border: none;
    background-color: transparent;
    font-weight: bold;
    color: white;
    padding: 0 2px !important;
}

nav .fas {
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#popup {
    position: absolute;
    right: 0;
    height: 100%;
    width: 20rem;
    max-width: 100%;
    padding: 4rem 4rem 0 4rem;
    background: var(--theme);
    list-style: none;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    transform: scale(0, 1);
    transform-origin: right;
    transition: transform 200ms ease-in-out;
    overflow: scroll;
}

.popup-expanded {
    transform: scale(1, 1) !important;
}

#popup li {
    margin: 2rem 0;
}

#popup a {
    color: lightgray;
    text-decoration: none;
    cursor: pointer;
    transition: color 100ms linear;
}

#popup a:hover {
    color: white;
}

header .container {
    position: relative;
    height: 70vh;
}

.logo {
    width: 240px;
    height: auto;
    position: absolute;
}

@media only screen and (max-width: 400px) {
    .logo {
        margin-top: 3rem;
    }
}


/*********** NEWS ************/
#newsModalTitle,
#aboutModalTitle {
    font-weight: bold;
}

#newsModal button,
#aboutModal button {
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 2rem;
    box-shadow: none;
}

.btn-move {
    color: #525b64;
    padding: 0;
}

.btn-move:hover {
    color: #343a40;
}

.news-head {
    background: #343a40;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.2rem;
}

.news-body {
    margin-bottom: 1rem;
}

.date {
    font-size: 1rem;
}


/*********** CONTENT ************/

.item {
    position: relative;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}


.img {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    z-index: -1;
}


.img-left {
    left: 0;
}

.img-right {
    right: 0;
}

.inner-img {
    position: absolute;
    inset: 0;
}

.pic-1 {
    background: no-repeat center center;
    background-size: cover;
    background-image: linear-gradient(rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.6)), url(../img/pic3.jpg);
}

.pic-2 {
    background: var(--theme-mobile)
}

.pic-3 {
    background: var(--theme-video);
}

.pic-4 {
    background: no-repeat center center;
    background-size: cover;
    background-image: linear-gradient(rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0.4)), url(../img/pic12.jpg);
}

.pic-5 {
    background: no-repeat center center;
    background-size: cover;
    background-image: linear-gradient(rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0.4)), url(../img/pic6.png);
}

.pic-6 {
    background: var(--theme-jss);
}

.pic-7 {
    background: no-repeat center center;
    background-size: cover;
    background-image: linear-gradient(rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0.4)), url(../img/hkwp.jpg);
}

.pic-8 {
    background: var(--theme-hkwp);
}

.pic-9 {
    background: no-repeat center center;
    background-size: cover;
    background-image: linear-gradient(rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0.4)), url(../img/s123slm.jpg);
}

.pic-10 {
    background: no-repeat center center;
    background-size: cover;
    background-image: url(../img/data.jpg);
}

.pic-11 {
    background: no-repeat center center;
    background-size: cover;
    background-image: linear-gradient(rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0.4)), url(../img/pic11.jpg);
}

.pic-12 {
    background: var(--theme-appit);
}

.enter-half {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.enter-half .subtitle {
    font-size: 3rem;
}

.enter-half a {
    font-size: 1.3rem;
    color: white;
    border: solid 2px white;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.enter-half a:hover {
    background: white;
}

.svgback:after {
    display: inline-block;
    content: ' ';
    background-image: url('../img/arrow-right.svg');
    height: 15px;
    width: 15px;
}

.link-a:hover {
    color: var(--theme);

    .svgback:after {
        display: inline-block;
        content: ' ';
        background-image: url('../img/arrow-right-b.svg');
        height: 15px;
        width: 15px;
    }
}

.text-half {
    font-size: 1.5rem;
    text-align: justify;
}

.breaker {
    width: 100%;
    height: 20vh;
    color: rgb(46, 46, 46);
    padding: 1rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.breaker h2 {
    font-weight: bold;
}

footer {
    background: rgb(46, 46, 46);
    color: white;
    width: 100%;
    font-weight: bold;
    font-size: 1.1rem;
    min-height: 5vh;
}

#footer-head {
    cursor: pointer;
}

#footer-content {
    font-size: 0.7rem !important;
    text-align: left;
}

/* medium width */
@media only screen and (max-width: 1250px) {
    .img {
        left: 0;
        right: 0;
        height: 50%;
        width: 100%;
    }

    .mobile-pic {
        top: 0;
        bottom: 50%;
    }

    .mobile-bg {
        top: 50%;
        bottom: 0;
    }

    .item {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .enter-half {
        grid-row: 1 / 2;
    }

    .text-half {
        grid-row: 2 / 3;
    }

    .enter-half .subtitle {
        font-size: 2.5rem;
    }

    .enter-half a {
        font-size: 1rem;
    }

    .text-half {
        font-size: 1.5rem;
    }

    .breaker {
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.9rem;
    }
}

/* large width, medium height */
@media only screen and (max-height: 800px) {
    .enter-half .subtitle {
        font-size: 2.5rem;
    }

    .enter-half a {
        font-size: 1rem;
    }

    .text-half {
        font-size: 1.5rem;
    }

    .breaker {
        font-size: 0.9rem;
    }
}

/* large width, small height */
@media only screen and (max-height: 450px) {
    .enter-half .subtitle {
        font-size: 1.5rem;
    }

    .enter-half a {
        font-size: 0.8rem;
    }

    .text-half {
        font-size: 0.9rem;
    }

    .breaker {
        font-size: 0.8rem;
    }
}

/* medium width, small height */
@media only screen and (max-height: 700px) and (max-width: 1000px) {
    .enter-half .subtitle {
        font-size: 1.5rem;
    }

    .enter-half a {
        font-size: 0.8rem;
    }

    .text-half {
        font-size: 0.9rem;
    }

    .breaker {
        font-size: 0.8rem;
    }
}

/* small width */
@media only screen and (max-width: 700px) {
    .enter-half .subtitle {
        font-size: 1.5rem;
    }

    .enter-half a {
        font-size: 0.8rem;
    }

    .text-half {
        font-size: 0.9rem;
    }

    .breaker {
        font-size: 0.8rem;
    }

    footer {
        font-size: 0.7rem;
    }
}


.display-none {
    display: none;
}