body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
}

header {
    background-color: #003366;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}
nav {
    display: flex;
    justify-content: space-around;
    width: 70%;
    margin: auto;
}

nav a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
    position: relative;
}

h1, h2 {
    color: #003366;
    text-align: center;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

button {
    padding: 10px 20px;
    background-color: #ffd700;
    border: none;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
}

.student-image {
    position: absolute;
    right: 50px;
    top: 50px;
    width: 200px;
}

.hearts {
    position: absolute;
    right: 0;
    top: 50px;
}

.heart {
    font-size: 24px;
    margin-right: 5px;
}

/*#resultTable {
    width: 100%;
    border-collapse: collapse;
}

#resultTable td {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #e6f2ff;
}*/

.social-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.fb-button {
    background-color: #4267B2;
    color: white;
    margin: 0 5px;
}

footer {
    background-color: #003366;
    color: white;
    padding: 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 70%;
    margin: auto;
}

.social-icons {
    display: flex;
}

.icon {
    width: 30px;
    height: 30px;
    background-color: white;
    color: #003366;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    text-decoration: none;
}
#resultTable {
    border-collapse: separate; /* Để các đường viền gộp lại thành một */
    width:  60%; /* Độ rộng của bảng */
    border: 1px solid #33c4dd; /* Đường viền toàn bộ bảng */
    margin: 0 auto; /* Đưa bảng vào giữa bằng cách sử dụng margin auto */
    margin-top: 40px;
    border-spacing: 1px; /* Khoảng cách giữa các ô */
}

#resultTable td {
    border:1px solid #33c4dd; /* Đường viền cho từng ô trong bảng */
    padding: 8px; /* Khoảng cách giữa nội dung của ô và đường viền */
    text-align: center; /* Căn giữa nội dung trong ô */
    width: 40%; /* Chiều rộng của từng cột */
     color: #003366;
     font-size: 1.25rem;
     font-weight: bold;
}
.banner-container {
    margin: 0 auto;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
/* Căn giữa màn hình */
#successMessage {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: red;
    margin-top: 15px;
}

/* Hiệu ứng nhấp nháy */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s infinite;
}
@media (max-width: 768px) { /* Khi màn hình nhỏ hơn 768px (mobile) */
    #resultTable {
        width: 100%; /* Chiếm toàn bộ chiều rộng */
        overflow-x: auto; /* Cuộn ngang nếu cần */
        display: block; /* Đảm bảo không bị vỡ bố cục */
    }
    #resultTable td {
        width: 30%;
    }
}
@media (max-width: 1333px) {
    .banner-image {
        height: calc(421 / 1333 * 100vw);
    }
}