
* {
    box-sizing: border-box; 
}

body {
    text-align: center;
    color: black;
    margin: 0; 
    background: white; 
    font-size: 16px; 
    font-family: Calibri, sans-serif;
}

h1 {
    font-size: 72px;
    color: rgb(5, 255, 59);
    text-shadow: 0 1px 0 #ccc,
               0 2px 0 #c9c9c9,
               0 3px 0 #bbb,
               0 4px 0 #b9b9b9,
               0 5px 0 #aaa,
               0 6px 1px rgba(0,0,0,.1),
               0 0 5px rgba(0,0,0,.1),
               0 1px 3px rgba(0,0,0,.3),
               0 3px 5px rgba(0,0,0,.2),
               0 5px 10px rgba(0,0,0,.25),
               0 10px 10px rgba(0,0,0,.2),
               0 20px 20px rgba(0,0,0,.15);
}

h2 {
    font-size: 52px;
    color: rgb(40, 84, 228);
    letter-spacing: 0.065em; 
}

h3 {
    font-size: 25px;
    color: rgb(40, 84, 228);
    padding-top: 40px; 
}

h4 {
    font-size: 15px;
    color: rgb(40, 84, 228);
    padding-top: 10px; 
}

img { 
    max-width: 100%; 
}

/* Top navigation bar ----------- */ 

.heading-tags {
    height: inherit; 
    color: rgb(101, 156, 207); 
    background-color: rgb(40, 84, 228); 
    text-align: left; 
    text-orientation: upright; 
    padding: 15px 20px; 
    word-spacing: 60px; 
    width: 100%;  
    padding-top: 1.5px; 
    font-size: 20px; 
}

.heading-tags a:link {
    color: white; 
}

.heading-tags .top-heading:hover {  /* have to specify specific class within overall class for hover effect ----------- */ 
    color:rgb(133, 231, 255); 
    border-width: thick; 
    border-color: rgb(133, 231, 255); 
}

.heading-tags a:visited {
    color: white; 
}

.top-heading { 
    padding: 0px 16px; 
    border-right: solid rgb(4, 95, 4) 1px; 
    border-left: solid rgb(4, 95, 4) 1px; 
    border-left-color: white; 
    border-right-color: white; 
    border-width: thick; 
    font-weight: bold; 
}

.main-header {
    padding-top: 170px; 
    height: 850px; 
    display: block;
    background-image: linear-gradient(0deg, #fff, transparent), 
                      url('../Image/Cover_Photo.jpg');
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
}

.main-text {
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */
    color: white;
    font-weight: bold;
    border: 3px solid #f1f1f1;
    position: relative; /* This is so that the highlighted heading will be relative to the picture background. And not at an absolute location on page */
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    padding: 20px;
    text-align: center;
    background-position: center; 
    background-size: cover; 
}

p {
    font-size: 20px; 
    color: black; 
}

.event-list {
    border: 3px solid rgb(40, 84, 228); 
    padding-bottom: 20px; 
    padding-top: 20px; 
    text-align: center; 
}

.main-footer { 
    background: linear-gradient(0deg, rgb(49, 220, 243), transparent); 
    background-size: cover; 
    padding: 20px 0px 0px; 
    box-sizing: inherit; 
    display: block;
    height: 400px; 
}

#bottom-logo {
    background-position: left 95%;
    background-repeat: no-repeat; 
    height: 100px; 
    float: left; 
    padding-left: 70px; 
    padding-bottom: 10px; 
}

.mainpage-logo {
    padding-bottom: 150px; 
}

.mainpage-logo span { 
    padding-left: 20px;
    padding-right: 20px; 
    margin-top: 20px; 
    margin-bottom: 20px; 
    padding-bottom: 20px; 
    padding-top: 20px; 
    text-align: center; 
}

.mainpage-logo p {
    margin: 20px 40px; 
}

.mainpage-logo .about {
    border-bottom: 5px solid rgb(40, 84, 228); 
    padding-bottom: 10px; 
}

/* Events page ----------- */ 

#newest_event {
    display:inline-block; 
    text-align: left; 
}

#navigation {
    text-align: left; 
    height: 700px; 
    float: left; 
    border-right: 3px solid #dfe2e6; 
    padding-top: 80px; 
    padding-bottom: 70px; 
    overflow: visible; /* Mean even if the words extend out of the box range, will still be shown  ----------- */ 
    margin: auto;
    padding-right: 65px; 
    background-size: cover;
    text-align: center; 
}

#navigation #anchor {
    padding-bottom: 15px; 
    display: block; 
    border-bottom: none; 
}

#navigation #anchor:hover {
    color: rgb(49, 220, 243);
    transform: scale(1.2); 
}

