body {
	background-image: url('../images/backdrop.png'), url('../images/background.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	margin: 0;
	height: 100vh;
	padding: 20px;
}

#showToastIcon {
	display: none;
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	z-index: 9999;
	cursor: pointer;
}
#showToastIcon:hover {
	opacity: 0.8;
}

.gallery-item {
  position: relative;
}

.gallery-item.loading .spinner {
  display: block; 
}

.spinner {
  display: none; 
  width: 40px;
  height: 40px;
  border: 5px solid rgba(255,255,255,0.5);
  border-top: 5px solid #000;
  border-radius: 50%;
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
  z-index: 2;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.container {
	max-width: 70vw;
	margin: auto;
	background-color: rgba(255, 255, 255, 0.5);
	padding: 10px;
	border-radius: 10px;
}

.gallery {
	border-radius: 10px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	justify-content: center;
}

.gallery img {
	width: 100%;
	height: auto;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.gallery img:hover {
	transform: scale(1.025);
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: rgba(244, 165, 152, 0.5);
}

.gallery-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item img.loaded {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.025);
}

.overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.9rem;
    padding: 2.5px 5px;
    border-bottom-right-radius: 5px;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.2s ease;
}

.align-elements {
    display: flex;
    align-items: center;
    height: 100%;
}

.form-select {
    border: 1px solid black;
    height: calc(2.375rem + 2px);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
}

.pagination {
    border: none;
    border-radius: 0.25rem;
    padding: 0.375rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.jump-btn {
	border: 1px solid black;
    background-color: black;
    color: white;
}

.jump-text {
	border: 1px solid black;
    color: black;
}

.pagination .page-item .page-link {
    border: 1px solid black;
    color: black;
}

.pagination .page-item.active .page-link {
    background-color: black;
    color: white;
}

.footerContainer {
	margin-top: -0.5vw;
	padding-top: 0vw;
}

.d-flex {
	padding-top: 10px;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

.back-to-home {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	padding: 10px 15px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 26px;
	border-color: black;
	font-weight: 500;
}

.back-to-home:hover {
	text-decoration: none;
}

.kofi-link {
	position: fixed;
	top: 0px;
	right: 0px;
	z-index: 1000;
	border-radius: 5px;
	border-color: black;
	padding: 10px 15px;
}

.btn-kofi {
	border-color: black;
}

.downloadBtn {
	color: white;
	border-color: black;
	background-color: black;
}