@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&display=swap');

:root{
    --color-label:#88c8f9;
    --color-link:#88c8f9;
    --color-date:#88c8f9;
    --color-bgleft:#396c93;
    --color-white:#FFFFFF;
    --color-text:hsl(0, 0%, 90%);
    --color-progress-bg:hsl(206, 30%, 50%);
    --color-bg:#000000;
}

.onlymobile{
    display: none;
}
.onlydesktop{
}

*,*:before,*:after{
    box-sizing:border-box;
}
.noevent{
    pointer-events: none;
}
html,body{
    background:var(--color-bg);
    color:var(--color-text);
    padding:0;
    margin:0;
    font-family:'EB Garamond';
    font-style:normal;
    font-weight:400;
    font-size:20px;
    line-height:1.1;
    letter-spacing: 0.4;
    word-break: break-word;
}
a{
    color: var(--color-link);
    text-decoration: underline;
}
ul{
    padding: 0 0 0 20px;
}
li{
    margin-bottom: 2px;
}

img{
    width:100%;
    height:100%;
    object-fit:cover;
}
h1{
    display: block;
    font-size:clamp(25px, 3vw, 36px);
    font-weight:600;
    text-align: center;
    margin:0 0 40px 0;
    color: var(--color-label);
}
h1.title{
    margin:40px 0 40px 0;
    font-size:clamp(25px, 3vw, 54px);
}
h2{
    font-size:clamp(23px, 3vw, 32px);
    font-weight:500;
    margin:0 0 30px 0;
}
h3{
    font-size:clamp(20px, 3vw, 24px);
    font-weight:500;
    margin:0 0 30px 0;
}
.container{
    position: relative;
    z-index:1;
    margin:0 auto;
    max-width:1440px;
}
.cardsContainer{
    display: block;
    width: 100%;
    height: calc(100vh - 200px);
    overflow: hidden;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 800px;
    perspective-origin: 50% 50%;
    /*border: 1px solid #FFFFFF;*/
}
.cards{
    display: inline-flex;
    gap: 30px;
    width: auto;
    height: inherit;
    align-items: center;
    transform-style: preserve-3d;
    /*border: 1px solid #FF0000;*/
    perspective-origin: 50% 50%;
    padding: 0px 8vw;
}
.card{
    cursor: pointer;
    display: inline-flex;
    width: 200px;
    height: 80%;
    max-height: 700px;

    display: flex;
    perspective-origin: 50% 50%;
    transform: rotateX(90deg);
    transition: all 0.25s ease-out;
    /*border: 1px solid #00FF00;*/
}
.card>.bg{
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size:max(33vh, 100%);
    filter: sepia(0.8);
    transition: all 0.25s ease-out;
}
.card.selected, .card:hover{
    transform: translateZ(100px);
    font-size: 26px;
    width: 260px;
    max-width: 300px;
}
.card.selected>.bg,.card:hover>.bg{
    filter: sepia(0.0);
    background-size:160%;
}
.card>.bg.c1{
    background-image: url('../images/1.jpg');
}
.card>.bg.c2{
    background-image: url('../images/2.jpg');
}
.card>.bg.c3{
    background-image: url('../images/3.jpg');
}
.card>.bg.c4{
    background-image: url('../images/4.jpg');
}
.card>.bg.c5{
    background-image: url('../images/5.jpg');
    /*
    transform: translateZ(-100px) rotateY(20deg) translateZ(100px);
    perspective-origin: 50px 100px; 
    */
}
.card>.name{
    height: 40px;
    width: 100%;
    /*
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000;
    */
    color: #fff;
    transform-origin: 100% 0%;
    /*border: 2px solid #0f0;*/
    position: relative;
    transform: rotateZ(90deg);
    top: calc(100% - 0px);
    text-align: center;
    transition: all 0.35s ease-out;

    -webkit-text-fill-color: #FF0000;
    -webkit-text-stroke: 3px;
    -webkit-font-smoothing: antialiased;
}
.card>.textContainer {
    position: absolute;
    padding: 10px;
    font-size: 19px;
    opacity: 0;
}
.card>.textContainer>.bg {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    background: rgb(255 255 255 / 60%);
    filter: blur(10px);
}
.card>.textContainer>.text {
    position: relative;
    font-size: 19px;
    color: #000;
}

.card:hover>.name{
    transform: rotateZ(0deg) translateY(-100%);    
}

.card:hover>.textContainer{
    transition: all 0.5s ease-out 0.4s;
    opacity: 1;
}

.card>.name svg {
    font-size: 22px;
    font-weight: bold;
    fill: white;
}

.card>.name svg .stroke{
    fill: red;
    stroke: black;
    stroke-width: 10px;
    stroke-linejoin: round;
}