html {
    margin: 0px;
    background-color: black;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    margin: 0px;

    color: white;
    background: linear-gradient(rgb(36, 37, 49), black);

    background-position: center;
    background-size: cover;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    margin: 0px;
    width: 100%;
    max-width: 1269px;
}

img {
    pointer-events: none;
    user-select: none;
}

#project-poster-container-wrapper {
    width: 100%;
    margin: 0px;

    display: flex;
    align-items: center;
    flex-direction: column;

    padding-bottom: 32px;
}

#project-poster-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    height: auto;
    gap: 12px;
    flex-wrap: wrap;
    width: 1269px;
    min-width: 1269px;
    margin: 0px;
}

.project-poster {
    position: relative;
    width: 335px;
    height: 415px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;

    background-image: url("");
    background-size: cover;
    background-position: center;

    border-radius: 12px;
    cursor: pointer;
    
    user-select: none;
    box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.75);
}

.project-poster .description {
    padding-top: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    width: 100%;
    border-start-start-radius: 0px;
    border-start-end-radius: 0px;
    border-end-end-radius: 12px;
    border-end-start-radius: 12px;
    z-index: 1;
    transition-property: border-start-start-radius, border-start-end-radius;
    transition-duration: 0.25s;
}

.project-poster:hover .description {
    border-start-start-radius: 12px;
    border-start-end-radius: 12px;
    transition-property: border-start-start-radius, border-start-end-radius;
    transition-duration: 0.25s;
}

.project-poster .description p, h3 {
    color: white;
    margin: 0px;
    margin-left: 12px;
    margin-right: 12px;
}
.project-poster .description a {
    color: rgb(112, 238, 255);
}

.project-poster .description p {
    font-size: 12px;
    margin-bottom: 12px;
}

.project-poster img {
    width: 85%;
    image-rendering: pixelated;

    pointer-events: none;
}

.project-poster .project-gif-display {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    opacity: 0%;

    transition-duration: 0.25s;
    transition-property: opacity, top, width, height;

    box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.75);
}

.project-poster:hover .project-gif-display {
    position: absolute;
    width: 105%;
    height: 105%;
    top: -10.37px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    opacity: 100%;
    
    transition-duration: 0.25s;
    transition-property: opacity, top, width, height;
}

.project-poster > .title-container {
    position: relative;
    width: 100%;
    z-index: 1;
    top: 0px;
    transition-duration: 0.5s;
    transition-property: width top;
    display: flex;
    justify-content: center;
}

.project-poster:hover > .title-container {
    width: 115%;
    top: -10.37px;
    transition-duration: 0.5s;
    transition-property: width top;
}

#project-details-container.hidden {
    height: 0px;
    overflow: hidden;
    margin: 0px;
}

#background-dark {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.26);
    z-index: 2;
    user-select: none;
    display: none;
}

#background-dark-image {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.26);
    z-index: 2;
    user-select: none;
    display: none;
}

#project-details-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    max-width: 1230px;
    height: 100%;
    max-height: 650px;
    background-size: 600px;
    background-repeat: no-repeat;
    background-position-y: center;
    overflow: hidden;
    margin-bottom: 48px;
    z-index: 3;

    background-color: rgb(11, 12, 23);
    color: #b7cedd;

    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: stretch;
    gap: 32px;

    transition-property: height, margin;
    transition-duration: 0.25s;
}

#project-details-container #project-details-close {
    position: absolute;
    top: 0px;
    right: 12px;
    font-size: 32px;
    overflow: hidden;
    z-index: 3;
    user-select: none;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

#project-details-container > .project-details-content {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    justify-content: space-between;
    width: 100%;
    margin-right: 32px;
    margin-bottom: 32px;
}

#project-details-container > .project-image {
    width: 335px;
    max-width: 335px;
    flex-grow: 1;
    object-fit: cover;
}

.project-details-content h1 {
    margin: 0px;
    font-size: 32px;
    color: #d9f5fd;
}
.project-details-content .links {
    font-size: 18px;
}

.project-details-content a {
    color: rgb(107, 199, 164);
}
.project-details-content a:active, a:visited {
    color: rgb(107, 199, 164);
}

.project-details-content .image-scroller {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 831px;
    height: 100%;
    max-height: 250px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.image-scroller .left-gradient {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, rgb(11, 12, 23), transparent);
    pointer-events: none;
    user-select: none;
}

.image-scroller .right-gradient {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 25%;
    height: 100%;
    background: linear-gradient(-90deg, rgb(11, 12, 23), transparent);
    pointer-events: none;
    user-select: none;
}

.project-details-content .example-container {
    display: flex;
    gap: 5px;
    overflow: hidden;
    align-items: center;
    width: 100%;
    height: 100%;
}

.project-details-content .example-container img {
    height: 75%;
    pointer-events: all;
    transition-duration: 0.25s;
    cursor: pointer;
}
.project-details-content .example-container img.active {
    height: 100%;
    transition-property: height;
}

.project-details-content .description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-details-content .title-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
    margin: 0px;
    margin-top: 32px;
    width: 100%;
}

.project-details-content .main-content {
    width: 100%;
}

.icon {
    width: 32px;
    height: 32px;
}

.background-default-gradient {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 200px, rgb(11, 12, 23) 335px); 
}

#image-display {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    display: none;
    user-select: none;
}
#image-display > .image-container {
    position: relative;
    width: 0%;
}
#image-display.active > .image-container {
    width: 75%;
    max-width: 900px;
    transition-property: width;
    transition-duration: 0.1s;
}

.image-container > img {
    width: 100%;
    box-shadow: 0px 0px 20px 5px black;
    border: 1px solid black;
}

.skill-showcase {
    display: flex;
    justify-content: space-around;
    max-height: 100px;
}

.skill-showcase .skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100px;
}

.skill-showcase .skill h1 {
    margin: 0px;
}

.skill-showcase .skill img {
    height: 50%;
    margin: 0px;
}

@media screen and (max-width: 1015px) {
    #project-poster-container {
        width: 100%;
        min-width: 100%;
    }
    .project-poster {
        width: 100%;
        max-width: 335px;
    }
    #project-details-container {
        width: 90%;
        height: fit-content;
        flex-direction: column;
    }
    .project-details-content {
        position: relative;
        width: fit-content;
        padding: 12px;
        box-sizing: border-box;
        overflow-y: scroll;
    }
    .project-details-content .example-container {
        display: none;
    }
    .project-details-content .title-container {
        margin: 0px;
        width: 100%;
    }
    #project-details-container > .project-image {
        display: none;
        width: 100%;
        height: 315px;
        object-fit: cover;
    }
    .background-default-gradient {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 200px, rgb(11, 12, 23) 335px);
    }
}