#navigation h3 {
    border-bottom: 2px solid rgb(40, 84, 228); 
    padding-bottom: 10px; 
    margin-bottom: 50px; 
}

#navigation h4:hover {
    color: rgb(49, 220, 243);
}

.event-secondary-content {
    padding-top: 30px; 
    padding-bottom: 200px; 
    overflow: auto; /* Means that if overflow is clipped, a scroll-bar will be added to see the rest of the content----------- */ 
    margin: auto;  /* Means that the browser will calculate the margin ----------- */ 
    padding-left: 10px;
    padding-right: 10px; 
    width: 90%;  
}

.event-fair {
    float: right; 
    max-width: 800px; 
    padding-top: 70px;
    padding-right: 7%;
    padding-left: 7%; 
    padding-bottom: 20px; 
    right: 40%; 
    background: rgb(255, 246, 196); 
    display: center; 
    margin-bottom: 100px; 
}

.event-photo {
    border-radius: 50%; 
    height: 350px; 
    width: 350px; 
}


/* Gallery options ----------- */ 

.primary-content {
    width: 75%;
    padding-left: 50px;
    padding-right: 50px;
    margin: auto;
    max-width: 960px;
}

.intro {
    font-size: 1.25em; /* 20px/16px */
    line-height: 1.6;  
    list-style-position: inside; 
    text-align: left; 
    display: inline-block; 
  }

#bullet-points {
    line-height: 1.6;  
    list-style-position: inside; 
    text-align: left; 
    display: center; 
    padding-left: 22.5%; 
    word-spacing: 3px; 
    font-size: 1.25em;
}

.selections {
    display: flex;
    padding-bottom: 70px;
    padding-top: 40px; 
}

.environmental-fair {
    border-top: 10px solid rgb(40, 84, 228);
    margin-left: 10%;
    margin-right: 10%;
    background: #434a52 url('../Image/fair5.jpg') no-repeat center;
    background-size: cover;
    box-shadow: inset 0 0 120px 70px rgba(0,0,0, .8);
    border-radius: 10px;
    width: 500px;
    height: 500px; 
    display: inline-block;
    text-align: center;
    padding: 7% 3%;
}

#main-lessons {
    background: #434a52 url('../Image/city-lesson1.jpg') center;
}

#main-donation {
    background: #434a52 url('../Image/donation12.jpg') center;
}

#main-game {
    background: #434a52 url('../Image/game30.jpg') center;
}

#school-fair {
    background: #434a52 url('../Image/school-fair2.jpg') no-repeat center;
}

.environmental-fair h3 , .environmental-lessons h3 {
    font-size: 27px;
    color: rgb(8, 216, 253);
    padding-top: 40px; 
    text-shadow: 2px 2px rgb(40, 84, 228, .9); 
    border-bottom: 5px solid rgb(40, 84, 228); 
    padding-bottom: 5px; 
}

.environmental-fair p , .environmental-lessons p {
    color: white; 
    text-shadow: 2px 2px rgb(40, 84, 228, .9); 
}

.environmental-fair a , .environmental-lessons a {
    text-shadow: 2px 2px rgb(40, 84, 228, .9); 
    font-weight: bold;
}


.environmental-lessons {
    color: white;
    text-align: center;
    padding: 7% 3%;
    border-top: 10px solid rgb(40, 84, 228);
    margin-right: 10%;
    background: #434a52 url('../Image/fair5.jpg') no-repeat center;
    background-size: cover;
    box-shadow: inset 0 0 120px 70px rgba(0,0,0, .8);
    border-radius: 10px;
    width: 500px;
    height: 500px; 
    display: inline-block;
}

/* Environmental Awareness Fair page  ----------- */ 

.primary-content .underline {
    border-bottom: 3px solid rgb(40, 84, 228);
    font-size: 28px; 
}
.environmental-fair-page {
    border-top: 10px solid rgb(40, 84, 228);
    margin-left: 1.7%;
    margin-right: 1.7%;
    width: 400px; 
    height: 200px;  
    position: relative;   
    display: flex; 
}

.environmental-fair-page img {
    width: 440px;
    height: 460px; 
    overflow: auto; 
    background-size: cover; 
    object-fit: cover;  /* let picture fit into the box ---- */ 
}

.environmental-fair-page:hover {
    border-color: #ff99ff;
    transform: scale(1.2); 
    transition: all 0.3s ease-in-out; 
}

#class-fair {
    background: #434a52 url('../Image/class-fair1.jpg') no-repeat center;
}

#sub-school-fair {
    background: #434a52 url('../Image/school-fair2.jpg') no-repeat center;
    margin-left: 31%;
}

