*, 
*:before, 
*:after { 
  box-sizing: border-box; 
}

html, body {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    margin: 0 auto;
    background-color: #D9DBDC;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;

    /* for mobile touch */
    -webkit-overflow-scrolling: touch;
}

body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.logo {
    padding-left: 1%;
   height: 100%;
   width: auto;
}

.block {
    display: block;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.4rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    font-size: 1rem;
}

img {
    width: 100%;    
}

.accordion img {
    width: 100%;
    height: auto;
}

.btn-primary {
    background-color: #24714E;
    color: #fff;
    font-size: 1.4rem;
    border: 1px solid #24714E;
}

.btn-primary:hover,
.btn:active,
.btn:focus {
    background-color: #24714E;
    border-color: #24714E;
}

.btn:active:focus,
.btn:focus {
    box-shadow: 0 0 0 .25rem rgba(5, 147, 36, 0.066);
}

.follow_button {
    background-color: #0C96E4;
    font-size: 1rem;
    color: #fff;
}

.desktop_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 7rem;
    font-size: 1.2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 2px solid #D9DBDC;
    z-index: 3;
}

.mobile_nav {
    display: none;
}

.nav_items {
    display: flex;
    flex-direction: column;
}

.nav_items ul {
    list-style: none;
    display: flex;
    margin-bottom: 0;
    align-items: center;
}

.nav_items ul li a {
    text-decoration: none;
    color: inherit;
}

.content {
    text-align: center;
}

.headline_section {
    height: 100vh;
    background-color: #fff;
}

.headline_section-text {
    background-color: rgba( 0, 0, 0, 0.5);
    height: inherit;
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    padding-left: 3%;
}

/* Apply the animation to each letter */
.lifting-text span {
    display: inline-block;
    animation: zoomIn 3s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--index));
}
  
/* Define custom properties to set the index for each letter */
.lifting-text span:nth-child(1) { --index: 1; }
.lifting-text span:nth-child(2) { --index: 2; }
.lifting-text span:nth-child(3) { --index: 3; }
.lifting-text span:nth-child(4) { --index: 4; }
.lifting-text span:nth-child(5) { --index: 5; }
.lifting-text span:nth-child(6) { --index: 6; }
.lifting-text span:nth-child(7) { --index: 7; }
.lifting-text span:nth-child(8) { --index: 8; }
.lifting-text span:nth-child(9) { --index: 9; }
.lifting-text span:nth-child(10) { --index: 10; }
.lifting-text span:nth-child(11) { --index: 11; }
.lifting-text span:nth-child(12) { --index: 12; }
.lifting-text span:nth-child(13) { --index: 13; }
.lifting-text span:nth-child(14) { --index: 14; }
.lifting-text span:nth-child(15) { --index: 15; }
.lifting-text span:nth-child(16) { --index: 16; }
.lifting-text span:nth-child(17) { --index: 17; }
  
/* Add some styling to the text */
.lifting-text {
    font-size: 2.6rem;
    font-weight: bold;
    padding-top: 12%;
    position: relative;
}

.lifting-text.paused {
    animation: pause 1s 1, lift 2s infinite 6s;
}

.yellow {
    color: #FFCF51;
}

.light-blue,
.website-link-info a {
    color: #78B5B0;
}

.event-details .text-section {
    font-size: 1.3rem;
}

.stories_section,
.about_section,
.our_team_section {
    height: 100vh;
    padding: 10% 0;
}

.stories_section-stories {
    display: flex;
    justify-content: space-around;
}

.stories_image-container {
    height: 30vh;
}

.stories_section-autism-text ul {
    text-align: left;
    line-height: 18px;
}

.about_section-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team {
    height: 54%;
}

.contact_section {
    padding: 3% 0;
}

.form_section {
    display: flex;
    justify-content: center;
    text-align: left;
}

.form_section .mb-3 {
    text-align: center;
}

.donate_radio-buttons {
    display: flex;
    align-items: baseline;
}

.donate_now-button {
    display: none;
    text-align: center;
    margin: 0 auto;
}

.form-check-input:checked {
    background-color: #24714E;
    border-color: #24714E;
}

.form-check-input:focus {
    border-color: #24714E;
    box-shadow: 0 0 0 .25rem rgba(5, 147, 36, 0.066);
}

footer {
    background-color: #9CA032;
}

.social_media-links ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    justify-content: center;
}

.social_media-links ul a {
    color: inherit;
    cursor: pointer;
}

.social_media-links ul i {
    font-size: 25px;
    padding-left:10px;
}

.social_media-links ul li:not(:last-child) {
    padding-right: 10%;
}

.footer_section {
    display: flex;
    justify-content: space-around;
}

.copyright_section {
    text-align: center;
    align-self: end;
}

/* About us page */
/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
  
  /* Container around content */
.timeline_container {
    display: flex;
    padding: 10px;
    position: relative;
    background-color: #9EA233;
    width: 90%;
    align-items: center;
}

.timeline_container img {
    width: 80%;
}

.left {
    text-align: left;
}

/* Place the container to the right */
.right {
    left: 10%;
    text-align: right;
}

