.work{
    margin: 0 5%;
}

.work>.title{
    font-size: xx-large;
}

.work-skills{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.work-skill{
    margin: 0.25em;
    display: inline-block;
    flex-direction: column;
    box-sizing: border-box;
}

.work-skill, .work-skill>.desc{
    border-radius: 25px;
}

.work-skill:hover{
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.work-skill>.desc{
    padding: 1em;
    text-align: center;
    display: none;
    width: 20em;
    z-index: 1;
    position: absolute;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.work-skill:hover>.desc{
    display: block;
}

.skill-language{
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    font-weight: bold;
}

.skill-language>img{
    width: 2.5em;
    margin: 1em;
}

.work-projects{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 1em;
    transition: all 0.4s ease-out;
}

.work-project{
    aspect-ratio: 1 / 1;
    display: flex;
    position: relative;
    flex-direction: column-reverse;
    margin: 1em;
    align-items: center;
    border-radius: 3em;
}

.work-project>img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.work-project-intro:hover>.desc{
    display: block;
}

.work-project:hover .work-project-intro{
    background-color: rgba(30, 30, 80, 0.5);
}

.work-project-intro{
    border-radius: inherit;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: center;
    color: lightgray;
    font-size: medium;
    font-weight: bolder;
}

.work-project-intro>.title{
    font-size: x-large;
    color: white;
}

.work-project-intro>.desc{
    display: none;
}

.work-project>.school-work{
    position: absolute;
    top: 0;
    background-color: yellow;
    padding: 0.5em;
    margin: 1em;
    border-radius: 1em;
    font-size: small;
}

.work-project-panel{
    display: none;
}

.work-project-panel.active{
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background-color: black;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8);
    border-radius: 2em;
}

.work-project-panel>.title, .work-project-panel>.desc{
    color: black;
}

.work-project-panel>.title{
    border-radius: inherit;
    display: flex;
    flex-direction: row;
}

.work-project-panel>.title>.title{
    flex: auto;
}

.work-project-panel>.title>.back, .school-work{
    flex: initial;
}

.work-project-panel>.title>.school-work{
    background-color: yellow;
}

.work-project-panel>.title>*{
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    padding: 1em;
    margin: 1em;
    font-weight: bolder;
    text-align: center;
    background-color: white;
    border-radius: inherit;
}

.work-project-panel>.desc{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: left;
    border-radius: inherit;
    margin: 1em;
}

.work-project-panel>.desc>.desc{
    width: max-content;
    background-color: white;
    border-radius: inherit;
    padding: 1em;
    margin-top: 1em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.work-project-panel>img{
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.work-project-button{
    align-items: center;
    display: flex;
    position: absolute;
    z-index: 2;
    color: white;
    background-color: black;
    padding: 1em;
    border-radius: inherit;
    bottom: 1em;
    right: 1em;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.work-project-button>.export{
    width: 1.25em;
    height: fit-content;
    padding-left: 0.5em;
}

.back{
    cursor: pointer;
}