body,
html {
	position: relative;
	text-align: center;
	background-color: black;
	color: rgb(32, 32, 32);
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	font-family: "mono-space", "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
		"Lucida Sans", Arial, sans-serif;
	box-sizing: border-box;
	background-image: url(./../assets/images/bgr/bgr-slate-brass.png);
}

@media (max-width: 375px) {
	body {
		overflow-x: hidden;
		margin-left: 0;
		margin-right: 0;
		padding: 0;
	}
}

h1 {
	color: rgb(55, 42, 32);
}

a {
	font-style: unset;
	color: rgb(55, 42, 32);
	text-decoration: none;
}

header {
	position: relative;
	width: 100%;
	height: 80px;
}

main {
	position: relative;
	height: 100vh;
	width: 100%;
	display: flex;
	flex-direction: column;
}

h3 {
	padding: 0;
	margin: 0;
}

/*--------- special for cardChange curr in changeWinnerCards ----------------*/

.spell-overlay {
	position: absolute;
	top: 35%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	width: 80%;
	height: auto;
}

/*--------- INDEX ----------------*/
.startside-top {
	position: relative;
	top: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	/* background-image: url('./../assets/images/bgr/bgr2.jpeg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat; */
	min-height: 100vh;
	text-shadow:
		1px 1px 2px rgba(255, 255, 255, 0.6),
		-1px -1px 2px rgba(0, 0, 0, 0.7);
}

.startside-text {
	height: auto;
	background-image: url(./../assets/images/bgr/brass-long.png);
	color: rgb(55, 42, 32);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	padding: 32px;
	font-weight: 700;
	box-sizing: border-box;

	filter: brightness(1.7);
}

.opener-frame {
	display: flex;
	justify-content: center;
}

.opener {
	padding: 16px;
	width: 600px;
	height: auto;
	background-color: none;
}

.startside-btns {
	width: fit-content;
	height: auto;
	color: rgb(55, 42, 32);
}

.startBtn {
	position: relative;
	width: 220px;
	height: 100px;
	background-image: url(./../assets/images/bgr/iron-long-cross.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 900;
	cursor: pointer;
	color: #ffe864;
	font-size: large;
	margin-right: 8px;
	text-shadow: 5px 7px 2px rgb(0 0 0 / 45%);
}

.btn-descr {
	margin: 0 !important;
	width: 100%;
	display: flex;
	flex-direction: row;
	gap: 12px;
	text-wrap: wrap;
	color: #ffe864;
	font-size: large;
	margin-right: 8px;
	text-shadow: 5px 7px 2px rgb(0 0 0 / 45%);
	justify-content: space-around;
}

#popupWindow input,
h2 {
	color: #ffe864;
	font-size: large;
	margin-right: 8px;
	/* text-shadow: 5px 7px 2px rgb(0 0 0 / 45%); */
}

#popupWindow input,
h2,
.start-btn {
	font-family: monospace;
	font-weight: 900;
	font-size: large;
	text-wrap: wrap;
	width: min-content;
	border: none;
	border-radius: 2px;
}

#popupWindow input,
.start-btn {
	background-image: url('./../assets/images/bgr/iron-long-cross.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: 233%, auto;
	text-align: center;
}

.start-btn-frame {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	gap: 12px;
}

.text-btn-frame {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	gap: 6px;
    padding: 8px;
}

#copyLinkBtn {
	pointer-events: auto;
	touch-action: manipulation;
	cursor: pointer;
}

.id-btn-frame {
	position: relative;
	display: flex;
	flex-direction: row;
	gap: 12px;
}

.start-btn img {
	width: 2em;
	color: #fff;
}

.start-btn {
	min-width: 3em;
	height: auto;
	border-radius: 10px;
	display: flex;
	justify-content: center;
	padding: 4px;
	box-sizing: border-box;
	box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.8);
	background-size: initial;
	border-radius: 2px;
	border: none;
}

.all-chains {
	display: none;
	margin: 0;
	width: 100%;
	height: auto;
	background-color: black;
	opacity: 0.05;
	z-index: 9;
}

