*, 
*:before, 
*:after{
    box-sizing: border-box;
}
html{
    font-size: 16px;
}
body{
    margin: 0;
    padding:0;
    background-color: #D8C381;
    text-align: center;
    background-image: url(../assets/images/Background.jpg);
    font-family:"neue-kabel";
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
}
#myBtn {
    display: none;
    position: fixed;
    bottom: 40%;
    right: 30px;
    z-index: 99;
    font-size: 1.5rem;
    text-align: center;
    background-color: rgba(191, 124, 42, 0.5);
    color: #2a2c1c;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }
  
#myBtn:hover {
    background-color: #555;
}
p{
    font-family:"neue-kabel";
}
#twitter_logo, #instagram_logo{
    width: 5%;
}
#facebook_logo{
    width: 2.9%;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1;
   
}
#header-logo{
    padding-left: 2%;
}
header{
    padding-top: 2%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    display: flex;
    font-weight: 600;
    font-style: normal;
    gap: 1rem;
    flex-direction: column;
    
}
#navigation{
    background-color: #2a2c1c;
    padding-right: 4rem;
    z-index: 2;
    
}
.navigation-links{
    display: flex;
    gap: 4rem;
    justify-content: end;
    z-index: 3;
}

#toggle, #toggle-label {
    display: none;
    cursor: pointer;
}

.navigation-links a{
    color: #d8c381;
    text-decoration: none;
}
.navigation-links a:hover{
    color: #F3CB52;
}

nav {
    flex-wrap: wrap;
    height:60px;
    color: #d8c381;
    text-align: center;
    text-align: right;
    line-height: 60px;
    font-size: 1.3rem;
}

#header-slideOne, #header-slideTwo, #header-slideThree {
    height: 520px;  
    text-align: center;
    flex-wrap: wrap;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-direction: column;
    background-size: cover;
    background-repeat: no-repeat;
      
}
#header-slideOne{
    background-image: url(../assets/images/header_slide1.png);
    background-position: center;

}
#header-slideTwo{
    background-image: url(../assets/images/header_slide2.png); 
    background-position: top;
}
#header-slideThree{
    background-image: url(../assets/images/header_slide3.png);   
    background-position: top;
}

.prev, .next {
    color:#f3cb52;
    background-color: rgba(54, 65, 28, .5);
    transition: backgroundcolor 0.2s ease;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.6s ease;
    border-radius: 50%;
    line-height: 50px;
    top: 60%;
    position: absolute;
    box-shadow: 0px 0px 10px rgba(104, 105, 103, 0.5);
    
}

.prev { 
    left: 10%;
}

.next {
    right: 10%;
}
.prev:hover, .next:hover{
    color: #2a2c1c;
    border: 2px solid #2a2c1c;
    background-color: transparent;
}
.dot {
    cursor: pointer;
    height: 20px;
    width: 20px;
    background-color: rgba(54, 65, 28, .5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;   
}
  
.slider { 
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
}  

.active, .dot:hover {
    background-color: #2a2c1c;;
} 

.fade {
    animation-name: fade;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}  

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}


h1{
    color:#2a2c1c;
    font-family:"sharktooth";
    font-weight: 900;
    font-size: 4rem;
}

#slide_text{
    font-weight: 600;
    font-size: 1.5rem;
    color: #2a2c1c;
}

.button{   
    font-size: 1.5rem;
    text-align: center;
    width: 200px;
    height: 50px;
    line-height: 50px;
    border-radius: 10px;
    color: #F3CB52;
    background-color: #2a2c1c;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease-in-out;
}
.button{
    margin-left: auto;
    margin-right: auto;
}

.button:hover{
    color: #2a2c1c;
    background-color: #F3CB52;
}

main{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/*section 1 - history*/
.history_section{
    margin-top: 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
h2{
    font-size: 3rem;
    font-family:"sharktooth";
    font-weight: 900;
    color: #2a2c1c;
    
}
h3{
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 3%;
}

.history_info{
    background-color: #3A4119;
}

.history_wrap{
    padding: 5%;
    display: flex;
    flex-direction: row;
    gap: 5rem;
    
}
#histort_text{
    font-size: 1.5rem;
    text-align: left;
    color: #D8C381;
    line-height: 35px;
}

#port_hope{
    width: 50%;
    height: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}


