:root{
    --animBorderWidth: 240;
    --animBorderHeight: 210;
}

#introduction > * {
    margin-top: 150px;
}

#introduction > *, #introduction li {
    opacity: 0;
    transform: translate(-100px);
    filter: blur(10px);
    transition: all 0.5s;
}

#introduction > *.show, #introduction > *.show li {
    opacity: 1;
    filter: blur(0);
    transform: translate(0);
}

.languageContent h1::before {
    content: '';
    transform: translate(-10px,80px);
    display: block;
    height: 30px;
    width: 0px;
    background-clip: border-box;
    mask-image: url('img/paint.svg');
    mask-repeat: no-repeat;
    background-size: cover;
    transition: 0.2s width;
}

.active .languageContent h1::before {
    width: 200px;
    transition: 0.2s width;
}

.active .languageContent h1:nth-of-type(1):before {
    transition-delay: 0.2s;
    background-color: orange;
}

.active .languageContent h1:nth-of-type(2):before {
    transition-delay: 0.4s;
    background-color: blue;
}

.active .languageContent h1:nth-of-type(3):before {
    transition-delay: 0.6s;
    background-color: rgb(197, 197, 0);
}

.active .languageContent h1:nth-of-type(4):before {
    transition-delay: 0.8s;
    background-color: orange;
}

.active .languageContent h1:nth-of-type(5):before {
    transition-delay: 1.0s;
    background-color: cyan;
}

.active .languageContent h1:nth-of-type(6):before {
    transition-delay: 1.2s;
    background-color: violet;
}

.active .languageContent h1:nth-of-type(7):before {
    transition-delay: 1.4s;
    background-color: black;
}

.animatedCardDescription, .animatedCard img {
    display: block;
    transition: all 0.3s;
}

.animatedCard, .animatedCard img {
    width: 300px;
}

.animatedCard  {
    border-radius: 25px;
    background-color: black;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3),  -5px -5px 10px rgba(0,0,0,0.3);
    height: 300px;
    overflow: hidden;
}

.animatedCardDescription {
    padding: 20px;
    background-color: white;
    height: 300px;
    border-top: 1px solid black;
}

.animatedCard h2 {
    margin: 0;
}

.animatedCard:hover .animatedCardDescription {
    transform: translateY(-150px);
}

@media screen and (max-width: 680px)
{
    .animatedCard .animatedCardDescription {
        transform: translateY(-150px);
    }
}

.animatedCard img {
    transform: scale(1);
    height: 250px;
    overflow: hidden;
}

.animatedCard:hover img {
    transform: scale(1.2);
    opacity: 0.5;
}

.formationTitle {
    opacity: 0;
}

.formationTitle :nth-child(2n+1){
    transform: translateY(-100px);
}

.formationTitle :nth-child(2n){
    transform: translateY(100px);
}

.formationTitle.build {
    opacity: 1;
    transition: 1s all;
}

.formationTitle.build h1 {
    transform: none;
    transition: 1s all;
}

.animBorder {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 0px;
    width: calc(var(--animBorderWidth)*1px);
    height: calc(var(--animBorderHeight)*1px);
    transition: 0.5s width, 0.5s height, 0.5s padding;
}

.animBorder * {
    margin: 0;
}

.animBorder:hover {
    width: calc(var(--animBorderWidth)*2px);
    height: calc(var(--animBorderHeight)*2px);
    transition: 0.5s width, 0.5s height, 0.5s padding;
}

.overflowBorder {
    overflow: hidden;
    background-color: lightgray;
    width: calc(var(--animBorderWidth)*0.92px);
    height: calc(var(--animBorderHeight)*0.92px);
    transition: 0.5s width, 0.5s height, 0.5s padding;
}

.overflowBorder *{
    pointer-events: none;
    padding: 10px;
}

.animBorder:hover .overflowBorder {
    overflow: hidden;
    background-color: lightgray;
    width: calc(var(--animBorderWidth)*0.92*2.05px);
    height: calc(var(--animBorderHeight)*0.92*2.05px);
    transition: 0.5s width, 0.5s height, 0.5s padding;
}

@media screen and (max-width: 580px)
{
    .animBorder:hover
    {
        width: calc(var(--animBorderWidth)*1px);
        height: calc(var(--animBorderHeight)*1px);
    }

    .animBorder:hover .overflowBorder {
        overflow: hidden;
        background-color: lightgray;
        width: calc(var(--animBorderWidth)*0.92px);
        height: calc(var(--animBorderHeight)*0.92px);
    }
}