@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap");
 
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Roboto", sans-serif;
    scroll-behavior: smooth;
}
 
body {
	background-image: linear-gradient(to right, #fa709a 0%, #fee140 100%);
	min-height: 10vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: clamp(1rem, 1vh, 4rem);
	overflow-x: hidden;
	margin-top: 20px;
}
 
 
.modus {
	display: flex;
	justify-content: center;
	align-items: center;
}
.box{
	display: flex;
	text-align: left;
	justify-content: left;
	align-items: left;
	grid-template-columns: 1fr 1fr;
	display: grid;

 
}
 
.spielanzeige {
	font-weight: 900;
	font-size: 50px;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
 
.spielfeld {
    width: 600px; /* Erhöhe die Breite des Spielfelds */
    aspect-ratio: 4/3; /* Setze das Seitenverhältnis auf 4:3 */
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Ändere die Anzahl der Spalten auf 4 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    max-width: 350px; /* Passe die maximale Breite des Spielfelds an */
}

.feld {
    background-color: transparent;
    border: 0.2rem solid rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    cursor: pointer;
    aspect-ratio: 1/1;
}
 
.feld::before,
.feld::after {
    content: "";
    box-sizing: border-box;
}
 
.feld.spieler::before {
    border: 1rem solid blue;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 255, 0.4);
}
 
.feld.gegner::before,
.feld.gegner::after {
    background-color: red;
    width: 1rem;
    height: 100%;
}
 
.feld.gegner::before {
    transform: translateX(50%) rotate(45deg);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}
 
.feld.gegner::after {
    transform: translateX(-50%) rotate(-45deg);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}
 
.spielanzeige.spieler {
	font-size: 30px;
    color: blue;
}
 
.spielanzeige.gegner {
	font-size: 30px;
 
    color: red;
}
 
.feld:not([disabled]):hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
 
.feld.winner:before {
    border-color: blue;
    animation: glowing 1s infinite;
}
 
.feld.winner:after {
    border-color: blue;
    animation: glowing 1s infinite;
}
 
@keyframes glowing {
    0% {
        box-shadow: 0 0 20px yellow;
    }
 
    50% {
        box-shadow: 0 0 20px black;
    }
 
    100% {
        box-shadow: 0 0 20px yellow;
    }
}
 
.spielanzeige.winner {
    color: red;
    animation: spielanzeige 2s infinite;
}
 
@keyframes spielanzeige {
    0% {
        color: blue;
    }
 
    50% {
        color: red;
    }
 
    100% {
        color: blue;
    }
}
 
.container {
	width: 1000px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}
 
.container .btn {
	position: relative;
	top: 0;
	left: 0;
	width: 250px;
	height: 50px;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}
 
.container .btn button {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 30px;
	padding: 10px;
	letter-spacing: 1px;
	text-decoration: none;
	overflow: hidden;
	color: #fff;
	font-weight: 400px;
	z-index: 1;
	transition: 0.5s;
	backdrop-filter: blur(15px);
}
 
.container .btn:hover button {
	letter-spacing: 3px;
}
 
.container .btn button::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent);
	transform: skewX(45deg) translate(0);
	transition: 0.5s;
	filter: blur(0px);
}
 
.container .btn:hover button::before {
	transform: skewX(45deg) translate(200px);
}
 
.container .btn::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translatex(-50%);
	bottom: -5px;
	width: 30px;
	height: 10px;
	background: #f00;
	border-radius: 10px;
	transition: 0.5s;
	transition-delay: 0.5;
}
 
.container .btn:hover::before
 
/*lightup button*/
	{
	bottom: 0;
	height: 50%;
	width: 80%;
	border-radius: 30px;
}
 
.container .btn::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translatex(-50%);
	top: -5px;
	width: 30px;
	height: 10px;
	background: #f00;
	border-radius: 10px;
	transition: 0.5s;
	transition-delay: 0.5;
}
 
.container .btn:hover::after
 
/*lightup button*/
	{
	top: 0;
	height: 50%;
	width: 80%;
	border-radius: 30px;
}
 
.container .btn:nth-child(1)::before,
/* 2*/
.container .btn:nth-child(1)::after {
	background: #2db2ff;
	box-shadow: 0 0 5px #2db2ff, 0 0 15px #2db2ff, 0 0 30px #2db2ff,
		0 0 60px #2db2ff;
}

 
 
 
 
 
 
@property --rotate {
	syntax: "<angle>";
	initial-value: 132deg;
	inherits: false;
}
 
:root {
 
	--card-width: calc(var(--card-height) / 1.5);
}
 
