body.wp-body-buzz-dodge {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background: #333;
}

.buzz-dodge-game #game-container {
		position: relative;
		width: min(100vw, calc(100vh * 0.5625));
		height: 100vh;
		background: #ffffff;
		overflow: hidden;
	}

.buzz-dodge-game #gameCanvas {
    display: block;
    touch-action: none;
    background: #ffffff;
}

.buzz-dodge-game #mobileControls {
		position: absolute;
		bottom: 20px;
		left: 20px;
		display: none;
	}

.buzz-dodge-game #dashButton {
		position: absolute;
		bottom: 20px;
		right: 20px;
		display: none;
		width: 60px;
		height: 60px;
		background: rgba(255,255,255,0.5);
		border-radius: 50%;
		border: none;
	}

	/* Gemeinsame Basis-Styles für Button und Link */
.buzz-dodge-game .title-button,
.buzz-dodge-game .highscore-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-family: Arial, sans-serif;
}

/* Title Button Styles */
.buzz-dodge-game .title-button {
    bottom: 15%; /* Höhere Position für den Button */
    padding: 12px 24px;
    min-width: 200px;
    font-size: 18px;
    color: white;
    background-color: #3e7bb2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Highscore Link Styles */
.buzz-dodge-game .highscore-link {
    bottom: 10%; /* Niedrigere Position für den Link */
    color: #000000;
    text-decoration: underline !important;
    cursor: pointer;
    font-size: 16px;
}

/* Mobile Styles (unter 768px) */
@media screen and (max-width: 767px) {
    .buzz-dodge-game .title-button {
        bottom: 15%; /* Mehr Abstand nach oben auf mobilen Geräten */
        min-width: 180px; /* Etwas schmaler */
        font-size: 16px; /* Kleinere Schrift */
    }
	}
	
    
    .buzz-dodge-game .highscore-link {
        bottom: 10%; /* Mehr Abstand zwischen Button und Link */
        font-size: 14px; /* Kleinere Schrift */
    }
}

/* Desktop Styles (ab 768px) */
@media screen and (min-width: 768px) {
    .buzz-dodge-game .title-button {
        bottom: 15%;
    }
	}
    
    .buzz-dodge-game .highscore-link {
        bottom: 10%;
    }


/* Hover Effekte */
.buzz-dodge-game .title-button:hover {
    background-color: #2f5c85;
}

.buzz-dodge-game .highscore-link:hover {
    color: #3e7bb2;
    text-decoration: none;
}

	/* Game Over Popup Styles */
	.buzz-dodge-game .game-over-popup {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background-color: #3e7bb2;
		color: white;
		padding: 2rem;
		border-radius: 10px;
		text-align: center;
		font-family: Arial, sans-serif;
		min-width: 300px;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}
	
	/* Mobile Styles für Highscore und Game Over Popups */
@media screen and (max-width: 767px) {
    .buzz-dodge-game .game-over-popup {
        width: 90% !important;
        min-width: unset !important;
        max-width: 90vw;
        max-height: 80vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 15px;
        box-sizing: border-box;
    }

    /* Tabellen-Container */
    .buzz-dodge-game .game-over-popup > div {
        max-height: calc(80vh - 140px);
    }

    /* Tabellen-Anpassungen */
    .buzz-dodge-game .game-over-popup table {
        width: 100%;
        font-size: 14px;
    }

    .buzz-dodge-game .game-over-popup th,
    .buzz-dodge-game .game-over-popup td {
        padding: 8px 4px;
    }
}

	.buzz-dodge-game .game-over-popup h2 {
		margin: 0 0 1rem 0;
		font-size: 2rem;
		color: white;           /* Explizit weiße Farbe setzen */
		font-weight: 700;       /* Fette Schrift (bold) */
		text-transform: uppercase;  /* Optional: Großbuchstaben */
	}
	
	.buzz-dodge-game .game-over-popup h3 {
		font-size: 18px;
		margin-bottom: 15px;
		color: #ffffff;
	}

	.buzz-dodge-game .game-over-popup p {
		margin: 1rem 0;
		font-size: 1.2rem;
	}


/* Bestehende Game Over Popup Styles ergänzen */
.buzz-dodge-game .game-over-popup input {
		width: 100%;
		padding: 10px;
		margin: 10px 0;
		background-color: #2f5c85;
		border: none;
		color: white;
		text-align: center;
		border-radius: 5px;
	}

.buzz-dodge-game .game-over-popup input::placeholder {
		color: rgba(255, 255, 255, 0.7);
	}

