body {
    font-family: 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 100%;
    margin: 20px;
    padding: 20px;
    background-color: whitesmoke;
}

.logo {
    float: none;
    max-width: 150px;
    height: 100%;
    width: 100%;
}

.motto {
    font-style: italic;
    margin-top: 10px;
    font-size: 1.5em;
}

.active {
    text-decoration: underline !important;
}

nav {
    background-color: maroon;
    border-radius: 10px;
    
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    transition: background 0.5s;
}

nav a:hover {
    background-color: maroon;
    border-style: groove;
    border-radius: 20px;
}

#links{
    display: none;
    position: absolute;
    top: 415px;
    right: 0;
    z-index: 5;
    height: 0;
    overflow: auto;
    animation: dropAnimation 0.5s ease-out;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

.content {
    text-align: center;
    padding: 20px;
}

.slideshow-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    margin: 0cap;
}

.slides {
    display: flex;
}

.slide {
    width: 100%;
    max-height: 400px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background 1s;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev{
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#maincontainer {
    color: inherit;
    justify-content: center;
    margin-left: 30px;
    margin-right: 30px;
}

#image {
    float: left;
    width: 40%;
    margin-right: 20px;
    animation: fadeIn 5s;
}

#content {
    overflow: auto;
    animation: slideIn 5s;
}

#headtr{
    font-weight: bold;
    animation: fadeIn 5s;
}

p {
    margin-left: 30px;
    margin-right: 30px;
    animation: slideIn 5s;
}

footer {
    text-align: center;
    border-radius: 10px;
}

/*dark mode*/

.dark-mode nav ul li a {
    color: white;
}

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

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive styles */
@media (max-width: px) {
    nav ul {
        flex-direction: column;
    }
}
@media (max-width: 800px) {
    /* Navbar Dropdown */
    body{
        margin: 0;
        padding: 0;
    }
    header {
        border-radius: initial !important;
    }
    .hide-nav{
        display: none;
    }
    #maincontainer {
        display: flex;
        flex-direction: column;
    }
    #image {
        width: 100%;
        
    }
    #image img{
        width: 100%;
        border-radius: 10px;
        
    }
    #content p{
        margin: 0;
        margin-top: 20px;
    }
    #headtr{
        font-size: 20px;
        text-decoration: underline;
    }
    #links.show {
        background-color: rgb(128, 0, 0);
        display: flex;
        flex-direction: column;
        height: 150px;
    }  
    .dark-mode .show{
        background-color:#383636 !important;
    }      

    .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: 150px;
        }
    }
}

@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;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode nav {
    background: none;
}

body.dark-mode a {
    color: #ffffff;
    background: none;
}

body.dark-mode .mode-toggle {
    background-color: #ffffff;
    color: #121212;
}

header {
    position: relative; /* Allows positioning of child elements */
    background-color: maroon;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 40px 0px 40px 0px;
    box-shadow: 7px 8px 20px grey;
}

.mode-toggle {
    position: absolute; /* Position the button relative to the header */
    top: 10px; /* Distance from the top of the header */
    right: 20px; /* Distance from the right edge of the header */
    background-color: maroon;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
}

.mode-toggle:hover {
    background-color: #a00000;
}