* {
    box-sizing: border-box;
}

:root {
    --background: rgb(217,231,220);
    --secondary-color: #2e4117;
}


html {
    scroll-behavior: smooth;
}


/* Installing all the fonts */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;600&display=swap');

h1 {
    font-size: 3rem;
    color: black;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

html {
    height: 100%;
}

body {
    margin: 0;
    background: url(../images/background.png) top center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Source Sans Pro', sans-serif;
    position: relative;
    height:100%;
    overflow-x: hidden;
    /* background: var(--background); */
}


/* Here is the header */
header {
    width: 960px;
    position: sticky;
    top:0;
    z-index: 999;
    height: 70px;
    text-align: center;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    box-shadow: 0px 1px 3px #ccc;
}


main {
    position: relative;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100vw;
}


.logobox {
    width: 170px;
    height:170px;
    border-radius: 50%;
    padding:1rem;
    background-color: var(--background);
    position: relative;
    z-index: 999999;
    box-shadow: 0px 3px 1px #ccc;
}

nav {
    position: absolute;
    background: var(--background);
    text-align: left;
    top:100%;
    width:100%;
    left:0;
    transform: scale(1,0);
    transform-origin: top;
    transition: transform 0.2s ease-in-out; 
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    position: absolute;
    top:0;
    left:0;
    margin-left: 1em;
    height: 100%;
    display: flex;
    align-items:center;
}
/* This is the hamburger menu */
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block;
    background: var(--secondary-color);
    height:5px;
    width:40px; 
    border-radius: 2px;
    position: relative;
}

.nav-toggle-label span::before, .nav-toggle-label span::after {
    content:"";
    position: absolute;
}

.nav-toggle-label span::before {
    bottom:10px;
}

.nav-toggle-label span::after {
    top:10px;
}

ul {
    width:100%;
    list-style: none;
    margin:0;
    padding:0;
}

li {
    margin-bottom: 2.5rem;
    margin-left: 1.5rem;
}

nav a {
    font-size: 2em;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: #2e4117;
    text-decoration: none;
    opacity:0;
    transition: opacity 0.1s ease-in-out;
}

/* Animate the show and hide hamburger menu */
.nav-toggle:checked ~ nav {
    transform: scale(1,1);
}

.nav-toggle:checked ~ nav a {
    opacity:1;
    transition: opacity 0.25s ease-in-out 0.2s;
}


/* Here is the main **********/
.hero {
    grid-area: 1/1/3/4;
    position: relative;
}

/* This is the main section */
main {
    grid-area: main;
    background: #d9e7dc;
    overflow-x: hidden;
}

.container {
    background: #ebefeb;
}

.container img {
    border-radius: 50%;
    border: 2px dashed #2e4117;
    padding: 0.5rem;
}
/* Slider */

.slick-next {
    right: 25px;
}

.sliderContent-lg {
    top: 130px;
    width: 500px;
}

.content-text  p >  a, .content-text a {
    color:lightskyblue;
}
.content-text  a:visited {
    color:rgb(165, 209, 154);
}

/* This is event section */
#feature_image img {
    padding: 1rem;
    margin-top:1rem;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 2px dashed #2e4117;
}


#top {
    padding: 1rem;
    display: flex;
    padding-top: 4.5rem;
    color: var(--secondary-color);
}

#bottom {
    padding: 1rem;
}

#feature_text {
    padding-left: 2rem;
    padding-right: 2rem;
}

#feature_text p {
    line-height: 28px;
    font-size: 1rem;
    
}


table, td {
    padding: 1rem;
    color: var(--secondary-color);
}

table {
    font-size: 1rem;
    padding-bottom: 2rem;
}

th {
    font-size: 1.3rem;
}

tr {
    height: 5rem;
}

.table-heading {
    height: 4rem;
}

.table-heading > th {
    text-transform: capitalize;
}

td > ul {
    list-style: none;
    
}

td > ul li {
    margin: 0;
}

#bottom h3 {
    padding-left: 1.5rem;
}