.all-chains img {
	z-index: 10;
}

/*-------------------- volume-btn--------------------*/

.volume_up {
	width: 2em;
	display: block;
}

.volume_off {
	width: 2em;
	display: none;
}

/*--------------- POPUP ----------------------*/
.popup {
	display: none;
	/*default*/
	position: absolute;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	color: rgb(230, 230, 230);
	background-color: rgba(44, 44, 44, 0.5);
	justify-content: space-around;
	align-items: center;
	z-index: 50;
	padding-top: 80px;
	padding-bottom: 80px;
}

/* add to body */
.popup-rules {
	display: flex;
	flex-direction: column;
	position: absolute;
	width: 100%;
	height: 100vh;
	margin: 0;
	top: 0;
	background-color: rgba(255, 255, 255, 0.403);
	padding: 0 48px;
	box-sizing: border-box;
	z-index: 1000;
	overflow: hidden;
}

/* add to body in popup-rules*/
.game-description {
	margin: 40px 0 24px 0px;
	overflow: auto;
	height: 100%;
	padding-right: 10px;
	background-color: white;
	padding: 60px 32px 32px 32px;
	text-align: left;
}

.game-description h2 {
	text-shadow: none;
	text-align: center;
	width: fit-content;
}

.game-description::-webkit-scrollbar {
	width: 10px;
}

.game-description::-webkit-scrollbar-track {
	background: transparent;
	margin-top: 20px;
	/* Abstand oben */
	margin-bottom: 20px;
	/* Abstand unten */
}

.game-description::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 5px;
}

/* add to body in popup-rules*/
.popup-close {
	position: absolute;
	top: 64px;
	right: 64px;
	cursor: pointer;
	width: 40px;
	height: auto;
	z-index: 1001;
}

.allCards {
	padding-top: 0;
	display: flex;
	align-items: center;
	justify-items: center;
}

.card-item {
	position: absolute;
	transform-origin: center center;
	width: 40px;
	height: auto;
}

.pop-circle-card {
	/* inside card-item */
	width: 100%;
	height: auto;
	cursor: pointer;
	pointer-events: all;
}

.pop-card {
	width: 10%;
	height: auto;
}

.popup-info {
	width: 80%;
	height: auto;
	overflow-y: auto;
	padding: 20px;
	background-color: rgb(240, 240, 240);
	color: rgb(32, 32, 32);
	display: flex;
	flex-direction: column;
}

.close-box {
	position: relative;
	top: -9px;
	right: -96%;
	width: 30px;
}

/*------------POPUP FOR NAMEINPUT ______________*/

/* Popup Overlay Styles */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* background-color: rgba(0, 0, 0, 0.6); */
	background-image: url(./../assets/images/bgr/bgr-slate-brass.png);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 100;
}

.popup-window {
	position: absolute;
	/* background-image: url(./../assets/images/bgr/start-popup-bgr.png); */
	color: rgb(55, 42, 32);
	width: 55vw;
	height: 55vw;
	background-size: cover;
	/* background-repeat: no-repeat; */
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	pointer-events: auto;
	touch-action: manipulation;
}

.popup-window input {
	width: 50%;
	margin: 10px;
	padding: 8px;
	border-radius: 4px;
	box-sizing: border-box;
	box-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6), -1px -1px 2px rgba(0, 0, 0, 0.7);
}


/* popup.css */
#winOverlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url(./../assets/images/bgr/bgr-slate-brass.png); */
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

#winOverlay .popup-content {
background: #fff;
padding: 20px;
border-radius: 8px;
text-align: center;
max-width: 300px;
}

#winOverlay .popup-content button {
margin: 8px;
padding: 8px 12px;
border: none;
border-radius: 4px;
cursor: pointer;
}

#winOverlay .popup-content button#continueBtn {
/* add specific styling for restart button if needed */
color: black;
}

#winOverlay .popup-content button#restartBtn {
/* add specific styling for restart button if needed */
color: black;
}