/*section 2 - gallery*/
.gallery_section{
    margin: auto;
    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;

}
h4{
    font-family:"neue-kabel";
    font-weight: 400;
    font-size: 1.6rem;
    color: #F3CB52;
    margin-bottom: 2%;   
}
.gallery_button{
   width: 90%;
   
}
.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 100px;
}
.image_derby{
    background-image: url(../assets/images/Gallery_Derby.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.image_rides{
    background-image: url(../assets/images/Gallery_Rides.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.image_market{
    background-image: url(../assets/images/Gallery_Market.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.image_agriculture{
    background-image: url(../assets/images/Gallery_Agriculture.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.container .custom-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 250px;
    max-width: 100%;
    height: 280px;
    background: #3A4119;
    border-radius: 20px;
    transition: 0.5s;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15);
    font-family: "NeueKabelMed";
}
.container .custom-card:hover {
    height: 300px;
}
.container .custom-card .img-box {
    position: absolute;
    top: 20px;
    width: 200px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.5s;
}
.container .custom-card:hover .img-box {
    top: -60px;
    scale: 0.75;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}
.container .custom-card .img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}
.container .custom-card .custom-content {
    position: absolute;
    top: 200px;
    width: 100%;
    height: 60px;
    text-align: center;
    overflow: hidden;
    transition: 0.5s;
   
}
.container .custom-card:hover .custom-content{
    top: 100px;
    height: 250px;
 
}
.container .custom-card .custom-content h4{
    margin-top: 12%;
}
.container .custom-card .custom-content p {
    color: #d8c381;
    text-align: center;
    font-size: 1rem;
    margin: auto 20px auto 20px;
}
.container .custom-card .custom-content a {
    position: relative;
    top: 20px;
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    background: #2a2c1c;
    color: #D8C381;
    font-weight: 600;
    font-family:"neue-kabel";

}
.container .custom-card .custom-content a:hover{
    background: transparent;
    border: 1px solid #F3CB52;
}

/*section 3 - vendor*/
.vendor_section{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.vendor_background{
    height: 600px;
    background-image: url(../assets/images/Vendor.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;  
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2%;

}
#headline{
    color: #F3CB52;
}
#vendor_text{
    color: #D8C381;
    font-size: 1.8rem;
}

/*form*/

.form_headline{
    margin: 2% auto 2% auto;
}

.volunteer-form {
    padding: 1rem;
    background-color: transparent;
    box-shadow: 0px 0px 10px rgba(104, 105, 103, 0.5);
}
 
.form-group {
    margin-bottom: 1rem;
}
  
.form-label  {
    display: block;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #3A4119;
    text-align: left;
    margin-left: 1rem;
}
  
.form-input{
    font-style: italic;
    color: #3A4119;
    border: 2px solid #2a2c1c;
    background-color: transparent;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.5rem;
    background-color: transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #3A4119;
}
.form-input::placeholder{
    color: #2a2c1c;
    text-indent: 10px;
}
.form-radio-group {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-left: 1rem;
}
  
.form-radio-item {
    margin-bottom: 0.5rem;
}
  
.form-radio-label {
    margin-left: 0.5rem;
    font-size: 1rem;
    color: #3A4119;
}
.submit_button{
    margin-top: 5%;
}
.button a{
    text-decoration: none;
}
#banner_ad{
    height: 500px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*footer*/
footer {
    padding: 3rem 4rem 0.5rem 4rem;
    background-image: url(../assets/images/Footer_Image.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;  
    display: grid;
    grid-template-areas: 
    "contact subscribe logobox"
    "contact footerLinks logobox"
    "copyright copyright copyright"
    ;
    gap: 3rem;
}

.contact {
    height: 220px;
    border-right: 3px solid #D8C381 ;
    grid-area: contact;
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

h5 {
    color: #d8c381;
    font-size: 1.2rem;
    text-align: left;
    font-family:"neue-kabel";
    
}

h6{
    color: #d8c381;
    font-size: 1.1rem;
    text-align: left;
    font-family:"neue-kabel";
}

.footericons{
    display: flex;
    gap: 1rem;
    align-items: center;
}

 
.logobox {
    grid-area: logobox;
    justify-self: end;
}

.subscribe {
    grid-area: subscribe;
    font-size: 1rem;
    font-family:"neue-kabel";
    color: #d8c381;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 40px;
}

.subscribe [type=text] {
    height: 45px;
    text-indent: 10px;
    font-family:"neue-kabel";
    border: 1px solid #d8c381;
}

.text{
    text-align: left;
    font-size: 1.5rem;
    font-family:"neue-kabel";
}

#subscribe::placeholder{
    font-style: italic;
    color: #D8C381;
}
#subcribe_button {
    width: 100px;
    text-decoration: none;
    background-color: #D8C381;
    color: #2a2c1c;
    border: 1px solid #F3CB52;
}
#subcribe_button:hover {
    color: #d8c381;
    background-color: #2a2c1c;
}


.footer_links {
    color: #d8c381;
    text-align: left;
    grid-area: footerLinks;
    display: flex;
    gap: 2rem;
    
}
.footer_links a {
    font-family:"neue-kabel";
    color: #d8c381; 
    text-decoration: none;
    
}
.footer_links a:hover {
    text-decoration: underline;
    color: #f3cb52;
    
}
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

.copyright {
    
    grid-area: copyright;
    color: #d8c381;
    font-size: 1rem;
    text-align: center;
    font-family:"neue-kabel";
    
}






/**************************************************************




     FOR MOBILE




**************************************************************/

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

    #toggle-label {
        display: flex;
        background-color: #2a2c1c;
        font-size: 3rem;
    }
    #myBtn {
        bottom: 10%;
    }
    #header-logo{
        padding-left: 0;
    }

    header {
        flex-direction: row;
        justify-content: space-around;
        align-items: end;

    }
    #navigation{
        padding: 0%;
        height: 40px;
    }
    nav {
        text-align: right;
        line-height: 30px;
    }
    .navigation-links {
        
        display: none;
        flex-direction: column;
        position: fixed;
        background-color: #2a2c1c;
        border-left: 20px solid #f3cb52;
        right: 0;
        top: 11rem;
        width: 50%;
        z-index: 1000;
        text-align: right;
        padding: 5%;
    }

    #toggle:checked + .navigation-links {
        display: flex;
    }

    #header-slideOne, #header-slideTwo, #header-slideThree{
        height: 600px; 
    }
    #header-slideOne{
        background-position:  left;
    }
    #header-slideTwo{
        background-position:  right;
    }
    .prev, .next {
        top: 30%;
    }

    h2{
        font-size: 2.5rem;
        margin-bottom: 15%;
    }
    .history_section{
        gap: 2rem;
    }
    #headline{
        margin-bottom: 0;
    }
    #headline_gallery{
        margin-bottom: 0%;
    }
    .history_wrap{
        padding: 5%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: space-around;
    }
    #histort_text{
        text-align: center;
        margin-top: 20%;
    }
    #port_hope{
        margin: -20%;
        align-self: center;
        font-size: 1rem;
    }
    .form_headline{
        margin: 3% auto 0% auto;
    }
    #vendor_text{
        font-size: 1.2rem;
        margin-bottom: 1%;
    }
    footer {
        padding: 2rem 1rem 0.5rem 1rem;
        grid-template-areas: 
        "subscribe subscribe subscribe"
        "contact footerLinks logobox"
        "copyright copyright copyright"
        ;
        gap: 3rem;
    }
    .subscribe {
       align-items: center;
    }

    .logobox {
        justify-self: center;
    }
    .footer_links {
        text-align: left;   
        flex-direction: column;
        justify-content: right;
        
    }

}

