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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #333;
}

header h1 {
    font-size: 2.5rem;
}

header p {
    font-size: 1.1rem;
    margin-top: 10px;
}

.filter {
    margin: 40px auto;
    width: 80%;
    max-width: 900px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.filter label {
    margin-right: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

select {
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #ddd;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0px 0px 10px rgba(76, 175, 80, 0.5);
}

.results {
    margin: 20px auto;
    width: 80%;
    max-width: 900px;
}

#faculty-info {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

#faculty-info:hover {
    transform: scale(1.03);
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}

footer p {
    margin: 10px 0;
}

/* ปรับปรุงการออกแบบปุ่ม */
button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

button:active {
    background-color: #388e3c;
    transform: translateY(1px);
}

/* เพิ่มแอนิเมชันสำหรับการโหลดข้อมูล */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#faculty-info {
    animation: fadeIn 0.5s ease-out;
}
.center-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* ให้สูงเต็มหน้าจอ */
    margin-top: -50px;
    /* ขยับปุ่มขึ้นมา */
}

.btn {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #45a049;
}