/*
    Liked colours:
        #79cf5b green pastel
        #bfff00 lime luminescent
        #17202a dark grey pastel
        #99a3a4 - border colour
        #707070 - grey
 */

.clear {
	clear:both;
}

body {
	margin: 0;
	padding: 0;
	background: #1a1a1a;
	color: #d9d9d9;
	font: 1.0em sans-serif;
}

/* Main content should grow to fill available space */
main {
    flex: 1;
    text-align: justify;
}

#main-contain {
    margin: 0 auto;
    padding: 0px;
    min-height: 100vh; /* 100% of the viewport height */
    overflow: auto;
    border-left: 5px solid #79cf5b;
    border-right: 5px solid #79cf5b;
    background:  #1a1a1a;
    display: flex;
    flex-direction: column;
}

.white-matter {
    padding: 20px;
    background: #333;
}

.grey-matter {
    padding: 20px;
    background: #262626;
}

.grey-nopad-matter {
    padding: 0;
    background: #262626;
}

.white-nopad-matter {
    padding: 0;
    background: #333;
}

.white-nopad-matter h1 {
    color: #bfff00;
}

.white-nopad-matter p {
    color: #bfff00;
}


header {
    width: 100%;
    background-image: url('../images/mikescafell1.jpg');
    background-size: cover; /* Ensure the image covers the entire container */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    border-bottom: 1px solid #79cf5b;
}

header h1 {
        margin: 0;
        padding: 20px 20px;
        font-size: 2.5rem;
        font-weight: bold;
        font: underline;
        color: #000;
        text-transform: uppercase;
        letter-spacing: 10px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5), 0 0 10px rgba(191, 255, 0, 1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.menu-icon {
    width: 50px;
    margin: 10px 0;
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 10px;
    background: #000;
    box-shadow: 0px 0px 5px rgba(160, 255, 65, 0.8);
    position: absolute; /* Change from 'fixed' to 'absolute' */
    top: 5px; /* Adjust as needed */
    right: 20px; /* Keep it inside the screen */
    box-sizing: border-box;
}


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

.nav-links li {
    margin-left: 1rem;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #79cf5b;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.3);
}

.nav-links li a.selected {
    color: #bfff00;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #7da700;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-links li a#left_hand {
    border-radius: 3px 0 0 5px;
}

.nav-links li a:hover {
    background-color: #9fd400;
}

.background-container {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('../images/mike-dover.jpg'); /* Set the background image */
    background-size: cover; /* Ensure the image covers the entire container */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-attachment: fixed; /* Make the background fixed (parallax effect) */
}

.background-container h1 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5)
}

.background-container p {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5)
}

footer {
    font-size: 0.8rem;
    color: #333;
    background:  #79cf5b;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0px;
    min-height: 5vh;
}

.image-wrapper {
    width: 100%; /* Desired width */
    height: 300px; /* Desired height */
    overflow: hidden; /* Hide overflow */
    position: relative;
}

/* Image styling */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    object-position: center; /* Center the image within the container */
    filter: blur(5px);
    transform: scaleX(-1);
}

/* Image hover effects */
img:hover {
    transform: scale(1.1); /* Scale up the image */
    filter: brightness(1.2); /* Increase brightness */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
    transition: transform 0.3s, filter 0.3s; /* Smooth transition for transformations and */
    transform: scaleX(-1);
}

h4 {
    margin: 0;
    padding: 0;
}

p {
    margin: 0 0 0px 0;
    padding: 0;
}

footer p {
    padding: 20px;
}

@media (min-width: 320px) and (max-width: 780px) { 
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 150px;
        background-color: #79cf5b;
        position: fixed;
        top: 0;
        right: -250px;
        height: 100%;
        padding-top: 10px;
        margin: 0px;
        border-left: 1px solid #333;
        transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Add opacity transition */
        opacity: 0; /* Start as invisible */
        visibility: hidden; /* Hidden by default */
    }

    .nav-links.active {
        display: flex; /* Display flex when active */
        right: 0;
        opacity: 1; /* Make visible */
        visibility: visible; /* Make visible */
    }

    .nav-links li {
        display: flex; /* Use flexbox */
        justify-content: flex-end; /* Aligns the content to the right */
        height: 50px; /* Set a fixed height (optional) */
        margin: 0px 0; /* Add margin for spacing */
    }

    .nav-links li a {
        padding: 1rem; /* Keep padding for clickable area */
        text-align: right; /* Align text to the right */
        width: 100%; /* Full width for links */
        display: block; /* Make links block-level elements */
        color: #fff; /* Ensure text color is visible */
        text-decoration: none; /* Remove underline */
        box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.3);
    }

    .nav-links li a.selected {
        padding: 1rem;
        text-align: right;
        color: #bfff00;
        text-decoration: none;
        font-weight: bold;
        background-color: #7da700;
        transition: background-color 0.3s ease;
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.);
    }

    .nav-links li a#left_hand {
        border-radius: 0px;
        padding: 1rem;
    }

    .nav-links li a:hover {
        background-color: #9fd400;
    }

    #main-contain {
        box-sizing: border-box;
        width: 100%; /* Full width for small screens */
        margin: 0 auto;
    }
}

/* Large devices (laptops/desktops, 1280px and up) */
@media (min-width: 1025px) and (max-width: 1440px) {
    #main-contain {
        width: 90%;
    }
}

/* Extra large devices (large desktops, 1441px and up) */
@media (min-width: 1441px) {
    #main-contain {
        width: 90%;
    }
}