#work {
    margin-top: 300px;
}

.work-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.work-projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    height: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
}

.work-project {
    background-color: var(--card-color);
    border-radius: 5px;
    margin: 10px;
    padding: 10px;
    width: 400px;
    text-align: center;
}

.work-project p {
    text-align: left;
}

.work-project-desc {
    margin-top: 10px;
}

.work-project-title {
    font-size: 35px !important;
}

.work-static-image {
    width: 100%;
    border-radius: 5px;
    display: block;
    opacity: 1;
}

.work-hover-image {
    display: block;
    border-radius: 5px;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    object-fit: fill;
}

.work-image-container {
    position: relative;
}

.work-image-container:hover .work-static-image {
    opacity: 0;
}

.work-image-container:hover .work-hover-image {
    opacity: 1;
}

.work-project-details {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
}

.work-project-labels {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: hidden;
    width: 100%;
    margin-top: 10px;
    gap: 5px;
}

.work-project-label {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--orange-color);
    color: var(--text-label-color);
    border-radius: 5px;
    font-weight: bold;
    padding: 2px 5px;
}

.work-project-label:last-child {
    margin-right: 0;
}

.work-project-label:first-child {
    background-color: var(--purple-color);
    color: white;
}

.work-project-label:first-child img {
    width: 15px;
    padding-right: 5px;
}

.work-project-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.work-project-button {
    background-color: var(--card-btn-color);
    border-radius: 5px;
    color: var(--text-color);
    padding: 5px 10px;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
}

.work-project-button:hover {
    background-color: var(--orange-color);
    color: var(--text-label-color);
}

@media (min-width: 320px) and (max-width: 768px) {
    .work-project {
        width: 0;
        min-width: 250px;
    }

    .work-project-title {
        font-size: 20px !important;
    }
}
