@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(500px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    color: #F04283;
    transition: color 0.3s ease;
    text-decoration: none; /* Optional: remove underline */
}

a:hover {
    color: #F97FAD; /* Example hover color */
    text-decoration: underline;
}

#team {
    text-align: center;
    padding: 50px 0;
}

#team h2 {
    margin-bottom: 40px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    text-align: center;
}

/* Profile picture styling */
.team-member img.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image circular */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-info {
    margin-top: 10px;
}

.profile-info h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
}

.profile-info p {
    margin: 0;
    font-size: 1em;
    color: #555;
}

/* Grid container for team members */
#team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Ensure there are at least two columns on wider screens */
@media (min-width: 600px) {
    #team {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}


/* General body styling */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;  /* Vertically center the logos */
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 20px;
}

.navbar-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.navbar-nav {
    list-style: none;
    display: none; /* Hide by default */
    flex-direction: column;
    background-color: #333;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    margin: 0;
    padding: 0;
}

.navbar-nav li {
    margin: 0;
}

.navbar-nav a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    display: block;
    text-align: center;
}

.navbar-nav a:hover {
    background-color: #575757;
}

.navbar-nav.active {
    display: flex; /* Show when active */
}

.logo {
    max-width: 100px;
    height: auto; 
}

/* Styling for larger screens */
@media (min-width: 1200px) {
    .navbar-toggle {
        display: none; /* Hide hamburger menu button on large screens */
    }

    .navbar-nav {
        display: flex; /* Show the navigation links by default on large screens */
        position: static; /* Remove absolute positioning */
        flex-direction: row; /* Horizontally align nav items */
    }
}



.logo {
    max-width: 100px;
}

.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#parallax-1 {
    background-image: url('/images/Tempauslogo.png');
}

#parallax-2 {
    background-image: url('/images/Tempauslogo.png');
}

#partner-section {
    max-width: 800px; /* Align this with the banner image's max-width for consistent centering */
    margin: 0 auto; /* Ensures centering */
    padding: 30px; /* Adjust as necessary, ensuring it doesn't push content off-center */
    box-sizing: border-box; /* Include padding in the element's width */
    Background-color: white;
    color: #F04283;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Ensure logos wrap on smaller screens */
    margin-bottom: 20px;
}

.partner-logos img {
    max-width: 150px; /* Limit the size of each logo */
    margin: 25px;
    height: auto;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    #partner-section {
        padding: 10px;
    }

    .partner-logos img {
        max-width: 100px; /* Reduce logo size on smaller screens */
        margin: 5px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .navbar-toggle {
        display: block; /* Display hamburger menu button on mobile screens */
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
    }

    .navbar-nav {
        display: none; /* Hide the navigation links by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px; /* Adjust this based on your navbar height */
        left: 0;
    }

    .navbar-nav.active {
        display: flex; /* Show nav items when menu is toggled */
    }
}

.kasky {
    text-align: center;
}



header img {
    display: block;
    max-height: 300px;
    width: auto; /* Allows the image to maintain its aspect ratio */
    max-width: 100%; /* Ensures the image does not exceed the container's width */
    height: auto;
    margin: 20px auto; /* Centers the image horizontally and adds 20px margin on the top and bottom */
    box-sizing: border-box;
    padding: 20px;
    animation: fadeIn 2s ease-out forwards;
}
main, .main-container {
    max-width: 800px; /* Align this with the banner image's max-width for consistent centering */
    margin: 0 auto; /* Ensures centering */
    padding: 30px; /* Adjust as necessary, ensuring it doesn't push content off-center */
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
}

#mainContent {
    flex: 2;
}

#upcoming-events {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    margin-left: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#upcoming-events h2 {
    margin-bottom: 20px;
}

#upcoming-events ul {
    list-style-type: none;
    padding: 0;
}

#upcoming-events li {
    margin-bottom: 15px;
}

#upcoming-events strong {
    color: #F04283; /* Main color for headings */
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    #upcoming-events {
        margin-left: 0;
        margin-top: 20px;
    }
}


.banner-video {
    display: block;
    max-width: 100%; /* Ensures the video does not exceed the container's width */
    height: auto; /* Adjusts height automatically based on the width */
    margin: 20px auto; /* Centers the video horizontally with margin */
}

.language-dark-mode-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribute items evenly along the main axis */
    padding: 0 20px;
}

