#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: red;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#projects_section {
    padding: 50px 0;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

#projects_section h2 {
    text-align: center;
}

.projects_flex_container {

    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    width: 2048px;
    max-width: 90%;
    margin: auto;
    margin-top: 20px;
}

.projects_card {
    width: 250px;
    max-width: calc(90% - 40px);
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 10px;

    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: white;
}

.projects_card .headline {
    position: relative;
    top: 5px;
    margin-bottom: 10px;
}

.projects_card * {
    text-align: center;
}

.projects_card img {
    width: 250px;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 5px;
}

.projects_card video {
    width: 250px;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 5px;
}

.projects_card a {
    background-color: var(--main-brand-color);
    width: min-content;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 0 auto;
    text-decoration: none;
    color: var(--text-color);
    border: 4px solid var(--main-brand-color);
    transition: 150ms ease-in-out;
}

.projects_card a:hover {
    background: transparent;
}


.projects_pagination {

    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.projects_pagination a {
    color: var(--main-brand-color);
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    ;
}

.projects_pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.projects_pagination a:hover:not(.active) {
    background-color: var(--main-brand-color);
    color: white;
}

.projects_pagination a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.projects_pagination a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}