@import url('site-theme.css');

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    background-color: var(--primary);
    padding: 10px;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 215, 0, 0.5);
    text-align: center;
    flex-grow: 1;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    /* Prevent text wrapping */
}

#languageSelect {
    margin-left: 10px;
    padding: 12px 19px;
    font-size: 1rem;
    border: 2px solid var(--accent);
    border-radius: 25px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    /* Gradient background */
    color: white;
    /* White text color */
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    cursor: pointer;
    appearance: none;
    /* Remove default dropdown styling */
    background-image: url('./resources/images/dropdown-icon.png');
    /* Add custom dropdown icon */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Add shadow for depth */
}

#languageSelect option {
    background-color: #fff;
    /* White background for options */
    color: #333;
    /* Dark text color */
    padding: 5px;
    font-family: 'Poppins', sans-serif;
}

#languageSelect:hover {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    /* Reverse gradient on hover */
    color: #fff;
    /* Keep text white */
    border-color: white;
    /* White border on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    /* Enhance shadow on hover */
}

#languageSelect:focus {
    outline: none;
    /* Remove default focus outline */
    border-color: #ffcc00;
    /* Highlight border on focus */
    box-shadow: 0 0 10px #ffcc00;
    /* Glow effect on focus */
}

.menu {
    position: fixed;
    top: 60px;
    /* Move the menu further down */
    left: -270px;
    /* Move the panel completely inside */
    width: 250px;
    height: 100%;
    background-color: var(--primary);
    color: white;
    display: flex;
    flex-direction: column !important;
    /* Ensure vertical stacking */
    align-items: flex-start;
    /* Align items to the start */
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    /* Add shadow for better visibility when it slides out */
    max-width: 80%;
    /* Limit the menu width for smaller screens */
}

.menu.active {
    left: 0;
    /* Slide the panel out when active */
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    /* border-bottom: 1px solid white; Add a white border at the bottom of each menu item */
    display: flex;
    /* Align icon and text horizontally */
    align-items: center;
    /* Vertically center icon and text */
    gap: 10px;
    /* Add space between icon and text */
    width: 100%;
    /* Ensure links take full width */
}

.menu a:hover {
    background-color: orangered;
    border-radius: 5px;
}

.menu-icon {
    width: 30px;
    /* Set icon width */
    height: 30px;
    /* Set icon height */
    border-radius: 50%;
    /* Make the icons circular */
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
}

.logo {
    position: absolute;
    left: 10px;
    transform: translate(0, 0);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100000;
}

.logo img {
    width: 100%;
    height: 100%;
    border-radius: 18%;
}

.menu-toggle {
    cursor: pointer;
    color: white;
    position: absolute;
    top: 80px;
    left: 0px;
    z-index: 1100;
    background-color: var(--primary);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 20px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 11%;
    }

    .header-title {
        font-size: 24px;
        /* Adjust font size for smaller screens */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 215, 0, 0.4);
    }

    /* Consolidated mobile menu rules */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary);
        position: absolute;
        top: 60px; /* start below header/toggle */
        left: -100%; /* hide off-screen */
        text-align: center;
        padding: 15px;
        transition: left 0.3s ease-in-out;
        height: calc(100% - 60px);
    }

    .menu.active {
        display: flex;
        left: 0;
        top: 36px;
    }

    .menu a {
        padding: 12px 0;
        display: block;
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
        top: 20px;
        left: 10px;
        font-size: 18px;
    }

    .menu.inactive {
        opacity: 0;
        visibility: hidden;
    }

    #languageSelect {
        font-size: 0.9rem;
        padding: 8px 12px;
        background-size: 14px;
    }

    .logo {
        width: 30px; /* Adjust the size as needed */
        height: 30px;
    }

    .header {
        padding: 0; /* Remove banner padding */
    }
}

@media (max-width: 480px) {
    .header-title {
        margin-left: 1%;
        font-size: 20px;
        /* Further adjust font size for very small screens */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0 0 6px rgba(255, 215, 0, 0.3);
    }

    .menu {
        padding: 10px;
        /* Reduce padding for very small screens */
    }

    .menu a {
        font-size: 14px;
        /* Further reduce font size for very small screens */
    }

    .menu-toggle {
        font-size: 16px;
        left: 0px;
        top: 29px;
    }
}

#contentFrame {
    width: 100%;
    height: calc(100vh - 64px);
    border: none;
    overflow: hidden;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.menu.active~#contentFrame {
    margin-left: 250px;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: auto;
    /* Allow scrolling so crawlers and reviewers can access page content */
    height: 100%;
    width: 100%;
}

iframe {
    width: 100vw;
    /* Full viewport width */
    height: calc(100vh - 60px);
    /* Adjust based on your navbar height */
    border: none;
    display: block;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--primary-dark);
    color: white;
    margin-top: 20px;
}

.submenu {
    display: none;
    /* Hide submenu by default */
    padding-left: 20px;
    /* Indent submenu items */
    margin-top: 10px;
    /* Add spacing between parent and submenu */
}

.submenu.show {
    display: block;
    /* Show submenu when the parent is clicked */
}

.menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Stack submenu items vertically */
}

@media (min-width: 768px) {
    .menu {
        flex-direction: row;
    }

    .submenu {
        position: absolute;
    background: var(--primary);
        top: 40px;
        left: 0;
        min-width: 150px;
    }

    .menu-item:hover .submenu {
        display: none;
        /* Disable hover behavior for submenu in desktop mode */
    }
}

.aarti-section {
    border-top: 2px solid white;
    /* Add top border */
    border-bottom: 2px solid white;
    /* Add bottom border */
    padding: 10px 0;
    /* Add padding inside the block */
    margin: 20px 0;
    /* Add spacing above and below the block */
    position: relative;
    /* Ensure submenu is positioned relative to this block */
}

.aarti-section .submenu {
    display: none;
    /* Hide submenu by default */
    padding-left: 20px;
    /* Indent submenu items */
    margin-top: 10px;
    /* Add spacing between parent and submenu */
    position: static;
    /* Ensure submenu stays inside the aarti-section */
}

.aarti-section .submenu.show {
    display: block;
    /* Show submenu when the parent is clicked */
}

.aarti-section .submenu a {
    padding: 5px 0;
    /* Add padding for submenu items */
    display: flex;
    /* Align icon and text horizontally */
    align-items: center;
    /* Vertically center icon and text */
    gap: 10px;
    /* Add space between icon and text */
}

.notWant {
    display: none !important;
}