.card {
	width: var(--card-width);
	height: var(--card-height);
	padding: 3px;
	position: relative;
	border-radius: 6px;
	justify-content: center;
	align-items: center;
	text-align: center;
	display: flex;
	font-size: 1.5em;
	color: rgb(88 199 250 / 0%);
	cursor: pointer;
	font-family: cursive;
}
 
 
.card::before {
	content: "";
	width: 104%;
	height: 102%;
	border-radius: 8px;
	background-image: linear-gradient(var(--rotate), #fa709a, #fee140 100%, #fa709a);
	position: absolute;
	z-index: -1;
	top: -1%;
	left: -2%;
	animation: spin 5.5s linear infinite;
}
 
 
 
@keyframes spin {
	0% {
		--rotate: 0deg;
	}
 
	100% {
		--rotate: 360deg;
	}
}
 
 
a {
	text-decoration: none;
	font-family: sans-serif;
	font-weight: bold;
	color: aliceblue;
	text-shadow: 1px 1px 1px black;
}
 
 
 
 
.multiplayer {
	position: relative;
	text-decoration: none;
	box-shadow: 0 4px 8px rgba(255, 255, 255, 0.696);
	border-radius: 10px;
	width: 150px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	margin: 10px;
	background-color: transparent;
  }
 
  .multiplayer::before {
	content: "";
	width: 100%;
	height: 100%;
	border-radius: 10px;
	background-image: linear-gradient(var(--rotate), #fc5185, #fdb827);
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	animation: com 5s linear infinite;
	filter: brightness(150%) contrast(150%); /* Erhöhte Helligkeit und Kontrast */
  }
 
  .multiplayer a {
	color: white;
	z-index: 1;
  }
 
  .multiplayer:before,
  .multiplayer:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 10px;
  }
 
  .multiplayer:before {
	background: linear-gradient(45deg, #fc5185, #fdb827);
	top: -2px;
	left: -2px;
	background-size: 400%;
	z-index: -1;
	filter: blur(5px);
	opacity: 1;
	animation: glow 20s linear infinite;
  }
 
  .multiplayer:after {
	background-image: linear-gradient(var(--rotate), #fc5185, #fdb827);
	top: 0;
	left: 0;
	z-index: -1;
	animation: com 3s linear infinite;
  }
 
  @keyframes glow {
	0% {
	  background-position: 0 0;
	}
	50% {
	  background-position: 400% 0;
	}
	100% {
	  background-position: 0 0;
	}
  }
 
  @keyframes com {
	0% {
	  --rotate: 0deg;
	}
	100% {
	  --rotate: 360deg;
	}
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  .computer,.computer2,.multiplayer2,.dinogame,.dinogame2 {
	position: relative;
	text-decoration: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	border-radius: 10px;
	width: 150px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	margin: 10px;
	background-image: linear-gradient(var(--rotate), #fa709a, #fee140 100%, #fa709a);
 
  }
 
 
 
  #body-overlay {
	z-index: 2;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.8);
	opacity: 0;
	pointer-events: none;
  }
 
  #body-overlay.active {
	pointer-events: auto;
	opacity: 1;
  }
 
  .dialog-container {
	display: flex;
	align-items: center;
	justify-content: center;
  }
 
  .dialog {
	z-index: 2;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(1.25);
	background-image: linear-gradient(var(--rotate), #fa709a, #fee140 100%, #fa709a);
	color: rgb(247, 255, 240);
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 0 5px rgb(31, 8, 58), 0 0 15px #fa709a, 0 0 30px #fee140, 0 0 60px #fa709a;
	opacity: 0;
	pointer-events: none;
	transition: top 0ms ease-in-out 200ms, opacity 200ms ease-in-out 0ms, transform 200ms ease-in-out 0ms;
	max-width: 90%;
  }
 
  .dialog.active {
	pointer-events: auto;
	top: 50%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	transition: top 0ms ease-in-out 0ms, opacity 200ms ease-in-out 0ms, transform 200ms ease-in-out 0ms;
  }
 
  @media (max-width: 600px) {
	.dialog {
	  width: 90%;
	}
  }
 
 
 
  @media (min-width: 768px) {
	#loslegen-dialog {
	  width: 25%;
	}
  }
 
 
 /* #loslegen-dialog {
	width: 25%;
  }*/
 
  .dialog-schliessen-button {
	position: flex;
	right: 10px;
	top: 10px;
	font-size: 32px;
	line-height: 32px;
	color: rgba(0, 0, 0, 0.4);
	text-decoration: none;
  }
 
  #loslegen-dialog input {
	width: 100%;
	vertical-align: middle;
	margin: 7px 0;
	border-radius: 20px;
  }
 
  #loslegen-dialog .field {
	padding: 14px 16px;
	cursor: pointer;
  }
 
  #message {
	height: 150px;
	width: 100%;
  }
 
  #submit {
	background-image: linear-gradient(var(--rotate), #fa709a, #fee140 100%, #fa709a);
	margin: 10px;
	padding: 15px 45px;
	text-align: center;
	text-transform: uppercase;
	transition: 0.5s;
	background-size: 200% auto;
	box-shadow: 0 0 20px grey;
	display: block;
	border: none;
	color: #fff;
  }
 
  #submit:hover {
	background-position: right center;
	color: #fff;
	text-decoration: none;
  }
 
h3{
	font-size: 30px;
	text-shadow: 1px 1px 1px black;
 
}
b {
	text-shadow: 1px 1px 1px black;
 
}
 
 
 
  ul.sub-list {
	list-style-type: none;
	margin-left: 1em;
  }
 
  ul.sub-list > li:before {
	content: "-";
	display: inline-block;
	margin-right: 0.5em;
 
  }
 
 
 
 
 
  #chatlog {
	height: 300px;
	overflow: scroll;
	border: 1px solid #ccc;
	padding: 80px;
}
audio {
	display: none;
}