@keyframes spin{
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#loaderBox{
    width: 100%;
    padding-top: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
#loaderBox div {
    border: 4px solid rgb(240, 240, 240);
    border-top: 4px solid rgb(125, 126, 122);;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}



#slider {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#slider img {
    display: none;
}
#slider .block {
    width: 50%;
    min-width: 400px;
    display: block;
    object-fit: cover;
    border-top: 2px solid grey;
    border-left: 2px solid grey;
    border-right: 2px solid grey;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}
#slider button{
    box-sizing: content-box;
    width: 50%;
    min-width: 400px;
    height: 50px;
    padding: 0px;
    border-top: 0px;
    border-left: 2px solid grey;
    border-right: 2px solid grey;
    border-bottom: 2px solid grey;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    background-color: rgb(204, 205, 198);
    outline: none;
    font-family: Roboto, 'Times New Roman', Times, serif;
    font-size: 20px;
    transition-duration: 0.4s;
}
#slider button:hover{
    cursor: pointer;
    box-shadow: inset 0 -3px grey;
}
#slider button:active{
    box-shadow: inset 0 -1px grey;
    background-color: white;
}



.productGrid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, 440px);
    justify-content: space-around;
    
}



.productCard{
    width: 400px;
    height: 200px;
    padding: 10px;
    margin: 10px;
    background-color: rgb(204, 205, 198);
    box-shadow: 2px 2px gray;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.productCard img{
    height: 146px;
    width: auto;
    border: 2px solid white;
    border-radius: 10%;
    box-shadow: 2px 2px grey;
}
.productCard img:hover{
    cursor: pointer;
}
.productCard div{
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.productCard div p{
    margin: 0px;
}
.productCard div ul{
    padding: 0px 0px 0px 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    font-size: 0.8em;
}
.productCard div span{
    font-family: Roboto, 'Times New Roman', Times, serif;
    font-size: 0.8em;
}



#productPage{
    width:100%;
    height: auto;
    padding: 0px 0px 25px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#productPage img{
    width: 640px;
    height: auto;
    border: 2px solid white;
    border-radius: 10%;
    box-shadow: 2px 2px grey;
}
#productPage div{
    margin: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
#productPage div ul{
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
}
#productPage div ul li{
    font-size: 1.2em;
}
#producePage div p{
    font-family: Roboto, 'Times New Roman', Times, serif;;
}
#productPage div input{
    height: 20px;
    width: 2em;
    font-family: Roboto, 'Times New Roman', Times, serif;
    font-size: 1.2em;
    font-weight: 800;
    cursor: pointer;
    margin-bottom:5px;
}
#productPage div button{
    height: 40px;
    width: 100%;
    font-family: Roboto, 'Times New Roman', Times, serif;
    font-size: 1.2em;
    font-weight: 800;
    cursor: pointer;
}
@media screen and (max-width: 1079px){
    #productPage{
        flex-direction: column;
    }
 }



#confirm{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
#confirm button{
    height: 60px;
    width: 40%;
    margin: 5px 5% 15px 5%;
    border: none;
    background-color: rgb(204, 205, 198);
    outline: none;
    font-family: Roboto, 'Times New Roman', Times, serif;
    font-size: 40px;
}
#confirm button:hover{
cursor: pointer;
box-shadow: inset 0 -3px black;
}
#confirm button:active{
box-shadow: inset 0 -1px black;
background-color: white;
}

@media screen and (max-width: 1079px){
   #confirm{
       flex-direction: column;
   }
   #confirm button{
       width: 80%;
   }
}



#order{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}
#order form{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;
}
#order form input{
    border: 2px solid black;
    margin-bottom: 15px;
    outline: none;
}
#order form input:invalid{
    border: 2px solid orange;
}
@media screen and (max-width: 1079px){
    #order{
        font-size: 2em;
    }
    #order form input{
        height: 2em;
    }
 }