/* includes/style.css */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    background-color: #f9fafb; /* Matches Tailwind's bg-gray-50 to prevent white gaps on zoom */
}

/* Enable smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevent images from ever exceeding the screen width */
img {
    max-width: 100%;
    height: auto;
}

/* Force long URLs or strings of text to wrap instead of pushing the container */
p, h1, h2, h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Ensure the container never exceeds the viewport */
.container, .max-w-7xl {
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
}

/* Custom scrollbar styling for a polished look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; 
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}