body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; /* Neutral background color for balance */
}

h1 {
	text-align: center;
	font-size: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    position: relative;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    color: inherit;
    text-decoration: none;
}

.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: white; /* Make bars visible */
    border-radius: 2px;
}

.nav-links {
    list-style-type: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links li {
    padding: 0.5em;
}

.nav-links li:hover {
    background: grey;
    padding: 0.5em;
}

.nav-links.hidden {
    transform: translateY(-100%);
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #333;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    display: none; /* Hidden by default */
}

.nav-links.show {
    display: flex; /* Display when toggled */
}

.hamburger {
    display: flex; /* Show hamburger button on small screens */
}

.nav-links {
    display: none; /* Hide nav links by default */
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 46px;
    right: 0;
    width: 30%;
    z-index: 100;
    padding: 0.3em;
}

.nav-links.show {
    display: flex;
}

@media (max-width: 768px) {
	.nav-links {
		width: 100%;
	}
}

nav .title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

header {
    margin: 0;
    padding: 0;
}

.image-row {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping even on narrow screens */
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
    gap: 0; /* Remove gaps between images */
}

.image-row img {
    width: 20%; /* Use smaller width for images */
    height: auto;
    display: block;
    border: 2px solid #333; /* Add border around images */
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; /* Smooth hover effect */
}

.image-row img:hover {
    border-color: #b3e0bb; /* Subtle border color change to the playful accent */
    transform: scale(0.9) rotate(5deg); /* Slight rotation effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Add shadow effect */
}

main {
    padding: 1rem;
}

.intro {
    text-align: center;
    margin-bottom: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.card {
    background-color: #ffffff; /* Neutral background for cards */
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: filter 0.3s, background-color 0.3s; /* Smooth hover effect for card images */
}

.card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.card:hover {
    filter: brightness(1.2); /* Make card images look whiter on hover */
    background-color: #b3e0bb; /* Apply playful accent color to card background on hover */
}

.card a {
	color: inherit;
	text-decoration: none;
} 

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
}

footer a {
    color: #b3e0bb; /* Accent color for links */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 1rem;
}

.gallery img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.crop-3-4 {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 6px;
}

.crop-3-4 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Dark overlay background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it appears above all other elements */
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #b3e0bb; /* Playful accent border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Add shadow effect */
    cursor: zoom-out; /* Indicate that clicking will zoom out */
}

.inert-x {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 10001;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: rgba(0,0,0,0.6);
	border-radius: 6px;
}
