@import url(https://fonts.googleapis.com/css?family=Montserrat:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background-color: #eaeaea;
}

.card {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    flex: 0 0 calc(25% - 15px);
}

.card-info {
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 0px;
    height: 400px;
    /* background-color: rgba(169, 101, 0, 0.893); */
    border-radius: 1rem;
}

.card-info.profile--expanded {
    opacity: 1;
    width: 240px;
    animation: expand 0.5s ease;
    /* background-color: rgb(153,255,204); */
    /* animation: reveal 0.7s ease; */
}

.card-info.profile--unexpanded {
    opacity: 0;
    width: 0px;
    animation: unreveal 0.7s ease;
}

.profile--unexpanded > .card-info, .profile--expanded > .card-info {
    width: 100%;
    text-align: center;
    padding-top: inherit;
    height: 66px;
    position: absolute;
    top: 168px;

    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}
.profile--unexpanded > .card-info {
    opacity: 0;
    animation: unreveal 0.2s ease;
}
.profile--expanded > .card-info {
    opacity: 1;
    animation: reveal 0.7s ease;
}
.card-info > * > * {
    display: block;
}
.card-info > * > *:first-child {
    font-size: 1.2rem;
    font-weight: bold;
}
.card-info > * > *:nth-child(2) {
    font-size: 0.9rem;
}

@keyframes reveal {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes unreveal {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}
@keyframes expand {
    0% {
        height: 180px;
    }
    100% {
        height: 240px;
    }
}
@keyframes unexpand {
    0% {
        height: 240px;
    }
    100% {
        height: 180px;
    }
}

.profile__banner {
    display: block;
    height: 70px;
    width: 100%;
    background-color: rgb(175, 105, 175);
    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    transition: all 0.5s ease-in-out;
    position: relative;
    width: 70%;
    margin-left: 15%;
}

.triangle_container {
    display: grid;
    justify-self: start;
    margin-left: 10%;
    grid-template-columns: 50% 50% 50% 50% 50%;
    column-gap: 142%;
    row-gap: 50px;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 200ms ease-in-out transform,
                200ms ease-in-out filter;
}

.content {
    position: absolute;
    top: 60%;
    transform: translate(100%, -50%);
    background-color: rgba(169, 101, 0, .8);
    padding: 2rem 1rem;
    color: #fff;
    text-align: right;
    transition: 200ms ease-in-out transform;
}

.hecontent {
    position: absolute;
    top: 60%;
    transform: translate(100%, -50%);
    background-color: rgba(162, 34, 236, 0.815);
    padding: 2rem 1rem;
    color: #fff;
    text-align: right;
    transition: 200ms ease-in-out transform;
}

.triangle-up {
    width: 0;
    height: 0;
    /* padding-left: 5px; */
    /* border-radius: 1rem; */
    
    overflow: hidden;
    position: relative;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid rgba(162, 34, 236, 0.815);
    /* flex:  0 0 calc(25% - 15px); */
}

/* .triangle_container > * {
    flex: 1;
    margin-left: 2%;
    min-width: 0;
}

.triangle_container > *:first-child {
    margin-left:0;
} */


.seqcontent {
    position: absolute;
    top: 60%;
    transform: translate(100%, -50%);
    background-color: rgba(38, 129, 227, 0.8);
    padding: 2rem 1rem;
    color: #fff;
    text-align: right;
    transition: 200ms ease-in-out transform;
}

.uicontent {
    position: absolute;
    top: 60%;
    transform: translate(100%, -50%);
    background-color: rgba(5, 157, 63, 0.8);
    padding: 2rem 1rem;
    color: #fff;
    text-align: right;
    transition: 200ms ease-in-out transform;
}

h2 {
    text-shadow: 0 0 .5rem rgba(0, 0, 0, .5);
}
.line {
    width: 70px;
    height: 5px;
    background-color: #fff;
    margin: 1rem 0 1rem auto;
}
p {
    font-size: .9rem;
    text-shadow: 0 0 .2rem rgba(0, 0, 0, .2);
    margin-bottom: 1rem;
}
button {
    padding: .3rem 1.5rem;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #fff;
    color: #fff;
    border-radius: .5rem;
    cursor: pointer;
    transition: 200ms ease-in-out background-color,
                200ms ease-in-out color;
}
button:hover {
    background-color: #fff;
    color: rgba(0, 0, 0, 0.8);
}

.card:hover .content {
    transform: translate(0, -50%);
}
.card:hover .hecontent {
    transform: translate(0, -50%);
}
.card:hover .seqcontent {
transform: translate(0, -50%);
}

.card:hover .uicontent {
transform: translate(0, -50%);
}

.card:hover img {
transform: scale(1.2);
filter: blur(1px);
}

.card-expanded-mode {
height: 600px;
}

.card {
transition: all 0.6s cubic-bezier(0.43, 0.13, 0.15, 0.99);
z-index: 1;
}

.card-slide-out {
transform: translateX(-200%);
opacity: 0;
pointer-events: none;
}

.card-expanded {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 80%;
max-width: 800px;
height: 620px;
z-index: 10;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-expanded img {
height: 30%;
object-position: center 20%;
}

.card-expanded:hover img {
    transform: scale(1.1);
    filter: blur(0px);
}

.expanded-details {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 70%;
    color: #fff;
    padding: 2rem;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-in-out;
    text-align: left;
}

.expanded-details h2 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 .5rem rgba(0, 0, 0, .5);
    font-size: 1.8rem;
}

.expanded-line {
    width: 100px;
    height: 5px;
    background-color: #fff;
    margin: 1rem 0;
}

.expanded-details p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 .2rem rgba(0, 0, 0, .2);
}

.expanded-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.expanded-details li {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1rem;
}

.back-button {
    background-color: transparent;
    color: white;
    border: 2px solid #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.back-button:hover {
    background-color: #fff;
    color: rgba(0, 0, 0, 0.8);
}

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