/* The actual content */
.timeline_content {
    padding: 10px 15px;
    position: relative;
}

.image-text {
    position: absolute;
    bottom: 5%;
    right: 3%;
    color: #fff;
    z-index: 1;
    padding: 2%;
    font-size: 1.5rem;
    background-color: rgba( 0, 0, 0, 0.8);
}

#donate_modal .btn-close {
    position: absolute;
    top: 7%;
    right: 3%;
    padding: 2%;
    z-index: 1;
}

.modal-content {
    text-align: center;
    padding: 5%;
}

section {
    display: flex;
    height: 81.5vh;
    max-width: 100vw;
}

section div {
    display: flex;
    flex: 1;
    position: relative;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

section div:hover {
    flex-grow: 4;
}

.food_security_section {
    background-image: url(./assets//IMG-20220820-WA0000.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.literacy_section {
    background-image: url(./assets//IMG-20220820-WA0000.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.autism_section {
    background-image: url(./assets//IMG-20220820-WA0000.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.needs-validation label {
    font-size: 1.4rem;
}

.carousel-item img {
    height: 100vh;
}   

.snap_scroll {
    scroll-snap-align: start;
}

.form-check-inline {
    display: flex;
    align-items: baseline;
}

/* Style the tab */
.tab {
    float: left;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    width: 30%;
    height: 30rem;
  }
  
  /* Style the buttons inside the tab */
  .tab button {
    display: block;
    background-color: inherit;
    color: black;
    padding: 22px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-size: 17px;
  }
  
  /* Create an active/current "tab button" class */
  .tab button.active, .tab button:hover {
    background-color: #24714E;
    color: #fff;
  }
  
  /* Style the tab content */
  .tabcontent {
    float: left;
    padding: 0px 12px;
    border: 1px solid #ccc;
    width: 70%;
    border-left: none;
    height: 30rem;
    overflow: auto;
  }

@media screen and (max-width: 991px) {
    .tab {
        height: auto;
        width: 100%;
    }

    .tabcontent {
        width: 100%;
        border-left: 1px solid #ccc;
        height: 20rem;
    }

    .tab button {
        padding: 15px;
    }

    .desktop_nav {
        display: none;
    }

    .mobile_nav {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 3%;
        position: fixed;
        background-color: #9CA032;
        z-index: 3;
        top: 0;
    }

    html, body {
        scroll-snap-type: unset;
        scroll-snap-stop: unset;
    
        /* for mobile touch */
        -webkit-overflow-scrolling: unset;
    }

    .headline_section {
        padding-top: 11%;
    }

    .headline_section,
    .stories_section,
    .about_section, 
    .contact_section {
        height: auto;
    }

    .mobile_nav .open_menu-button {
        background-color: inherit;
        border: 2px solid #000;
        color: #000;
    }

    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #111;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        text-align:center;
    }

    .sidenav ul {
        list-style: none;
        padding-left: 0;
    }
      
    .sidenav li,
    .sidenav a {
        padding: 10px;
        text-decoration: none;
        font-size: 25px;
        color: #fff;
        display: block;
        transition: 0.3s;
    }
      
    .sidenav li:hover{
        color: #f1f1f1;
    }
      
    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

    .lifting-text {
        padding-top: 0;
    }

    .event-info {
        display: block !important;
    }

    .event-details {
        text-align: center;
        margin: 0 auto;
        padding-top: 8%;
    }

    .event-details .col-md-10 {
        flex: unset;
        width: unset;
    }

    .event-details .col-md-10 h1,
    .event-details .col-md-10 .text-section {
        text-align: center !important;
        margin: 0 auto;
    }

    .event-img {
        text-align: center;
        margin: 0 auto;
        width: 80%;
    }

    .stories_section-stories {
        display: block;
    }

    .stories_section-stories > div {
        width: 80%;
        text-align: center;
        margin: 0 auto;
    }

    .stories_section-stories > div:not(:last-child) {
        padding-bottom: 10%;
    }

    .carousel-item img {
        height: 50vh;
    }  

    .timeline_image-mobile,
    .timeline_container {
        display: block;
    }

    .timeline_image-desktop {
        display: none;
    }

    .timeline_container {
        text-align: center;
        margin: 0 auto;
    }

    .timeline_image {
        width: 60%;
        margin: 0 auto;
    }

    .timeline_image img {
        width: 100%;
    }

    .right {
        left: 0;
    }

    .image-text h4 {
        font-size: 1.2rem;
    }

    .image-text h5 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 830px) {
    html, body {
        scroll-snap-type: unset;
        scroll-snap-stop: unset;
    
        /* for mobile touch */
        -webkit-overflow-scrolling: unset;
    }
    .headline_section,
    .stories_section,
    .about_section, 
    .contact_section {
        height: auto;
    }

    .mobile_nav .open_menu-button {
        background-color: inherit;
        border: 2px solid #000;
        color: #000;
    }

    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #111;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        text-align:center;
    }

    .sidenav ul {
        list-style: none;
        padding-left: 0;
    }
      
    .sidenav li,
    .sidenav a {
        padding: 10px;
        text-decoration: none;
        font-size: 25px;
        color: #fff;
        display: block;
        transition: 0.3s;
    }
      
    .sidenav li:hover{
        color: #f1f1f1;
    }
      
    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

    .stories_section-stories {
        display: block;
    }

    .stories_section-stories > div {
        width: 80%;
        text-align: center;
        margin: 0 auto;
    }

    .stories_section-stories > div:not(:last-child) {
        padding-bottom: 10%;
    }

    .carousel-item img {
        height: 50vh;
    }  

    .timeline_image-mobile,
    .timeline_container {
        display: block;
    }

    .timeline_image-desktop {
        display: none;
    }

    .timeline_container {
        text-align: center;
        margin: 0 auto;
    }

    .timeline_image {
        width: 60%;
        margin: 0 auto;
    }

    .timeline_image img {
        width: 100%;
    }

    .right {
        left: 0;
    }

    .stories_image-container {
        height: unset;
        padding: unset;
    }

    .project_modal-button-container {
        width: 50%;
    }

    .our_team_section {
        padding: 0;
        height: unset;
    }

    .team {
        height: unset;
        padding-bottom: 3%;
    }

    .team-image {
        width: 25%;
    }

    .image-text {
        width: 94%;
    }

    .image-text h4 {
        font-size: 1.8rem;
    }

    .image-text h5 {
        font-size: 1.3rem;
    }

}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
    
    .index .content {
        padding-top: 25%;
    }

    .stories_section-vegetation {
        padding-top: 15%;
    }

    .needs-validation .row:nth-child(-n+2) .col-md-6:last-child {
        padding-top: 1rem;
    }

    .donate_radio-buttons {
        align-items: baseline;
    }

    /* Full-width containers */
    .timeline_container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make all right containers behave like the left ones */
    .right,
    .left {
        left: 0%;
    }

    .footer_section {
        display: block;
        text-align: center;
    }
}

@media screen and (max-width: 450px) {

    .timeline_container {
        padding-left: 25px;
    }

    .index .content {
        padding-top: 22%;
    }

    #contact_form {
        padding: 0 3%;
    }

    .mobile_nav {
        padding: 5% 3%;
    }

    .lifting-text {
        font-size: 1.6rem;
    }

    .event-details .col-md-10 {
        width: 100% !important;
    }

    .event-details .text-section {
        font-size: 1rem;
        padding-left: 10%;
    }

    .fully-booked {
        width: 40%;
    }

    .image-text {
        bottom: 8%;
        right: 0;
        font-size: 1rem;
        width: 100%
    }

    .image-text h4 {
        font-size: 1.4rem;
    }

    .image-text h5 {
        font-size: 1rem;
    }

    .headline_section {
        height: unset;
        margin-top: unset !important;
    }

    .stories_section,
    .about_section,
    .our_team_section,
    .stories_image-container {
        height: unset;
        padding: unset;
        padding-top: 10%;
    }

    .project_modal-button-container {
        justify-content: center;
        width: 100%;
    }

    .project_modal-button-container button {
        font-size: 1rem;
        width: 70%;
    }

    .about_section,
    .our_team_section {
        padding-top: 20%;
    }

    .team-image {
        padding-bottom: 10%;
        width: unset;
    }

    .team-image img {
        width: 50%;
    }

    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }

    /* Project Ausome Mobile Styles */
    .project_ausome-logo,
    .left-icon,
    .right-icon {
        width: 50%;
    }

    .project_ausome .beneficiaries-section .content-text .p-5 {
        padding: unset !important;
    }

    .focus-section .left-icon,
    .vision-section .left-icon,
    .vision-section .right-icon,
    .mission-section .left-icon,
    .mission-section .right-icon,
    .values-section .left-icon,
    .values-section .right-icon {
        width: 30%;
    }
}

/* Project Ausome Styles */
.project_ausome p,
.project_ausome ul {
    font-size: 1.2rem;
}

.project_ausome-navigation {
    background-color: #fff;
}

.project_ausome-logo {
    margin: 0 auto;
}

.back-icon {
    padding-left: 14px;
}

.back-icon a {
    text-decoration: none;
    color: unset;
}

.back-icon a i {
    font-size: 28px;
}

.beneficiaries-section .left-icon img {
    animation: zoomIn 5s infinite;
}

.beneficiaries-section .right-icon img {
    animation: zoomIn 5s 2.5s infinite;
}

.beneficiaries-section,
.vision-section,
.values-section {
    background-color: #101E4A;
    color: #fff;
}

.vision-section .right-icon img {
    font-size: 4rem;
    color: gold;
    animation: bounce 3s 15; 
}

.values-section .right-icon img {
    animation: beat 1.5s infinite;
    animation-fill-mode: both;
}

.values-section ul li strong {
    color: #74dddf;
    text-decoration: underline;
}



/* animations */
@keyframes zoomIn {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-20px);
    }
    60% {
      transform: translateY(-10px);
    }
}

@keyframes beat {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
}

@keyframes lift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pause {
    0%, 100% {
        transform: translateY(0);
    }
}