/* style.css */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    background-image: url('placeholder_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
	display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    box-sizing: border-box;
}

header {
    background-color: rgba(51, 51, 51, 0.5);
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
	grid-row: 1;
    /*left: 0; */
    box-sizing: border-box;
}

main {
    grid-row: 2;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 60px;
}

footer {
    grid-row: 3;
	text-align: center;
    padding: 1rem 0;
    background-color: #333333;
    color: #ffffff;
    box-sizing: border-box;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.section {
    padding: 4rem 2rem;
    margin: 1rem;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    border-radius: 8px;
}

#about, #references, #weblinks, #contact {
    scroll-margin-top: 80px; /* Adjust for fixed header height */
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.mySlides {
	position: relative;
}

.mySlides > img {
  display: block;
  height: auto;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    display: flex;
    align-items: center;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 12px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
}

/* The dots/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Web Links Section */
.weblink-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Distribute items evenly */
    gap: 20px; /* Space between items */
}

.weblink-container a {
    display: block;
    text-decoration: none;
    color: #333;
    /* width: 200px; */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Hide overflowing content */
    transition: transform 0.3s ease;
}

.weblink-container a:hover {
    transform: scale(1.05);
}

.weblink-container a img {
    width: 100%;
    height: auto;
    display: block;
}

.weblink-container a span {
    display: block;
    padding: 10px;
    background-color: #eee;
}


/* Contact Form Styles */
#contact form {
    max-width: 500px;
    margin: 0 auto;
}

#contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important: Includes padding and border in the element's total width and height */
}

#contact textarea {
    resize: vertical; /* Allows vertical resizing of the textarea */
}

#contact input[type="submit"] {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#contact input[type="submit"]:hover {
    background-color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
        margin: 0.5rem;
    }

    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }

    .weblink-container a {
        width: 100%; /* Make web links full width on smaller screens */
    }
}
