*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color-scheme: dark;
}

body{
    padding-top: 9rem;
    min-height: 100vh;
    background-color: #ffffff;
    font-family: Kanit;
    color: #000;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 9rem;
    background-image: linear-gradient(130deg,#17B890 50%,#7bdcb5 100%);box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

nav .nav-bar{
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    /* background-color: #87CBB9; */
}

nav .nav-bar .sidebarOpen{
    color: #ffffff;
    font-size: xx-large;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a{
    font-size: xx-large;
    color: #ffffff;
    position: relative;
    text-decoration: none;
    font-weight: 700;
}

.menu .logo-toggle{
    display: none;
}

.nav-bar .nav-link{
    display: flex;
    align-items: center;
}

.nav-bar .nav-link li{
    margin: 0 1rem;
    list-style: none;
}

.nav-link li a{
    font-size: large;
    color: #ffffff;
    position: relative;
    text-decoration: none;
}

.nav-link li a::before{
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 15%;
    background-color: #2A9D8F;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link li:hover a::before{
    opacity: 1;
}

@media (max-width:870px) {
    nav .nav-bar .sidebarOpen{
        display: block;
    }
    .menu{
        position: fixed;
        height: 100%;
        width: 320px;
        left: -150%;
        top: 0;
        background-color: #0000009f;
        z-index: 100;
        transition: all 0.4s ease;
    }
    .active{
        left: 0px;
    }
    .menu .logo-toggle{
        width: 100%;
        height: 9rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 auto;
        padding: 0 20px;
        background-color: #00000059;
        box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.15);
    }
    .logo-toggle .sidebarClose{
        color: #ffffff;
        font-size: xx-large;
        cursor: pointer;
    }
    .nav-bar .nav-link{
        flex-direction: column;
        margin-top: 1rem;
    }
    .nav-bar .nav-link li{
        margin: 20px auto;
    }

}

.buttons{
    align-items: center;
    justify-content: center;
}

button{
    background-color: #ececec9d;
    border: none;
    cursor: pointer;
    appearance: none;
    width: 50px;
    height: 50px;
    margin-top: 0;
    margin: 1rem;
    border-radius: 5px;
    transition: all 0.4s ease;
}
button:hover {
    background-color: rgba(214, 214, 214, 0.616);
    transition: all 1s ease;
  }

.buttons a{
    color: rgba(255, 255, 255, 0);
}

.buttons button img{
    width: 60%;
    height: 60%;
}

.container{
    height: 85vh;
    width: 100%;
    position: relative;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#photo{
    background-image: url(/web_img/main_img.jpg);
    background-size: cover;
    background-position: center;
}

#photo::after{
    margin-top: 9rem;
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 85vh;
    width: 100%;
    background-color: rgba(187, 187, 187, 0.637);
    box-shadow: 5px 5px 6px rgba(187, 187, 187, 0.637);
    z-index: 0;
}

.text{
    color: #383838;
    text-align: center;
    font-size: x-large;
    z-index: 1;
}

main{
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
}

.block1{
    color: #383838;
    text-align: center;
    padding: 3rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.block2{
    background-color: #2A9D8F;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    color: #FEFAE0;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.block2 ul{
    list-style: none;
}

.block2 ul li{
    padding-bottom: 5px;
    padding-top: 5px;
}

.block3{
    color: #383838;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.block3 p{
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.block4{
    background-color: #2A9D8F;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    color: #FEFAE0;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.block5{
    color: #383838;
    text-align: center;
    width: 100%;
}

footer *{
    text-decoration: none;
    color: #353535;
}

footer{
    padding: 22px;
    padding-bottom: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgb(255, 255, 255);
    /* box-shadow: 5px -5px 10px rgba(255, 255, 255, 0.2);    */
}

.contact-head a{
    color: #F5751D;
}

.block{
    border-style: solid;
    border: 20px thick #3d3d3d;
    padding: 26px;
}

p.contact-end{
    padding: 15px;
    text-align: center;
}

.main-con{
    margin: 4rem;
    text-align: center;
}

.box p{
    color:#777;
    font-size: 15px;
    line-height: 1.8;
}

.box .btn{
    margin-top: 10px;
    display: inline-block;
    background:#F4A261;
    color:#fff;
    font-size: 17px;
    border-radius: 5px;
    padding: 8px 25px;
    box-shadow: 1px 3px 10px #85858573;
}

.box .btn:hover{
    background:#E76F51;
    letter-spacing: 1px;
    transition: all 0.1s ease
}

/*  */

.con-button{
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content:space-around
}

.con-button p{
    color:#777;
    font-size: 15px;
    line-height: 1.8;
}

.con-button .btn{
    margin-top: 10px;
    display: inline-block;
    background:#ff9c46;
    color:#fff;
    font-size:x-large;
    border-radius: 25px;
    padding: 8px 105px;
    margin: 15px 10px;
    transition: all 0.2s ease
}

.con-button .btn:hover{
    background:#fa8a40;
    transition: all 0.2s ease
}

@media screen and (max-width: 1350px) {
	.con-button {
		display: flex;
        flex-direction: column;
        justify-content: center;
	}
    .con-button .btn{
        padding: 8px 45px;
    }
}