#county-fair { 
    background: #434a52 url('../Image/envi-fair12.jpg') center;
}
}
/* Side by side view on Homepage ----------- */ 


.group1 {
    box-shadow: 0 0 50px 10px rgba(0,0,0, .8);
    border-radius: 30px;
    float: left; 
    margin-right: 10%; 
    width: 46%;  
}

.group1 img {
    max-width: 500px; 
    float: left; 
    margin-right: 10%; 
    margin-left: 1%; 
    width: 46%; 
    box-shadow: 0 0 50px 10px rgba(0,0,0, .8);
    border-radius: 30px;
    margin-top: 130px; 
}

#group1 img {
    max-width: 500px; 
    float: left; 
    margin-right: 10%; 
    margin-left: 1%; 
    width: 46%; 
    box-shadow: 0 0 50px 10px rgba(0,0,0, .8);
    border-radius: 30px;
    margin-top: 70px; 
}

.group2 {
    float: right; 
    max-width: 450px; 
    padding-top: 110px;
    padding-left: 10px; 
}

.group3 {
    float: right; 
    margin-left: 10%; 
    width: 46%; 
}

.group3 .photo {
    box-shadow: 0 0 50px 10px rgba(0,0,0, .8);
    border-radius: 30px;
}

.group4 {
    float: left; 
    max-width: 450px; 
    padding-top: 60px;
    padding-right: 5px; 
}

.secondary-content {
    padding-top: 80px; 
    padding-bottom: 50px; 
    overflow: auto; 
    margin: auto;
    padding-left: 10px;
    padding-right: 10px; 
    width: 90%;  
}

.group {
    content: ""; 
    display: table; 
    clear: both; 
}

.t-border {
    border-top: 2px solid #dfe2e6; 
}

#top_background {
    background-image: linear-gradient(white 7%, rgb(6, 40, 189))
}

#top_background p {
    color: white; 
}

#top_background a {
    color: white; 
}

#top_background h2 {
    padding-top: 30px;
}

#t-border-top {
    border-top: 2px solid #dfe2e6; 
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-left: 100px;
    border-right: 100px;  
    background-color:rgb(133, 187, 236); 
}

#shadow {
    text-shadow: 2px 2px white;
    line-height:160%;
}

#t-border-top h2 {
    color:rgb(247, 56, 8); 
} 

.mainpage-logo video { 
    border: 10px solid white; 
}

.t-border-ending {
    border-bottom: 2px solid #dfe2e6; 
}

/* Link personalization ----------- */ 

a {
    color: rgb(1, 17, 245); 
    font-size: 1.25em; 
    border-bottom: 3px solid; 
    padding: 0 9px 3px; 
    margin-top: 20px; 
    display: inline-block; 
}

a, u {
    text-decoration: none; 
}

a:link {
    color: rgb(1, 17, 245); 
}

a:visited {
    color: rgb(1, 17, 245); 
}

a:hover {
    color: rgb(2, 102, 196);  
}


/* Donations page ----------- */ 

#donation {
    background: rgb(49, 220, 243); 
    box-shadow: 0 15px 20px -12px rgb(49, 220, 243); 
}

/* Event Cards ----------- */ 

.card {
    margin: 30px;
    padding: 20px 40px 40px;
    width: 440px;       /* set specific width for cards so all are same size ----------- */ 
    max-height: 420px; 
    text-align: center;
    background: rgb(181, 250, 140);
    border-bottom: 4px solid #ccc;
    border-radius: 6px;
    overflow-wrap: break-word; 
    transition: all 0.3s ease-in-out; 
    padding: 5px; 
    filter: blur(0); 
    box-shadow: 0 15px 20px -12px rgb(183, 253, 18); 
    word-wrap: break-word; 
    overflow: scroll;  /*or it can be hidden */ 
    font-size: 90%; 
  }

.card-image {
    padding: 10px; 
}

.card .js-click ol {
    display:none; 
}

.card .js-click:active ol {
    display:block; 
    color:black; 
}
.card .js-click:link ol {
    display:block; 
    color:black; 
}

.card .js-click:focus ol {
    display:block; 
    color:black; 
}

.card .js-click:visited ol {
    display:block; 
    color:black; 
}

.card:hover {
    border-color: rgb(49, 220, 243);
    transform: scale(1.2); 
}

.card:active {
    border-color: rgb(49, 220, 243);
    transform: scale(1.2); 
    max-height: 500px; 
    text-align: center; 
    background: rgba(252, 235, 163, 0.911); 
}

.card:focus {
    border-color: rgb(49, 220, 243);
    transform: scale(1.2); 
    max-height: 500px; 
    text-align: center; 
    background: rgba(252, 235, 163, 0.911); 
}

