@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&family=Poppins:wght@400;500;600&family=Roboto+Mono:wght@400;700;600&display=swap');

:root {
    --main-color: rgb(61, 58, 51);
    --sec-color: #BBB59B;
    --comp-color: #3D3A33;
    --shadow: 0.04em 0.05em 0.03em #938F83;
    --text-shadow: 0.04em 0.05em 0.05em rgba(163, 157, 134, 0.4);
}

.project-container {
    position: relative;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 6rem;
}

.project-content-right {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: end;
}

.project-cover {
    height: 100%;
    width: 60%;
    position: relative;
    z-index: 0;
    opacity: 1;
    cursor: pointer;
}

.project-cover-color {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    animation: example-out 0.2s linear forwards;
    top: 0;
    cursor: pointer;
    z-index: 1;
    opacity: 0.5;
}

.project-image {
    height: 100%;
    width: 100%;
}
.project-cover-color:hover {
    animation: example 0.2s linear backwards;
    animation-direction: alternate;
}
.project-cover-color:hover:before {
    animation: opacity 0.2s linear backwards;
    animation-direction: alternate;
}
.project-cover-color:before {
    animation: opacity-out 0.2s linear forwards;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    opacity: 0.5;
    left: 0;
}

@keyframes example {
    0% {background-color: rgb(176, 164, 153);}
    50% {background-color: rgb(53, 189, 155);}
    100% {background-color: rgba(53, 189, 155, 0);}
}
@keyframes example-out {
    0% {background-color: rgba(53, 189, 155, 0);}
    50% {background-color: rgb(53, 189, 155);}
    100% {background-color: rgb(176, 164, 153);}
}
@keyframes opacity {
    0% {opacity: 0.5;}
    50% {opacity: 0.8;}
    100% {opacity: 1;}
}
@keyframes opacity-out {
    0% {opacity: 1;}
    50% {opacity: 0.8;}
    100% {opacity: 0.5;}
}


.project-text-content-right {
    padding-bottom: 1rem;
    place-content: center;
    max-width: 45%;
    height: 100%;
    display: grid;
    position: absolute;
    /* z-index: 2; */
}

.project-text-content-right .title {
    padding-left: 0;
    padding-bottom: 1rem;
    position: relative;
    width: max-content;
    z-index: 2;
}

.project-text-content-right .text {
    position: relative;
    z-index: 2;
    background-color: var(--sec-color);
    color: var(--main-color);
    font-family: 'Noto Sans TC', sans-serif;
    padding: 1rem;
    padding-left: 1.25rem;
    border-right: 5px solid var(--comp-color);
    text-shadow: var(--text-shadow);
    font-size: clamp(1rem, 3vw + 1rem, 1.3rem);
}

.project-footer-right .technologies {
    position: relative;
    width: max-content;
    z-index: 2;
    padding-top: 1rem;
    margin-left: -1.25rem;
    display: flex;
}

.project-footer-right .technologies p {
    color: var(--sec-color);
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 3vw + 1rem, 0.7rem);
    text-shadow: 0.04em 0.05em 0.05em rgba(163, 157, 134, 0.4);
    position: relative;
    width: max-content;
    z-index: 2;
}

.project-content-left {
    position: relative;
    z-index: -0;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: start;
}

.project-text-content-left {
    right: 0;
    padding-bottom: 1rem;
    place-content: center;
    max-width: 45%;
    height: 100%;
    display: grid;
    position: absolute;
    z-index: 1;
}

.project-text-content-left .title {
    padding-left: 0;
    padding-bottom: 1rem;
    text-align: right;
}

.project-text-content-left .text {
    position: relative;
    z-index: 60000;
    text-align: right;
    background-color: var(--sec-color);
    color: var(--main-color);
    font-family: 'Noto Sans TC', sans-serif;
    padding: 1rem;
    padding-left: 1.25rem;
    border-left: 5px solid var(--comp-color);
    text-shadow: var(--text-shadow);
    font-size: clamp(1rem, 3vw + 1rem, 1.3rem);
}

.project-footer-left .technologies {
    padding-top: 1rem;
    margin-left: -1.25rem;
    display: flex;
    position: relative;
    z-index: 2;
    flex-direction: row-reverse;
}

.project-footer-left .technologies p {
    color: var(--sec-color);
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 3vw + 1rem, 0.7rem);
    text-shadow: 0.04em 0.05em 0.05em rgba(163, 157, 134, 0.4);
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    background-color: rgba(61, 58 ,51, 0.5);
    height: 100vw;
    max-height: 100%;
    width: 100vw;
    max-width: 100%;
}

.image-viewer .images-carousel {
    height: 90%;
    width: auto;
    place-self: center;
    max-height: 80vw;
    /* max-width: 80vw; */
}

.images-content {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
    height: 90%;
    width: auto;
    place-self: center;
    align-items: center;
    max-height: 80vw;
    max-width: 80vw;
}

.images-content > *:not(:first-child){
    margin-left: 100vw;
}

.image-viewer svg * {
    fill: var(--main-color);
}
.image-viewer span * {
    cursor: pointer;
    background-color: var(--sec-color);
    box-shadow: var(--shadow);
}
.image-viewer span *:hover {
    background-color: var();
}

.icon {
    position: relative;
    width: max-content;
    z-index: 2;
}

#backward-icon {
    transform: rotate(180deg);
    margin-left: 4rem;
    position: absolute;
    left: 0;
    top: 50%;
    visibility: hidden;
}

#forward-icon {
    fill: var(--main-color);
    margin-right: 4rem;
    position: absolute;
    right: 0;
    top: 50%;
}
