.body-works {
    flex: 1;
    padding-top: 10vh;
    display: flex;
    justify-content: center;
    user-select: none;
    box-sizing: border-box;

    overflow: hidden;
}

.sectionProjects {
    width: 90%;
    height: 97.5%;
    display: flex;
    flex-direction: column;
}

.sectionProjects-filter {
    position: relative;
    width: 100%;
    font-size: 2vh;
    border-radius: 2vh;
    border: 0.25vh solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
    padding: 2vh;
    display: flex;
    flex-direction: column;
}

.sectionProjects-filter.minimized {
    margin-left: auto;
    width: 16vh;
    padding-bottom: 3vh;
    font-size: 2vh;
    display: flex;
}

.content-filter.hidden {
    display: none;
}

.toggleFilter-wrapper {
    position: absolute;
    top: 1vh;
    right: 1vh;
    display: flex;
    align-items: center;
    gap: 1vh;
}

.toggleText {
    font-size: 2vh;
}

.toggleText.hidden {
    display: none;
}

#toggleFilter {
    width: 3vh;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 0.25vh solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
    background: url('../assets/filter-icon.svg') no-repeat center;
    background-size: 50%;
    pointer-events: auto;
}

#toggleFilter:hover {
    border: 0.25vh solid var(--tertiary-color);
    box-shadow: 0 0 0.25vh var(--tertiary-color), 0 0 1vh var(--tertiary-color);
    filter: drop-shadow(0 0 1vh var(--tertiary-color));
}

.filter-text {
    position: absolute;
    top: 1.25vh;
}

.filter-text.hidden {
    display: none;
}

.bottom-line {
    margin: 0.5vh 0;
    width: 100%;
    height: 0.2vh;
    border-radius: 2vh;
    border: 0.15vh solid var(--secondary-color);
    box-shadow: 0 0 0.15vh var(--secondary-color), 0 0 1vh var(--secondary-color);
}

.tags-language,
.tags-technologies {
    display: flex;
    gap: 1vh;
    row-gap: 0.25vh;
    flex-wrap: wrap;
}

.tag {
    display: flex;
    justify-content: center;
}

.sectionProjects-works {
    width: 100%;
    margin-top: 1vh;
    padding: 1vh;
    display: inline-grid;
    grid-template-columns: auto;
    column-gap: 2vh;
    row-gap: 2vh;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.sectionProjects-item {
    position: relative;
    display: flex;
    border-radius: 2vh;
    border: 0.25vh solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
    height: fit-content;
    padding: 2.5vh;
    padding-bottom: 3vh;
    box-sizing: border-box;
}

.sectionProjects-item img {
    display: none;
}

.sectionProjects-item h2 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 3vh;
}

.status-checker{
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 5px;
    height: fit-content;
}

.status-dot-pulse {
    aspect-ratio: 1 / 1;
    position: relative;
    width: 16px;
    height: 16px;
}

.status-text {
    font-size: 0.75rem;
}

.status-dot-pulse span {
    aspect-ratio: 1 / 1;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .8;
    background-color: gray; 
    border-radius: 50%;
    animation: pulseAnimate 2.5s ease-in-out infinite;
    animation-delay: calc(1s * var(--i));
    z-index: 8;
}

.status-dot {
    aspect-ratio: 1 / 1;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: gray;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.status-dot:hover {
    outline: 0.35vh white solid;
}

@keyframes pulseAnimate {
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.sectionProjects-item h4 {
    margin: 0;
    font-size: 2vh;
    font-weight: normal;
    font-style: italic;
    color: var(--secondary-color);
}

.sectionProjects-item p {
    margin: 2vh 0;
    font-size: 2vh;
}

.sectionProjects-item img {
    font-size: 2vh;
}

.sectionProjects-item .button-container {
    margin-bottom: 0;
    margin-left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
}

.sectionProjects-item .project-button {
    background-color: #007bff;
    color: white;
    padding: 3vh;
    border: none;
    border-radius: 1vh;
    cursor: pointer;
    text-decoration: none;
    font-size: 2vh;
    transition: background-color 0.3s;
    flex: 1;
    /* Makes both buttons take up equal space */
    text-align: center;
    /* Centers the text inside the buttons */
    max-width: 48%;
    /* Ensures they don't stretch too much */
    box-sizing: border-box;
    /* Ensures padding doesn't affect the width */
    height: 6vh;
    /* Set a fixed height for the buttons */
    display: flex;
    align-items: center;
    /* Vertically centers the text within the button */
    justify-content: center;
    /* Horizontally centers the text within the button */
}

.sectionProjects-item .project-button:hover {
    background-color: #0056b3;
}

.sectionProjects-item .details-button {
    background-color: #28a745;
}

.sectionProjects-item .details-button:hover {
    background-color: #218838;
}

.sectionProjects-item .link-button {
    background-color: #007bff;
}

.sectionProjects-item.hidden {
    display: none;
}

.body-works::-webkit-scrollbar-track-piece:end {
    background: transparent;
    margin-bottom: 15vh;
}

.body-works::-webkit-scrollbar-track-piece:start {
    background: transparent;
    margin-top: 15vh;
}

/* Style for project's details page */
.project-item-body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project-item-title {
    padding-left: 5vh;
    margin: 0 auto;
    font-size: 3vh;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: 'Roboto Condensed';
}

.image-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;
    width: 100%;
    overflow: hidden;
    border: 0.25vh solid var(--secondary-color);
}

.project-image {
    width: 100%;
    cursor: pointer;
    pointer-events: all;
}

.project-item-content {
    font-size: 2vh;
    margin: 2vh 0;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
}

.colored-text {
    color: var(--secondary-color);
}

.linktorepo {
    color: var(--secondary-color);
}

/* Tablets and medium screens */
@media (min-width: 801px) and (max-width: 1240px) {

    /* Styles for tablets */
    .body-works {
        padding-top: 8vh;
    }

    .body-works::-webkit-scrollbar-thumb {
        border: 0.75vh solid rgba(0, 0, 0, 0);
    }

    .sectionProjects-works {
        grid-template-columns: repeat(2, 1fr);
    }

    .sectionProjects-item img {
        display: block;
    }

    .sectionProjects-item p {
        min-height: 6vh;
        max-height: 6vh;
    }

}

@media (hover: none) {
    #toggleFilter:hover {
        border: 0.25vh solid var(--secondary-color);
        box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
        filter: none;
    }
}

/* Desktops and larger screens - Default style */
@media (min-width: 1241px) {

    /* Styles for desktops and larger screens */
    .body-works {
        padding-top: 8vh;
    }

    .body-works::-webkit-scrollbar-thumb {
        border: 0.75vh solid rgba(0, 0, 0, 0);
    }

    .sectionProjects-works {
        grid-template-columns: repeat(3, 1fr);
    }

    .sectionProjects-item img {
        display: block;
    }

    .sectionProjects-item p {
        min-height: 8vh;
        max-height: 8vh;
    }
}