/* google fonts import  */
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Sarabun:wght@300&display=swap');

/* variables */
:root {
    --font1: 'Kaushan Script', cursive;
    --font2: 'Sarabun', sans-serif;
}

/* resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* body */
body {
    min-height: 100vh;
}

body::-webkit-scrollbar {
    background-color: transparent;
    width: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: rgb(29, 26, 26);
}

.cart-container::-webkit-scrollbar {
    background-color: transparent;
    width: 10px;
}

.cart-container::-webkit-scrollbar-thumb {
    background-color: rgb(29, 26, 26);
}

.cart-container,.checkout-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.74);
    z-index: 100;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 4%;
    font-family: var(--font2);
    overflow-y: scroll;
    transition: .5s;
    opacity: 0;
    pointer-events: none;
}

.cart-container.active, .checkout-container.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-close-btn i, .checkout-close-btn i {
    cursor: pointer;
    font-size: 20px;
}

.cart-container h1 {
    font-family: var(--font2);
    text-align: center;
    padding: 2%;
    border-bottom: 1px solid white;
    width: max-content;
    margin-bottom: 2%;
}

.cart-container .item {
    margin-bottom: 3%;
    font-size: 19px;
}

.cart-container .item .fa-times {
    cursor: pointer;
}

.cart-container .total-price {
    font-size: 20px;
}

#checkout, #clear-cart {
    background-color: rgba(245, 245, 245, 0.445);
    border: 1px solid white;
    color: black;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 2%;
}

.checkout-container > p {
    font-size: 20px;
}

.checkout-container input {
    margin-bottom: 3%;
    background-color: rgba(255, 255, 255, 0.671);
    border: 1px solid black;
    font-size: 17px;
    color: black;
}

.checkout-container input::placeholder {
    color: black;
    font-size: 17px;
}

.checkout-container .btn {
    background-color: rgba(245, 245, 245, 0.445);
    border: 1px solid white;
    color: black;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 2%;
}

/* header */
header {
    padding: 1% 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.cart-container li {
    margin-bottom: 2%;
}

.logo {
    width: 150px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    pointer-events: none;
}

#logo-img {
    position: absolute;
    width: 30px;
    height: 100%;
    object-fit: contain;
}

.logo h1 {
    position: absolute;
    font-family: var(--font1);
    font-size: 20px;
    right: 5%;
}

/* header - nav */
header nav {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-family: var(--font2);
    font-weight: bold;
}

header nav a {
    text-decoration: none;
    color: black;
}

/* header - cart */
.cart-icon {
    /* position: relative; */
    padding: 2%;
    width: 100px;
    display: flex;
}

.cart-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    cursor: pointer;
}

.items-count {
    font-family: var(--font2);
    font-weight: bold;
    padding: 1%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

/* main */
main {
    margin: 0 5%;
}

main > section {
    min-height: calc(100vh - 65px);
    /* margin-top: 5%; */
}

section.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2%;
}

section.intro article:first-child {
    display: flex;
    align-items: center;
    height: 50vh;
}

.intro img {
    width: 200px;
    height: 200px;
}

.intro h1 {
    font-family: var(--font1);
    font-size: 45px;
}

.intro p {
    font-family: var(--font2);
    font-size: 25px;
}

#get-started-btn {
    margin-top: 3%;
    font-family: var(--font2);
    padding: 1.5% 4%;
    border: 1px solid black;
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    animation: wiggle 1s infinite;
    transition: 1s;
    cursor: pointer;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(6deg);
    }

    75% {
        transform: rotate(-6deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.intro a {
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-weight: bold;
}

/* create section */
.create {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.create h1 {
    font-family: var(--font1);
    text-align: center;
    font-size: 35px;
    margin-bottom: 2%;
}

.create .how-to {
    font-family: var(--font2);
}

.how-to p {
    margin-bottom: 1%;
}

.create-container {
    /* border: 1px solid red; */
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-container h3 {
    font-family: var(--font2);
    font-size: 30px;
    margin: 2% 0;
}

.create-form-container {
    /* border: 1px solid red; */
    width: 70%;
    height: 100%;
    position: relative;
}

.form-container {
    margin: 2% 0;
    font-family: var(--font2);
}

form p {
    font-size: 30px;
    margin-bottom: 3%;
} 

form .price {
    font-size: 17px;
    font-weight: bold;
    display: inline-flex;
    margin-left: 5%;
}

/* footer */
footer {
    padding: 2%;
    text-align: center;
    height: 150px;
}

#from {
    font-family: var(--font2);
    font-weight: bold;
    color: rgba(0, 0, 0, 0.795);
}

#mark {
    font-family: var(--font1);
}

@media only screen and (max-width: 650px) {
    .form-container form {
        margin: 0 10%;
    }
}

@media only screen and (max-width: 500px) {
    .cart-container, .checkout-container {
        width: 90%;
        height: 90%;
    }

    .intro {
        margin-top: 10%;;
    }

    .intro article {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .intro .description {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

}

@media only screen and (max-width: 440px) {
    .cart-container, .checkout-container {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }

    form p {
        font-size: 20px;
        margin-bottom: 3%;
    } 
}