* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #181818;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(45deg, #2a2d38, #23262d);
    overflow-x: hidden;
}

.search-container {
    background: rgba(20, 20, 20, 0.9);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.search-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 204, 0, 0.5);
    background-color: rgba(20, 20, 20, 0.85);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffcc00;
    text-shadow: 2px 2px 10px rgba(255, 204, 0, 0.6);
    animation: titleGlow 1.5s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 204, 0, 0.8), 0 0 20px rgba(255, 204, 0, 0.6);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 204, 0, 1), 0 0 30px rgba(255, 204, 0, 0.8);
    }
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

#search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ffcc00;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #ffcc00;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #ffcc00;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff8c00;
}

.result {
    display: none;
    margin-top: 1.25rem;
    background-color: rgba(20, 20, 20, 0.85);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: left;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.result.show {
    display: block;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 1em;
    color: #fff;
    overflow-x: auto;
}

.student-table th,
.student-table td {
    padding: 0.625rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.student-table th {
    background-color: #ffcc00;
    color: #000;
}

.student-table td {
    background-color: #222;
}

a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff8c00;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .search-container {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.8rem;
    }

    #search-input {
        font-size: 0.95rem;
    }

    button {
        font-size: 1rem;
    }

    .student-table th,
    .student-table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .student-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    #search-input {
        font-size: 0.85rem;
    }

    button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

.footer {
    background-color: #222;
    color: #aaa;
    padding: 1.25rem;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 2rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff0000;
}