html {
    min-height: 100%;
    display: flex;
    flex-direction: column; }

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    flex-grow: 1;
    --cs-brand-color: #008cbc;
}

.wrapper {
    display: flex;
    justify-content: center;
    /*height: 100vh;*/
    flex-direction: column;}

.container {
    /*background-image: url("../matrix.jpg"), linear-gradient(90deg, rgba(205, 204, 207, 0.39277) 0%, rgba(0, 0, 0, 0.796131) 30%, rgba(0, 0, 0, 0.754114) 87%, rgba(205, 204, 207, 0.0902486) 100%); */
    background-blend-mode: overlay;
    background-size: cover;
    width: 100%;
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    align-items: center; }

h1 {
    font-size: 2.5rem;
    margin: 64px;
}
h1, h2, h3 {
    text-align: center;
    color: var(--cs-brand-color);
}
.container h3 {
    margin-top: 32px;
    z-index: 1;
    font-size: 2rem;
}


.chevron {
    display: none; }

.chevron.visible {
    display: block;
    color: #8eac90;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 1.5rem;
    animation: 2s bounce 2s infinite;
    opacity: 0; }

.carousel {
    width: 276px;
    height: 340px;
    transform: rotateX(-5deg) rotateY(0);
    transform-style: preserve-3d;
    animation: turn 20s infinite linear;
    transition: 0.5s; }

.carousel:hover {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    animation: none;
    width: unset;
    height: unset;
    margin: 0; }
.carousel:hover .slide {
    opacity: 0;
    transform: unset;
    width: 230px;
    height: 170px;
    position: unset;
    animation: appear 1s linear forwards; }
.carousel:hover .slide:first-child {
    animation-delay: 0.3s; }
.carousel:hover .slide:nth-child(2) {
    animation-delay: 0.3s * 2; }
.carousel:hover .slide:nth-child(3) {
    animation-delay: 0.3s * 3; }
.carousel:hover .slide:nth-child(4) {
    animation-delay: 0.3s * 4; }
.carousel:hover .slide:nth-child(5) {
    animation-delay: 0.3s * 5; }
.carousel:hover .slide:nth-child(6) {
    animation-delay: 0.3s * 6; }

.slide {
    position: absolute;
    top: 0;
    left: 0;
    /* same dimensions as above */
    width: 276px;
    height: 204px;
    user-select: none;
    background-color: var(--cs-brand-color) /*#2b4d34 */;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px; }
.slide a {
    display: flex;
    color: white;
    text-decoration: none;
    vertical-align: center;
    justify-content: center;
}
.slide a div {
    display: block;
    font-size: 1.6rem;
    text-align: center;
    /*outline: dotted 1px blue */;

}
.slide svg {
    width: 70px;
    margin-top: 0.5rem; }

.slide::after {
    border-radius: 10px;
    content: "";
    right: 0px;
    bottom: 0px;
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: orange;
    background-image: linear-gradient(
            25deg,
            hsl(0deg 0% 100%) 0%,
            hsl(55deg 100% 98%) 8%,
            hsl(55deg 100% 97%) 17%,
            hsl(55deg 100% 95%) 25%,
            hsl(55deg 100% 94%) 33%,
            hsl(55deg 100% 92%) 42%,
            hsl(55deg 100% 91%) 50%,
            hsl(87deg 76% 88%) 58%,
            hsl(130deg 69% 86%) 67%,
            hsl(159deg 71% 79%) 75%,
            hsl(176deg 70% 71%) 83%,
            hsl(188deg 84% 67%) 92%,
            hsl(195deg 100% 68%) 100%
    );
    transform: rotateY(180deg);
    transform-style: preserve-3d;
    backface-visibility: hidden; }

/* rotation of each slide 360deg / number ob slides ++
distance with translateZ, same for each slide */
.slide:first-child {
    transform: rotateY(0deg) translateZ(300px); }

.slide:nth-child(2) {
    transform: rotateY(60deg) translateZ(300px); }

.slide:nth-child(3) {
    transform: rotateY(120deg) translateZ(300px); }

.slide:nth-child(4) {
    transform: rotateY(180deg) translateZ(300px); }

.slide:nth-child(5) {
    transform: rotateY(240deg) translateZ(300px); }

.slide:nth-child(6) {
    transform: rotateY(300deg) translateZ(300px); }

@keyframes turn {
    50% {
        transform: rotateX(-5deg) rotateY(0.5turn); }
    100% {
        transform: rotateX(-5deg) rotateY(1turn); } }

@keyframes appear {
    0% {
        opacity: 0; }
    100% {
        opacity: 1; } }

@keyframes bounce {
    0% {
        transform: translateY(0);
        opacity: 1; }
    50% {
        transform: translateY(-15px);
        opacity: 1; }
    100% {
        transform: translateY(0);
        opacity: 1; } }

