body {
    font-family: 'Arial', sans-serif;
    background: #fcfed3;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 0px auto;
    padding: 5px;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 3vh;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.introtext {
    line-height: 1.8;
    padding-left: 40px;
    padding-right: 40px;
    font-size: 1.1rem;
}

h1 {
    font-size: 2.5rem;
    color: #b4be00;
    font-weight: 700;
    margin-top: 3vh;
}

p {
    color: #000000;
    font-size: 1.3rem;
}

.question {
    margin: 25px 0;
    text-align: left;
}

.question p {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

label {
    display: block;
    margin: 0px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: #444;
    background-color: #f8f9fa;
    transition: background-color 0.3s, border-color 0.3s;
}

label:hover {
    background-color: #e1f5fe;
    border-color: #81d4fa;
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(140deg, #b2b800, #9db900);
    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, #eaff00, #81a908);
    transform: translateY(-2px);
}

.result {
    margin-top: 30px;
    padding: 20px;
    padding-bottom: 2vh;
    color: #2d3436;
}

.result h2 {
    color: #84b400;
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: -10px;
}

#resultText {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: -10px;
    margin-bottom: 0px;
}

/* General Section Styling */
#enneagram-article {
    padding-top: 10px;
    padding-left: 70px;
    padding-right: 70px;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 800px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

}

#heading {
    font-size: 2rem;
    margin-top: 2vh;
    color: #90b800;
    text-align: center;
}

/* Main Heading */
#secondheading  {
    color: #76a101;
    font-size: 27px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Paragraphs */
#enneagram-article p {
line-height: 1.8;
    font-size: 1.1rem;
    color: #000000;
}

/* Article Sub-Headings */
#enneagram-article article h3 {
    color: #76a100;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 10px;
}

/* Articles Styling */
#enneagram-article article {
    margin-bottom: 2rem;
    border-left: 4px solid #759f00;
    padding-left: 1rem;
}

/* Links (Optional if you add any links) */
#enneagram-article a {
    color: #79a500;
    text-decoration: none;
    transition: color 0.3s ease;
}

#enneagram-article a:hover {
    color: #6e9600;
    text-decoration: underline;
}

#enneagram-article ul li {
    font-size: 19px;
}

#bottomheading {
    color: #76a101;
    font-size: 27px;
    margin-bottom: 1rem;
    text-align: center;
}

 .enneagramtest {
    display: block;
    max-width: 40%; /* Makes the image responsive */
    margin: 0px auto; /* Adds some space and centers the image */
    height: auto; /* Maintains the aspect ratio */
}

 /* Mobile Responsiveness (Up to 768px) */
@media (max-width: 1024px) {
    .container {
        padding: 30px; /* Further reduce padding for small screens */
        padding-bottom: 3vh;
        margin-top: -20px; /* Reset margin-top to remove any unwanted spacing */
        margin-left: 5px;
        margin-right: 5px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .introtext {
        font-size: 20px;
        padding-left: 10px;
        padding-right: 1px;
        text-align: left;
    }

    .question p {
        font-size: 21px;
    }

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

    .padding {
        font-size: 25px;
    }

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

    button {
        font-size: 21px;
        margin-top: 0vh;
    }

    .result {
font-size: 1rem;
width: 85vw;
text-align: left;
padding: 8 0;
margin-left: -4vw;
    }

    .result h2 {
        text-align: center;
    }

    #resultText {
        font-size: 21px;
    }

    .enneagramtest {
        max-width: 100%; /* Increase the size for mobile screens */
        margin-top: 0px; /* Optional: Add some top margin for spacing */
        margin-bottom: 0px; /* Optional: Add some bottom margin for spacing */
    }

    /* Article Styling */
    #enneagram-article {
        padding-top: 5px;
        padding-left: 30px;
        padding-right: 30px;
    }

    #enneagram-article p {
        font-size: 20px;
        line-height: 1.9;
    }

    #enneagram-article ul li {
        font-size: 20px;
        line-height: 1.7;
        color: #000;
    }

    #heading {
        line-height: 1.3;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    ul li {
        font-size: 0.95rem;
    }
}