.buzz-dodge-game .game-over-popup button {
		background-color: white;
		color: #3e7bb2;
		border: none;
		padding: 0.8rem 1.5rem;
		font-size: 1.1rem;
		border-radius: 5px;
		cursor: pointer;
		margin-top: 1rem;
		transition: background-color 0.2s;
	}

	.buzz-dodge-game .game-over-popup button:hover {
		background-color: #f0f0f0;
	}

	.buzz-dodge-game .game-over-popup button:focus {
		outline: 2px solid white;
		outline-offset: -1px;
	}

.buzz-dodge-game .game-over-popup button[type="submit"] {
		background-color: #3e7bb2;
		color: white;
		border: 1px solid white;
	}

.buzz-dodge-game .game-over-popup button[type="submit"]:hover {
		background-color: #2f5c85;
		border: none;
	}


	@keyframes pulse {
		0% {
			opacity: 1;
		}
		50% {
			opacity: 0.3;
		}
		100% {
			opacity: 1;
		}
	}


	/* Joystick Container */
	.buzz-dodge-game .joystick-container {
		position: fixed;
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);
		width: 80px;
		height: 80px;
		z-index: 1000;
		touch-action: none;
		pointer-events: all; 
	}

	/* Äußerer Ring */
	.buzz-dodge-game .joystick-outer-ring {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border: 3px solid rgba(30, 30, 30, 0.3);
		border-radius: 50%;
		box-sizing: border-box;
	}

	/* Innerer Stick */
	.buzz-dodge-game .joystick-stick {
		position: absolute;
		width: 30px;    /* von 40px reduziert */
		height: 30px;   /* von 40px reduziert */
		background: rgba(0, 0, 255, 0.5);
		border-radius: 50%;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		display: none;
	}

	.buzz-dodge-game .dash-button {
    position: fixed;
    bottom: 20px;
    width: 80px;
    height: 80px;
    background: rgba(20, 20, 20, 0.1);
    border-radius: 20%;
    z-index: 1000;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buzz-dodge-game .dash-button::after {
    content: "DODGE";
    color: rgba(255, 255, 255, 0.8);
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

	/* Spezifische Position für den rechten Button */
	.buzz-dodge-game .dash-button-right {
		right: 30px;
	}

	/* Spezifische Position für den linken Button */
	.buzz-dodge-game .dash-button-left {
		left: 30px;
	}

	

/* Spezifische Regel für den Instruktionsmodus */
.buzz-dodge-game[data-state="instructions"] #gameCanvas {
    width: 100% !important;
    height: 100% !important;
	image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}


/* Credits Link Styling */
.buzz-dodge-game .credits-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #000000;
    text-decoration: underline !important;
    cursor: pointer;
    font-size: 10px;
	color: #aaaaaa;
    z-index: 1000;
    display: none;
}

.buzz-dodge-game .credits-link:hover {
    color: #2f5c85;
}

/* Credits Popup Styling */
.buzz-dodge-game .credits-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    touch-action: none;
    overflow: hidden;
}

.buzz-dodge-game .credits-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
	touch-action: none;
}

.buzz-dodge-game .credits-image {
    max-width: 100%;
    max-height: calc(90vh - 60px); /* 60px für Button-Raum */
    width: auto;
    height: auto;
    object-fit: contain;
}

.buzz-dodge-game .credits-close {
    position: relative;
    bottom: 0;
    margin-top: 20px;
    padding: 8px 20px;
    background-color: #3e7bb2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.buzz-dodge-game .credits-close:hover {
    background-color: #2f5c85;
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    .buzz-dodge-game .credits-link {
        font-size: 10px;
		color: #aaaaaa;
        top: 10px;
        right: 10px;
    }

    .buzz-dodge-game .credits-content {
        width: 95%;
        height: 95%;
        gap: 15px;
    }

    .buzz-dodge-game .credits-image {
        max-height: calc(90vh - 80px); /* Mehr Platz für Button auf Mobile */
    }

    .buzz-dodge-game .credits-close {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media screen and (max-height: 500px) {
    .buzz-dodge-game .credits-content {
        font-size: 10px;
		color: #aaaaaa;
		height: 85%;
        gap: 10px;
    }

    .buzz-dodge-game .credits-image {
        max-height: calc(85vh - 60px);
    }

    .buzz-dodge-game .credits-close {
        margin-top: 10px;
        padding: 8px 15px;
    }
}

