body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #222;
    font-size: 1rem;
}
html {
    scroll-behavior: smooth;
}

.header-banner {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-evenly;
    z-index: 1000;
    text-align: center;
    padding: 0rem 0rem;
    background-color: #15caac;
    color: #ffffff;
    font-size: 1.1rem;
}

.center-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    padding: 0rem 0rem;
    width: 100%;
    box-sizing: border-box;
}

.center-paragraph {
    max-width: 960px;
    text-align: justify;
    margin: 1rem auto;
    padding: 1rem;
    font-size: 1.05em;
}

.styled-button {
    background-color: #0d6efd;
    color: white;
    padding: 0.5em 1.2em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    margin-top: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}

.styled-button:hover {
    background-color: #0b5ed7;
}

.preview-img {
    width: 60vw;
    align-items: center;
    height: auto;
    margin: 0rem 0;
}
.preview-result-img {
    max-width: 30%;
    height: auto;
    margin: 1rem 0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.tips-box {
    background-color: #f0f0f0;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    text-align: justify;
    font-size: 1em;
}

.footer {
    position: relative;
    bottom: 0;
    text-align: center;
    font-size: 0.95rem;
    color: gray;
    padding: 1rem 0;
    width: 100%;
}

.back-link {
    text-decoration: none;
    color: #0d6efd;
    font-weight: bold;
    margin-top: 2rem;
    display: inline-block;
    font-size: 1em;
}

input[type="file"] {
    margin-top: 1rem;
}

.form-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.score-high {
    color: green;
}
.score-medium {
    color: orange;
}
.score-low {
    color: red;
}
.home-img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.navbar {
    position: fixed;
    z-index: 1000;
    background-color: hsl(194, 79%, 50%);
    padding: 2rem 2rem;
    display: flex;
    border-radius: 20px;
    align-items: center;
    justify-content: space-evenly;
    border-bottom: 0px solid #ddd;
    transition: all 0.3s;
}

.nav-logo {
    font-size: 1.4em;
    font-weight: bold;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem; /* space between logo and text */
}

.logo-text {
    font-size: 1.5em;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.nav-logo img {
    max-width: 80px;
    height: 80px;
    padding: 0rem 0rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1em;
}

.nav-links li a:hover {
    text-decoration: underline;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: #0d6efd;
    cursor: pointer;
    margin-bottom: 0.5em;
    margin-right: 0em;
    z-index: 1100;
}

@media (max-width: 1222px) {
    .navbar {
        padding: 16px 32px;
    }
    .nav-logo img {
        max-width: 60px;
        height: 60px;
    }
    .home-img, .preview-img {
        max-width: 60vw;
        height: auto;
    }
}

@media (max-width: 1201px) {
    body {
        font-size: 0.98rem;
    }
    .header-banner {
        font-size: 1rem;
        padding: 0.7rem 0.5rem;
    }
    .center-home {
        padding: 1.2rem 0.5rem;
    }
    .center-paragraph, .tips-box {
        padding: 0.7rem;
        font-size: 0.98em;
    }
    .footer {
        font-size: 0.85rem;
        padding: 0.7rem 0;
    }
    .home-img, .preview-img {
        max-width: 60vw;
        height: auto;
    }
    .navbar {
        display: none;
        position: fixed;
        top: 7rem;
        left: 0;
        width: 100vw;
        background: #15a3ea;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    .navbar.show {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }
    .nav-links li a {
        color: #fff;
        font-size: 1.1em;
        padding: 10px 0;
        display: block;
        width: 100%;
    }
    .nav-logo img {
        max-width: 48px;
        height: 48px;
    }
    .hamburger {
        display: block;
        position: fixed;
        top: 3rem;
        right: 0rem;
        z-index: 1100;
        background: none;
        border: none;
        font-size: 2em;
        color: #0d6efd;
    }
}

