/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

/* Body Styling */
body {
    background-color: #f4f4f4;
    padding: 20px;

    display: flex;
    /* instead of centering vertically, start at top: */
    justify-content: flex-start;
    /* you can usually drop align-items:center on mobile if widths are 100%: */
    align-items: stretch; 
    flex-direction: column;
}

/* Container for the Content */
.content-container {
    max-width: 1400px;
    margin: 1%;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Heading Style */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
h2 {
    text-align: center;
    margin-bottom: 5px;
    color: #333;
}
h3 {
    text-align: center;
    margin-bottom: 2px;
    color: #333;
}
h4 {
    text-align: center;
    margin-bottom: 2px;
    color: #333;
}
/* Responsive Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Actual Iframe Styling */
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.rotate-message {
    display: flex;
    font-size: 14px;
    margin-top: 10px;
}

.container-margin {
    margin: 0.5%;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    .content-container {
        width: 100%;
        padding: 10px;
    }
    .iframe-container {
        padding-bottom: 75%;
     }
}


/* Header and Menu Styling */
header {
    width: 100%;
    margin-bottom: 1%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f4f4f4;
    transition: transform 0.3s ease; /* For squeeze effect */
}

.menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    margin: 0 auto; /* Center the menu */
    max-width: 1200px; /* Limit width on desktop */
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease; /* Smooth transition for squeeze effect */
}

/* Floating effect when scrolling */
body.scrolled .menu {
    padding: 10px 20px; /* Squeeze the padding */
    transform: scale(0.95); /* Slightly shrink the menu */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhance shadow when floating */
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.menu ul li {
    position: relative;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.menu ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Hover Effects */
.menu ul li:hover {
    transform: translateY(-2px);
}

.menu ul li a:hover {
    color: #aaff00; /* Lime */
}

/* Fancy Underline Effect */
.menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: #aaff00; /* Lime */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu ul li a:hover::after {
    width: 100%;
}

/* Active State */
.menu ul li a:active {
    color: #88cc00; /* Slightly darker lime for active state */
}

/* Subtle Background Effect on Hover */
.menu ul li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(170, 255, 0, 0.1); /* Light lime background effect */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 0;
}

.menu ul li:hover::before {
    width: 80px;
    height: 80px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu {
        padding: 8px 15px; /* Reduced padding */
        margin: 0 10px; /* Reduced margin */
        max-width: 90%; /* Reduce width to fit better on mobile */
        border-radius: 30px; /* Slightly less rounded for smaller screens */
    }
    
    body.scrolled .menu {
        padding: 6px 10px; /* Even smaller when scrolled */
        transform: scale(0.9); /* More pronounced squeeze on mobile */
    }
    
    .menu ul {
        gap: 15px; /* Reduced gap between items */
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
    
    .menu ul li {
        padding: 6px 10px; /* Reduced padding */
    }
    
    .menu ul li a {
        font-size: 0.9rem; /* Slightly smaller font */
    }
    
    .menu ul li:hover::before {
        width: 60px; /* Smaller hover effect circle on mobile */
        height: 60px;
    }
}



/* Related Links Title Styling */
.related-links-title {
    margin: 20px 0 10px 0; /* Space above and below the title */
    color: #333; /* Matches other headings */
    font-size: 1.25rem; /* Slightly larger than list items but smaller than h2 */
    font-weight: 600; /* Bold to stand out */
    text-align: left; /* Align with content */
}

/* Related Links List Styling */
.related-links {
    list-style-type: none;
    margin: 0 0 0 40px; /* Adjusted to remove top margin since title provides spacing */
    padding-left: 0;
}

.related-links li {
    position: relative;
    margin-bottom: 10px;
    color: #333;
    padding-left: 20px;
}

.related-links li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #2c3e50;
    font-weight: 600;
}

.related-links li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-links li a:hover {
    color: #aaff00;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .related-links-title {
        margin: 15px 0 8px 0; /* Reduced spacing on mobile */
        font-size: 1.1rem; /* Slightly smaller on mobile */
    }
    
    .related-links {
        margin: 0 0 0 20px; /* Adjusted indentation */
    }
    
    .related-links li {
        margin-bottom: 8px;
        padding-left: 15px;
    }
    
    .related-links li a {
        font-size: 0.9rem;
    }
}
