/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #b6ffcc;
    color: #333;
    margin: 0;
    padding: 0;
}

.introtext {
    text-align: center;
    font-size: 19px;
}

/* Container styles */
.container {
    max-width: 700px;
    margin: 100px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-top: -10px;
}


h1 {
    text-align: center;
    color: #00c83c;
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 3vh;
}

p {
    font-size: 18px;
    font-weight: normal;
}
/* Question and label styles */
.question {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}


label {
    display: block;
    margin: 8px 0;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 17px;
}

label:hover {
    background-color: #d1f7d6;
}

/* Button styles */
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(140deg, #1fe700, #257701);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background: linear-gradient(135deg, #78fea0, #adfec6);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.articlesection {
    margin: 2em auto; /* Center the section with some spacing */
    margin-top: -70px;
    max-width: 48%; /* Limit the width for better readability */
    padding-left: 50px; /* Add some padding around the content */
    padding-right: 50px;
    padding-top: 0.1px;
    padding-bottom: 20px;
    background-color: #ffffff; /* Light background for distinction */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-family: Arial, sans-serif; /* Clean font */
    line-height: 1.6; /* Improve readability */
}

.articlesection h1, .articlesection h2, .articlesection h3 {
    color: #18b800; /* Dark text for headers */
    margin-bottom: 0.5em; /* Space below the headers */
    font-weight: bold; /* Make headers stand out */
}

.articlesection h1 {
    font-size: 2em; /* Larger for main title */
    text-align: center; /* Center align main title */
}

.articlesection h2 {
    font-size: 25px; /* Slightly smaller for subheadings */
    text-align: center;

}

.articlesection h3 {
    font-size: 19px; /* Smaller for minor headings */
}

.articlesection p {
    color: #000000; /* Softer text color for paragraphs */
    margin: 0.8em 0; /* Spacing between paragraphs */
    font-weight: normal;
    text-align: justify; /* Align text for a polished look */
    font-size: 19px;
    line-height: 1.7;
}

.articlesection ul, .articlesection ol {
    margin: 1em 0; /* Space around lists */
    padding-left: 1.5em; /* Indent lists for clarity */
    color: #444; /* Dark text for list items */
}

.articlesection ul li, .articlesection ol li {
    margin-bottom: 0.5em; /* Space between list items */
    font-size: 19px;
    line-height: 1.7;
}

.articlesection strong {
    color: #0ac200; /* Highlight bold text */
    font-size: 20px;
}

.articlesection em {
    color: #777; /* Slightly lighter for emphasized text */
    font-style: italic; /* Italicize emphasized text */
}

.articlesection a {
    color: #007BFF; /* Accent color for links */
    text-decoration: none; /* Remove underline for links */
}

.articlesection a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Result message styles */
.result {
    margin-top: 20px;
    padding: 20px;
    background-color: #e0f7fa;
    border-radius: 6px;
    border: 1px solid #b3e0ff;
    line-height: 1.8;
    text-align: center;
    font-size: 21px;
    font-weight: normal;
    color: #003902;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
 
 .career-quiz-image-heading {
    display: block; /* Makes the image a block element */
    margin: 0px auto; /* Centers the image horizontally with some space around it */
    max-width: 100%; /* Ensures the image is responsive and doesn't exceed container width */
    height: auto; /* Keeps the image's aspect ratio */
}

 /* Default styles for the image */
.career-image {
    max-width: 400px;  /* Set a maximum width */
    display: block;    /* Make the image a block element for centering */
    margin: 10px auto; /* Center the image horizontally and add margin */
margin-top: 10px;
}

/* Mobile Responsiveness (Up to 480px) */
@media (max-width: 1024px) {
    .introtext {
        text-align: center;
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .container {
        padding: 10px; /* Further reduce padding for small screens */
        margin-top: -10px; /* Reset margin-top to remove any unwanted spacing */
        margin-left: 5px;
        margin-right: 5px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .question {
        background: #e6ffee;
    }

    p {
        font-size: 18px;
    }

    .question p {
        font-size: 1.3rem;
    }

    .question label {
        font-size: 20px;
    }

    #mbti-quiz a {
        font-size: 16px;
        padding: 15px;
    }

    button {
        font-size: 1.3rem;
        margin-top: -5px;
    }

    .result {
        font-size: 21px;
    }

    .career-quiz-image-heading {
        display: block; /* Makes the image a block element */
        margin: 20px auto; /* Centers the image horizontally with some space around it */
        max-width: 100%; /* Ensures the image is responsive and doesn't exceed container width */
        height: auto; /* Keeps the image's aspect ratio */
    }

    .career-image {
        max-width: 30%; /* Set the maximum width of the image */
        display: block; /* Ensure it's treated as a block-level element */
        margin-left: auto; /* Automatically adjust the left margin */
        margin-right: auto; /* Automatically adjust the right margin */
        margin-top: 10px; /* Optional: add some top margin */
        margin-bottom: 10px; /* Optional: add some bottom margin */
    }

    /* Article Section Styling */
    .articlesection {
        padding-left: 30px; /* Reduce padding for smaller screens */
        padding-right: 30px;
        padding-top: 1px;
        max-width: 95%; /* Optional: Adjust the max width */
    }

    .articlesection h1 {
        margin-top: 20px;
        font-size: 30px; /* Slightly smaller title */
    }

    .articlesection h2 {
        font-size: 25px;
    }

    .articlesection h3 {
        font-size: 20px;
    }

    .articlesection p {
        font-size: 20px; /* Slightly smaller text for readability */
        line-height: 1.7;
        text-align: left; /* Aligns the text to the left */
    }

    .articlesection ul,
    .articlesection ol {
        padding-left: 1em; /* Less indentation for smaller screens */
    }

    .articlesection ul li,
    .articlesection ol li {
        font-size: 20px;
    }

    .articlesection strong {
        font-size: 22px;
    }

    .articlesection ul li em {
        color: #424242;
    }

    /* Result Section Styling */
    #result {
        font-size: 23px; /* Make text smaller */
        line-height: 1.5;
        padding: 15px;
        max-width: 100%; /* Allow it to take up full width on small screens */
        margin-top: 15px; /* Add some space from the button */
    }

    .career-image {
        max-width: 100%; /* Make the image responsive, taking full width of the container */
        margin: 5px auto; /* Adjust margin for smaller screens */
        margin-top: 10px;
    }

    #result strong {
        font-size: 23px; /* Make the career title a bit larger */
    }

    #result p {
        font-size: 20px; /* Smaller font for the explanation */
        text-align: left;
        margin-left: 0px;
        margin-right: -15px;
        line-height: 1.7;
    }
}