@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hover effects for buttons and links */
.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .hide-on-w380 {
        display: none;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .hide-on-w1023-767 {
        display: none;
    }
}

/* Ensure the banner is unobtrusive */
#cookie-banner {
    display: none;
    z-index: 1000; /* Ensure it appears above all content */
    animation: slideUp 0.5s ease-in-out;
}

#cookie-banner-close {
    white-space: nowrap; /* Prevent text wrapping */
    padding: 6px 12px; /* Adjust padding for small devices */
    font-size: 14px; /* Optional: Slightly smaller font for small screens */
}

@media (max-width: 640px) { /* Target small screens */
    #cookie-banner-close {
        padding: 4px 10px; /* Further reduce padding for smaller screens */
        font-size: 12px; /* Reduce font size further if necessary */
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-visible {
    padding-bottom: 52px;
}
