/* home page */

.img-container {
position: relative;
}

.img-container img {
object-fit: cover;
width: 100%;
height: 100%;
border: 2px solid white;
transition: filter 0.3s ease-in-out;
}

.img-container:hover img {
filter: grayscale(100%) blur(2px); /* Adjust the filter values for the desired effect */
}

.img-text {
position: absolute;
top: 50%;
left: 30%;
transform: translate(-20%, -50%);
color: white;
font-size: 18px;
font-weight: bold;
text-align: center;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

.img-container:hover .img-text {
opacity: 1;
}

.n-link {
    text-decoration:none;
    color: #4682B4;
}
.n-link :link, .n-link :visited {
    color: #4682B4;
}
.n-link :hover {
    color: #365F91;
}

.e-link {
    text-decoration:none;
    color: #008B8B;
}
.e-link:link, .e-link:visited {
    color: #33a2a2;
}
.e-link :hover {
    color: #005353;
}

.explanation-link {
    text-decoration:none;
    color: indianred;
}

.explanation-link :link, .explanation-link :visited {
    color: indianred;
}

.explanation-link :hover {
    color: #B04646;
}

/* tables */

.t-bg-none {
    --bs-table-bg: transparent;
}

/* other pages */

.l-note-link {
    text-decoration:none;
    color: #634952;
}
.l-note-link :link, .l-note-link :visited {
    color: #634952;
}
.l-note-link :hover {
    color: #2f3734;
}


.img-fluid-upscale {
    width: 100%;     /* Force the image to fill the width of the parent */
    height: 100%;    /* Force the image to fill the height of the parent */
    max-height: 400px;
    object-fit: cover;  /* Maintain aspect ratio, cover parent div without distortion */
}

.square-container {
    width: 100%; /* Set width of the container (could be a fixed width if needed) */
    aspect-ratio: 1 / 1; /* Force the container to be square */
    position: relative;
}