/* MOBILE-FIRST RESET */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
}


/* MAIN CONTAINER (optional if you wrap content) */
.container {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

h1, h2 {
    text-align: center;
    margin-top: 0;
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    height: 16px;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #0077cc;
    transition: width 0.3s ease;
}

/* QUESTION BOX */
.question-box {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ANSWERS */
.question-box label {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #f7f7f7;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: background 0.2s ease;
}

.question-box label:hover {
    background: #eef7ff;
}

/* BUTTONS */
.buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

button {
    padding: 10px 18px;
    background: #0077cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #005fa3;
}

/* ERROR MESSAGE */
.error {
    color: #c0392b;
    margin-top: 10px;
    display: none;
    font-weight: bold;
}

/* RESULT BOX */
.result {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #eef7ff;
    border-left: 4px solid #0077cc;
    border-radius: 6px;
}
/* CONTAINER ANIMATION */
.container {
    animation: containerFade 0.5s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes containerFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.catagories {
    display: flex;
    flex-direction: column;
    background-color: black;
    justify-content: center;
    align-items: center;

}
.catagories a {
text-decoration: none;
background-color: blue;
color: white;
border-radius: 15px;
padding: 5px;
margin: 5px;
}
.result-box {
    padding: 20px;
    border-radius: 10px;
    color: white;
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.result-low {
    background-color: #4CAF50; /* green */
}

.result-mid {
    background-color: #FFC107; /* yellow */
    color: black;
}

.result-high {
    background-color: #F44336; /* red */
}

#closeBtn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

#closeBtn:hover {
    background-color: #000;
}
/* Base menu bar */
#menuBar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: 
        background 0.6s ease,
        padding 0.6s ease,
        max-width 0.6s ease,
        border-radius 0.6s ease;
    z-index: 999;
    border-radius: 0;
}

/* Inner layout */
.menu-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Title text */
.menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5d34f;
    letter-spacing: 1px;
}
@media screen and (max-width: 768px) {
    .menu-title {
        font-size: 1.1rem;
    }
}

/* Menu icon */
.menu-icon {
    width: 28px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    height: 3px;
    background: #f5d34f;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ⭐ SCROLLED STATE — shrink, radius, transparency */
#menuBar.scrolled {
    max-width: 60%;              /* shrink width */
    padding: 8px 20px;           /* smaller height */
    background: rgba(0, 0, 0, 0.55); /* more transparent */
    border-radius: 14px;         /* rounded corners */
}
#menuPanel {
    position: fixed;
    top: 60px; /* just below your menu bar */
    right: 25px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px 25px;
    display: none;
    transition: opacity 0.4s ease;
}

#menuPanel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menuPanel li {
    margin: 10px 0;
}

#menuPanel a {
    color: #f5d34f;
    text-decoration: none;
    font-weight: 600;
}
/* Fullscreen overlay */
#centerMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* When active */
#centerMenu.show {
    display: flex;
    opacity: 1;
}

/* Popup box */
.menu-content {
    background: #ffffff;
    padding: 40px 60px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    animation: popIn 0.35s ease;
}

/* Popup animation */
@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Close button */
#closeMenu {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    color: #333;
}

/* Menu links */
.menu-content ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.menu-content li {
    margin: 15px 0;
}

.menu-content a {
    text-decoration: none;
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
}

body {
display: flex;
flex-direction: column;
    height: auto;
    background-image: url(images/new-background.png);
    border: 10px solid darkgreen;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
}
.opening {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
}
.main-img {
    width: 250px;
    height: auto;
    margin-top: 70px;
      animation: logo 4s ease-in-out infinite forwards;
}
.opening img {
    width: 200px;
    height: auto;
  
}
.opening h1 {
    color: darkgreen;
    font-size: 4rem;
    font-weight:800;
}
.hero {
    height: 270px;
    margin-bottom: 40px;
}
@keyframes logo {
    0%,100% {
    
            width: 250px;
            height:auto;
        
    }
    50% {
        
            width: 200px;
            height: auto;
        
    }
}
hr {
    background-color: darkgreen;
    height: 4px;
    width: 80%;
    margin: 20px auto;
    border: none;
}
h3 {
    text-align: center;
    color: black;
    margin-top: -40px;

}

h4 {
    font-size: 1.3rem;
}
p {
    text-align: center;
    width: 93%;
    margin: 0 auto;
    margin-bottom: 10px;
}
.button {
    text-decoration: none;
    margin-bottom: 20px;
    border-radius: 20px;
    
    border: 20px 0;
    width: 230px;
    font-size: 2rem;
    margin-top: 20px;
    background-color: darkgreen;
    text-align: center;
    animation: button-back 3s ease-in infinite forwards;
}
@keyframes button-back {
    0%, 100% {
    
        color: darkgreen;
    }
    50% {
    
        color: white;
    }
}
.schizo {
    font-size: 2rem !important;
    margin-bottom: 50px;
    margin-top: 10px;
    width: 300px;
}
.background {
    display: flex;
    height: auto;
    flex-direction: column;
    background-color: rgba(255,255,255, 0.7);
    width: 93%;
    justify-content: center;
    align-items: center;
    height: auto;
    border-radius: 10px;
    padding: 7px 0;
    border: 2px solid darkgreen;


}
.opening h2 {
    
    
    color: darkgreen;

}
.background {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    width: 100%;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-form select,
.search-form input {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.search-form button {
    padding: 10px 20px;
    background-color: #2E7D32; /* your green theme */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s ease;
}

.search-form button:hover {
    background-color: #256628;
}

footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 120px;
    border-top: 10px solid darkgreen;
    margin-top: 40px;
    background-image: url(images/background-footer.png);
    color: white;
    
}

#resources a {
    text-decoration: none;
    background-color: darkgreen;
    color: white;
    border-radius: 5px;
    font-size: 1.5rem;
    padding: 0 4px;
}
#resources ul {
    list-style-type: none;
    text-align: center;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}
#resources ul li {
    display: block;
    margin-top: 9px;
}
.opening h1 {
    font-size: 1.8rem;
    margin-bottom: 70px;
}
.background a {
    text-decoration: none;
    background-color: darkgreen;
    color: white;
    border-radius: 5px;
    padding: 0 3px;
    
}
.career {
    font-size: 1rem;
}
@media screen and (min-width: 769px) {
    iframe {
        width: 600px;
    }
}
footer a {
    text-decoration: none;
    color: white;
    background-color: red;
    border-radius: 3px;
    padding: 0 3px;
}
