* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.container {
    width: 100%;
    margin: 0 auto;
}

button {
    background-color: #c7ae79;
    width: 5rem;
    height: 2rem;
    border-radius: 1rem;
}

button a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

nav {
    color: #ffffff;
    background-color: #2a2a2a;
    position: sticky;
    top: 0;
    overflow: hidden;

}

/* main */
main {
    padding: 0;
    color: aliceblue;
    background-color: #2a2a2a;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.footermenu {
    display: flex;
    align-items: center;
    text-align: center;
    background-color: #2a2a2a;

}




.footermenu img {
    display: block;
    width: 3rem;
    padding: 0.1rem;
    margin: auto;
}

.footermenu a {
    width: 20%;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.5rem;
    font-weight: bold;
}


/* footer */
footer {
    color: aliceblue;
    background-color: #2a2a2a;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: sticky;
    bottom: 0;
    overflow: hidden;
}

.imgfme img {
    width: 1.5rem;
}

#menu1 {
    border-top: 0.3rem solid #e6d45a;
}

#menu2 {
    border-top: 0.3rem solid #e6d45a;
    border-radius: 0 3rem 0.1rem;

}

#menu3 img {
    width: 3rem;
}

#menu4 {
    border-top: 0.3rem solid #e6d45a;
    border-radius: 3rem 0rem 1rem;

}

#menu5 {
    border-top: 0.3rem solid #e6d45a;

}



.logoimg {
    width: 2.3rem;
    margin: 0;
    border: 0px solid #ffffff;
    border-radius: 3rem;
}

.fa {
    color: #ffffff;
    padding: 0;
    margin: 0.2rem 0.2rem;
}



.topnav {
    overflow: hidden;
    background-color: #ffffff;
    background-color: #414141;
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 0.2rem;
    margin: 0.3rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}

.topnav a:hover img {
    color: black;
}

.topnav a.active {
    width: 2rem;
    color: white;
    padding: 0;
    margin: 0.5rem;
}

.topnav .icon {
    display: none;
}

@media screen and (min-width:601px) {
    body {
        width: 50%;
        display: block;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-left: 25%;
        background-color: rgb(0, 0, 0);
    }

    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}


@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }

    .grid-container {
        width: 90%;
    }
}







/* ข่าวสาร */

.set1 {
    display: flex;
    /* border: 3px solid #ffffff; */
    border-radius: 0.2rem;
    margin: 0.5rem;


}

.set1 img {
    width: 50%;
    border-radius: 1.5rem;
    padding: 0.5rem;
}

.set1 p {
    display: block;
    margin-top: 1rem;
    width: 75%;
    color: rgb(255, 255, 255);
    text-align: start;
}

.set1 a {
    color: #ff0000;
    font-weight: bold;
    text-decoration: none;
    justify-content: center;
    margin-top: 3rem;
}