/* General Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }
  
  body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb);
	color: #fff;
	overflow-x: hidden;
	text-align: center;
	min-height: 100vh;
  }
  
  .intro,
  .game {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 1rem;
  }
  
  h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  p {
	font-size: clamp(1rem, 2.5vw, 1.5rem);
	margin-bottom: 2rem;
  }
  
  /* Button Container */
  .button-container {
	display: flex;
	gap: 1rem; /* Space between buttons */
	flex-wrap: wrap; /* Wrap buttons if screen is too small */
	justify-content: center;
  }
  
  /* Common Button Styles */
  button {
	padding: 1rem 2rem;
	font-size: clamp(1rem, 2vw, 1.25rem);
	background: linear-gradient(135deg, #ff6f91, #ff9e7b);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, background 0.3s ease;
  }
  
  button:hover {
	transform: scale(1.1);
	background: linear-gradient(135deg, #ff4d80, #ff82a9);
  }
  
  .progress-bar-container {
	width: 90%;
	max-width: 400px;
	margin-top: 2rem;
  }
  
  .progress-bar {
	width: 100%;
	height: 10px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 5px;
	overflow: hidden;
  }
  
  .progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #ff6f91, #ff9e7b);
	width: 0%;
	transition: width 0.5s ease;
  }
  
  .magic-box-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 1rem;
	width: 90%;
	max-width: 400px;
	margin-top: 2rem;
  }
  
  .magic-box {
	position: relative;
	width: 100%;
	height: 120px;
	perspective: 1000px;
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
  }
  
  .magic-box:hover {
	transform: scale(1.05);
  }
  
  .card-inner {
	position: absolute;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.6s;
	transform-style: preserve-3d;
  }
  
  .magic-box.flipped .card-inner {
	transform: rotateY(180deg);
  }
  
  .card-front,
  .card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: clamp(0.8rem, 2vw, 1.25rem);
	color: #fff;
	padding: 1rem;
	box-sizing: border-box;
	overflow: hidden;
  }
  
  .card-front {
	background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  }
  
  .card-back {
	background: linear-gradient(135deg, #ff9a9e, #fad0c4);
	transform: rotateY(180deg);
  }
  
  .message-box {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 1rem;
	border-radius: 12px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .message-box.show {
	opacity: 1;
	visibility: visible;
  }
  
  .next-button {
	margin-top: 2rem;
	padding: 1rem 2rem;
	font-size: clamp(1rem, 2vw, 1.25rem);
	background: linear-gradient(135deg, #ff6f91, #ff9e7b);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, background 0.3s ease;
  }
  
  .next-button:hover {
	transform: scale(1.1);
	background: linear-gradient(135deg, #ff4d80, #ff82a9);
  }