body {
    font-family: 'Arial', sans-serif; /* Set a simple sans-serif font */
    background-color: #ffebee; /* Light pink background */
    color: #333; /* Dark text color */
    display: flex; /* Use flexbox for layout */
    align-content: center;
    flex-direction: column; /* Arrange children vertically */
    padding: 0;
    margin: 0; 
}

.container {
    display: flex; /* Use flexbox for container */
    flex-direction: column; /* Arrange children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center;
    text-align: center;
    width: 100%; /* Full width to ensure centering */
    margin-bottom: 3vh;

}

h1 {
    color: #d81b60; /* Dark pink color for headings */
    font-size: 40px
}

.question {
    margin: 15px 0; /* Margin for question blocks */
    text-align: left; /* Align text to the left */
    width: 100%; /* Full width */
}

label {
    display: block; /* Block-level labels */
    margin-bottom: 8px; /* Margin below label */
    font-weight: normal;
    padding-top: 10px; /* Normal weight for label text */
    font-size: 18px;
}

input[type="radio"] {
    margin-right: 10px; /* Space between radio and label */
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(140deg, #f80974, #ab037e);
    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: 5px;
}

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

.result {
    margin-top: 10px; /* Space above result */
    margin-bottom: -20px;
    display: none; /* Hidden by default */
    text-align: center;
    font-size: 13px; /* Center text in result */
    color: #f80974;
}

#headingresult {
    color: #e71972;
    margin-bottom: 10px;
    margin-top: 10px;
}

footer {
    margin-top: auto; /* Push footer to the bottom */
    padding: 10px; /* Padding for footer */
    text-align: center; /* Center text in footer */
    width: 100%; /* Full width footer */
    background-color: #000; /* Black footer background */
    color: white; /* White footer text */
}

#love-language {
    font-size: 24px; /* Change to your desired size */
}

.container p {
    font-size: 20px; /* Set the font size */
    line-height: 1.6; /* Adjust line height for better readability */
    color: #333; /* Set text color to dark gray */
    margin: 5px 0; /* Add vertical margin to space out paragraphs */
    padding: 9px; /* Add some padding for a nicer look */
    background-color: #f9f9f9; /* Light gray background for contrast */
    border-left: 5px solid #e71972; /* Add a left border for emphasis */
    border-radius: 4px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#love-language-article {
    background-color: white; /* White background */
    margin: 20px auto; /* Centers the container horizontally */
    padding: 30px; /* Adds padding around the content */
    max-width: 800px; /* Optional: Adjusts the max width of the container */
    border-radius: 10px; /* Optional: Adds rounded corners for a smoother look */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Adds a light shadow for visual effect */
}

#articleh1 {
    font-size: 2rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    color: #ae002f;
    margin-top: 0px;
    border-bottom: 2px solid #ff9f9f;
    padding-bottom: 5px;
    text-align: center;
}

h3 {
    font-size: 1.5em;
    color: #333;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 7px;
}

/* Paragraph styling */
p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Emphasis and strong text */
em {
    font-style: italic;
    color: #ff6f61;
}

strong {
    font-weight: bold;
    color: #333;
    font-size: 21px;
}

/* Unordered list styling */
#love-language-article ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

#love-language-article ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Styling for the tips section (ul) */
#love-language-article ul li strong {
    color: #ae002f;
}

/* Section for quotes or highlighted text */
blockquote {
    font-style: italic;
    margin: 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 5px solid #4CAF50;
}

/* Add some spacing and clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
 
.lovelanguagetopimage {
    display: block; /* Makes the image behave like a block element */
    max-width: 33%; /* Controls the image size */
    margin: 5px auto; /* Centers the image and adds spacing */
    height: auto; /* Maintains the aspect ratio */
}

 #love-language-image {
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto; /* Centers the image block horizontally */
    margin-top: 20px;
    margin-bottom: -10px;
    display: block; /* Ensures it's treated as a block-level element */
    border-radius: 8px;
}
 
@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 10px;
        width: 80vw;
        margin: 0 auto; /* Center the container horizontally */
    }

    #love-language-article {
        width: 80vw;
    }

    button {
        font-size: 14px;
    }

    .lovelanguagetopimage {
        width: 80vw; /* Makes it stretch to the full container width */
        max-width: 80vw; /* Adjust the max size as needed */
    }

    label {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem
    }
    
    h2 {
        font-size: 1.5em;
    }

    button {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.2em;
    }

    p, ul {
        font-size: 1.2rem;
    }

    #love-language-article ul li {
        line-height: 1.6;
    }
}