/* Animations */

@keyframes arrow-bounce{
    0%{
        opacity: 50%;
        bottom: 70px;
    }
    10%{
        opacity: 100%;
        bottom: 80px;
    }
    20%{
        opacity: 100%;
        bottom: 65px;
    }
    30%{
        opacity: 50%;
        bottom: 70px;
    }
    100%{
        opacity: 50%;
        bottom: 70px;
    }
}

@keyframes line-anim{
    to{
        stroke-dashoffset: 0;
    }
}

/* Unique Header Style for Homepage */

header{
    padding-bottom: 0 !important;
}

/* Main Content CSS */

.main{
    display: flex;
    justify-content: center;
    height: 800px;
    max-height: 800px;
    position: relative;
}

/* SVG Logo Background */

.main-logo{
    width: 100%;
    position: relative;
}

.down-arrow{
    position: absolute;
    left: 50%;
    bottom: 70px;
    z-index: 20;
    width: 50px;
    transform: translateX(-50%);
    opacity: 50%;
    animation: arrow-bounce 5s ease infinite 3s;
}

.more-btn img{
    width: 100%;
}


.bike-header-img{
    position: absolute;
    width: 900px;
    bottom: 0;
}

.bike-header-img img{
    width: 100%;
    transform: scaleX(-1);
}

/* SVG Logo & Animation */

#bike path{
    animation: line-anim 5s ease forwards;
}

#bike path:nth-child(1){
    stroke-dasharray: 1184;
    stroke-dashoffset: 1184;
    
}

#bike path:nth-child(2){
    stroke-dasharray: 617;
    stroke-dashoffset: 617;
    
}

#bike path:nth-child(3){
    stroke-dasharray: 1175;
    stroke-dashoffset: 1175;

}

#bike path:nth-child(4){
    stroke-dasharray: 947;
    stroke-dashoffset: 947;

}

#bike path:nth-child(5){
    stroke-dasharray: 1176;
    stroke-dashoffset: 1176;

}

#bike path:nth-child(6){
    stroke-dasharray: 617;
    stroke-dashoffset: 617;

}

#bike path:nth-child(7){
    stroke-dasharray: 1329;
    stroke-dashoffset: 1329;

}

#bike path:nth-child(8){
    stroke-dasharray: 1124;
    stroke-dashoffset: 1124;

}


/* Offers */

.offers{
    margin: 0 0 50px 0;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-family: var(--lato-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    background: url(https://www.josephdesigns.co.uk/assets/portfolio-sites-assets/bike-king-borders-assets/mountain-range-01.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.offers h1{
    text-align: center;
}

/* Offer Cards */

.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card{
    width: 325px;
    height: 625px;
    background-color: var(--transparent-brown);
    backdrop-filter: blur(15px);
    padding: 2em;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 20px;
    text-decoration: none;
    color: var(--white);
    transition: 0.3s ease-in-out;
    box-shadow: 2px 2px 5px rgb(0, 0, 0, 0.50);
    box-sizing: content-box;
}

.card-title{
    height: 100px;
    margin-bottom: 20px;
}

.card .price{
    color: var(--black);
    margin-top: 5px;
    background: var(--orange);
    padding: 2px 15px;
    width: fit-content;
    border-radius: 100px;
}

.price span{
    text-decoration: line-through;
}

.card p{
    text-transform: none;
}

.info{
    line-height: 20px;
}

.card img{
    position: absolute;
    width: 550px;
    transform: scaleX(-1);
    bottom: 10px;
    z-index: -1;
    opacity: 80%;
}

/* About Section */

.about{
    color: var(--white);
    font-family: var(--lato-font);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 3em;
    background-color: var(--transparent-brown);
    gap: 5%;
}

.about-info{
    max-width: 500px;
    margin-right: 100px;
}

.about-info h1{
    font-size: 3em;
    margin-bottom: 20px;
}

.about-info p{
    line-height: 25px;
    text-align: left;
}

.times h3{
    margin-bottom: 20px;
}

.times-contact{
    display: flex;
    flex-direction: column;
}

.hours{
    display: flex;
    margin-bottom: 20px;
}

.hours p{
    text-align: left;
}

.hours p:nth-child(2){
    margin-left: 30px;
}

.opening-hours p{
    text-align: left;
}

.contact p{
    margin: 5px 0;
}

.contact p:nth-child(3){
    margin-bottom: 25px;
}

.contact-form-btn{
    text-decoration: none;
    color: var(--black);
    background-color: var(--yellow);
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.contact-form-btn:hover{
    background-color: var(--black);
    color: var(--yellow);
}

.division-container{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--transparent-brown);
}

.division{
    width: 80%;
    /* Unique Colour */
    background-color: rgb(255, 255, 255, 0.5); 
    height: 1px;
}


.newsletter{
    background-color: var(--transparent-brown);
    padding: 3em;
    font-family: var(--lato-font);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form{
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-text h1{
    margin: 0;
    margin-right: 100px;
    font-size: 2em;
}

.newsletter-text p{
    font-size: 1.2em;
    margin: 0;
    margin-top: 10px;
    color: var(--yellow);
}

.newsletter-form form{
    display: flex;
    align-items: center;
}

.newsletter #email{
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    width: 300px;
    height: 40px;
}

.newsletter #submit{
    margin: 0 10px;
    padding: 15px;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    outline: 2px solid var(--yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(https://www.josephdesigns.co.uk/assets/portfolio-sites-assets/bike-king-borders-assets/send.svg);
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.newsletter #submit:hover{
    background-image: url(https://www.josephdesigns.co.uk/assets/portfolio-sites-assets/bike-king-borders-assets/send-white.svg);
    outline: 2px solid var(--black);
}

.map-division{
    margin: 0;
    height: 15px;
    border: none;
    background-color: var(--yellow);
}

iframe{
    width: 100%;
    height: 300px;
}

/* Media Tags */

@media (max-width: 900px){
    .bike-header-img{
        width: 90%;
        top: 50%;
        transform: translateY(-50%);
    }

    .main{
        height: 650px;
    }

    .offers{
        margin: 0 0 50px 0;
        /* 200 */
        padding-top: 10px;
    }

    .about{
        flex-direction: column;
        text-align: center;
    }

    .about-info{
        margin-bottom: 40px;
        margin-right: 0;
    }

    .hours{
        margin-bottom: 40px;
    }

    .newsletter{
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text h1{
        margin-right: 0;
    }
    
    .newsletter-text p{
        margin-top: 0;
    }

    .newsletter-form{
        margin-top: 50px;
    }
}

@media (max-width: 444px){
    .main{
        height: 400px;
    }

    .small-square-logo {
        width: 80px;
    }
    
    .offers{
        margin: 0 0 50px 0;
        /* 150 */
        padding-top: 0;
    }

    .card{
        width: 100%;
        min-width: 216px;
    }

    .newsletter #email{
        width: 200px;
    }

    .offers h1{
        font-size: 1.2em;
    }

    .card h2{
        font-size: 1.2em;
    }
}