.notice {
    font-size: 1rem;
    padding-left: 1.5rem;
}


#socialmedia a:link {
    color:rgb(235, 239, 235);
}

#socialmedia a:visited {
    color: lightskyblue;
}

/* This is the mobile version *********************/
@media (min-width: 375px){
    body {
        position: relative;
        overflow-x: hidden;
    }

    header {
        width: 100vw;
        position: sticky;
        top:0;
    }

    main {
        position: relative;
        /* height: 100%; */
    }

    footer {
        position: relative;
        width: 100vw;
        bottom: 0;
        font-size: 1.5rem;
    }

    /* Main section */
    .mainbody {
        display: grid;
        grid-auto-rows: minmax(450px, 1fr);
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    /* Setting up the hero Section */
    .hero {
        grid-area:1/1/2/4;
        position: relative;
        /* display: grid; */
        /* grid-template-columns: 1fr 1fr; */
        /* grid-template-areas: "hero hero" 
                            "intro intro"
                            ". ."; */
    }

    .sliderContent {
        top: 120px;
        width: 600px;
        padding:15px;
        background-color: rgba(235, 239, 235, 0.7);
        z-index: 10;
        position: absolute;
    }

    .sliderContent-lg h1 {
        font-size: 2rem ;
        margin: 1rem auto;
    }

    .sliderContent-lg p {
        font-size: 12px;
    }


/* Settion up the main content styling */

    .container {
        display: grid;
        grid-template-columns: 4fr 6fr;
        grid-template-rows: 1fr;
        background-color: rgb(235, 239, 235);
        row-gap: 1rem;
    }

    .content-text {
        padding:20px;
        line-height: 2rem;
        align-self: center;
    }

/* Seeting up the position of each container */
    #gallery {
        grid-row:2 / 3; 
        grid-column: 1 /-1;
        grid-template-areas: "img1 text1";
    }

    #gallery-img{
        width:90%;
        grid-area: img1;
        place-self: center;
    }

    #news {
        grid-row: 3 / 4;
        grid-column: 1 / -1;
        grid-template-areas: "img2 text2";
    }

    #news-img {
        width:90%;
        grid-area: img2;
        place-self: center;
    }

    #volunteer {
        grid-row: 4 / 5;
        grid-column: 1 / -1;
        grid-template-areas: "img3 text3";
    }

    #vol-img {
        grid-area:img3;
        width:90%;
        place-self: center;
    }

    table {
        font-size: 2rem;
    }

    .notice {
        padding-left: 1.5rem;
        font-size: 2rem;
    }
    

    /* Footer */
    .footer-container {
        background: #2e4117;
        color: #e3ede4;
        padding:15px;
        display: grid;
        grid-template-columns:1fr 1fr;
        grid-template-rows: 50px 80px;
        grid-template-areas: "phone email"
                            "socialmedia socialmedia";
    }

    .footer-container h2 {
        display: none;
    }

    .footer-container img {
        max-width: 100%;
        height: auto;
        margin-right:20px;
    }

    #phone {
        grid-area:phone;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #email {
        grid-area:email;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #socialmedia {
        grid-row: 2 / 3;
        grid-column: 1 / 3;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        font-size: 2rem;
    }


}

/* This is the tablet version */
@media (min-width: 768px){
/* The general layout setting */
    .body-md {
        position: relative;
        height:100%;
        /* display: grid; 
        grid-template-columns: 1fr;
        grid-template-rows:1fr auto 1fr; */
    }
    main {
        overflow-y: scroll;
    }

    /* Main for tablet */
    .hero-md {
        grid-area:1/1/2/4;
    }

    .sliderContent h1 { 
        font-size: 3rem;
    }

    .sliderContent p {
        font-size: 1.5rem;
    }

    .content-text > h2 {
        font-size: 2.5rem;
        margin:0;
    } 
    .content-text h3 {
        font-size: 2rem;
        margin-bottom: 0;
    } 
    .content-text p {
        font-size: 1.3rem;
    } 

    .notice {
        padding-left: 1.5rem;
        font-size: 1.5rem;
    }
    

}


