@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* GENERAL */

body {
    font-family: "Kanit", sans-serif;
    background-color: #1e1d2b;
}

.container {
    padding: 2%;
}

p {
    margin: 0;
}

.center {
    text-align: center;
}

.linkTexts {
    text-decoration: none;
    text-align: center;
    font-size: 1.5rem
}

.linkDownTexts {
    text-decoration: none;
    font-size: 1.2rem;
    color: white;
}

.whiteText {
    color: white;
}

.blackText {
    color: black;
}

.headerLinks {
    font-weight: 500;
}

.headerLinks:hover {
    transform: scale(1.1);
}

.icons {
    text-decoration: none;
}

/* HEADER */

.nav {
    display: grid;
    grid-template-columns: 20% 80%;
    justify-content: end;
    align-items: center;
}

.logo {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.logoMainPage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    width: 100%;
}

.navTarget, .closeMenu {
    display: none;
    cursor: pointer;
    order: 1;
}

.menuP {
    display: flex;
    justify-content: end;
    align-items: center;
}

.menuA {
    text-decoration: none;
    color: #fff;
    text-align: end;
    font-weight: 500;
    padding: 0px 30px;
    transition: 0.4s;
}

/* AD */

.ad {
    display: grid;
    align-items: center;
    background-size: cover;
    margin: 5% 3% 5% 3%;
}

.adImage {
    width: 100%;
    border-radius: 1%;
}

/* MAIN PRODUCTS */

.subtitleMainPage {
    text-decoration: none;
    color: white;
    text-align: center;
    font-size: larger;
    font-weight: 600;
    font-size: 2rem;
}

.mainProducts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    place-items: center;
    padding: 2%;
}

.mainProduct {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #d9d9d9;
    border-radius: 5%;
    padding: 20px 0px 20px 0px;
    width: 80%;
}

.titleProduct {
    font-size: 15px; 
    text-align: center;
}

.mainProductImage {
    width: 200px;
    height: 200px;
    object-fit: cover;
    padding: 10px;
}

.descProduct {
    font-size: 20px;
}

.mainProduct:hover {
    background-color: white;
    transform: scale(1.1);
}

/* CONTACT */

.contact {
    background-color: #2c2b47;
    padding: 5%;
}

.listContact {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 5%;
    padding: 1%;
}

.titleContact {
    text-decoration: none;
    color: white;
    text-align: center;
    font-size: larger;
    font-weight: 600;
    font-size: 1.5rem;
}

.hrContact {
    width: 30%; 
    border: 1px solid #d9d9d9;
}

.links {
    padding: 4%;
}

i:hover {
    transform: scale(1.1);
}

/* RESPONSIVE */

@media (max-width :840px) {
    .navTarget {
        display: flex;
        justify-content: end;
        align-items: center;
        color: #d9d9d9;
        font-size: 2rem; 
        text-decoration: none;
    }

    .menuP {
        position: fixed;
        width: 80%;
        background: #2c2b47;
        left: 0;
        top: 15%;
        display: flex;
        flex-direction: column;
        padding: 100px;
        z-index: 1;        
        clip-path: circle(0% at top right);
        transition: clip-path 0.4s;
    }

    .menuP:target{
        clip-path: circle(150% at top right);
    }

    .menuP a {
        display: block;
        padding: 15px;
    }

    .closeMenu {
        display: flex;
        color: #d9d9d9;
        font-size: 3rem; 
        text-decoration: none;
    }

    .closeMenu::after{
        position: absolute;
        top: 0px;
        right: 0px; 
    }

    .down {
        grid-template-columns: 100%;
    }

    .gap {
        gap: 2%;
    }

    .smallProduct {
        width: 40%;
    }

    .smallImage {
        width: 150px;
        height: 150px;
    }

    .descProduct {
        font-size: 15px;
    }
}