@import url('https://fonts.googleapis.com/css?family=Montserrat');

/* Theme styling */
body.dark-theme {
    background: #1f1f1f;
    background-size: 100%;
    background-repeat: no-repeat;
    color: white;
}

body.light-theme {
    background: #ffffff;
    color: #1f1f1f;
    background-image: none;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    display: none;
}

.element::-webkit-scrollbar {
    width: 0 !important;
}

/* Links */
a {
    text-decoration: none;
    color: aliceblue;
}

body.light-theme a {
    color: #1f1f1f;
}

a:hover {
    color: #fecd40;
}

/* Logo */
header .logo a {
    background-image: url("mahalogo.png");
    background-size: 80px;
    background-repeat: no-repeat;
    display: inline-block;
    height: 200px;
    width: 111px;
    text-indent: -99999px;
    position: relative;
    top: -15px;
}

/* Nav */
li:first-child {
    float: left;
}

li {
    display: inline-block;
    padding-right: 7%;
    margin: 10px 0 0 0;
    font-size: 25px;
}

.topnav {
    list-style: none;
    font-family: 'Montserrat';
    color: aliceblue;
    margin: 50px 0 0 0;
    text-align: right;
}

/* Header */
section header {
    margin-top: 0px;
    font-family: 'Montserrat';
    font-size: 40px;
    margin-bottom: 30px;
}

.home {
    margin-top: 200px;
}

/* Section */
section {
    text-align: center;
    padding: 8%;
}

section nav {
    font-family: 'Montserrat';
    font-size: 35px;
    line-height: 55px;
    text-align: left;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

section .mybutton {
    font-family: 'Montserrat';
    font-size: 24px;
    color: #151D21;
    background: #2b95a5;
    display: inline-flex;
    padding: 6px;
    margin-top: 30px;
    margin-right: 5%;
    margin-left: 5%;
    border: none;
    border-radius: 5px;
}

section .mybutton:hover {
    background: white;
    font-size: 26px;
    margin-top: 29px;
}

/* Features */
.features {
    color: gray;
    padding: 20px;
    display: flex;
    flex-direction: row;
    position: relative;
    top: -90px;
}

.features figure {
    margin: auto;
    padding: 5px;
    text-align: center;
    width: 300px;
}

.features figure img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
}

figure img:hover {
    filter: brightness(0.7);
}

figure figcaption {
    font-family: 'Montserrat';
    font-size: 36px;
    margin-top: 10px;
    margin-bottom: 100px;
}

figure figcaption a:hover {
    color: gray;
}

/* Section adjustments */
.par {
    margin-top: 500px;
    height: 650px;
}

/* Footer */
footer {
    font-family: 'Montserrat';
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
}

/* Theme Toggle Button (Bottom Right) */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: background 0.3s, transform 0.3s;
}

.theme-toggle:hover {
    background: #fecd40;
    transform: scale(1.1);
}

body.light-theme .theme-toggle {
    color: #1f1f1f;
}

/* Responsive */
@media screen and (max-width: 1140px) {
    section nav {
        font-family: 'Montserrat';
        font-size: 24px;
        line-height: 36px;
    }

    li {
        font-size: 24px;
    }

    .features {
        top: -40px;
    }

    .features figure img {
        width: 200px;
        height: 200px;
    }

    figure figcaption {
        font-size: 24px;
    }
}

@media screen and (max-width: 760px) {
    .features {
        display: block;
    }

    li {
        font-size: 14px;
    }

    section header {
        font-size: 28px;
    }

    .features figure:first-child {
        padding-top: 100px;
    }

    section nav {
        font-size: 16px;
        line-height: 36px;
    }

    footer {
        font-size: 10px;
    }

    header .logo a {
        height: 50px;
        width: 60px;
        background-size: 50px;
    }
}
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    align-items: center ;
}

@media screen and (max-width: 600px) {
    li {
        font-size: 12px;}
    

    section nav {
        font-size: 60px;
        line-height: 26px;
    }

    section .mybutton {
        font-size: 12px;
    }

    section .mybutton:hover {
        font-size: 14px;
    }
    }