@media screen and (max-width: 741px) {
    .carousel {
        animation: none; }
    .carousel .slide {
        animation: none;
        top: 170px;
        transform: translateY(-50%); }
    .carousel .slide:first-child {
        border: red solid 3px; }
    .slide:nth-child(2) {
        border: yellow solid 3px;
        top: 10%;
        transform-origin: scale(0.7); }
    .slide:nth-child(3) {
        border: orange solid 3px;
        transform-origin: scale(0.7); }
    .slide:nth-child(5) {
        transform: scale(0.5); }
    .slide:nth-child(6) {
        visibility: hidden; }
    .slide:nth-child(1) {
        animation: animate2 15s linear infinite;
        animation-delay: 2s; }
    @keyframes animate {
        0% {
            transform: translateY(0) scale(0.5);
            border: red solid 3px; }
        5%,
        20% {
            transform: translateY(85px) scale(0.7); }
        25%,
        40% {
            pointer-events: auto;
            transform: translateY(170px) scale(1); }
        45%,
        60% {
            transform: translateY(85px) scale(0.7); }
        65%,
        100% {
            transform: translateY(0) scale(0.5); } }
    .slide:nth-child(2) {
        animation: animate2 15s linear infinite;
        animation-delay: 4s; }
    @keyframes animate {
        0% {
            transform: translateY(0) scale(0.5);
            border: red solid 3px; }
        5%,
        20% {
            transform: translateY(85px) scale(0.7); }
        25%,
        40% {
            pointer-events: auto;
            transform: translateY(170px) scale(1); }
        45%,
        60% {
            transform: translateY(85px) scale(0.7); }
        65%,
        100% {
            transform: translateY(0) scale(0.5); } }
    .slide:nth-child(3) {
        animation: animate2 15s linear infinite;
        animation-delay: 6s; }
    @keyframes animate {
        0% {
            transform: translateY(0) scale(0.5);
            border: red solid 3px; }
        5%,
        20% {
            transform: translateY(85px) scale(0.7); }
        25%,
        40% {
            pointer-events: auto;
            transform: translateY(170px) scale(1); }
        45%,
        60% {
            transform: translateY(85px) scale(0.7); }
        65%,
        100% {
            transform: translateY(0) scale(0.5); } }
    .slide:nth-child(4) {
        animation: animate2 15s linear infinite;
        animation-delay: 8s; }
    @keyframes animate {
        0% {
            transform: translateY(0) scale(0.5);
            border: red solid 3px; }
        5%,
        20% {
            transform: translateY(85px) scale(0.7); }
        25%,
        40% {
            pointer-events: auto;
            transform: translateY(170px) scale(1); }
        45%,
        60% {
            transform: translateY(85px) scale(0.7); }
        65%,
        100% {
            transform: translateY(0) scale(0.5); } }
    .slide:nth-child(5) {
        animation: animate2 15s linear infinite;
        animation-delay: 10s; }
    @keyframes animate {
        0% {
            transform: translateY(0) scale(0.5);
            border: red solid 3px; }
        5%,
        20% {
            transform: translateY(85px) scale(0.7); }
        25%,
        40% {
            pointer-events: auto;
            transform: translateY(170px) scale(1); }
        45%,
        60% {
            transform: translateY(85px) scale(0.7); }
        65%,
        100% {
            transform: translateY(0) scale(0.5); } }
    .slide:nth-child(6) {
        animation: animate2 15s linear infinite;
        animation-delay: 12s; }
    @keyframes animate {
        0% {
            transform: translateY(0) scale(0.5);
            border: red solid 3px; }
        5%,
        20% {
            transform: translateY(85px) scale(0.7); }
        25%,
        40% {
            pointer-events: auto;
            transform: translateY(170px) scale(1); }
        45%,
        60% {
            transform: translateY(85px) scale(0.7); }
        65%,
        100% {
            transform: translateY(0) scale(0.5); } }
    @keyframes rotate-vertically2 {
        0% {
            transform: translateY(0) scale(0.3);
            opacity: 0; }
        25% {
            transform: translateY(85px) scale(0.5);
            opacity: 1; }
        50% {
            transform: translateY(170px) scale(1);
            background-color: yellow; }
        75% {
            transform: translateY(-85px) scale(0.5);
            background-color: #0e2116; }
        100% {
            transform: translateY(0) scale(0.3);
            opacity: 0; } } }


main {

}

article {
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 32px;

    max-width: 960px;
    margin-left: auto;
    margin-right: auto;

    font-size: 1.5rem;
    line-height: 150%;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;

}

main article {
    box-shadow: 6px 4px 6px 3px rgba(0,0,0,5%);
    border: 1px solid #eee;
}

main h1 {
    margin-top: 64px;
}
footer {
    background-color: #eee;
    margin: 0;
    padding: 32px;
    font-size: 0.8rem;
    color: #666;
}
footer details {
    margin: 16px;
}