/* Final fixes and utilities for the website */

/* Ensure all images load properly */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.x{
    margin: auto;
}

/* Fix any potential layout issues */
* {
    box-sizing: border-box;
}

/* Ensure smooth scrolling works in all browsers */
html {
    scroll-behavior: smooth;
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Ensure text is readable */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Make sure buttons are touch-friendly */
    button, .btn, .btn_hd {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    /* Improve form usability on mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
}

/* Print styles */
@media print {
    .navbar, .up, .mobile-menu-toggle {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        border: 2px solid;
    }
    
    button {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