/* This is the desktop version */
@media (min-width:1200px){
    .body-lg {
        display: grid;
        justify-items: center;
        grid-template-columns: 1fr 960px 1fr;
        grid-template-rows:70px 1fr 80px;
        position: relative;
        overflow-x: hidden;
    }

    header {
        max-width: 100%;
        grid-row: 1/2;
        grid-column: 2/3;
    }

    main {
        grid-row:2/3;
        grid-column: 2/3;
    }

    footer {
        position:absolute;
        bottom: 0;
        width: 960px;
        max-width: 100%;
        grid-row: 4/5;
        grid-column: 2/3;
        z-index: 100000;
    }

    
/* navbar section  */
    .top-container {
        display:grid; 
        grid-template-columns: 40px 1fr minmax(600px,1fr) 40px;
        grid-template-areas: ". logo nav .";
    }

    .logobox {
        grid-row: 1/3;
        grid-column: 2/3;
    }

    nav {
        all:unset;
        grid-area: nav;
        padding:1rem;
    }

    nav a {
        opacity: 1;
        font-size: 1.4rem;
        position: relative;
    }

    nav a::before {
        content:"";
        display:inline-block;
        height: 120px;
        background: rgba(165, 209, 154, 0.7);
        position: absolute;
        z-index: -1;
        top:-3em;
        left: 0;
        right: 0; 
        transform: scale(1,0);
        transform-origin: top;
        transition: transform ease-in-out 0.25s;
    }

    nav a:hover::before {
        transform:scale(1,1);
    }
    
    nav ul {
        display: flex;
        justify-content: space-around;
    }

    nav li {
        margin-bottom: 0;
        margin-left:5em ;
    }

    .nav-toggle-label span {
        display: none;
    }

/* Main section on Desktop */
    .mainbody {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows:1fr 80px 1fr;;
        grid-template-areas: "hero hero hero"
                            "overlay overlay overlay"
                            "gallery news volunteer";
    }

    .hero-lg {
        grid-row: 1/3;
        position: relative;
    }

    .sliderContent-lg {
        grid-row:2/3;
        grid-column:2/3;
        position: absolute;
        z-index: 10;
    }

    .sliderContent-lg > h1 {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom:10px;
    }
    .sliderContent-lg > p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    

    #gallery {
        grid-row: 2/5;
        grid-column: 1 /2;
    }

    #news {
        grid-row: 2/5; 
        grid-column: 2/3;
    }

    #volunteer {
        grid-row: 2/5;
        grid-column: 3/4;
    }

    /* Setting up the three content section  */
    .container-lg {
        display: grid;
        grid-template-columns:20px repeat(3, 1fr) 20px;
        grid-template-rows: 200px 150px minmax(350px, auto);
        position: relative;
        background: none;
    }

    #gallery-img, #news-img, #vol-img {
        grid-row:1/3;
        grid-column:2/5;
        width:18em;
        position: absolute;
        z-index: 100;
    }

    #news-img{
        width: 21em;
    }
    
    .content-text{
        grid-row:2/3;
        grid-column:2/5;
        padding-top:150px;
        display: grid;
        align-self: flex-start;
        background-color: rgb(235, 239, 235);
    }

    .content-text h2, .content-text h3, .content-text p {
        margin:0;
        margin-top:10px;
    }

    .content-text h2 {
        font-size: 1.5rem;
    }

    .content-text h3 {
        font-size: 1.3rem;
    }
    .content-text p {
        font-size: 1rem;
    }
    

    table {
        font-size: 1rem;
    }

    .notice {
        padding-left: 1.5rem;
        font-size: 1rem;
    }
    

    /* Footer */
    .footer-lg {
        display: flex;
        justify-content: space-evenly;
        gap: 1rem;
    }

    .footer-lg h2 {
        display:block;
        font-size:2rem;
    }


    #phone p, #email p {
        font-size: 1rem;
    }

    #socialmedia {
        display: flex;
    }
    .footer-lg h2 {
        margin: 0;
    }

}