/* Import Outfit font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;500;700;900&display=swap');

/* General Styling for All Devices */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Minimum full viewport height */
    display: flex;
    flex-direction: column; /* Stack child elements vertically */
    align-items: center; /* Center horizontally */
    font-family: 'Outfit', sans-serif; /* Apply Outfit font */
    background-color: black; /* black background color */
    text-align: center; /* Center text on all pages */
    overflow-x: hidden; /* Prevent horizontal overflow */
    color: white; /* Default text color for body */
}

html, body {
    height: 100%; /* Ensure full height */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

/* Ensure the canvas covers the entire viewport */
#spaceCanvas {
    position: fixed; /* Cover entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind other content */
    background: black; /* Space color */
    display: block; /* Remove margin and padding */
}

/* Center content styling */
.center-content {
    position: relative;
    z-index: 1; /* Ensure content is above canvas */
    color: white; /* Ensure content text is white */
    text-align: center; /* Center the text */
    padding: 20px; /* Optional: add padding */
}

h1 {
    margin-top: 50px; /* Reduced margin above the header */
    font-size: 36px; /* Larger font size for headers */
    color: white; /* White color for the title */
}

ul {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
    margin: 10px 0; /* Reduced margin around the list */
    text-align: center; /* Center list items */
}

ul li {
    margin: 40px 0; /* Reduced spacing between list items */
}

ul li a {
    font-size: 30px; /* Adjust font size for links */
    color: white; /* White color for links */
    text-decoration: none; /* Remove underline from links */
    font-family: 'Outfit', sans-serif; /* Apply Outfit font */
    display: inline-block; /* Required for padding and border-radius to take effect */
    padding: 10px 20px; /* Space inside the bubble */
    border-radius: 50px; /* Rounded corners for bubble effect */
    background-color: rgba(255, 255, 255, 0.3); /* Light background color for the bubble */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Shadow to give a floating effect */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
}

ul li a:hover {
    background-color: rgba(255, 255, 255, 0.6); /* Darker bubble background on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

h2, h3 {
    margin-bottom: 20px; /* Space below headers */
    font-size: 30px; /* Large font size for headers */
    color: white; /* White color for headers */
}

p {
    margin: 20px 0; /* Add space around paragraphs */
    text-align: justify; /* Justify text for a clean block of text */
    line-height: 1.8; /* Increase line height for readability */
    font-size: 24px; /* Larger font size for readability */
    color: white; /* White color for paragraphs */
}

form {
    display: flex;
    flex-direction: column; /* Stack form elements vertically */
    align-items: center; /* Center align all elements */
    margin: 20px 0; /* Space around forms */
    font-size: 24px; /* Larger font size */
    color: white; /* White color for form text */
}

/* Center the text box and ensure it scales properly */
input[type="text"] {
    width: 60%; /* Set width as a percentage of parent to make it smaller */
    max-width: 285px; /* Max width for better readability */
    margin: 10px 0; /* Space around form elements */
    font-size: 24px; /* Larger font size */
    padding: 10px; /* Padding for better usability */
    font-family: 'Outfit', sans-serif; /* Apply Outfit font */
    color: white; /* White text color for input */
    background-color: black; /* Black background for input */
    border: 2px solid white; /* White border for input */
    border-radius: 5px; /* Rounded corners for input */
}

/* Center the submit button */
input[type="submit"] {
    margin-top: 20px; /* Add space above the submit button */
    font-size: 24px; /* Larger font size for submit button */
    padding: 15px 30px; /* Larger padding for easier clicking */
    cursor: pointer; /* Pointer cursor on hover */
    font-family: 'Outfit', sans-serif; /* Apply Outfit font */
    color: white; /* White text color for submit button */
    background-color: black; /* Black background for submit button */
    border: 2px solid white; /* White border for submit button */
    border-radius: 5px; /* Rounded corners for submit button */
}

/* General styling for form inputs */
input[type="text"], input[type="submit"], input[type="radio"] {
    margin: 10px 0; /* Space around form elements */
    font-size: 24px; /* Larger font size */
    padding: 10px; /* Padding for better usability */
    font-family: 'Outfit', sans-serif; /* Apply Outfit font */
    color: white; /* White text color */
    background-color: black; /* Black background */
    border: 2px solid white; /* White border */
    border-radius: 5px; /* Rounded corners */
}

/* Styling for the result message (Correct/Incorrect) */
.result-message {
    font-size: 28px; /* Larger font size for emphasis */
    margin: 20px 0; /* Margin for spacing around the message */
    text-align: center; /* Center the message */
    font-weight: bold; /* Bold for emphasis */
    font-family: 'Outfit', sans-serif; /* Apply Outfit font */
    color: white; /* White color for result messages */
}

.correct {
    color: green; /* Color for correct answers */
}

.incorrect {
    color: red; /* Color for incorrect answers */
}

/* General styling for hyperlinks */
a {
    color: white; /* Make link text color white */
    text-decoration: none; /* Remove underline from links */
    font-family: 'Outfit', sans-serif; /* Apply Outfit font */
    font-size: 24px; /* Ensure consistent font size */
}

a:hover {
    color: #ccc; /* Light gray color on hover for better visibility */
}

/* Specific styling for bubble effect on buttons and links */
.bubble-button {
    font-size: 24px; /* Ensure consistent font size */
    color: white; /* White color for text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Required for padding and border-radius to take effect */
    padding: 10px 20px; /* Space inside the bubble */
    border-radius: 50px; /* Rounded corners for bubble effect */
    background-color: rgba(255, 255, 255, 0.3); /* Light background color for the bubble */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Shadow to give a floating effect */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
}

.bubble-button:hover {
    background-color: rgba(255, 255, 255, 0.6); /* Darker bubble background on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    body {
        padding: 10px; /* Reduce padding on smaller screens */
    }

    h1 {
        font-size: 36px; /* Adjust font size for small screens */
    }

    h2, h3 {
        font-size: 28px; /* Adjust font size for headings */
    }

    p, a, form, .option-item {
        font-size: 22px; /* Slightly smaller font size for better fit */
    }

    input[type="text"], input[type="submit"] {
        width: 100%; /* Full width for better usability */
        font-size: 22px; /* Adjust font size */
        padding: 15px; /* Adjust padding */
    }

    .result-message {
        font-size: 26px; /* Adjust message font size */
    }
}

.options-form {
    display: flex;
    flex-direction: column; /* Stack form elements vertically */
    align-items: center; /* Center align all elements */
    margin-bottom: 15px; /* Reduce bottom margin to decrease space between elements */
}

.option-item {
    display: flex; /* Use flexbox to align radio buttons with labels */
    align-items: center; /* Align items vertically */
    margin-bottom: 10px; /* Add space between each option */
    width: 100%; /* Full width to allow for longer text */
    max-width: 500px; /* Set a max width to prevent it from stretching too much */
    justify-content: flex-start; /* Align items to the start */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.option-item input[type="radio"] {
    margin-right: 10px; /* Add space between radio button and label */
}

.option-item label {
    margin-left: 10px; /* Space between radio button and label */
    white-space: nowrap; /* Prevent line break inside label */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
}

.subtitle {
    font-size: 18px; /* Smaller font size for the subtitle */
    color: #ccc; /* Light gray color to differentiate from the title */
    margin-top: -20px; /* Small margin above the subtitle */
    font-weight: 300; /* Lighter font weight */
}

.instagram-link {
    color: #ccc; /* Light gray color for the link */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold for emphasis */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.instagram-link:hover {
    color: #ff6f61; /* Change color on hover to a distinct Instagram-like color */
}
