@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

*{
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body{
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    background-color: rgba(103, 103, 206, 0.411);
    height: 100vh;
    width: 100%;
}

.hero{
    background-color: rgba(255, 255, 255, 0.568);
}

.topbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    border-bottom: 2px solid black;
    background-color: rgba(103, 103, 206, 0.411);
}

.store-logo{
    margin-left: 20px;
}

.input{
    margin-right: 20px;
}



.navbar a{
    padding: 30px;
    text-decoration: none;
    color: black;
}

/*changing link in navbar interaction on hover*/
.navbar a:hover{
    color: blue;
    text-decoration: underline;
}


.hero-container{
    display: flex;
    justify-content: space-evenly;
    margin: 20px;
}

.hero-text{
    height: 300px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin-left: 20px
}

.hero-img{
    height: 300px;
    width: 50%;
    
}

.hero-img img{
    width: 100%;
    height: 90%;
    border: 2px solid rgba(17, 0, 255, 0.596);
    box-shadow: 10px 5px 5px rgba(17, 0, 255, 0.596);
}

.button-container{
    width: 70%;
    display: flex;
    justify-content: space-between;
}

.products{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products h1{
    text-decoration: underline;
    font-size: 40px
}

.product-container{
    margin: 20px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.product-box{
    background-color: rgba(255, 255, 255, 0.452);
    display: flex;
    flex-direction: column;
    height: 400px;
    width: 100px;
    justify-content: space-evenly;
    align-items: center;
    flex: 1 1 40%;
}

/*changing box container interaction on hover*/
.product-box:hover{
    box-shadow: 10px 5px 5px black;
    transform: scale(1.05);
}

.product-box img{
    width: 200px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.63);
}

/*changing image interaction on hover*/
.product-box img:hover{
    transform: scale(1.10);
    cursor: pointer;
}

button{
    width: 150px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    background-color: rgba(0, 4, 255, 0.527);
    border: none;
    border-radius: 25px;
}

/*changing button interaction on hover*/
button:hover{
    cursor: pointer;
    background-color: rgba(0, 4, 255, 0.808);;
}


.contact{
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 500px;
}

.contact hr{
    width: 90%;
}

.footer-container{
    margin-top: 10px;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
}

.footer-box{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    margin: 10px;
}
.link-container{
    display: flex;
    flex-direction: column;
    height: 50%;
    justify-content: space-between;
}
.footer-box a{
    text-decoration: none;
    color: black;
}

/*changing the text interaction on hover*/
.footer-box a:hover{
    color: blue;
    text-decoration: underline;
}

.icon-container{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

/*changing the cursor on hover*/
.icon-container i:hover{
    cursor: pointer;
}

/*making the form be displayed one after another*/
.footer-box form{
    display: flex;
    flex-direction: column;
    height: 240px;
    justify-content: space-evenly;
}


.copyrights{
    text-align: center;
    margin-bottom: 30px;
}

hr{
    border: 1px solid black;
    max-width: 90%;
    margin: auto;
}

.footer-box p{
    text-decoration: underline;
}
 
span{
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

/*custom CSS for the labels, inputs and textarea in our HTML document*/
label{
    margin: 10px 0px;
    font-size: 18px;
    font-weight: bold;
}
input{
    width: 300px;
    height: 20px;
    border: 2px solid rgba(17, 0, 255, 0.596);
    border-radius: 10px;
    font-size: 0.8em;
    padding-left: 5px;
}


textarea{
    width: 300px;
    height: 200px;
    border: 2px solid rgba(17, 0, 255, 0.596);
    border-radius: 10px;
    font-size: 1.2em;
    padding-left: 5px;
}

/*custom CSS for when the screen gets smaller*/
@media only screen and (max-width: 768px) {
    .navbar{
        display: none;
    }
    .topbar input{
        width: 200px;
    }
    .hero-container{
        flex-direction: column;
    }
    .hero-text{
        width: 90%;
    }
    .hero-img{
        width: 100%;
    }
    .product-box{
        width: 100%;
        height: 100%;
        text-align: center;
        gap: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .product-container{
        flex-direction: column;
    }
    .footer-container{
        flex-direction: column;
        justify-content: space-evenly;
        margin: 0;
        padding: 0;
        gap: 0;
        height: 600px;
    }
    .footer-box{
        height: 300px;
        text-align: center;
        justify-content: space-evenly;
        margin: 0;
        gap: 0;
        padding: 0;
    }
    .link-container{
        flex-direction: row;
        height: 20%;
        margin: 0 20px;
    }
    .footer-box button{
        margin-top: 20px;
        height: 50px;
        align-self: center;
    }
    .footer-box input{
        align-self: center;
    }
    .footer-box textarea{
        align-self: center;
    }
    .button-container button{
        margin: 0 10px;
    }
}

