@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@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&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


body {
    margin: 0;
    height: auto;
    width: 100%;
    background-image: url('./Assets/Front.jpg'); /* Set the path to your image */
    background-size: cover; /* Cover the entire viewport */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent repeating */
    font-family: "Kanit", sans-serif;
    font-weight: bolder;

}

/* Optional styles */
#main-page{
    height: 100%;
    width: 100%;
}
.navbar {
    display: flex;
    justify-content: space-between; /* Space elements evenly */
    align-items: center; /* Center items vertically */
    padding: 0px 20px;
    background-color: transparent;
    color: white;
    /* margin-top: -2rem; */
    /* margin-top: 2rem; */
    margin-bottom: 2rem;
}
.navbar span{
    font-size: 3rem;
    /* background-color: #fff; */
    color: #fff;
    background-color: none;
}
.logo img {
    height: 40px; /* Adjust logo size */
}

.navbar h1 {
    margin-left: 4rem;
    flex: 1; /* Allow heading to grow between logo and button */
    text-align: center;
    text-transform: uppercase;
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
}

.menu-button button {
    padding: 6px 35px;
    font-size: 20px;
    background-color: transparent;
    color: white;
    margin-top: -1rem;
    border: 1px solid #fff;
    border-radius: 20px;
    cursor: pointer;
}
.menu-button button a{
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

 .rotating-logo {
    width: 230px; 
    /* position: fixed; */
    height: auto;
    animation: rotate 2.2s linear infinite; 
    transform-origin: center; 
    display: flex;
    /* mix-blend-mode: multiply; */
    align-items: center;
    justify-content: center;
    /* margin-bottom: 60px; */
} 
.counter-container {
    display: flex;
    position: relative;
    /* top: 100%; */
    left: 46%;
    transform: translate(-50%,-10%);
    justify-content: space-between; /* Space counters evenly */
    width: 88%;
    padding: 26px;
    margin-left: 4rem;
    /* margin-top: 2.8rem; */
    line-height: 1;
}

.counter-section {
    text-align: center;
    /* margin-right: 4rem; */
}

h1 {
    margin: 10px 0;
    font-size: 2.5rem;
    color:#65C5EF;
    line-height: 1;
}
.head-2{
    font-size: 2.4rem;
    /* margin-top: 3rem; */
}
.counter {
    font-size: 24px;
    color: #fff;
}
#counter1,#counter2,#counter3{
    font-size: 3rem;
    font-weight: bold;
    /* margin-top: 3rem; */
}
/* #counter2{
    margin-top: 3rem;
}
#counter3{
    margin-top: 3rem;
} */
.leaf-icon{
    width: 50px;
    height: 50px;
    
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 600px) {
    h1 {
        font-size: 37px; /* Smaller font size for mobile */
    }

    .navbar {
        flex-direction: column; /* Stack elements on small screens */
        /* text-align: center; */
    }

    .logo, .menu-button {
        margin: 5px 0;
    }
}
@media (max-width: 514px){
    html {
        zoom: 73.578512% !important;
    }
    body{
    margin: 0;
    height: 60%;
    width: 100vw;
    /* background-image: url('./Assets/Front.jpg'); Set the path to your image */
    object-fit: cover;
    background-repeat: no-repeat; /* Prevent repeating */
    font-family: "Kanit", sans-serif;
    font-weight: bolder;
    }
    .navbar{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 45px;
    }
    .navbar h1{
        font-size: 1.75rem;
        /* margin-left: -2%; */
    }
    .menu-button button{
       padding: 4px 15px;
       width: 100%;
       margin-left: 40%;
    }
    .logo-container img{
        margin-left: 28%;
        /* margin-bottom: 3rem; */
        /* margin-top: 2.5rem; */
    }
    .rotating-logo {
        width: 200px;
    }
    .counter-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        gap: 20px;
        margin-left: 22%;
        margin-top: 5%;
    }
    .counter-section{
        /* font-size: 0.75rem; */
        left: 0;
    }
  
    #counter2{
        margin-top: 1rem;
    }
    #counter3{
        margin-top: 1rem;
    }
    .counter .head-1{
        font-size: 20px;
    }
    .counter .head-2{
        /* font-size: 0.5rem; */
        font-size: 10px;
    }
}
@media (min-width: 1080px) {
    .logo-container {
        margin-bottom: 40px; /* Adequate spacing from bottom */
    }

    .counter-container {
        display: flex;
        justify-content: space-around; /* Space evenly */
        width: 80%; /* Wider counter area */
        max-width: 1300px; /* Limit width for larger displays */
        padding: 00px; /* Increased padding */
        margin: 0px auto; /* Center and give equal margin */
    }

    .counter-section {
        flex: 1; /* Ensure even flex distribution */
        margin: 0 20px; /* Add margin for better spacing */
        max-width: 300px; /* Ensure counters don't stretch too much */
    }

    h1 {
        font-size: 2.5rem; /* Adjust heading size */
    }

    #counter1, #counter2, #counter3 {
        font-size: 3rem; /* Increase counter font size */
    }
}

@media (min-width: 1366px) {
    .navbar h1 {
        font-size: 5rem; /* Larger heading for bigger screens */
    }

    .counter-container {
        width: 100%; /* Further adjust for very large screens */
        padding: 0px; /* Add padding */
    }

    #counter1, #counter2, #counter3 {
        font-size: 2.8rem; /* Adjust counter size */
    }
    .counter-section h1{
        font-size: 2.2rem;
    }
}

@media (min-width: 1600px) {
    .navbar h1 {
        font-size: 6rem; /* Maximum size for large displays */
    }

    .rotating-logo {
        width: 280px; /* Adjust logo size accordingly */
    }

    .counter-container {
        width: 60%; /* Fit the layout for very large displays */
    }
}
