main {
    overflow-x: scroll;
}
button{
    cursor: pointer;
}
.type{
    max-width: calc(22vw - 20px);
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    top:110px;
    left:12px;
    z-index: 30;
}

.type button{
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-weight: 300;
    font-style: normal;
    background-color: #30303000;
    color: white;
    padding: 2px 5px 2px 5px;
    margin: 2px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition-duration: background-color 0.3s;
    border: 1px solid rgba(55, 55, 55);
}
.type button:hover{
    background-color: #3030309a;
}
.work{
    display: none;
}
#selected{
    border: 1px solid rgba(0, 255, 255, 0.418);
    background-image: linear-gradient(to right, #00a7a45d, #00a76151);
    scale: 1.03;
}
.projects_container {
    margin-top: 0px;
    margin-left: calc(22vw + 10px);
    margin-right: 10px;
    max-width: 80vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-y: hidden;
}

.project_block {
    border: 1px solid rgb(55,55,55);
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
    background-color: #5c5c5c00;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px black;
    transition: scale 0.3s ease, opacity 0.2s ease, height 0.7s ease;
}

.learnMore {
    font-family: "IBM Plex Sans", sans-serif;
    background-color: transparent;
    border: none;
}

.project_img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 10px;
    transition-duration: 0.3s;
    cursor: pointer;
}

.project_block:hover {
    background-color: #000000c9;
}

.project_block:hover .project_img {
    scale: 0.98;
    opacity: 0.6;
}
.project_block:hover .learnMore::after {
    content: "Learn More";
    position: absolute;
    width: calc(100% - 20px);
    height: 170px;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 10;
}

.project_block:hover .project_iframe {
    scale: 0.98;
    opacity: 0.6;
}

.languages_container{
    margin-top: 5px;
    text-align: left;
    font-size: 12px;
    color:rgb(121, 116, 116);
    font-weight: 500;
    opacity: 0.8;
}
iframe{
    filter: invert(1);
    border-radius: 3px;
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 10px;
    transition-duration: 0.3s;
    cursor: pointer;
}
iframe:hover{
    filter: invert(1) brightness(0.4);
}

h2 {
    margin-left: 10px;
    position: absolute;
    padding-bottom: 5px;
    width: calc(100% - 20px);
    border-bottom: 1px solid rgb(50, 50, 50);
}
.proj_details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.proj_links {
    display: flex;
    align-items: center;
}

.proj_links img {
    height: 20px;
    margin-left: 7px;
    max-width: 30px;
}

.proj_links a {
    cursor: pointer;
}

.starCount {
    scale: 1.2;
}

.pagination {
    position: absolute;
    bottom: 70px;
    left:15px;
    display: flex;
    justify-content: center;
    border: 1px solid rgb(47, 47, 47);
    width: fit-content;
}

.pagination button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 15px;
    border-right: 1px solid rgb(47, 47, 47);
    border-left: 1px solid rgb(47, 47, 47);
    padding: 2px 7px;
    cursor: pointer;
    border-radius: 3px;
}
.pagination span{
    padding: 2px 7px;
}

.pagination button:disabled {
    color: rgb(81, 81, 81);
    cursor: not-allowed;
}

@media screen and (max-width: 1117px) {
    .projects_container {
        max-width: 100vw;
        grid-template-columns: repeat(2, 0fr);
        margin-left: 15px;
        margin-top: 10px;
    }
    .project_block{
        width: calc(50vw - 40px);
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.758);
    }
    .type{
        position: relative;
        margin-top: 23px;
        max-width: calc(100vw - 20px);
        justify-content: left;
    }
    .type button{
        font-size: 16px;
    }
    
    .pagination{
        top: 105px;
        bottom: auto;
    }
}

@media screen and (max-width: 620px) {
    .projects_container {
        max-width: 100vw;
        grid-template-columns: repeat(1, 0fr);
        margin-left: 15px;
    }
    .project_block{
        width: calc(100vw - 52px);
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.758);
    }
}
