/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body{
    height: 100%;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #4CAF50;
    padding: 20px 0;
}


.gradbox h1{

}


.logo{
    display: flex;
    padding-bottom: 10px;
}

.logo h1{
    color: white;
    font-size: 50px;
    margin-left: 30px;
    transform: translateY(10px);
    display: inline-block;
}

.logo img {
    width: 80px;
    margin-left: 20px;
    height: 80px;
    object-fit: cover;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    padding: 30px 10px 30px 10px;
}

.gradbox{
    background-color: #444a;
    width: 60%;
    padding: 30px;
    display: inline-table;
    border-radius: 15px;
    animation: .5s ease-out 0s 1 slideInFromLeft;
}

.main {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 0;
    color: #fff;
    flex: 1;
}

.main h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.main p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background-color: #fff;
    color: #4CAF50;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
}

button{
    display: inline-block;
    background-color: #fff;
    color: #4CAF50;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color .2s;
}

.textarea{
    padding: 10px;
}


@keyframes slideInFromLeft{
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.products ul{
    display: flex;
    list-style: none;
    flex-wrap: wrap;    
    justify-content: center;
    gap: 20px;
}

.products {
    padding: 20px;
}

.products h2{
    padding-bottom: 10px;
}

.products li:hover {
    transform: scale(1.05);
}

.products li {
    background-color: #4CAF50AA;
    padding: 20px;
    margin: 5px;
    color: white;
    border-radius: 15px;
    animation: .5s ease-out 0s 1 slideInFromLeft;
    transition: transform .3s cubic-bezier(0, 0, 0.63, 1.3);
}

.products li p {
    padding: 5px;
}

.products li h3 {
    padding: 5px;
}

.product-item img{
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

.product-item button:hover{
    background-color: #eee;
}

.pay{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 45px;
    width: 50%;
    background-color: #eee;
    min-width: 400px;
    max-width: 100%;
    box-sizing: border-box;
}

.pay h2{
    display: block;
}

.pay img{
    transform: translate(30%, 30%);
    display: inline;
}

.pay input[type=number]{
    width: 60px !important;
    display: inline;
    background: none;
    border: 3px solid #4CAF50AA;
    border-radius: 3px;
    padding: 5px;
}

.pay p{
    display: inline;
}

.x {
    position: absolute;
    top: 5px;
    right: 5px;
    background: 0;
    color: black;
}

#aboutmain{
    text-align: center;
}

.about{
    animation: .5s ease-out 0s 1 slideInFromLeft;
    background-color: #444a;
    width: 100%;
    display: inline-block;
    padding: 50px;
    font-size: 25px;
    border-radius: 15px;
}

.about img{
    width: 200p;
    display: inline;
    transform: translate(30%, 30%);
}

.about p{    
    font-size: 1.2em;
    margin-bottom: 30px;
    display: inline;
}

.box{
    padding: 20px;
}

.pay input{
    width: 150px;
    margin-bottom: 10px;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
   25% { transform: rotate(-25deg); }
   40% { transform: rotate(25deg); }
   55% { transform: rotate(-25deg); }
   70% { transform: rotate(25deg); }
  100% { transform: rotate(0deg); }
}

#carttoggle{
    position: fixed;
    left: 10px;
    top: 150px;
    width: 50px;
    height: 50px;
    background-color: #eee;
    text-align: center;
    padding: 10px;
    border-radius: 100px;
    box-shadow: 0;
    transition: box-shadow .3s;
    z-index: 3;
}

#carttoggle:hover{
    box-shadow: 10px 10px 10px black;
}

.wiggle{
    animation: wiggle 1s 1;
}

#carttoggle img{
    width: 30px;
    height: 30px;
}

#cart{
    position: fixed;
    width: 100%;
    max-width: 500px;
    left: 0;
    top: 138px;
    height: calc(100% - 138px);
    background-color: #eee;
    transform: translateX(-100%);
    transition: transform .4s;    
    box-sizing: border-box;
    text-align: center;
    padding-top: 25px;
    font-family: Arial, sans-serif;
}

#cart.visible{
    transform: translateX(0px);
}

#cart h2{
    margin-bottom: 30px;
}

#items div.item {
    display: grid;
    grid-template-columns: 40% 20% 40%;
    padding: 20px;
    border-bottom: 1px solid black;
    text-align: left;
}

#placeorder{
    position: absolute;
    width: 100%;
    display: block;
    bottom: 0;
    padding: 40px;
}

price {
    float: right;
    font-size: 40px;
}

footer {
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
    padding: 20px 0;   
/*    position: fixed;*/
    width: 100%;
    bottom: 0;
}


.confirm input{
    border: 2px solid black;
    width: 100%;
    padding: 5px;
}

.header{
    color: white;
    font-size: 50px;
    margin-left: 30px;
    transform: translateY(10px);
    display: inline-block;
    font-family: Arial, sans-serif;
    font-weight: bold;
}