* {
    margin: 0;
    padding: 0;
}

body {
    font-size: 14px;
    background-image: url(../images/bg3.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: 50% 50%;
}

.container {
    width: 1000px;
    margin: 0 auto;
}

.contributors .heading-box {
    background-color: pink;
    border: 2px solid purple;
    padding: 30px 70px;
    text-align: center;
    position: relative;
    margin-bottom: 25px;
}

.contributors .heading-box:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translate(-50%, 0%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid pink;
}

.contributors .heading {
    font-size: 4.5rem;
    margin-bottom: 30px;
    color: rgb(50, 50, 12);
    transition: color 0.3s ease-in-out;
}

.contributors .heading:hover {
    color: purple;
}

.contributors .subheading {
    margin-top: 10px;
    font-size: 25px;
}

.dark-mode .contributors .heading-box {
    background-color: grey;
    border: 2px solid black;
}

.dark-mode .contributors .heading-box:after {
    border-top-color: grey;
}

.dark-mode .contributors .heading {
    color: white;
}

.dark-mode .contributors .heading:hover {
    color: lightgrey;
}

.contributors {
    margin: 0;
    padding: 0;
}

.dark-mode .contributors h1 {
    color: beige;
}

.dark-mode header.header2 {
    background-image: none;
    background-color: black;
}

#contributor {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Add some space between the cards */
    justify-content: center;
    align-items: center;
}

.contributor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    margin: 10px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.contributor-card:hover {
    transform: scale(1.22);
    opacity: 10;
}

.contributor-card img {
    width: 95px;
    height: 95px;
    clip-path: circle(50%); /* True circle */
    object-fit: cover;
    display: block;
    margin-bottom: 10px; /* Add some space below the image */
}

.contributor-name {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    color: #c9d1d9; /* Ensure visibility */
}

.contributions-count-bubble {
    font-size: 12px;
    color: #c9d1d9;
    background-color: #3A0088;
    padding: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -130px;
    right: -40px;
}

.lazy {
    filter: blur(5px);
    transition: filter 0.3s;
}

.lazy.loaded {
    filter: blur(0);
}

#loading-spinner {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#error-message {
    color: white;
    padding: 20px;
    display: none;
    font-size: 19px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .contributors .heading {
        font-size: 3.5rem;
    }
}