/* General Styling for All Devices */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f8f9fa;
}

/* Welcome Page Styling */
#welcome-page {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.text-section {
    flex: 1;
    text-align: left;
    max-width: 500px;
}

.text-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.text-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

#welcome-form {
    margin-top: 20px;
}

#welcome-form label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

#welcome-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.start-quiz-button {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 30px;
    background-color: #1F9F3B;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-quiz-button:hover {
    background-color: #FFC107;
}

.image-section {
    flex: 1;
    text-align: center;
    max-width: 500px;
}

.welcome-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Quiz Container */
#quiz-container {
    display: block;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Question Number */
#question-number {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #555;
}

/* Questions */
#question-container {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* Options */
#options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    max-width: 80%;
    transition: background-color 0.3s, transform 0.2s;
}

.option-label:hover {
    background-color: #f9f9f9;
    transform: scale(1.02);
}

.option-label img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-label span {
    font-size: 1rem;
    color: #333;
    text-align: left;
}

.warning {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Buttons */
button {
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #1F9F3B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:disabled {
    background-color: #ccc;
}

button:hover:not(:disabled) {
    background-color: #379683;
}

#prev-btn {
    background-color: #d3d3d3;
    color: #333;
}

#prev-btn:hover:not(:disabled) {
    background-color: #bbb;
}

/* Results Page */
#result-container {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}

.result-image {
    width: 100%;
    max-width: 250px;
    margin: 15px auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-explanation {
    font-size: 1.2rem;
    color: #444;
    max-width: 90%;
    margin: 20px auto;
    line-height: 1.5;
    text-align: justify;
}

.result-explanation b {
    font-weight: bold;
    color: #333;
}

/* Social Media Buttons */
.share-container {
    margin-top: 20px;
    text-align: center;
}

.social-button {
    text-decoration: none;
    padding: 10px;
    margin: 5px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: white;
}

.twitter { background-color: #1DA1F2; }
.facebook { background-color: #4267B2; }
.whatsapp { background-color: #25D366; }
.linkedin { background-color: #0077B5; }

/* Header Styling */
header {
    background-color: #0C3333;
    padding: 10px 20px;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.logo img {
    width: 200px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    justify-content: flex-end;
    flex: 1;
    text-align: right;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
}

nav ul li a.active {
    color: #fdd835;
}

nav ul li .contact {
    background-color: #fdd835;
    padding: 5px 10px;
    border-radius: 5px;
    color: #093330;
}

nav ul li .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #0C3333;
    top: 30px;
    list-style: none;
    padding: 10px;
    border-radius: 5px;
}

nav ul li:hover .dropdown-menu {
    display: block;
}

nav ul li .dropdown-menu li {
    margin: 5px 0;
}

nav ul li .dropdown-menu li a {
    color: #fff;
}

/* Footer Styling */
footer {
    background-color: #0C3333;
    color: #fff;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-section .logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-section .logo img {
    width: 200px;
    height: 50px;
    margin-right: 10px;
}

.footer-section .logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #68b647;
}

.social-icons a {
    margin-right: 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
}

/* .footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
} */

.footer-bottom {
    text-align: center;
    padding-top: 10px;
}

/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        height: 100%;
    }
    .container {
        flex-direction: row; /* Align horizontally for tablets */
    }
    .nav-links {
        display: flex; /* Show full navigation menu */
        justify-content: flex-end;
        flex-grow: 1;
    }
    .hamburger {
        display: none; /* Hide hamburger menu for tablets */
    }
    .nav-links a {
        font-size: 1rem; /* Adjust font size */
    }
}

/* Responsive Styles */
@media (min-width: 1024px) {
    .hamburger {
        display: none
    }
}


@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        flex: 1;
        text-align: left;
    }

    .hamburger {
        flex: 1;
        text-align: right;
        margin-left: 170px;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #0C3333;
        padding: 10px 0;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
    }

    .logo img {
        width: 150px;
    }

    .nav-links {
        top: 50px;
    }
}



/* Share Buttons */
.social-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin: 5px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    color: white;
    transition: transform 0.2s, opacity 0.3s;
}

.social-button.twitter { background-color: #1DA1F2; }
.social-button.facebook { background-color: #4267B2; }
.social-button.whatsapp { background-color: #25D366; }
.social-button.linkedin { background-color: #0077B5; }

.social-button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}