@font-face {
    font-family: 'SF Pro';
    src: url('../font/SF-Pro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

body {
    overflow-y: hidden;
    position: relative;
    height: unset;
    margin: 0;
    font-family: 'SF Pro', serif;
    background: #ffffff;
    color: #000;
}

html, body {
    overflow-x: hidden;
    margin: 0;
}

header {
    display: flex;
    gap: 3.5rem;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 50px 10px;
    height: 100vh;
}

header h1 {
    font-size: 4em;
    margin: 0;
    font-weight: bold;
}

header p {
    font-size: 2.2em;
    margin: 10px 0 0;
}

header h1,
header p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

header p:nth-of-type(1) {
    animation-delay: 0.8s;
}

header p:nth-of-type(2) {
    animation-delay: 1.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.water {
    width: 150%;
    margin-left: -25%;
    margin-bottom: -10px;
    opacity: .8;
    mix-blend-mode: multiply;
}

.water-container {
    background: linear-gradient(to bottom, #FFF, #79F2FF);
    overflow: hidden;
    margin-bottom: -8rem;
}

.bubbles {
    position: absolute;
    left: 0;
    top: 132vh;
    width: 100%;
    z-index: 9999;
    transition: transform 0.5s ease-out, opacity 1s ease-out;
}

.bubbles-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: color-dodge;
}

.bubbles-background {
    /*margin-bottom: calc(-100vh - 8rem);*/
    /*margin-bottom: calc(-100lvh - 8rem);*/
    /*height: calc(100vh + 8rem);*/
    /*height: calc(100lvh + 8rem);*/
    height: calc(100% + 8rem);
    /*position: sticky;*/
    position: absolute;
    top: -8rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #64A7D1, #09293E);
    mask-image: linear-gradient(transparent 0, black 8rem);
}


.underwater {
    margin-top: 4rem;
    /* background: linear-gradient(to bottom, #64A7D1, #09293E); */
    padding: 50px 20px 100px;
    position: relative;
}



@keyframes rise {
    from { transform: translateY(100%); }
    to { transform: translateY(-200%); }
}

.frame {
    border-radius: 30px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.20) inset, 0px 2px 4px 0px rgba(255, 255, 255, 0.40) inset;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    padding: 20px;
    margin: 20px;
}

.frame img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.train {
    text-align: center;
    overflow: visible;
    height: 100lvh;
    position: relative;
}

.train-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.train-img {
    margin-top: 20vh;
    margin-left: 60vw;
    padding-left: 40vw;
    height: 80vh;
}

.ticket {
    background: #fff;
    border: 1px solid #000;
    display: inline-block;
    padding: 20px;
    font-size: 0.9em;
    margin: 0 auto;
    border-radius: 5px;
    transform: rotate(-2deg);
}

#bubble1 {
    animation: swim 7s ease-in-out infinite;
    animation-delay: 0s;
}
#bubble2 {
    animation: swim 6s ease-in-out infinite;
    animation-delay: 2s;
}
#bubble3 {
    animation: swim 8s ease-in-out infinite;
    animation-delay: 1s;
}

#bubble4 {
    animation: swim 8s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes swim {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5px, -10px) rotate(2deg);
    }
    50% {
        transform: translate(-5px, -20px) rotate(-2deg);
    }
    75% {
        transform: translate(5px, -10px) rotate(1deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.board {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background-image: url("../img/cork.jpg");
    background-repeat: repeat-y;
    background-size: 100%;
}

.board .image-framed-container:nth-child(odd) .image-framed {
    transform: rotate(-3deg);
}

.image-framed {
    border: solid 10px rgb(255, 250, 228);
    box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, .7);
    width: 80%;
    margin-left: 10%;
    margin-bottom: 3rem;
    transform: rotate(3deg);
}

.image-framed-container {
    position: relative;
}

.image-framed-container:after, .ticket:after {
    content: "";
    width: 4rem;
    height: 3rem;
    position: absolute;
    top: 0rem;
    left: 50%;
    transform: translate(-50%, -20%);
    background-image: url("../img/pin.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.ticket {
    display: flex;
    width: 380px;
    height: 220px;
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: visible;
    font-family: sans-serif;
    font-size: 12px;
    color: #111;
}
.ticket-main {
    flex: 1;
    padding: 12px;
    position: relative;
}
.ticket-stub {
    width: 60px;
    background: #fdf5e6;
    border-left: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    color: #d94a4a;
}
.ticket-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.station {
    font-size: 14px;
    font-weight: bold;
}
.stations {
    display: flex;
    gap: 6px;
    align-items: center;
}
.small {
    font-size: 12px;
}
.barcode {
    height: 20px;
    margin-top: 8px;
    background-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px);
    opacity: 0.1;
}
.ticket-perf {
    position: absolute;
    right: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-image: radial-gradient(circle, #ccc 30%, transparent 31%);
    background-size: 4px 8px;
}

/* Beschreibung */
.ticket-desc {
    margin-top: 6px;
}
.desc-title {
    font-size: 12px;
    font-weight: 600;
    color: #111;
}
.desc-sub {
    font-size: 11px;
    color: #333;
}
.desc-note {
    font-size: 10px;
    color: #777;
    font-style: italic;
}

.ticket-gift {
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    height: 100%;
    z-index: 2;
}

.ticket-gift-img {
    width: 10rem;
    transform: rotate(30deg) translateX(16%);
}