@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
body{
    margin: 0px;
    margin-top: 77px;
    font-size: 20px;
    font-family: 'Segoe UI', sans-serif;
    background-color: rgb(250, 250, 255);
}
.navbar{
    position: fixed;
    z-index: 2;
    top: 0px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: rgb(128, 0, 0);
}
.navbar > :nth-child(2){
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.navbar a{
    color: rgb(255, 255, 255);
    text-decoration: none;
    background-color: rgb(128, 0, 0) ;
    font-size: 20px;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.navbar a:hover {
    background-color: rgb(100, 0, 0);
}
.active{
    text-decoration: underline !important;
}
.navbar img{
    width: 60px;
    padding: 10px;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
}

/*Footer*/
footer{
    width: 100%;
    height: 50px;
    background-color: rgb(128, 0, 0);
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    margin-top: 10px;
    text-align: center;
}
.gallery-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section h1 {
    text-align: center;
    color: rgb(124, 12, 27);
    margin-bottom: 30px;
    font-size: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: rgb(124, 12, 27);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Indicate the image is clickable */
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item p {
    text-align: center;
    padding: 10px;
    color: rgb(255, 255, 255);
}

/* Lightbox styling */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox .caption {
    color: white;
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
}
/*Responsive*/
@media (max-width: 768px) {
    /* Navbar Dropdown */
    #links{
        display: none;
        position: absolute;
        top: 65px;
        right: 0;
        z-index: 5;
        height: 0;
        overflow: auto;
        animation: dropAnimation 0.5s ease-out;
    }

    #links.show {
        display: flex;
        flex-direction: column;
        height: 300px;
    }        

    .hamburger {
        display: flex;
        padding: 10px;
        margin-right: 20px;
        border: 1px solid rgb(255, 255, 255);
        border-radius: 5px;
    }
    .hamburger:hover{
        background-color: rgb(100, 0, 0);
    }
    

    @keyframes dropAnimation {
        from{
            height: 0;
        }
        to{
            height: 300px;
        }
    }
}

@media (max-width: 1200px) {
    .navbar a {
        padding: 10px;
        text-align: center;
        font-size: 20px;
    }
}
@media (max-width: 320px) {
    .gallery-grid {
        display: block
    }
    .gallery-item {
        margin-bottom: 10px;
    }
}
/* General styles for the mode toggle button */
.mode-toggle {
    background-color: maroon;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
  }
  .mode-toggle img{
    width: 20px;
  }
  
  .mode-toggle:hover {
    background-color: #a00000;
  }
  
  /* Default light mode styles */
  body {
    background-color: #ffffff;
    color: #000000;
  }
  
  .navbar {
    background-color: maroon;
    color: white;
  }
  
  .navbar a {
    color: white;
  }
  
  .mode-toggle img {
    width: 20px;
    height: 20px;
  }
  
  /* Dark mode styles */
  body.dark-mode {
    background-color: #121212;
    color: #ffffff;
  }
  
  body.dark-mode .navbar {
    background-color: #1e1e1e;
  }
  
  body.dark-mode .navbar a {
    color: #ffffff;
  }
  
  body.dark-mode .mode-toggle img {
    filter: invert(1); /* Invert the icon color for better visibility */
  }
