﻿/* Variables for Consistency */
:root {
    --primary-font: Arial, Helvetica, sans-serif;
    --header-max-width: 800px;
    --primary-color: black;
    --hover-bg-color: #f0f0f0;
    --menu-bg-color: white;
    --menu-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --menu-border-radius: 4px;
    --header-padding: 10px;
    --header-font-size: 40px;
    --menu-font-size: 14px;
    --menu-padding: 10px 20px;
    --icon-font-size: 20px;
}

/* General Header Styles */
.site-header {
    width: 100%;
    max-width: var(--header-max-width);
    text-align: center;
    font-family: var(--primary-font);
    padding: var(--header-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-header-row {
    width: 100%;
    display: flex;
    align-items: flex-end; /* Aligns bottom of elements */
    justify-content: space-between;
}

/* Menu Styles */
.site-header-menu-wrapper {
    position: relative;
    margin-left: 10px; /* keeps menu icon away from the left edge */
}

.site-header-menu-icon {
    font-size: var(--icon-font-size);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    padding: 2px;
    animation: menu-pulse 2s infinite;
}

@keyframes menu-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
    }
}

.site-header-menu-items {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--menu-bg-color);
    box-shadow: var(--menu-shadow);
    border-radius: var(--menu-border-radius);
    z-index: 1000;
    white-space: nowrap; /* Prevents text from wrapping to the next line */
    text-align: left;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
}

    .site-header-menu-items a {
        display: block;
        padding: var(--menu-padding);
        text-decoration: none;
        color: var(--primary-color);
        font-size: var(--menu-font-size);
        transition: background-color 0.3s ease; /* Smooth hover effect */
    }

        .site-header-menu-items a:hover {
            background-color: var(--hover-bg-color);
        }

.site-header-menu-wrapper:hover .site-header-menu-items {
    display: block; /* Show items on hover */
    opacity: 1;
    transform: translateY(0); /* Smooth appearance */
}

/* Title and Equation Styles */
.site-header-title {
    font-size: var(--header-font-size);
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.site-header-equation {
    margin-top: 10px;
    width: 175px;
    height: auto;
    max-width: 100%;
}
