@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Varela Round", sans-serif;
    font-style: normal;
}

/* animations */

@keyframes left {
    0%{
        transform: translateX(-170%);
    }
    80%{
        transform: translateX(10%);
    }
    100%{
        transform: translateX(0%);
    }    
}
@keyframes top {
    0%{
        transform: translateY(-170%);
    }
    100%{
        transform: translateY(0%);
    }    
}

@keyframes right {
    0%{
        transform: translateX(100%);
    }
    80%{
        transform: translateX(-10%);
    }
    100%{
        transform: translateX(0%);
    }    
}

@keyframes timeout{
    to{
        width: 0;
    }
}

@keyframes fade{
    0%{
        opacity:0;
    }
    100%{
        opacity:1;
    }
}

/* common */
html{
    scroll-behavior: smooth;
}

:root{
    --text: #334b4e;
    --background: #f7f6f5;
    --primary: #6fcbca;
    --secondary: #92e0e8;
    --accent: #466561;
}

::-webkit-scrollbar{
    display: none;
}
body{
    background-color:var(--background);
    overflow-x: clip;
}
button{
    cursor: pointer;
}

/* navbar */

nav{
    height: 10vh;
    justify-content:space-between;
    display: flex;
    align-items: center;
    padding: 2vw; 
    background-color: var(--background);
}
    nav img{
        height: 14vh;
    }
    nav ul{
        display: flex ;
        justify-content: space-around;
    }
    li{
        display: flex;
        justify-content: center;
        margin: 1vw;
        font-size: 1.5rem;
        transition: 0.5s;
    }

    nav li:hover{
        border-bottom: solid 2px var(--accent);
        scale: 110%;
    }
    nav a{
        color: var(--text);
        text-decoration: none;
        padding: 1rem;
        border-radius: 2vh;
    } 

    nav button{
        height: 6vh;
        width: 8vw;
        border-radius: 2vh;
        color:var(--text);
        background-color: var(--primary);
        border-color: var(--primary);
    }
    nav button:hover{
        color:var(--text);
        border-color:var(--accent);
    }
    nav span{
        color: var(--light);
        display: none;
    }
    nav span{
        font-size: 1.6rem;
        cursor: pointer;
    }
/* home */

.home{
    height: 90vh;
    width: 80vw;
    display: flex;
    margin-left: 10vw;
    position: relative ;
}

/* left */

article{
    height: 100%;
    width: 50%;
}
.moto{
    color: var(--text);
    margin-top: 9vh;
    padding: 2vh;
    font-size: 3.5rem;
    animation: top 1s ease-in-out;
}
.moto span{
    color: var(--primary);
}

.intro{
    color: var(--text);
    opacity: 0.6;
    padding: 2vh;
    height: 30%;
    font-size: 1.4em;
    animation: left 1s ease-in-out;
}

.booking{
    background-color: var(--primary);
    color: var(--text);
    height: 10vh;
    width: 20vw;
    margin-left: 2vh;
    font-size: 1.5rem;
    bottom: 20vh;
    position: absolute;
    border: none;
    border-radius: 2vh;
    transition: 1s;
    z-index: 1;
    animation: left 1s ease-in-out;
}
.booking:hover{
    transform: scale(130%) rotate(-10deg);
}

/* right */

.image{
    height: 100%;
    width: 50%;
    animation: fade 2s linear;
}

.image img{
    height: 80vh;
    width: 100%;
}

footer{
    background-color:var(--secondary);
    color: var(--text);
    height: 15vh;
    width: 100%;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10vw 0 10vw;
}
footer h1{
    font-size: 6vh;
}
footer div{
    transition: 0.5s;
}
footer div:hover{
    transform: scale(120%);
}

/* services */

