
Library
/
updated_mobile_navbar_code.css


.home-image {
    width: 100%;
    max-width: 1400px;
    height: auto;
}




/* =========================
   MOBILE RESPONSIVE DESIGN
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Home image */
#home > img {
    width: 100%;
    height: auto;
    max-width: 1400px;
}

/* Headings */
h1 {
    font-size: 75px;
}

/* Achievement images */
.pics {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* About Us images */
.about_us {
    width: 90%;
    max-width: 800px;
    height: auto;
}

/* Volunteer section */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.Volunteer {
    width: 50%;
    max-width: 500px;
    height: auto;
}

/* CARE description */
.description_CARE {
    max-width: 900px;
    margin: auto;
    padding: 0 25px;
}

/* Contact section */
.contact_1 {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Videos */
iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}


/* =========================
   PHONE
   ========================= */

@media screen and (max-width: 768px) {

    /* Navbar */
     .my_nav_bar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000;
        background-color: darkgreen;
    }

    .navbar-nav {
        width: 100%;
    }

    .links {
        font-size: 16px;
    }

    #logo {
        width: 45px;
        height: 45px;
    }

    /* Main headings */
    h1 {
        font-size: 38px;
        margin: 20px 10px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    /* Home */
    .intro {
        font-size: 20px;
        line-height: 1.5;
        padding: 0 20px;
    }

    /* Achievements */
    #achievements {
        margin: 30px 10px;
    }

    .accomplish_head {
        font-size: 17px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .title {
        font-size: 17px;
    }

    .describe {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 15px;
    }

    .pics {
        width: 100%;
        height: auto;
    }

    /* Events */
    .event {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .current_mainDiv {
        width: 95%;
        margin: auto;
    }

    .whatshappening {
        font-size: 20px;
        padding: 0 15px;
    }

    .more {
        font-size: 18px;
        padding: 0 15px;
    }

    /* CARE */
    .description_CARE {
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
        margin: 0;
        padding: 0 20px;
    }

    /* Volunteer */
    .container {
        flex-direction: column;
        width: 95%;
        gap: 20px;
    }

    .Volunteer {
        width: 100%;
        max-width: 500px;
    }

    .volunteers {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 15px;
        font-size: 17px;
        line-height: 1.6;
    }

    /* Articles */
    .article {
        display: block;
        font-size: 18px;
        padding: 0 15px;
        line-height: 1.5;
    }

    .who {
        padding: 0 15px;
    }

    /* YouTube videos */
    iframe {
        width: 95%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Contact */
    .contact_1 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 20px;
    }

    /* Footer */
    .copy_right_footer {
    position: fixed;
    color: white;
    bottom: 0;
    width: 100%;
    background-color: grey;
    line-height: 3;
    text-align: center;
}
}

  .my_nav_bar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000;
        background-color: darkgreen;
    }

.contact_1 {
    text-align: center;
    display: flex;         /* Activates flexbox layout */
  flex-direction: row;   /* Aligns children horizontally (default behavior) */
  gap: 15px;  
  margin:35px;
  font-size:16px ;
  justify-content: center;
}


.copy_right_footer {
    position: fixed;
    color: white;
    bottom: 0;
    width: 100%;
    background-color: grey;
    line-height: 3;
    text-align: center;
}


h3 {
    text-align: center;
}


h4 {
    text-align: center;
}






.line {
    height: 6px;
    background-color: #000;
    width: 70px;
    margin: 8px auto;
    text-align: center;
}






body {
    background-color: white;
    text-align: center;
    }


#contact_us {
    text-align: center;
   
}






a {
    text-align: center;
}


.accomplish_head {
    font-size: 20px;
    padding: 6px 22px;
    border-radius: 10px;
    margin-bottom: 15px;
}




.accomplish_head i {
    float: right;
}




.accomplish_text span {
    color: orange;
}




.event {
    width: 400px;
    height:  500px;
}


.current_mainDiv {
    border: 1px solid lightgrey;
    text-align: center;
}


.current_mainDiv img {
    width: 100%;
}


.current_mainDiv h5, .travel_mainDiv p {
    margin: 20px;
}


.about_us {
    width:100%;
    max-width:800px;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 15px;
}
 .care {
    font-weight: bold;
    font-size: large;
 }


 #logo {
    float:left;
    width: 50px;
    height: 50px;
 }


 .intro {
font-size: 25px;


   font-family: "Cedarville Cursive", cursive;
  font-weight: 400;
  font-style: normal;
 }


 .description_CARE {
   text-align: justify;
   margin-left: 35px;
   margin-right: 35px;
font-weight: bold;
 font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
 
  font-style: normal;
 }


#achievements {
  margin: 100px; /* Adjust the pixel size as needed */
}


.pics {
    height: 975px;
    width: 1840px;
}


.links {
    font-size: larger;
    font-weight: bold;
}


h1 {
    font-size: 95px;
}


.describe {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
     color: green;
}


.KSS {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
     
}


