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

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    text-align: center;
    min-height: 100vh;
}

.background-image {
    position: fixed; /* Fixiert das Bild im Hintergrund */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/564x/19/42/98/194298d80ecdfdd0f382cfee9a854c92.jpg'); /* Pfad zu Ihrem Bild */
    background-size: cover; /* Bild anpassen, um den gesamten Hintergrund zu füllen */
    background-position: center; /* Bild zentrieren */
    filter: blur(1px); /* Blur-Effekt */
    z-index: -1; /* Hinter den anderen Inhalten */
}

.container {
    position: relative; /* Sicherstellen, dass der Container über dem Hintergrundbild liegt */
    z-index: 1; /* Höherer Z-Index als das Hintergrundbild */
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

.header {
    text-align: center;
    margin: 50px 0;
}

.header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #ff4081;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.qr-reader,
.video-player {
    background: rgba(255, 255, 255, 0.8);
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.button, .button_startscan, .button_startstop {
    display: inline-block;
    background: #ff4081;
    color: #ffffff;
    padding: 12px 25px;
    margin: 10px 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button_startscan {
    width: 220px;
    height: 90px;
    font-size: 1.2em;
}

.button_startstop {
    width: 120px;
    height: 60px;
}

.vinyl-container {
    width: 300px;
    height: 300px;
    margin: 50px auto;
    cursor: pointer;
}

.vinyl {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.rotating {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.button:hover, .button_startscan:hover, .button_startstop:hover {
    background: #e91e63;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.cancelScanButton {
    z-index: 20;
    background-color: #e95d5d;
}

.text-block {
    position: relative;
    margin-top: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #ff4081;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
}

.text-block .heading {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0.5rem;
    font-size: 22px;
    line-height: 1;
    background-color: #fff;
    color: #ff4081;
}

.settings_div {
    width: 100%;
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    padding: 0 0.5rem;
    display: none;
}

@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

#qr-reader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
}

#qr-video {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 15px;
    overflow: hidden;
}

#videotitle, #videoduration, #videoid {
    display: none;
}

#cancelScanButton {
    position: absolute;
    display: none;
    background-color: #e95d5d;
    color: white;
    z-index: 4;
    top: 20px;
    right: 20px;
}

#cookielist {
    display: none;
}

#playback-duration {
    width: 60px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ff4081;
}

/* Festliche Elemente */
.confetti {
    position: fixed;
    background-size: cover;
    animation: rise linear forwards;
    bottom: -10px;
}

@keyframes rise {
    0% { 
        transform: translateY(0) rotate(0deg); 
    }
    100% { 
        transform: translateY(-100vh) rotate(360deg);
    }
}
