h1 {
    color: var(--white-1);
    text-align: center;
}

h1 a {
    color: rgba(0, 183, 255, 0.6);
}

h1 a::after {
    content: "↗";
    font-size: small;
}

h1 a:hover {
    color: rgb(0, 183, 255);
}

.projects-list {
    margin-inline: 15%;
}

.projects-list ol {
    list-style: none;
    padding-left: 0px;
    
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    
    justify-content: space-between;
}

.projects-list .project-card {
    flex: 30% 1 1;
    height: 200px;
    position: relative;
    
    padding: 0px;
    border-radius: 5px;
    /*background-color: rgba(255, 255, 255, 1);*/
    border: white 1.5px solid;
    
    transition: all .2s, height 0s, flex 0s, padding 0s, display 0s;
}

.projects-list:hover .project-card:hover {
    cursor: pointer;
    border-color: yellow;
}

.projects-list:hover .project-card:hover:not(.details) {
    /*flex: 35%;*/
    transform: scale(1.05);
}

.projects-list:hover .project-card:not(.details) {
    /*flex: 28%;*/
    transform: scale(1);
}

.projects-list .project-card.hidden {
    display: none;
}

.projects-list .project-card .thumbnail {
    width: 100%;
    height: 200px;
    
    object-fit: cover;
    
    border-radius: 5px;
}

.projects-list .project-card .name {
    position: absolute;
    font-size: 25px;
    font-weight: 700;
    color: white;
    
    padding: 2px 10px;
    top: -17px;
    left: 10px;
    
    border-radius: 5px;
    
    background-color: rgba(0, 0, 0, 0.8);
}

.projects-list .project-card.details {
    flex: 100%;
    height: 100%;
    width: 100%;
    padding: 50px;
    background-color: var(--bg-color2);
    border: none;
    
    .thumbnail {
        height: auto;
    }
    
    .tags-list, .name {
        display: none;
    }
    
    .readme {
        position: relative;
        transform: translateY(-50px);
    }
    
    transition: all 1s, height 0s, flex 0s, padding 0s;
}

.projects-list .project-card .readme {
    background-color: var(--bg-color2);
    box-shadow: 0px -50px 10px 30px var(--bg-color2);
    font-size: 1.3em;
    text-align: left;
    color: var(--white-4);
    
    min-height: 300px;
    width: 100%;
    
    img {width: 100%;}
    iframe {width: 100%;}
    a:hover {color: rgb(0, 183, 255);}
    h1, h2, h3, h4 {color: white;}
    
    code {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 2px 6px;
        border-radius: 2px;
        width: auto;
        line-height: 1.7;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    ul {
        list-style: disc;
    }
}

.projects-list .project-card .readme.hidden {
    display: none;
}

.tags-list {
    position: absolute;
    bottom: -8px;
    right: 5px;
    
    padding: 0px;
}

.tags-list ol {
    list-style: none;
    display: flex;
    flex-direction: row;
    
    width: 100%;
    overflow: hidden;
    padding: 0px;
    margin: 0px;
    gap: 5px;
}

.tags-list ol .tag {
    color: white;
    font-size: 12px;
    font-weight: 700;
    background-color: rgba(0, 100, 200, 0.9);
    border-radius: 5px;
    
    padding: 5px 5px;
}

@media (max-width: 1200px) {
    .projects-list {
        margin-inline: 10%;
        padding: 0px;
        justify-content: center;
        flex-wrap: nowrap;
        flex-direction: column;
    }
    
    .projects-list .project-card {
        position: relative;
        flex: 100%;
        margin-left: 0px;
        height: 30vh;
        
        .thumbnail {
            height: 100%;
            width: 100%;
        }
        
        .name {
            width: auto;
            text-align: center;
            font-size: clamp(25px, 4.19vw, 50px);
            top: clamp(-30px, -3.18vw, -10px);
            left: 10px;
        }
    }
    
    .projects-list .project-card.details {
        padding: 30px;

        .thumbnail {
            height: 100%;
        }

        .readme {
            position: relative;
            transform: translateY(0px);
            box-shadow: none;
            font-size: 1em;
        }

        transition: all 1s, height 0s, flex 0s, padding 0s;
    }
}

@media (max-width: 700px) {
    
    .projects-list .project-card.details {
        padding: 15px;
    }
    
    .projects-list {
        margin-inline: 5%;
    }
}


