:root {
  --bg-dark: #111;
  --bg-light: #f4f4f4;
  --text-dark: #eee;
  --text-light: #222;
  --card-bg-dark: #222;
  --card-bg-light: #fff;
  --accent: #4fc3f7;
}

[data-theme="dark"] {
  background: var(--bg-dark);
  color: var(--text-dark);
}

[data-theme="light"] {
  background: var(--bg-light);
  color: var(--text-light);
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  align-items: center;
  margin-bottom: 2rem;
}


#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}


.card {
  background: var(--card-bg-dark);
  padding: 1.5rem;
  border-radius: 12px;
  width: auto;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

[data-theme="light"] .card {
  background: var(--card-bg-light);
}

/* Mobile layout: 1 card per row */
@media (max-width: 600px) {
  .card {
    width: 100%;
  }
}


h1, h2 {
  margin: 0 0 1rem;
}

/* DRAGGABLE BOOKMARK STYLE */
.bookmark-wrapper {
  position: relative;
  display: inline-block;
  width: 140px;
  height: 40px;
  margin: 0 auto;
  margin-bottom:7em;
}

.bookmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
  cursor: grab;
  text-indent: -9999px;
  overflow: hidden;
  z-index: 2;
  border: none;
  display: block;
}

.label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  font-weight: bold;
  font-size: 1rem;
  pointer-events: none;
  z-index: 3; /* <-- raise this above the .bookmark */
}

.bottomText {
padding-top:2.5em
}

footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: gray;
}