/* End of Mobile Styles */




/**************************************************************




     FOR TABLET




**************************************************************/

@media screen and (min-width: 641px) and (max-width:1024px) {


    #toggle-label {
        display: flex;
        background-color: #2a2c1c;
        font-size: 3rem;
    }

    #header-logo{
        padding-left: 0;
    }

    header {
        flex-direction: row;
        justify-content: space-around;
        align-items: end;

    }
    #navigation{
        padding: 0%;
        height: 40px;
    }
    nav {
        text-align: right;
        line-height: 30px;
    }
    .navigation-links {
        
        display: none;
        flex-direction: column;
        position: fixed;
        background-color: #2a2c1c;
        border-left: 20px solid #f3cb52;
        right: 0;
        top: 11rem;
        width: 50%;
        z-index: 1000;
        text-align: right;
        padding: 5%;
    }

    #toggle:checked + .navigation-links {
        display: flex;
    }

    #header-slideOne, #header-slideTwo, #header-slideThree{

        height: 600px;  
    }
    h2{
        margin-bottom: 15%;
    }
    .history_section{
        gap: 4rem;
    }
 
    .history_wrap{
        padding: 5%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: space-around;
    }
    #histort_text{
        text-align: center;
        margin-top: 20%;
    }
    #port_hope{

        margin: -20%;
        align-self: center;
        font-size: 1rem;
    }
    footer {
        padding: 2rem 1rem 0.5rem 1rem;
        grid-template-areas: 
        "subscribe subscribe subscribe"
        "contact footerLinks logobox"
        "copyright copyright copyright"
        ;
        gap: 2rem;
    }
    .subscribe {
       align-items: center;
    }
    .logobox {
        justify-self: center;
    }

    .footer_links {
        text-align: left;   
        flex-direction: column;
        justify-content: right;
        
    }

}