/* =========================
   CenoRide CSS Starter Template
   ========================= */


/* -------- CSS Variables (Brand Colors & Defaults) -------- */

:root {
    /* Brand Colors */
    --primary-color: #131e1a;
    /* Bitterleaf Green */
    --secondary-color: #a4e737;
    /* Lemon Green */
    --tertiary-color: #fac638;
    /* Golden Yellow */
    /* Neutral Colors */
    --dark-color: #222;
    --light-color: #f9f9f9;
    --gray-color: #777;
    --border-color: #e0e0e0;
    --black-color: #000;
    /* Typography */
    --font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --base-font-size: 16px;
    --line-height: 1.6;
    /* Spacing */
    --container-width: 1200px;
    --spacing: 1rem;
    /* Transitions */
    --transition: all 0.3s ease-in-out;
}


/* -------- CSS Reset -------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* -------- Base Styles -------- */

html {
    font-size: 100%;
    /* 16px standard */
    scroll-behavior: smooth;
}


/* -------- Chrome, Edge, Safari -------- */

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: var(--light-color);
    /* Light background */
}

html::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    /* Bitterleaf Green */
    border-radius: 6px;
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--light-color);
    /* Lemon Green */
}


/* -------- Firefox -------- */

html {
    /* thumb track */
    scrollbar-width: thin;
    scrollbar-color: #1b5e20 var(--light-color);
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    color: var(--dark-color);
    /* background-color: #fff; */
    background-color: var(--primary-color);
}


/* -------- Typography -------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--light-color);
}


/* -------- Layout -------- */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

#hero {
    width: 100%;
    height: 120vh;
    display: flex;
    justify-content: center;
}

header {
    flex-basis: 40%;
    height: 100%;
    color: #fff;
    padding: 0;
}

#banner {
    flex-basis: 50%;
    height: 100%;
    z-index: 800;
    position: relative;
    overflow: hidden;
}

#banner img {
    width: 100%;
    height: 100%;
    position: sticky;
}

@media (max-width: 800px) {
    #hero {
        height: 100vh;
        display: flex;
        justify-content: center;
    }
    header {
        flex-basis: 50%;
    }
}

header nav {
    padding: 20px 0;
    height: 80px;
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
}

.notice-board {
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 4rem;
}

nav .logo img {
    width: 120px;
}

@media (max-width:800px) {
    header {
        padding-left: 15px;
        width: 300px;
    }
    #hero {
        background-position: 100% 0;
        width: 100%;
    }
    header nav {
        background-color: transparent;
    }
    nav .logo img.scrolled {
        background-color: var(--primary-color);
    }
    .notice-text {
        font-size: 22px;
    }
}

@media (max-width:500px) {
    #hero {
        display: block;
        height: 100vh;
        margin: 0;
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
    }
    header {
        position: absolute;
        z-index: 900;
    }
    .notice-container {
        display: none;
    }
    .notice-text {
        text-shadow: 1px 1px 4px rgba(19, 30, 26, 0.7);
    }
}


/* -------- Footer -------- */

footer {
    height: 80vh;
    width: 100%;
    border-top: 20px var(--primary-color) solid;
    background: url('./assets/footer-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 10px;
    background-attachment: fixed;
    position: relative;
}

.footer-content {
    height: calc(80vh - 70px);
    display: flex;
    align-items: center;
}

.footer-content ul {
    list-style: none;
}

.footer-content ul li {
    margin: 7px 0;
}

.footer-content ul li a {
    display: flex;
    align-items: center;
}

.footer-content ul li a svg {
    width: 35px;
    margin: 0;
    margin-right: 10px;
    padding: 0;
}

.footer-content h3 {
    /* color: var(--tertiary-color)!; */
    color: red;
}

footer .notice-container h3 {
    display: none;
}

#footer {
    width: 100%;
    height: 50px;
    line-height: 50px;
    position: sticky;
    bottom: 0;
    background-color: var(--primary-color);
    text-align: center;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 500px) {
    footer {
        height: 100vh;
        color: #fff;
        background: none;
        position: relative;
    }
    footer::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80vh;
        background-image: linear-gradient(rgba(11, 12, 11, 0.8), #131e1a79, rgba(189, 202, 189, 0.3)), url('./assets/footer-bg.png');
        background-size: cover;
        background-position: 65% center;
        z-index: -1;
    }
    .footer-content ul li a {
        display: flex;
        align-items: center;
        color: #fff;
        font-size: 14px;
    }
    footer .notice-container {
        padding: 20px;
        display: block;
    }
    footer .notice-container h3 {
        display: block;
        font-size: 18px;
    }
}


/* -------- Responsive -------- */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .container {
        width: 95%;
    }
}