@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: Arial, sans-serif;
    background-color: #161619;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /*vignette    */
    box-shadow: 0 0 200px rgba(0,0,0,100) inset;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Ctext x='80' y='80' text-anchor='middle' fill='rgba(255,255,255,0.025)' font-family='Arial' font-size='16' font-weight='bold' transform='rotate(45 50 50)'%3ETRYUS MONTAGEN%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Ctext x='80' y='80' text-anchor='middle' fill='rgba(255,255,255,0.025)' font-family='Arial' font-size='16' font-weight='bold' transform='rotate(45 50 50)'%3ETRYUS MONTAGEN%3C/text%3E%3C/svg%3E"),
        url("./TRyus_1.png");
    background-size: 250px 250px, 250px 250px, 150px 150px;
    background-repeat: repeat;
    background-position: 0 0, 175px 50px;
    animation: backgroundMove 30s linear infinite;
    overflow: hidden;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0, 175px 50px;
    }
    100% {
        background-position: 250px 250px, 425px 300px;
    }
}

.star {
    font-size: 4rem;
    cursor: pointer;
    color: lightgray;
    position: relative;
    transition: color 0.2s ease-out, text-shadow 0.2s ease-out, filter 0.2s ease-out;
}

.star.selected {
    color: gold;
    text-shadow: 0 0 5px gold;
}

.star.half {
    /* Hintergrundverlauf: linke Hälfte gold, rechte Hälfte lightgray */
    background: linear-gradient(90deg, gold 50%, lightgray 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px gold);
}

.star:hover {
    transform: scale(1.2);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D Card Flip Styles */
.card-container {
    perspective: 1000px;
    width: 50vw;
    margin: 0 auto;
}

.card {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardInAnimation 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardInAnimation {
    0% {
        transform: translateY(100%) rotateY(0deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateY(0deg);
        opacity: 1;
    }
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    overflow: hidden;
}

.card-front {
    background-color: rgba(43, 43, 43, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    backdrop-filter: blur(3px);
}

.card-back {
    transform: rotateY(180deg);
}

h2 {
    color: white;
    text-align: center;
    margin-top: 20px;
}

p {
    color: white;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.card-front h2 {
    font-size: 3rem;
}

.card-front p {
    font-size: 1.5rem;
}

button {
    background-color: rgba(82, 82, 90, 0.11);
    border: none;
    color: #ffffff;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    font-weight: bold;
    backdrop-filter: blur(3px);
}

li {
    color: white;
    margin: 5px 0;
}

#ratingContainer {
    display: flex;
    user-select: none;
    background-color: rgba(82, 82, 90, 0.11);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    gap: 10px;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transition-delay: 0.6s;
    padding: 0 30px 10px;
    backdrop-filter: blur(3px);
}

#ratingContainer.hidden {
    transform: translateY(-100%);
    opacity: 0;
    transition-delay: 0s;
    pointer-events: none;
    cursor: default;
}

.info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transition-delay: 0.6s;
}

.info.hidden {
    transform: translateY(100%);
    opacity: 0;
    transition-delay: 0s;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(82, 82, 90, 0.11);
    border-radius: 5px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.progress {
    height: 100%;
    background-color: #919191;
    width: 0;
    transition: width 4s linear;
    border-radius: 5px;
}

#counter {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 1.5rem;
}

#start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#start.hidden {
    display: none;
}

#start img {
    color: white;
    animation: shakeIdle 0.5s infinite alternate ease-in-out;
    transform-origin: center top;
    width: 200px;
}

@keyframes shakeIdle {
    0% {
        transform: translateY(0);
        scale: 1;
    }
    100% {
        transform: translateY(-5px);
        scale: 1.05;
    }
}

#start > div {
    background-color: rgba(82, 82, 90, 0.11);
    padding: 20px;
    border-radius: 25px;
    width: clamp(300px, 50vw, 600px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    backdrop-filter: blur(3px);
}

#logo {
    position: absolute;
    top: 25px;
    right: 25px;
}

.podium-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-end;
}

.podium-spot {
    background-color: rgba(82, 82, 90, 0.11);
    border-radius: 25px;
    width: 300px;
    position: relative;
}

.podium-spot h3 {
    color: white;
    text-align: center;
    margin-top: 20px;
}

.podium-container .podium-spot:nth-child(3) {
    background-color: rgba(205, 127, 50, 0.25);
    opacity: 0;
    animation: podium-container-in 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    height: 275px;
}

.podium-container .podium-spot:nth-child(2) {
    background-color: rgba(255, 215, 0, 0.25);
    opacity: 0;
    animation: podium-container-in 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 3s;
    height: 325px;
}

.podium-container .podium-spot:nth-child(1) {
    background-color: rgba(192, 192, 192, 0.25);
    opacity: 0;
    animation: podium-container-in 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.5s;
    height: 300px;
}

.podium-spot iframe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 25px;
}


.show-more-button {
    width: 100%;
    border-radius: 25px;
    animation: podium-container-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 4.5s;
    opacity: 0;
    margin-top: 20px;
}

@keyframes podium-container-in {
     0% {
         transform: translateY(100%);
         opacity: 0;
     }
     100% {
         transform: translateY(0);
         opacity: 1;
     }
 }

ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0;
}

li {
    margin: 5px 0;
    opacity: 0;
    animation: podium-container-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-out;
}

li a:hover {
    color: #00ffbb;
}