@media (max-width: 1280px) {
  body {
    font-size: 0.9rem;
  }
  nav {
    padding: 10px 0;
    font-size: 1.1rem;
  }
  .staticElements {
    padding: 0.5rem;
  }
  .card-input input {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
    width: 70px;
  }
  .card-input button {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
  }
  .instruction {
    font-size: 0.95rem;
    padding: 0.3rem 0.7rem;
    margin: 0.3rem 0;
  }
  .color-box {
    width: 18px;
    height: 18px;
    margin-right: 7px;
  }
  .box {
    font-size: 0.95rem;
    padding: 0.3rem 0.7rem;
    min-width: 40px;
    min-height: 28px;
  }
  .chart {
    gap: 0.2rem;
  }
}
.instruction.active {
  box-shadow: 0 0 0 4px;
  border-radius: 8px;
}
.instruction.active .color-box.premium {
  box-shadow: 0 0 0 4px var(--color-outline-premium);
}
.instruction.active .color-box.strong {
  box-shadow: 0 0 0 4px var(--color-outline-strong);
}
.instruction.active .color-box.speculative {
  box-shadow: 0 0 0 4px var(--color-outline-speculative);
}
.instruction.active .color-box.weak {
  box-shadow: 0 0 0 4px var(--color-outline-weak);
}
:root {
  --color-footer-bg: #fff;
  --color-footer-text: #111;
  --color-link-hover: #bbb;
  --color-premium: #1d3bd9;
  --color-strong: #0caf56;
  --color-speculative: #ffdd1f;
  --color-speculative-text: #111;
  --color-weak: #e94e39;
  --color-outline-premium: #080aa3;
  --color-outline-strong: #0caf56;
  --color-outline-speculative: #ffdd1f;
  --color-outline-weak: #e94e39;
  --color-outline-none: #bbb;
  --color-button-bg: #1d3bd9;
  --color-button-text: #fff;
  --color-input-border: #ccc;
  --color-body-bg: #ffffff;
  --color-instructions-bg: #f7f7f7;
  --color-box-hover-bg: #fff;
  --color-highlight-bg: #fff;
}

html, body {
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 1000px) {
  html {
    overflow: visible;
  }
  body {
    overflow: auto;
  }
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--color-body-bg, #ffffff);
  font-family: 'Inter', Arial, sans-serif;
}

nav {
  background: var(--color-premium);
  padding: 18px 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 5px solid var(--color-outline-premium);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.navbar {
  color: white;
}

.staticElements {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  margin-top: 100px;
}

.intructions {
  padding: 20px;
  background-color: var(--color-instructions-bg, #f7f7f7);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  width: 240px;
  min-width: 220px;
}

.instruction {
  display: flex;
  align-items: center;
}
.instruction p {
  max-width: 300px;
  word-wrap: break-word;
  white-space: normal;
}

.enter {
    font-weight: bold;
}

.card-input {
  margin-bottom: 20px;
  align-items: center;
}
input#cardInput {
  padding: 8px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid var(--color-input-border);
  width: 60px;
  text-align: center;
}
button {
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  cursor: pointer;
  margin-left: 8px;
}
span#cardMessage {
  display: block;
  margin-left: 0;
  margin-top: 10px;
  font-weight: bold;
  font-size: 1rem;
}

.premium { background-color: var(--color-premium); }
.strong { background-color: var(--color-strong); }
.speculative { background-color: var(--color-speculative); }
.weak { background-color: var(--color-weak); }
.none { background-color: none;}

.play {
  font-weight: bold;
}

.color-box {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}
.premium.color-box { background-color: var(--color-premium); }
.strong.color-box { background-color: var(--color-strong); }
.speculative.color-box { background-color: var(--color-speculative); }
.weak.color-box { background-color: var(--color-weak); }

.chart {
  display: grid;
  grid-template-columns: repeat(13, 50px);
  grid-template-rows: repeat(13, 35px);
  gap: 10px;
}

.box {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.box.speculative {
  color: black;
}

.box:hover {
  transform: translateY(-5px);
  background: var(--color-box-hover-bg, #fff);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.box.premium:hover {
  outline: 3px solid var(--color-outline-premium);
  color: var(--color-premium) !important;
}
.box.strong:hover {
  outline: 3px solid var(--color-outline-strong);
  color: var(--color-strong) !important;
}
.box.speculative:hover {
  outline: 3px solid var(--color-outline-speculative);
  color: var(--color-speculative-text) !important;
}
.box.weak:hover {
  outline: 3px solid var(--color-outline-weak);
  color: var(--color-weak) !important;
}

/* === FOOTER STYLES === */
.footer {
  width: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.footerLinks {
  margin-bottom: 12px;
}
.footerLinks a {
  color: var(--color-footer-text);
  font-weight: bold;
  text-decoration: none;
  margin: 0 12px;
  font-size: 1rem;
}
.footerLinks a:hover {
  text-decoration: underline;
}
.social a {
  color: var(--color-footer-text);
  margin: 0 8px;
  vertical-align: middle;
}
.footer svg {
  fill: var(--color-footer-text);
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.social a:hover svg {
  transform: scale(1.3);
}

.highlight {
  background: var(--color-highlight-bg, #fff) !important;
  color: inherit !important;
  z-index: 2;
}
.box.premium.highlight {
  outline: 3px solid var(--color-outline-premium);
  color: var(--color-premium) !important;
}
.box.strong.highlight {
  outline: 3px solid var(--color-outline-strong);
  color: var(--color-strong) !important;
}
.box.speculative.highlight {
  outline: 3px solid var(--color-outline-speculative);
  color: var(--color-speculative) !important;
}
.box.weak.highlight {
  outline: 3px solid var(--color-outline-weak);
  color: var(--color-weak) !important;
}
.none.highlight {
  outline: 3px solid var(--color-outline-none);
  color: var(--color-outline-none) !important;
}

@media (max-width: 1000px) {
  html {
    overflow: visible;
  }
  body {
    overflow: auto;
  }
  .staticElements {
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
  }
  .chart {
    grid-template-columns: repeat(13, 28px);
    grid-template-rows: repeat(13, 20px);
    gap: 4px;
  }
  .box {
    font-size: 8px;
  }
  .intructions {
    width: 100%;
    min-width: 0;
    max-width: 400px;
  }
  nav {
    padding: 10px 0;
    border-bottom-width: 6px;
    font-size: 1rem;
  }
  .navbar {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .chart {
    grid-template-columns: repeat(13, 24px);
    grid-template-rows: repeat(13, 18px);
    gap: 3px;
  }
  .box {
    font-size: 6px;
  }
  .intructions {
    max-width: 100vw;
    padding: 10px;
  }
  nav {
    padding: 6px 0;
    border-bottom-width: 3px;
    font-size: 0.9rem;
  }
  .navbar {
    font-size: 1rem;
  }
}

