/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #87CEEB, #B0E0E6); /* Sky gradient */
    color: #333;
    line-height: 1.6;
}

/* Content styles */
.content {
    background-color: rgba(255, 255, 255, 0.8); /* Light gray with transparency */
    display: none; /* Initially hidden */
    padding: 1rem; /* Use rem for better scalability */
    border-left: 2px solid #4b0082; /* Indigo border */
    border-radius: 10px;
    margin-top: 1rem; /* Space above content */
}

/* Feather Cap */
.Doorman-featherCap {
    width: 100px;
    height: 50px;
    background-color: #FFD700; /* Gold color for the hat */
    border-radius: 50% 50% 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2), /* Soft shadow */
        0 0 10px rgba(255, 215, 0, 0.5), /* Soft gold glow */
        0 0 20px rgba(255, 215, 0, 0.3); /* Softer gold glow */
    transition: box-shadow 0.3s ease; /* Smooth transition for hover effect */
}

.Doorman-featherCap:hover {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2), /* Keep the soft shadow */
        0 0 15px rgba(255, 215, 0, 1), /* Brighter gold glow */
        0 0 30px rgba(255, 215, 0, 0.5); /* Brighter soft gold glow */
}

/* Feather */
@keyframes featherAnimation {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.feather {
    width: 30px; /* Adjust size as needed */
    bottom: 100%; /* Start above the hat */
    left: 50%; /* Center the feather */
    transform: translateX(-15%); /* Center the feather */
    opacity: 0; /* Start invisible */
    transition: opacity 0.5s ease, transform 1s ease; /* Add transform for animation */
    animation: featherAnimation 1s ease-in-out;
}

/* Button styles */
.feather-button,
.answer-button,
#refreshButton {
    background: linear-gradient(to right, #4b0082, #8a2be2); /* Indigo to blue violet gradient */
    padding: 0.8rem 1.5rem; /* Adjust padding for better touch targets */
    font-size: 1.15em;
    color: white;
    border: 2px solid #4b0082;
    border-radius: 25.7px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.answer-button:hover,
#refreshButton:hover,
.feather-button:hover {
    background: linear-gradient(to right, #8a2be2, #4b0082); /* Lighter gradient on hover */
    transform: translateY(-2px); /* Slight lift effect on hover */
}

.feather-button:active,
.answer-button:active,
#refreshButton:active {
    transform: translateY(0); /* Reset lift effect on click */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow on click */
}

.feather-button:disabled,
.answer-button:disabled,
#refreshButton:disabled {
    background-color: #d3d3d3; /* Light gray background for disabled state */
    color: #a0a0a0; /* Gray text for disabled state */
    cursor: not-allowed; /* Not-allowed cursor */
}

/* Floating Counters */
#floatingCounters {
    position: fixed; /* Fixed position to follow the screen */
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent */
    padding: 15px; /* Padding around the text */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    z-index: 1000; /* Ensure it stays on top of other elements */
    font-family: 'Arial', sans-serif; /* Consistent font */
    color: #333; /* Dark text color for readability */
}

/* Correct Count Display */
.correct-display {
    font-size: 1.2em;
    color: #32cd32; /* Lime green */
    text-align: center; /* Center the text */
    margin-top: 10px; /* Space above the correct display */
}

.counter-header {
    font-size: 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#correctCountDisplay {
    font-weight: bold; /* Make the count bold for emphasis */
    color: #4b0082; /* Indigo */
    font-size: 1.5em; /* Slightly larger font size for visibility */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 5px 10px; /* Padding for a better look */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    display: block; /* Make it a block element for full width */
}

/* Style for the correct label */
.correct-label {
    display: block; /* Make it a block element to position below */
    font-size: 1em; /* Normal font size */
    color: #6a5acd; /* Slate blue */
    margin-top: 5px; /* Space above the label */
}

/* Style for the entire h2 containing the correct count */
#floatingCounters h2 {
    margin: 5px 0; /* Space between headings */
    font-size: 1.2em; /* Slightly larger font size */
    color: #4b0082; /* Indigo */
}

aside {
    background-color: #e6e6fa; /* Lavender */
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Topic and Section Styles */
.topic {
    margin-top: 20px;
    margin: 15px 0;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

/* Section styles */
.section {
    margin-bottom: 20px;
}

.toggle {
    cursor: pointer;
    color: #4b0082; /* Indigo */
    text-decoration: underline; /* Underline for clickable text */
}

.toggle:hover {
    color: #6a5acd; /* Slate blue on hover */
}

/* Heading styles */
h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    color: #4b0082; /* Indigo */
    margin-bottom: 10px;
}

h1 {
    text-align: center;
    color: #fff; /* White for main heading */
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), /* White glow */
                 0 0 10px rgba(255, 255, 255, 0.6), /* Soft white glow */
                 0 0 15px rgba(75, 0, 130, 0.8); /* Indigo glow */
    transition: text-shadow 0.3s ease; /* Smooth transition for hover effect */
}

h1:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), /* Brighter white glow */
                 0 0 20px rgba(255, 255, 255, 0.8), /* Brighter soft white glow */
                 0, 0, 30px rgba(75, 0, 130, 1); /* Brighter indigo glow */
}

h2 {
    color: #FFD700; /* Gold color for subheadings */
    font-size: 1.9em;
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 
        0 0 5px rgba(255, 215, 0, 0.5), /* Soft gold glow */
        0 0 10px rgba(255, 215, 0, 0.3), /* Softer gold glow */
        0 0 15px rgba(255, 215, 0, 0.2); /* Faint gold glow */
    transition: text-shadow 0.3s ease; /* Smooth transition for hover effect */
}

