/* General styles */
body {
    /*background-image: url('resources/plaster_wall_large.jpg');
    background-size: cover;*/
    /*background-color: #f7f3e9;*/
    background-color: #242424;
    color:  #ffffff;
    
    margin: 0;
    padding: 0;
    font-family: 'Roboto Slab', serif;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    height: 100%; /* Minimum height of 100% of the viewport height */
    overscroll-behavior-y: contain;  /* Android: prevent refresh from scrolling down */
}

html {
    height: 100%;
    overflow: hidden;
}

/* Link styles for body text */
a {
    color: #66b3ff;  /* Light blue for unvisited links */
    text-decoration: underline;  /* Remove underline, optional */
}

a:visited {
    color: #cc99ff;  /* Light purple for visited links */
}

@media (hover: hover) and (pointer: fine) {
    a:hover {
        background-color: #99ccff;
    }
}

a:active {
    color: #99ccff;  /* Lighter blue when hovering */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

table {
    border-collapse: collapse;  /* This combines adjacent cell borders */
}
  
table, th, td {
    border: 1px solid #ffffff;  /* This gives a border to the table and all cells */
    padding: 5px;
}


header {
    background-color: #242424;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: inset 0 -2px 2px -2px rgba(255, 255, 255, 0.5);

    position: sticky; /* Makes the header stay fixed */
    top: 0; /* Aligns to top of viewport */
    z-index: 1000; /* Ensures header stays on top of other content */
}

/* For mobile devices (typically screens less than 768px wide) */
@media screen and (max-width: 768px) {
    header {
        padding: 5px 5px;
    }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: flex; 
    align-items: center; 
}

.logo img {
    width: 32px;  /* Example width, adjust as needed */
    height: auto; /* Maintains aspect ratio */
    margin-right: 0px;
}

.logo span {
    display: inline-block;
    vertical-align: middle; /* Aligns the text with the image */
    margin-left: 2px; /* Optional: adds some spacing between the image and the text */
    color: #FFFFFF;  /* Ensure the text stays white */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .main-nav ul li a:hover {
        background-color: rgb(128, 128, 128);
    }
}

.main-nav ul li a:active {
    background-color: rgb(128, 128, 128);
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;  /* Add some padding */
    border-radius: 3px;  /* Optional: rounds the corners like the menu links */
}

@media (hover: hover) and (pointer: fine) {
    .hamburger:hover {
        background-color: rgb(128, 128, 128);
    }
}

.hamburger:active {
    background-color: rgb(128, 128, 128);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* For mobile devices (typically screens less than 768px wide) */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #242424;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        box-shadow: 0 2px 2px rgba(0,0,0,0.5);
    }

    .main-nav.active {
        transform: scaleY(1);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

main {
    flex: 1;
    padding-top: 20px;  /* Space below the header */
    overflow-y: auto; /* Make main section scrollable */
    display: flex;  /* Add this */
    flex-direction: column;  /* Add this */
}

.content-wrapper {
    flex: 1; /* This will push the footer down */
}

h3 {
    padding-top: 70px;  /* Adjust this value to match your banner height */
    margin-top: -70px;  /* This negative margin offsets the padding */
}

/* Hero section */
.hero {
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero img {
    width: 32px;  /* Example width, adjust as needed */
    margin-right: 0px;
}

.hero h1 {
    font-size: 36px;
    margin-top: 0px;
    margin-bottom: 20px;
}


/* Video section */
.video {    
    text-align: center;
    padding: 40px 0;
    background-size: cover;
    background-position: center;
}

.video-flex-container {
    flex-wrap: wrap;
    display: flex;  /* Enables flexbox */
    justify-content: center;  /* Centers the video containers horizontally */
    gap: 10px;  /* Space between each video container */
}

.video-description {
    margin-top: 1px;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #ffffff;
    max-width: 400px;  /* Match iframe width */
    margin-left: auto;
    margin-right: auto;
}

/* Call-to-action section */
.cta {
    text-align: center;
    padding: 40px 0;
}

.button {
    /*background-image: url('resources/marble_dark2_small.jpg'); 
    color: #F9F9F9;*/
    background-color: #ffffff;
    color:#242424;
    border: 1px solid #000000;
    text-decoration: none;
    
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
}

.button:visited {
    color: #242424;  /* Keep text white even after visited */
}


.centered_img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: calc(2px - (100vw - 100%)/2);
    width: calc(100vw - 2px);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

pre {
    background-color: black; /* Black background */
    color: white;           /* White text */
    padding: 10px;          /* Padding around the text */
    font-family: monospace; /* Monospaced font for better readability */
    border-radius: 5px;     /* Rounded corners */
    white-space: pre-wrap;       /* Wraps text and preserves white-space and line breaks */
    word-wrap: break-word;       /* Ensures the text breaks to prevent overflow */
}

/* Footer */
footer {
    margin-top: auto; /* Pushes footer to bottom of content */
    background-color: #242424;
    /*background-image: url('resources/marble2_large.jpg');
    background-size: cover;*/

    color: #ffffff;
    text-align: center;
    padding: 5px;
    box-shadow: inset 0 2px 2px -2px rgba(255, 255, 255, 0.5);

}


/* About page styles */
.about, .staffs, .contact, .hero, .blog {
    padding: 20px;
}
.contact iframe {
    padding: 0;
    max-width: 740px;
    width: 100%;
}


.blog ul {
    list-style: none; /* Removes bullet points */
}

.staff {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.staff-image {
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin-right: 20px;
}
