@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap');

* {
    font-family: "Kanit", "sans-serif";
    margin: 0;
    padding:0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

@keyframes fade-down
{
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

.background {
    background-image: url("../images/background.png");
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-size: 100%;
    position: fixed;
    background-repeat: no-repeat;
}


.header {
    position: fixed;
    top : 0;
    left:0;
    width: 100%;
    padding: 20px 100px;
    /* background: #e59ff5d4; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 40px;
    font-weight: 600;
    text-decoration: none;
    color: #84ffaf;
}

.tophid {
    z-index: -100;
    position: fixed;
    background-image: url("../images/background.png");
    top: 0;
    left:0;
    width: 100%;
    padding: 50px 100px;
    background-repeat: no-repeat;
    background-size: 100%;
}

.navbar a{
    position: relative;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    margin-left: 110px;
}

.navbar.Projects::before {
    background: #84ffaf;
    width: 100%;
} 

.navbar a::before {
    position: absolute;
    content: '';
    background:#fff;
    width: 0;
    height:3px;
    top:100%;
    left:0;
    transition: .3s;
}

.navbar a:hover::before {
    width:100%;
}

.projects div {
    width: 80%;
    height: 480px;
    top: 130px;
    left: 10%;
    margin-bottom: 75px;
    display: block;
    background-color: #000000;
    position: relative;
    border: 5px solid #ffffff  ;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.8);
    animation: fade-down 0.5s;
}
.projects div button {
    background-color: #182521; /* Green */
    
    border-width: 5px ;
    border-radius: 50px;
    border-color: rgb(255, 255, 255);

    color: white;
    width: 210px;
    height: 92px;
    text-align: center;
    font-size: 25px;
    top: 70%; /* 20% */
    left: 73%;
    position: absolute;
}

.projects div p {
    font-size: 20px;
    color: #fff;
    top: 9%;
    left: 25%;
    position: relative;
    width: 650px; /* 450px */
    text-align: justify;

    -webkit-line-clamp: 12;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projects div img {
    position: absolute;
    top: 8%;
    left: 3%;
    width: 220px;
    border-color: #84ffaf;
    border-width: 5px;
} 

.projects div h1 {
    font-size: 30px;
    color: #fff;
    top: 50%;
    left: 3.2%;
    width: 210px;
    position: relative;
    text-align: center;

    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 0.5em;
}

::-webkit-scrollbar-track {
    background: #0b344d;
}

::-webkit-scrollbar-thumb {
    background: rgb(15, 145, 119);
    border-radius: 25px;
}
