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

body {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
    text-align: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
	
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.container {
    max-width: 500px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

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

.header h1 {
    font-size: 2.5rem;
}

.qr-reader,
.video-player {
    background: #ffffff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.button, .button_startscan, .button_startstop {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, transform 0.2s;
}

.button:hover, .button_startscan:hover, .button_startstop:hover {
    background-color: #e73370;
    transform: scale(1.05);
}

.text-block {
    margin-bottom: 15px;
}

.text-block .heading {
    font-weight: bold;
    margin-bottom: 5px;
}

.settings_div {
    background-color: #2e2e3f;
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
    display: none;
}

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

    .container {
        padding: 0 10px;
    }
}

#qr-reader {
    position: absolute; /* or absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure it's above other content */
    background-color: #f4f4f4;
}

#qr-video {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#videotitle {
    display:  none;
}

#videoduration {
    display:  none;
}
#videostart {
    display:  none;
}

#videoid {
    display: none ;
}

#cancelScanButton {
    position: absolute;
    display:none;
    background-color: #e95d5d;
    color: black;
    z-index: 4;
}

#cookielist {
    display: none;
}

#playback-duration {
    width: 50px;
}