*, 
*: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);
    background-attachment: fixed;
    font-family:"neue-kabel";
    background-size: cover;
    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%;
    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_image{
    background-image: url(../assets/images/gallery/gallery_header.png);
    background-position: center;
    height: 300px;  
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
      
}
h1{
    font-size: 3rem;
    padding-top: 4%;
    margin-bottom: 1%;
    color:#2a2c1c;
    font-family:"sharktooth";
    font-weight: 900;
    font-size: 3rem;
    
}
h2{
    font-size: 1.5rem;
    font-weight: 600;
    color: #2a2c1c;
    
}
h3{
    font-size: 2rem;
    font-weight: 600;
}
.button{   
    font-size: 1.5rem;
    text-align: center;
    width: 90%;
    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: auto;
    display: grid; 
    grid-template-areas:
        "derby derby derby"
        "rides rides rides" 
    ;
    gap: 2rem;

}

.container_derby{
    grid-area: derby;
}
.container_rides{
    grid-area: rides;
}

.wrapper{
    padding: 2%;
    width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.container > div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #ffeead;
    overflow: hidden;
}

.container > div > img {
    width: 100%;
    height: 100%;
}

.container {
    padding: 2%;
    background-color: #3A4119;
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 100px;
    grid-auto-flow: dense; 

}

.horizontal {
	grid-column: span 2;
}

.vertical {
	grid-row: span 2;
}

.big {
	grid-column: span 2;
	grid-row: span 2;
}

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.1;
    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;
}
  
.form-input{
    width: 100%;
    border-radius: 0.5rem;
    font-style: italic;
    color: #3A4119;
    border: 2px solid #2a2c1c;
    background-color: transparent;
}

.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_image{
        height: 200px;  
    }
    .wrapper{
        width: auto;
    }
    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_image{
        height: 300px;  
    }
    .wrapper{
        width: auto;
    }
    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;
        
    }
    
}