body {
    font-family: 'Arial', sans-serif, 'Krub', 'Lora';
    /* background: linear-gradient(135deg, #000000 0%, #a6213e 100%);   */
    /*(135deg, #1a1a2e 0%, #16213e 100%);*/
/*    min-height: 100vh;*/
    color: #333;
    margin: 0px;
}

.background {
    position: fixed; /* Ensures it stays behind content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: 8.36vw;
    background-image: url("../images/bgFinal.jpg");
    opacity: 1;
/*    background-repeat: no-repeat;*/
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: -100; /* Places it behind other content */
}


.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(133, 91, 13, 0.375); /* Adjust the color and opacity as needed */
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: calc(1.75*((0.9rem + 0.28vw) + 2.9vh + 2.9vh));
    margin-bottom: 25px;
    padding: 0px 20px;
/*    padding-top: 80px; /*

/*    position: relative;*/
}


header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
/*    margin-top: 10px;*/
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

h1 {
    font-family: Lora;
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 32px;
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-bar {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.search-btn {
    background: #012a4a; /*#350688; 1a1a2e*/
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-section {
    text-align: center;
}

.filter-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #1a1a2e;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/*.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}*/

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #1a1a2e;
    border-radius: 20px;
    background: transparent;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #1a1a2e;
    color: white;
}

.filter-btn.active {
    background: #1a1a2e;
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 16px;
}


.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #16213e;
}

.participants-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#studentsbutton.active, #studentsbutton:hover {
    background: #689d6a;
    color: black;
}

#facultybutton.active, #facultybutton:hover {
    background: #458588;
    color: black;
}

#postdocbutton.active, #postdocbutton:hover {
    background: #fabd2f;
    color: black;
}

#othersbutton.active {
    background: #e07a5f;
    color: black;
}


table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #012a4a;
    color: white;
    font-weight: bold;
}

tr:hover {
    background: rgba(26, 26, 46, 0.05);
}

/* Atom Animation Styles */
.atom-animation {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 100px;
    height: 100px;
    z-index: 0;
    opacity: 0.3;
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
}

.orbit-1 { width: 40px; height: 40px; animation-duration: 3s; }
.orbit-2 { width: 60px; height: 60px; animation-duration: 4s; }
.orbit-3 { width: 80px; height: 80px; animation-duration: 5s; }

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .search-filter-container {
        flex-direction: column;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 50%;
    }

    th, td {
        padding: 10px;
    }

    .atom-animation {
        display: none;
    }
}