nav a[href="/design"] {
    text-decoration: var(--activePageTextDeco);
    text-underline-offset: var(--activePageTextUnderline);
}

#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
}

.masonry-grid-item {
    width: 20vw;
    margin-bottom: 20px;
    transition: 0.5s ease-in;
}

.hidden-item {
    opacity: 0;
}

.hover-image {
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
}

.masonry-grid-item:hover .hover-image {
    opacity: 1;
    transition: 0.2s;
}

#masonry-container {
    width: 80vw;
    margin: 0 auto;
}

.animation {
    box-shadow: 0px 0px 0px 0px white;
    transition: box-shadow 0.1s ease-in;
}

.animation:hover {
    box-shadow: 0px 0px 7px 0px white;
    transition: box-shadow 0.2s ease-out;
}

.expandable {
    cursor: pointer;
}

.masonry-grid-item .expandable {
    box-shadow: 0px 0px 0px 0px white;
    transition: box-shadow 0.1s ease-in;
}

.masonry-grid-item:hover .expandable {
    box-shadow: 0px 0px 7px 0px white;
    transition: box-shadow 0.2s ease-out;
}


:root {
    --animation-padding: 15px;
    --animation-width: calc(40vw);
}

#animation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: calc(var(--animation-width) + calc(var(--animation-padding) * 4));
    margin-bottom: 3rem;

    opacity: 0;
    transition: 0.5s ease-in;
}

.video-container {

    position: relative;
    display: flex;
    flex: 1 0 50%;
    padding: var(--animation-padding);
    box-sizing: border-box;
}

.large {
    flex: 1 0 100%;
}

.large .imgcontainer {
    width: calc(var(--animation-width) + calc(var(--animation-padding) * 2));
    height: unset;
}

.animation {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.imgcontainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--animation-width) / 2);
    width: calc(var(--animation-width) / 2);
}

.playbutton-container {
    display: flex;
}

.playbutton {
    background-color: white;

    width: 100px;
    height: 100px;
    border-radius: 100px;

    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.8;
}

.video-container:hover > .playbutton {
    opacity: 0.9;
}
.video-container:hover .triangle {
    border-color: transparent transparent transparent #8f8f8f;
}


.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 17.5px 0 17.5px 30.3px;
    border-color: transparent transparent transparent #b6b6b6;
    transform: rotate(0deg);
    margin-left: 5px;
}

.textcontainer {
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.textcontainer h2 {
    text-shadow: 0 0 20px #000000, 0 0 20px #000000, 0 0 20px #000000;
    color: var(--secondary);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    margin: unset;
    margin-bottom: 7px;
    margin-top: 24px;
}

.textcontainer p{
    text-shadow: 0 0 20px #000000, 0 0 20px #000000, 0 0 20px #000000;
    color: white;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin-top: auto;
}

.imagecontainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 800px) {
    .textcontainer {
        width: 80vw;
    }
    .masonry-grid-item {
      width: 40vw;
    }
    .textcontainer p:first-of-type {
        text-align: center;
    }
}


@media (max-width: 1200px) {
    :root {
        --animation-padding: 15px;
        --animation-width: 70vw;
    }
}

@media (max-width: 1000px) {
    :root {
        --animation-padding: 10px;
        --animation-width: 80vw;
    }
}

@media (max-width: 800px) {
    :root {
        --animation-padding: 5px;
        --animation-width: 80vw;
    }
    .textcontainer p {
        text-align: left;
    }
}