.title {
    font-size: x-large;
 
}


.more {
    font-size: x-large;
      font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.whatshappening {
    font-size: 28px;
      font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.go {
    font-size: 16px;
}


.emoji {
    font-size: 2rem;
  vertical-align: middle;
}


.youtube {
    font-size: 27px;
}


.article {
    font-size: 19px;
}


.who {
    font-size: 17px;
      font-family: "Montenegrin Gothic One", serif;
  font-weight: 400;
  font-style: normal;
}


#myButton {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: large;
    background-color: yellowgreen;
}


.TA {
    font-size: 29px;
     font-family: "Black Ops One", system-ui;
  font-weight: 400;
  font-style: normal;
}


.volunteers {
    font-size: 20px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
     text-align: justify;
   margin-left: 35px;
   margin-right: 35px;
   max-width: 600px;
font-optical-sizing: auto;
}


.Volunteers {
    font-size: 25px;
    color:burlywood;
}


.container {
    display:flex;
    align-items:center;
    gap:20px;
}


.Volunteer {
    width: 500px;
    height:auto;
    border-radius: 10px;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

section {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#home {
    width: 100%;
    text-align: center;
}

#home img {
    display: block;
    width: 100%;
    max-width: 1400px;
    height: auto;
    margin: 0 auto;
}

#home .intro {
    width: 100%;
    max-width: 700px;
    margin: 30px auto;
    padding: 0 25px;
    text-align: center;
}

@media screen and (max-width: 768px) {

    #home {
        width: 100%;
        margin: 0 auto;
    }

    #home h1 {
        font-size: 48px;
        text-align: center;
        margin: 30px 0;
    }

    #home img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    #home .intro {
        width: 100%;
        max-width: 600px;
        margin: 30px auto;
        padding: 0 25px;
        font-size: 20px;
        line-height: 1.6;
        text-align: center;
    }
}

/* ===== MOBILE RESPONSIVE FIX ===== */

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Sections */
section {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Headings */
h1 {
    font-size: clamp(40px, 10vw, 95px);
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Achievements */
#achievements {
    width: 100%;
    max-width: 100%;
    margin: 50px auto;
    padding: 0 20px;
}

/* Pictures */
.pics {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Events */
.event {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Volunteer */
.Volunteer {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Containers */
.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Text */
.description_CARE,
.volunteers {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Footer */
.copy_right_footer {
    position: fixed;
    color: white;
    bottom: 0;
    width: 100%;
    background-color: grey;
    line-height: 3;
    text-align: center;
}

/* ===== PHONE ===== */

@media screen and (max-width: 768px) {

    body {
        width: 100%;
        overflow-x: hidden;
    }

    h1 {
        font-size: 48px;
        text-align: center;
    }

    .links {
        font-size: 18px;
    }

    .title {
        font-size: 24px;
    }

    .whatshappening {
        font-size: 24px;
    }

    .more {
        font-size: 24px;
    }

    .TA {
        font-size: 24px;
    }

    .pics {
        width: 100%;
        height: auto;
    }

    #achievements {
        margin: 40px auto;
        padding: 0 15px;
    }

    .event {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .Volunteer {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .description_CARE,
    .volunteers {
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
        text-align: center;
    }

    .copy_right_footer {
    position: fixed;
    color: white;
    bottom: 0;
    width: 100%;
    background-color: grey;
    line-height: 3;
    text-align: center;
}
}

/* Mobile: center only Achievements and Volunteering text */
@media screen and (max-width: 768px) {

    #achievements {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .volunteers {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== KEEP NAVBAR ALWAYS VISIBLE ===== */

.my_nav_bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background-color: darkgreen !important;
}

/* Leave enough space for the fixed navbar */
body {
    padding-top: 50px;
}

@media screen and (max-width: 768px) {
    .my_nav_bar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999999;
    }

    .my_nav_bar .navbar-header {
        min-height: 40px;
    }

    .my_nav_bar .navbar-toggle {
        margin-top: 5px;
        margin-bottom: 5px;
        padding: 7px 8px;
    }

    #logo {
        width: 38px;
        height: 38px;
    }

    body {
        padding-top: 40px;
    }
}

/* Shorter copyright footer on mobile */
@media screen and (max-width: 768px) {
    .copy_right_footer {
        padding: 5px 10px;
        line-height: 1.2;
        font-size: 12px;
        height: 32px;
    }
}

/* ===== ACHIEVEMENTS SECTION TITLE ===== */
#achievements h1 {
    font-size: 70px;
}

@media screen and (max-width: 768px) {
    #achievements h1 {
        font-size: 33px;
    }
}

/* ===== SMALLER ACHIEVEMENT IMAGES ===== */
/* Only images inside the Achievements section */
#achievements .pics {
    width: 80%;
    max-width: 1500px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Smaller on mobile */
@media screen and (max-width: 768px) {
    #achievements .pics {
        width: 85%;
        max-width: 100%;
        height: auto;
    }
}