  :root {
    --primary-color: #2e86de;
    --secondary-color: #f1f2f6;
    --text-color: #2f3542;
    --bg-color: #ffffff;
    --card-bg: #f9f9f9;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    --badge-bg: #27ae60;
    --badge-color: white;
  }
  body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(green, darkgreen);
  color: white;
  font-family: 'Trebuchet MS';
  text-align: center;
  }
  header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
  }
  header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2.5rem;
  }
  header p {
    margin-top: 0.25rem;
    font-size: 1.1rem;
    font-weight: 400;
  }
  main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  #search-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
  }
  #search {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    transition: border-color 0.25s ease;
  }
  #search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
  }

  #brickGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 1.25rem;
  }
  .code-btn {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .code-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--hover-shadow);
    color: var(--primary-color);
  }
  .code-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .code-desc {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    margin-top: 0.15rem;
    min-height: 3em;
  }

  /* Tooltip container */
  .tooltip {
    position: relative;
    display: inline-block;
  }
  /* Tooltip text */
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 0.4rem 0.6rem;
    border-radius: var(--border-radius);
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 400;
    font-size: 0.9rem;
  }
  /* Show the tooltip text when hovering */
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
  /* Progress Badge */
  .progress-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--badge-bg);
    color: var(--badge-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  }
  footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    border-top: 1px solid #ddd;
    background: green;
    margin-top: 3rem;
  }
  icon: {
height: 200px;
  width: 200px;
  border-radius: 100px;
  object-fit: cover;
  animation: bounce 2s;
}
h2 {
  font-size: 24px;
}

a {
  background-color: white;
  font-size: 20px;
  border-radius: 50px;
  padding: 3px;
  display: block;
  text-align: center;
  margin: 3px;
  color: green;
  text-decoration: none;
}
a:active {
background:ghostwhite;
}
a:hover {
background:ivory;
}
  @media (max-width: 600px) {
    .code-btn {
      font-size: 1rem;
      padding: 0.9rem 1rem;
    }
    .code-icon {
      font-size: 2rem;
    }
  }