:root {
    --background: #FDFDFD;
    --foreground: #020906;
    --lightgray:  #BBB3A6;
    --darkgray:   #62574A;
    --links:      #638A68;
    --accesat:    #A29C67;
    --navbar:     #FDFDFD;
}

@media (prefers-color-scheme: dark) {
    :root {
	--background: #292926;
	--foreground: #FDFDFD;
	--lightgray:  #62574A;
	--darkgray:   #BBB3A6;
	--links:      #A29C67;
	--accesat:    #638A68;
    --navbar:     #000000;
    }
}

body {
	background-color: var(--background);
    color: var(--foreground);
    font-family: serif, sans-serif;
    font-size: 1.2em;
    margin-top: 60px;
    line-height: 1.4;
}

/* Main div */
#main {
	background-color: var(--background);
	max-width: 1000px;
	margin: auto;
}

/* Title image */
#title {
	height: 300px;
	width: 100%;
	background-image: linear-gradient(rgba(0, 0, 0, 0), var(--background)), url('res/background.jpeg');
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
/* Button */
.button {
	text-align: center;
}
.button a {
	background-color: var(--background);
	border: 1px solid var(--foreground);
	border-radius: 8px;
	padding: 10px;
	text-decoration: none;
}
.button a:hover {
	box-shadow: 0px 0px 20px var(--background);
}

/* Navigation bar */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--navbar);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	z-index: 1000;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list li {
    margin-right: 20px;
}

.nav-list a {
    text-decoration: none;
    padding: 5px;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--foreground);
    margin: 5px 0;
    transition: all 0.3s;
}

#nav-check {
    display: none;
}

/* Mobile Layout */
@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list li {
        margin-right: 0;
        padding: 0.5em;
        border-bottom: 1px solid #ccc;
    }
    
    .nav-toggle {
        display: inline-block;
    }
    
    #nav-check:checked ~ .nav-list {
        display: flex;
    }
}

/* Image gallery */
.gallery {
	max-width: 85vw;
	margin: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.gitem {
	overflow: hidden;
	border-radius: 10px;
	/*box-shadow: 0 0 10px var(--foreground);*/
}
.gitem img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	border-radius: 10px;
	/* Animation */
	transition: transform 0.3s ease-in-out;
}
/* On hover: */
.gitem:hover {
	transform: scale(1.05);
}

/* Colors */
a { color: var(--links); }
a:hover { color: var(--accesat); }

/* Headers */
h2 {
	text-align: center;
	border-bottom: 1px solid var(--links);
}

/* Tables */
tr:nth-child(even) { background-color: var(--bd); }
