/* Vermont State Green Theme */

/* Main header background */
.md-header {
  background-color: #046A38 !important;
}

/* Navigation tabs background */
.md-tabs {
  background-color: #046A38 !important;
}

/* Hover effect - light green background rectangle */
.md-tabs__link:hover {
  background-color: #058a48 !important;  /* Light green background */
  color: #ffffff !important;
  border-radius: 4px;  /* Rounded corners (optional) */
  transition: background-color 0.2s ease;  /* Smooth transition */
}

/* Active tab styling */
.md-tabs__link--active {
  color: #ffffff !important;
  opacity: 1 !important;
  background-color: #034a28 !important;  /* Darker green for active tab */
  border-radius: 4px;
}

/* CSS variables for other elements */
:root {
  --md-primary-fg-color: #046A38 !important;
  --md-primary-fg-color--light: #058a48 !important;
  --md-primary-fg-color--dark: #034a28 !important;
}

/* Dark mode colors */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #046A38 !important;
  --md-primary-fg-color--light: #058a48 !important;
  --md-primary-fg-color--dark: #034a28 !important;
}

[data-md-color-scheme="slate"] .md-header {
  background-color: #046A38 !important;
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: #046A38 !important;
}

/* Places search box on the left */
.dataTables_filter {
    float: left !important;
    text-align: left !important;
    margin-bottom: 1rem;
}

/* Style the search input box */
.dataTables_filter input {
    margin-left: 0.5em;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Dark mode support */
[data-md-color-scheme="slate"] .dataTables_filter input {
    background-color: #333;
    border-color: #555;
    color: #fff;
}

/* Wider content area */
.md-grid {
    max-width: 70rem !important;
}

/* Force all tables to fill width - override Material's fixed width */
.md-typeset table {
    width: 100% !important;
    max-width: 100% !important;
}

/* DataTables specific overrides */
table.dataTable {
    width: 100% !important;
    max-width: none !important;
}

/* Override any wrapper constraints */
.md-typeset__scrollwrap {
    max-width: 100% !important;
}

.md-typeset__table {
    display: block !important;
    width: 100% !important;
}

.dataTables_wrapper {
    width: 100% !important;
}

/* Make sure parent containers don't constrain */
.md-content__inner {
    max-width: none !important;
}

/* Print button in header */
.md-header__button.md-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.md-header__button.md-icon:hover {
    opacity: 0.7;
}

.swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.parallax-hero {
    position: relative;
    height: 90vh; 
    
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%), 
        url('../images/yankee-controls.jpg'); 
    
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    display: flex;
    align-items: center;
    
    /* Left Justify */
    justify-content: flex-start;
    text-align: left;
    padding-left: 8%; /* Adds margin to left edge */
    
    margin-top: -1.5rem; 
}

/* Controls size of main heading */
.hero-content h1 {
    color: white;
    font-size: 4rem; /* Roughly 80px tall */
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.1; /* Keeps the lines tight if the title wraps */
}

/* 2. Conrols subtitle size */
.hero-content p {
    color: #e0e0e0;
    font-size: 2.2rem;
    max-width: 1200px;  
    margin: 1rem 0 2rem 0;
}

/* 3. Mobile Resize */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem; /* Shrinks the title back down for mobile */
    }
    .hero-content p {
        font-size: 1.5rem; /* Shrinks the subtitle for mobile */
        padding: 0 1rem; /* Adds margin on the left/right edges */
    }
    .hero-buttons {
        flex-direction: column; /* Stacks the buttons vertically on phones */
        gap: 1rem;
    }
}

/* Get Started Button */
.vt-btn {
    background-color: #046A38; /* Vermont State Green */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 4px; /* Adds slightly rounded corners */
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* Adds a subtle drop shadow */
}

/* Hover Effect */
.vt-btn:hover {
    background-color: #058a48; /* Lighter Green on hover */
    color: white;
    transform: translateY(-2px); /* Makes the button "lift" slightly when hovered */
}

/* Container to space the buttons nicely */
.hero-buttons {
    display: flex;
    justify-content: flex-start; /* Aligns them to the left */
    gap: 3rem; /* Creates gap between the two buttons */
    margin-top: 2rem;
}

/* Custom Medium Blue Site Guide Button */
.site-guide-btn {
    background-color: #1976D2; /* Medium Blue */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 4px; 
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
}

/* Light Blue Hover Effect */
.site-guide-btn:hover {
    background-color: #42A5F5; /* Light Blue */
    color: white;
    transform: translateY(-2px); 
}

/* Position and Style Scroll Arrow */
.scroll-indicator {
    position: absolute;
    bottom: 40px; /* Distance from the bottom of the screen */
    left: 50%; /* Defines horizontal center */
    margin-left: -20px; /* Center the 40px icon */
    width: 40px;
    height: 40px;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite; /* Runs bounce animation forever */
}

.scroll-indicator svg {
    width: 100%;
    height: 100%;
}

/* The Bounce Animation Math */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px); /* Bounces up 20 pixels */
    }
    60% {
        transform: translateY(-10px); /* Smaller secondary bounce */
    }
}

/* Change Back to Top button hover color to VT Green */
.md-top:hover,
.md-top:focus {
    background-color: #058a48 !important;
    color: white !important;
}

/* Custom VEM Header Logo Styling */
.vem-header-logo img {
    /* Ensure no theme defaults are interfering */
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;

    /* TURN THE SQUARE INTO A CIRCLE */
    border-radius: 50%;
    
    /* Optional: Add a thin border to define the circle's edge neatly */
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    
    /* Optional: A tiny shadow to make it pop slightly */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Custom Vermont Green Material Button */
.md-button.vt-green-btn {
    background-color: #058a48;
    border-color: #058a48;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Display Static Button */
.btn-static {
    cursor: default;   /* Keeps the arrow pointer instead of the hand */
    opacity: 1;        /* Keeps it bright so the hover is visible */
}

/* Ensure your hover is explicitly defined for this class if needed */
.vt-green-btn.btn-static:hover {
    background-color: #1b5e20; /* Darker green on hover */
    transition: 0.3s;
}

/* Lighter Green on Hover */
.md-button.vt-green-btn:hover,
.md-button.vt-green-btn:focus {
    background-color: #06a958; 
    border-color: #06a958;
    color: white;
}

/* Container to hold the three columns */
.table-grid-container {
    display: flex;
    gap: 20px; /* Space between the columns */
    align-items: flex-start;
    overflow-x: auto; /* Adds a scrollbar on small mobile screens */
}

/* Individual column behavior */
.table-column {
    flex: 1; /* Makes all columns equal width */
    min-width: 200px; /* Prevents columns from getting too squished */
}

/* Optional: Make the tables take up the full width of their column */
.table-column table {
    width: 100%;
    display: table;
}