@font-face {
    font-family: 'swu-font-sarabun-regular';
    src: url('../fonts/Sarabun-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'swu-font-sarabun-bold';
    src: url('../fonts/Sarabun-Bold.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'swu-font-sarabun-regular';
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color:#442C64;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

/* Menu Styles */
.menu {
    background: #7c7b7b;
    color: white;
}

.menu ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 2px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.menu ul li a {
    color: white;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: #000dff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu ul {
        flex-direction: column;
        display: none;
    }

    .menu ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Content Styles */
.content {
    flex: 1;
    padding: 20px;
}

/* Footer Styles */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 20px;
    position: sticky;
    top: 100vh;
}

a {
    text-decoration: none !important;
    color: #007bff;
}

/* แสดงสีแท็บที่เลือก */

.tab-content.active {
    display: block;
}

.tab-button {
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #ccc;
    margin-right: -1px;
    display: inline-block;
    background-color: #f9f9f9;
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    border: 1px solid #dee2e6;
    padding: 10px;
    margin-top: -1px;
}
.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
}
/* แสดงสีแท็บที่เลือก */

/*button*/
.btn-yellow {
    background-color: #f2f276;
    color: #000;
}
.btn-lightgreen
{
    background-color: #76f297;
    color: #000; 
}
.btn-darkgreen
{
    background-color: #408352; 
    color: #000;
}
.btn-outline-lightgreen {
    border-color: #76f297;
    color: #3b6e48;
}
.btn-outline-lightgreen:hover, .btn-outline-lightgreen:focus {
    background-color: #76f297;
    color: #000;
}
.btn-outline-lightgreen:active {
    background-color: #76f297;
    color: #000;
}
.btn-outline-lightgreen:focus-visible {
    background-color: #76f297;
    color: #000;
}
.btn-check:checked + .btn-outline-lightgreen {
    background-color: #76f297;
    color: #000;
}
/*button*/

/*text*/
.text-orange {
    color: orangered;
}
.text-lightgreen
{
    color: #66ca81;
}
.text-darkgreen
{
    color: #408352; 
}

.text-purple
{
    color: #7965C1; 
}
/*text*/

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
}