.card:visited {
    border-color: rgb(49, 220, 243);
    transform: scale(1.2); 
    max-height: 500px; 
    text-align: center; 
    background: rgba(252, 235, 163, 0.911); 
}

.complete-cards:active .card:not(:active) { /*this is to blur the background*/ 
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    filter: blur(4px);
  }

.complete-cards:focus .card:not(:focus) { /*this is to blur the background*/ 
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    filter: blur(4px);
  }

.visiting-link {
    font-size: 16px; 
    border: 4px dotted rgb(14, 233, 14); 
    padding: 10px; 
    text-align: center; 
}


  @media screen and (min-width: 720px) {
  
.all-cards {
    display: flex;
    max-width: 1200px;
    justify-content: flex-start;
    margin: 0 auto;
}
    
header {
    min-height: 450px;
}

.nav {
    max-width: 1200px;
}

.nav .name {
    display: block;
    margin-right: auto;
    color: white;
}

main {
    padding-top: 50px;
}

main p {
    line-height: 1.6em;
}

}


/* Media Queries  ----------- */ 
/*
@media (max-width: 960px) {  /* So within the ( ), computer will check if the screen parameter fits the ( ) description ---- 
    body {
        background: blue; 
    }
    p {
        color: white; 
    }
}
*/

@media only screen and (max-device-width: 1024px) { 
    .primary-content, .secondary-content{
        width: 100%;
        height: 640px;
        background: white;
        display: inline-block; 
        display:block; /*have to insert the overall command here to make each element take up whole width of the page */ 
        overflow:visible; /* prevents scroll bar from appearing */ 
    }

    .main-header {
        max-height: 560px; 
        padding: 10px 15px 0; 
        background-size: cover; 
    }

    .heading-tags {
        max-height: 300px; 
        padding: 30px 45px; 
        font-size: 0.8rem; 
        display: stretch; 
    }

    .main-text {
        max-height: 490px; 
        padding: 13px 20px 13px; 
        font-size: 2.7rem; 
        position: relative; 
    }

    .title {
        font-size: 1.3rem; 
    }

    .mainpage-logo {
        margin: 15px 15px; 
        font-size: 1rem; 
    }

    .about {
        font-size: 2rem; 
        padding-bottom: 10rem; 
    }

    h1 {
        font-size: 5rem; 
        line-height: 1.1; 
    }

    .intro {
        font-size: 1rem; 
    }

    .video {
        width: 500px;
        height: 400px; 
    }
    
    .main-footer {
        padding: 20px 0; /*top and bottom padding is 20px */ 
    }

    .group {
        display: center; 
        margin-top: 330px; 
        margin-left: 10px; 
        margin-right: 10px; 
    }

    .group .group1 { 
        margin-top: 50px;  
        display: block; 
        width: 100%; 
        margin: 10px 0;  
        overflow: visible;  /*basically states the content is not clipped, if overflow, will just go outside the element's box */ 
    }
    
    .group1 .photo {
        margin-top: 110px; 
        display: center; 
        float: none; 
        width: 80%; 
        margin: 10px 0; 
        box-shadow: 0 0 50px 10px rgba(0,0,0, .8);
        min-width: 400px;
        border-radius: 10px;
        overflow: visible;
    }

    #group1 img {
        margin-top: 110px; 
        display: center; 
        float: none; 
        width: 80%; 
        margin: 10px 0; 
        box-shadow: 0 0 50px 10px rgba(0,0,0, .8);
        min-width: 400px;
        border-radius: 10px;
        overflow: visible;
    }
    
    .group2 {
        margin-top: 0;
        margin: 10px 0; 
        width: 100%;  
        display: block; 
        max-width: 350px;  
        overflow: visible;
    }
    
    .group .group3 {
        margin-top: 50px;  
        display: block; 
        width: 100%; 
        margin: 10px 0;  
        overflow: visible;
    }
    
    .group3 .photo {
        margin-top: 160px; 
        display: center; 
        float: none; 
        width: 80%; 
        margin: 10px 0; 
        box-shadow: 0 0 50px 10px rgba(0,0,0, .8);
        min-width: 400px;
        border-radius: 10px;
        overflow: visible;
    }
    
    .group4 {
        margin: 10px 0; 
        float: none; 
        display: center; 
        max-width: 350px;  
        overflow: visible;
        margin-bottom: 0; 
    }

    .t-border-ending {
        border-bottom: 2px solid #dfe2e6; 
        margin-bottom: 300px; 
    }

    .card {
        width: 100%; 
        padding: none; 
        display: inline-block; 
    }

    .environmental-fair {
        margin-left: 2%;
        margin-right: 4%;
        padding: 4% 1%;
    }

    #sub-school-fair {
        margin-left: 8%; 
    }
}