body {
      background: #111;
      color: white;
      font-family: 'Segoe UI', sans-serif;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 2rem;
}

h1 {
  font-family: 'MagicFont', serif;
  color: #4478b4;
  font-size: 3rem;
  display: inline; /* key! makes border wrap the text only */
  position: relative;
}

/* outer black stroke */
h1::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  -webkit-text-stroke: 2px black;
  z-index: -2;
}

/* inner red-ish stroke */
h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  -webkit-text-stroke: 1px #873b48;
  z-index: -1;
}

h2 {
	font-size: 2.2rem;
	margin-bottom: 2rem;
}

h4 {
	font-size: 1rem;
	margin-bottom: 0.25rem;
}	

a {
	color: white;
	text-decoration: underline;
}
	
p { 
	text-align: center; 
	margin-top: 2rem;
}	

.color-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.color-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.color-card {
  width: 150px;
  height: 200px;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.color-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.White { background: #e0e0d1; color: #000; }
.Blue { background: #3b5ca3; }
.Black { background: #1a1a1a; }
.Red { background: #b22222; }
.Green { background: #228B22; }
.Colorless { background: #555; }
.Gold {
	background: linear-gradient(135deg, #ffd700, #daa520); /* gold tones */
	color: black;
	border: 2px solid #b8860b;
	box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}
.Multicolor {
	background: linear-gradient(135deg, #b22222, #228B22);
	color: white;
}
.Land { background: #777; }

.Token { background: #888; }

@font-face {
	font-family: 'MagicFont';
	src: url('../fonts/Magicmedieval-pRV1.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
	
/* Search */
.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.search-form input[type="text"] {
  width: 60%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
  border-color: #007BFF;
  outline: none;
}

.search-form button {
  padding: 10px 15px;
  font-size: 16px;
  margin-left: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-form button:hover {
  background-color: #0056b3;
}

.search-form {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  z-index: 10;  /* Ensures it stays above content */
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .search-form input[type="text"] {
    width: 80%;
  }

  .search-form button {
    width: 20%;
  }

  /* Cards page search bar on smaller screens */
  .cards-search-container {
    width: 100%;
    padding: 10px 20px;
  }