.language-selector {
    margin: 20px 0;
    font-family: 'Segoe UI', sans-serif;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#download-section {
    text-align: center;
    padding: 20px;
}

.downloadable-images a {
    display: inline-block;
    margin: 10px;
    text-decoration: none;
    color: #333;
}

.downloadable-images img {
    max-width: 150px;
    border: 2px solid #ccc;
    margin-bottom: 5px;
    transition: transform 0.3s;
}

.downloadable-images a:hover img {
    transform: scale(1.1);
}

.downloadable-images p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

/* Dark mode styles */
.dark-mode {
    background-color: #222222; /* Dark background */
    color: #ffffff; /* Light text */
}

.dark-mode header, .dark-mode main, .dark-mode footer {
    color: #ffffff;
}

.dark-mode a {
    color: #F04283; /* Adjust link color for dark mode */
}

.dark-mode a:hover {
    color: #F97FAD; /* Lighter purple for hover in dark mode */
}



/* Toggle button styles */
#dark-mode-toggle {
    position: relative;
    width: 50px;
    height: 30px;
    background-color: #ddd;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    outline: none;
    
}

#toggle-ball {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Diameter of the toggle ball */
    height: 30px; /* Diameter of the toggle ball */
    background-color: #fff; /* White background for the ball to make the icon stand out */
    border-radius: 50%; /* Makes it circular */
    transform: translateX(-10px); /* Adjust this value as needed */

    transition: transform 0.3s ease; /* Smooth transition for moving the ball */
    /* No need to repeat display, align-items, justify-content, and background-color */
}

       


/* Light mode styles (default) */
.language-selector select {
    background-color: rgb(255, 255, 255); /* Light background for light mode */
    color: black; /* Dark text for light mode */
    /* Other styling properties */
}

/* Dark mode styles */
body.dark-mode .language-selector select {
    background-color: #222222; /* Dark background for dark mode */
    color: white; /* Light text for dark mode */
    /* Other styling properties */
}

/* Dark mode styles */
.dark-mode #toggle-ball {
    transform: translateX(60%);
}

.dark-mode #dark-mode-toggle {
    background-color: #444;
}

#language-dropdown {
    display: flexbox;
    padding: 8px;
    border: 1px solid #ffffff;
    border-radius: 4px;
   
}

#mainContent, #additionalContent {
    margin: 20px 0; /* Consistent vertical spacing */
}

#mainContent, #additionalContent {
    opacity: 0; /* Start fully transparent */
    animation: slideFadeIn 1s ease-out forwards;
    animation-delay: 1s; /* Starts this animation after the header image */
}

#additionalContent {
    display: flex;
    flex-direction: row; /* This makes items align horizontally by default */
    justify-content: space-between; /* Adjusts spacing between items */
    align-items: center; /* Aligns items vertically */
    margin-top: 50px;
}

#disclaimer {
    color: #969696;
}


/* CSS Media Query for Mobile Devices */
@media (max-width: 768px) { /* Adjusts for screens up to 768px wide, typical for tablets and mobile devices */
    #additionalContent {
        flex-direction: column; /* Stacks items vertically on smaller screens */
        align-items: flex-start; /* Aligns items to the start of the container */
    }
    
    #additionalContent .link-item {
        margin-bottom: 20px; /* Adds space between stacked items */
    }
    
    #additionalContent .link-item:last-child {
        margin-bottom: 0; /* Removes bottom margin from the last item */
    }
}

#additionalContent img {
    margin-top: 50px;
    margin-left: 50px;
    width: 200px;
    height: auto;
    margin-right: 20px; /* Adjusted for consistent spacing */
}

/* Styling for content wrapper */
.content-wrapper {
    display: flex;  /* Align main content and sidebar side by side */
    gap: 20px;      /* Space between main content and sidebar */
    justify-content: space-between;  /* Spread the content */
}

#mainContent {
    flex: 2;  /* Main content takes up more space */
}

#upcoming-events {
    flex: 1;  /* Sidebar (upcoming events) takes up less space */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#upcoming-events h2 {
    margin-bottom: 20px;
}

#upcoming-events ul {
    list-style-type: none;
    padding: 0;
}

#upcoming-events li {
    margin-bottom: 15px;
}

#upcoming-events strong {
    color: #F04283; /* Main color for headings */
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;  /* Stack items vertically on smaller screens */
    }

    #upcoming-events {
        margin-top: 20px;  /* Add spacing on top when stacked */
    }
}