h2:hover {
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 1), /* Brighter gold glow */
        0 0 20px rgba(255, 215, 0, 0.7), /* Stronger gold glow */
        0 0 30px rgba(255, 215, 0, 0.5); /* More pronounced gold glow */
}

h3 {
    color: #fff; /* White for h3 */
    font-size: 1.65em;
    margin-bottom: 14px;
    cursor: pointer;
    text-shadow: 
        0 0 5px rgba(255, 215, 0, 0.5), /* Soft gold glow */
        0 0 10px rgba(255, 215, 0, 0.3), /* Softer gold glow */
        0 0 15px rgba(255, 255, 255, 0.5); /* Soft white glow */
    transition: text-shadow 0.3s ease; /* Smooth transition for hover effect */
}

h3:hover {
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 1), /* Brighter gold glow */
        0 0 20px rgba(255, 215, 0, 0.7), /* Stronger gold glow */
        0 0 30px rgba(255, 255, 255, 1); /* Brighter white glow */
}

h4 {
    color: #4b0082; /* Dark gray for h4 */
    font-size: 1.5em;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5); /* Soft gold border */
    padding-bottom: 10px;
    margin: 20px 0;
    margin-top: 20px;
    text-shadow: 
        0 0 5px rgba(75, 0, 130, 0.5), /* Soft indigo glow */
        0 0 10px rgba(75, 0, 130, 0.3); /* Softer indigo glow */
    transition: text-shadow 0.3s ease; /* Smooth transition for hover effect */
}

h4:hover {
    text-shadow: 
        0 0 10px rgba(75, 0, 130, 1), /* Brighter indigo glow */
        0 0 20px rgba(75, 0, 130, 0.7); /* Stronger indigo glow */
}

/* List styles */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

ul li {
    margin: 10px 0; /* Space between list items */
}

/* Strong text styles */
strong {
    color: #ff4500; /* Orange red */
}

/* Preformatted text styles */
pre {
    background-color: #f0f8ff; /* Light sky blue */
    border: 1px solid #dcdcdc; /* Light gray border */
    border-radius: 5px;
    padding: 12.5px;
    overflow: auto;
    margin: 20px 0;
}

/* Code styles */
code {
    font-family: 'Courier New', monospace;
    background-color: rgba(240, 248, 255, 0.5); /* Light sky blue with transparency */
    padding: 2px 4px;
    border-radius: 3px; /* Rounded corners */
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        padding: 1.5rem; /* Less padding on medium screens */
    }

    .feather-button,
    .answer-button,
    #refreshButton {
        font-size: 1em; /* Adjust font size for medium screens */
        padding: 0.5rem 1rem; /* Adjust padding for better touch targets */
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem; /* Less padding on smaller screens */
    }

    h1 {
        font-size: 2em; /* Smaller font size for h1 */
    }

    h2 {
        font-size: 1.5em; /* Smaller font size for h2 */
    }

    h3 {
        font-size: 1.3em; /* Smaller font size for h3 */
    }

    h4 {
        font-size: 1.1em; /* Smaller font size for h4 */
    }

    ul {
        margin-left: 15px; /* Adjust margin for smaller screens */
    }

    pre {
        padding: 10px; /* Less padding on smaller screens */
    }

    .Doorman-featherCap {
        width: 80px; /* Smaller size for mobile */
        height: 40px; /* Smaller size for mobile */
    }

    .feather-button {
        padding: 0.5rem 1rem; /* Adjust padding for smaller screens */
    }
}

/* Question and result styles */
.question {
    margin: 10px 0;
    margin-bottom: 15px;
    font-weight: bold;
    white-space: pre-line;
    color: #4b0082; /* Indigo */
}

.result {
    margin-top: 10px;
    font-weight: bold;
    color: #2e8b57; /* Sea green */
}

/* Footer styles */
footer {
    background-color: #4b0082; /* Indigo */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    margin-top: 20px;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Container styles */
.container {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    border: 1px solid #dcdcdc; /* Light gray border */
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

/* Additional styles for the recommended readings section */
.containerOT {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    border-radius: 10px; /* Rounded corners */
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.containerOT h3 {
    color: #4b0082; /* Indigo */
    margin-bottom: 15px;
}

.containerOT ul {
    list-style-type: none; /* Remove default list styling */
}

.containerOT li {
    margin: 10px 0; /* Space between list items */
}

.containerOT a {
    color: #4b0082; /* Indigo */
    text-decoration: underline; /* Underline for links */
}

.containerOT a:hover {
    color: #6a5acd; /* Slate blue on hover */
}

#you-are-here {
    color: #fff; /* White for main heading */
    text-shadow: 0 0 5px rgba(10, 9, 9, 0.8), /* White glow */
                 0 0 10px rgba(255, 255, 255, 0.6), /* Soft white glow */
                 0 0 15px rgba(75, 0, 130, 0.8); /* Indigo glow */
    transition: text-shadow 0.3s ease; /* Smooth transition for hover effect */
}

#you-are-here:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), /* Brighter white glow */
                 0 0 20px rgba(255, 255, 255, 0.8), /* Brighter soft white glow */
                 0 0 30px rgba(75, 0, 130, 1); /* Brighter indigo glow */
}