.services{
    background-color: var(--background);
    height: max-content;
    width: 100vw;   
    display: flex;
    padding: 10vh 10vw 10vh 10vw;
    gap: 2vw;
}
    .products{
        color: var(--text);
        height: 80vh;
        width: 48vw;
        padding: 2vw;
        position: relative;
        border-radius: 2vh;
        box-shadow: 1px 1px 1px var(--primary),
        inset 1px 1px 1px var(--primary);
    }
    .products h2{
        font-size: 6vh;
    }
    .products p{
        font-size: 2.5vh;
    }
    .products hr{
        margin-top: 2vh;
        margin-bottom: 5vh;
    }
    .products ul{
        flex-direction: column;
    }
    .products li{
        margin: 1.5vw;
        align-items: center;
        justify-content: space-between;
    }
    .products li button{
        height: 5vh;
        width: 10vw;
        border-radius: 1vh;
    }
    .products .guideline{
        position: absolute;
        bottom: 2vw;
    }

    
    .addItems{
        height: 80vh;
        width: 30vw;
    }
    .addItems .cart{
        width: 30vw;
        height: 42vh;
        margin-bottom: 4vh;
        padding: 1vw;
        border-radius: 2vh;
        box-shadow: 1px 1px 1px var(--primary),
        inset 1px 1px 1px var(--primary);
    }
    .addItems .cart .table{
        display: flex;
        justify-content: space-between;
    }
    .addItems .cart .empty{
        height: 30vh;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .addItems .cart .empty h2{
        margin-top: 10vh;
    }
    
    .addItems .cart .empty li{
        margin: 1vh 0 1vh 0;
        font-size: 2vh;
        align-items: center;
        justify-content: space-between;
    }

    .addItems .cart .total {
        width: 28vw;
        display: flex;
        justify-content: space-between;
        font-size: 2.5vh;
    }

    .addItems .form{
        width: 30vw;
        height: max-content;
        padding: 1rem;
        border-radius: 2vh;
        transition: 1s;
        box-shadow: 1px 1px 1px var(--primary),
        inset 1px 1px 1px var(--primary);
    }
    .addItems .form .detail{
        display: flex;
        justify-content: space-between;
    }
    .addItems .form input{
        margin: 0.5vh 0 0.5vh 0;
        height: 5vh;
        width: 100%;
        border-radius: 1vh;
    }
    .addItems .form input{
        padding-left: 1rem;
    }
    .addItems .form .detail input{
        width: 13.5vw;
    }
    .addItems .form button{
        height: 8vh;
        width: 100%;
        margin-top: 1vh;
        border-radius: 1vh;
    }

/* Contactus */

.contactUs{
    height: 100vh;
    width: 100vw;
    background-color:var(--background);
    color: var(--text);
}

    .feature,.subscribe,.contacts{
        height: calc(100vh/3);
        width: 100%;
    }

    /* feature */

    .feature{
        background-color: var(--primary);
        display: flex;
        justify-content: center;
    }

    .cards{
        height: 100%;
        width: 20vw;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: ease-in-out 0.5s;
    }
    .cards:hover{
        transform: scale(1.4);
    }

    .cards i{
        font-size: 3rem;
        padding: 1rem;
    }

    /* subscribe */

    .subscribe{
        background-color:var(--background);
        display: flex;
        padding: 5vh 10vw 5vh 10vw;
        align-items: center;
    }

    .subscribe h1{
        color: var(--text);
        display: flex;
        align-items: center;
        font-size: 3rem;
    }

    .subscribe input{
        height:8vh;
        width: 20vw;
        margin: 1vw;
        background-color: var(--secondary);
        padding-left: 2vw;
        border: none;
    }
    .subscribe ::placeholder{
        color: var(--text) ;
    }
    .subscribe button{
        margin: 1vh 0 0 1vw;
        width: 42.3vw;
        height: 8vh;
        background-color: var(--secondary);
        color:var(--text);
        border: none;
    }

    /* contacts */

    .contacts{
        display: flex;
        padding: 5vh 10vw 0 10vw;
    }

    .contacts div{
        width: calc(80vw/3);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contacts a{
        color:var(--text);
        opacity: 0.6;
        text-decoration: none;
        padding: 0.5vw;
        border-radius: 2vh;
    }
    .contactUs a:hover{
        opacity: 1;
        text-decoration: underline;
    }
    .contacts .social{
        flex-direction: row;
        justify-content: center;
    }
    .social i{
        font-size: 1.5rem;
    }

.notifications{
    position: fixed;
    top: 100px;
    right:20px;
    z-index: 999;
}
.toast{
    position: relative;
    width: 300px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 5rem;
    --color:lime;
    background-image: linear-gradient(
        to right, lime, white 30%
    );
    animation: right 1s ease-in-out;
}

.toast::before{
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color);
    width: 100%;
    height:3px;
    content: '';
    box-shadow: 0 0 10px var(--color);
    animation: timeout 5s linear 1 forwards;
}
.toast.error{
    --color: red;
    background-image: linear-gradient(
        to right, red, white 30%
    );
}
.toast .title{
    font-weight: bold;
}
.toast i{
    cursor: pointer;
}

@media only screen and (max-width: 600px) {

/* nav */
    nav{
        width: 100%;
    }
    nav img{
        height: 100%;
    }
    nav ul{
        left: 0;
        top: 10vh;
        height: max-content;
        width: 100%;
        background:var(--background);
        display: none;
        flex-direction: column;
        position: absolute;
        z-index: 1;
        
    }
    nav li{
        margin: 0;
        padding: 0.5rem;
        font-size: 1rem;
    }
    nav li:hover{
        background-color:var(--primary) ;
        box-shadow: none;
    }
    nav span{
        display: inline-block;
    }
    nav .signIn{
        display: none;
        width: max-content;
        padding: 0 1rem;
    }
 
/* home */
    .home{
        width: 100%;
        margin: 0;
        position: relative;
    }
    .moto{
        color:var(--text);
        font-size: 2rem;
    }
    .intro{
        font-size: 1rem;
        line-height: 1.5rem;
        color: var(--text);
        opacity: 0.9;
    }
    article{
        position: absolute;
        width: 100%;
        background: rgb(255,255,255);
        background: linear-gradient(180deg, rgba(255,255,255,0.2666316526610645) 0%, rgba(255,255,255,1) 90%);
    }
    .image{
        width: 100%;
        z-index: -1;
    }
    .booking{
        font-size: 1rem;
        width: max-content;
        padding: 0.5rem;
    }

    footer{
        display: none;
    }
/* services */
    .services{
        flex-direction: column;
        padding: 0.5rem;
    }
    .products p{
        font-size: 1rem;
    }
    .products li button{
        width: 3.5rem;
    }
    .products , .addItems {
        height: max-content;
        width: 100%;
    }

.addItems .cart .total {
    width: 100%;
    padding: 1rem;
}
.addItems .form{
    width: 100%;
    padding: 1rem;
    color: var(--text);
}

    .addItems,.addItems .cart{
        width: 100%;
        padding: 1rem;
        height: max-content;
        background-color: var(--secondary);
    }
    .addItems .form{
        height: max-content;
    }

    .addItems .form input,.addItems .form .detail input{
        width:100% ;
    }
    .addItems .form .detail{
        flex-direction: column;
    }

/* contact us */
    .feature,.contacts{
        flex-direction: column;
        height: max-content;
        gap: 1rem;
    }
    .cards{
        width: 100%;
    }
    .subscribe h1{
        font-size: 1.5rem;
    }
    .subscribe input ,.subscribe button{
        width: 100%;
        text-align: center;
    }
    .contacts{
        padding:1rem;
    }
    .contactUs{
        height: max-content;
    }
    .contactUs a{
        width: max-content;
        padding: 0.2rem;
        font-size: 0.8rem;
    }
    .contacts div{
        width: 100%;
    }
    .contacts h1{
        font-size: 1rem;
    }
}