@import "./themes.css";

.description {
    width: 95%;
    padding: 0 10px;
    text-align: center;
}

.projects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1500px;
    padding: 10px;
    justify-content: center;
    align-items: stretch;
    height: fit-content;
    margin: auto;
}

.project {
    min-width: 300px;
    width: 30%;
    max-width: 400px;
    margin: 10px;
    padding: 10px 30px;
    background-color: var(--box-color);
    /* border: 1px solid var(--primary-color); */
    /* height: fit-content; */
    h3 {
        text-align: left;
    }
}

.project:target {
    iframe {
        display: none;
    }
    .mini-gallery {
        display: none;
    }
    .full {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        animation: revealFromTop 0.4s ease-out forwards;
    }
    .part {
        display: none;
    }
}

@keyframes revealFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
    font-size: 14pt;
}

.half {
    width: 39%;
}

.project-description {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;

    p {
        width: 100%;
    }

    .full {
        display: none;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }

}

iframe  {
    width: 100%;
    aspect-ratio: 16 / 9;
    z-index: -10;
}


.full-preview {
    width: 100%;
}

.project-logos {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    height: 30px;

    img {
        width: fit-content;
        height: 100%;
    }
}

.mini-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px 0px;

    * {
        display: block;
        height: 85px;
    }
}

.auto {
    margin: auto;
}
.full-width {
    width: 100%;
}

.accent {
    color: var(--accent-color);
}

.no-line {
    text-decoration: none;
}

@media screen and (max-width: 1200px) {
    .mini-gallery {
        
        * {
            display: block;
            width: 45%;
            height: fit-content;
        }
    }
}