/* add a smooth scrow behavior */
html {
    scroll-behavior: smooth;
}

/* Basic page transition */
body {
    opacity: 0.1;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Preloader container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* stay above everything */
    transition: opacity 0.3s ease-out, visibility 0.3s;
}

/* Hide when done */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Example image styling */
#preloader img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    animation: spin 1s linear infinite;
}

/* Optional spin animation */
@keyframes spin {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.5);
    }
}

.action_button {
    background-color: #1d173d;
    /* Dark blue background */
    color: white;
    /* White text */
    /* Smooth transition for background color and transform */
}

.action_button:hover {
    background-color: #1a4223;
    /* Slightly lighter blue on hover */
    color: white;
    /* Keep text white on hover */
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Smooth transition for background color and transform */
}

.action_button:active {
    transform: scale(0.75);
    /* Slightly shrink button on click */
}

.bg-dark-blue {
    background-color: #1d173d;
}

.text-dark-blue {
    color: #1d173d;
}

nav .nav-item a.active {
    color: #1d173d;
    display: flex;
    width: 25%;
    padding-left: 5px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    transform: scale(1.1);
}

/* safari specific image stying */
.safari-special {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}