/* =========================
   GLOBAL STYLES
========================= */

:root {
  --main-color: lime;   /* default color */
  --second-color: cyan; /* secondary default*/
}
.accent {
  color: var(--second-color);
}
.youtube-video {
  width: 100%;
  max-width: 560px;
  height: 100%;
  max-height: 315px;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--second-color);;
}
body {
  background-color: black;           /* Retro black background */
  color:var(--main-color);                     /* Terminal green text */
  font-family: "Courier New", monospace;
  margin: 0;
  padding: 0;

}

/* =========================
   HEADER
========================= */

header {
  text-align: center;
  padding: 20px;
  border-bottom: 2px solid var(--main-color);
}

/* =========================
   NAVIGATION BAR
========================= */

nav {
  text-align: center;
  padding: 10px;
  border-bottom: 1px dashed var(--main-color);
}

nav a {
  color: var(--second-color);
  margin: 0 15px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   MAIN CONTENT
========================= */

main {
  padding: 50px;
}

section {
  margin-bottom: 30px;
  
}

/* =========================
   IMAGES
========================= */

img {
  width: 250px;
    max-width: none;
  border: 2px solid var(--second-color);;

}


iframe {
  width: 250px;
  border: 2px solid var(--second-color);;
}

/* =========================
   BUTTONS
========================= */

button {
  background-color: black;
  color: var(--main-color);
  border: 1px solid var(--second-color);;
  padding: 10px;
  cursor: pointer;
}

button:hover {
  background-color: var(--second-color);;
  color: black;
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;
  padding: 10px;
  border-top: 2px solid var(--main-color);
  font-size: 12px;
}

/* =========================
   GAME BOARD
========================= */

#gameBoard {
  display: grid;
  grid-template-columns: repeat(10, 40px);
  grid-template-rows: repeat(10, 40px);
  gap: 2px;
  justify-content: center;
}

.cell {
  width: 40px;
  height: 40px;
  border: 1px solid var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

/* Values */
.val-0 { background-color: black; }
.val-1 { background-color: var(--main-color); filter: brightness(0.75);}
.val-2 { background-color: var(--second-color); filter: brightness(0.75);}

/* Locked cell styling */
.locked {
  position: relative;
  cursor: default;
}

.locked::after {
  content: "";
  width: 70%;
  height: 70%;
  background-color: rgba(255,255,255,0.15);
  position: absolute;
}

.incorrect-highlight {
  position: relative;
  z-index: 10;
  outline: 3px solid red;
  box-shadow: 0 0 6px red;
}

.panel {
  position: relative;
  width: 300px;
  height: 300px;
}

  /* --- Vote buttons --- */
  .vote-btn {
    position: absolute;
    padding: 6px 10px;
    cursor: pointer;
  }

  .b1 { top: 70px; left: 30px; }
  .b2 { top: 40px; left: 150px; }
  .b3 { top: 150px; left: 20px; }
  .b4 { top: 140px; left: 174px; }
  .b5 { top: 200px; left: 100px; }

  .vote-btn.selected {
    background-color: var(--second-color);;
    color: black;
  }
  /* chart */
  #chart {
    width: 300px;
    height: 300px;
  }

  .poll-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
  }


  html {
    scroll-behavior: smooth;
  }
  
  .portfolio-page {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  
  .portfolio-links {
    margin-bottom: 50px;
    line-height: 2;
  }
  
  .portfolio-links a {
    display: inline-block;
    margin-right: 12px;
    color: var(--main-color);
    text-decoration: underline;
    font-weight: bold;
  }
  
  .portfolio-links a:hover {
    color:  var(--second-color);
  }
  
  .portfolio-section {
    margin-bottom: 70px;
  }
  
  .art-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
  
    margin-top: 20px;
  }
  
  .art-grid img {
    height: 260px;
    width: auto;
  
    object-fit: contain;
  
    background: var(--second-color);
    padding: 10px;
  
    border: 3px solid var(--main-color);
  
    box-shadow:
      6px 6px 0px var(--main-color);
  
    transition: transform 0.12s ease,
                box-shadow 0.12s ease;
  
    image-rendering: auto;
  }
  
  .art-grid img:hover {
    transform: scale(1.02);
  
    box-shadow:
      10px 10px 0px var(--main-color);
  }

  .art-piece {
    position: relative;
    display: inline-block;
  }
  
  .art-title {
    position: absolute;
  
    left: 50%;
    bottom: 18px;
  
    transform: translateX(-50%);
  
    background: var(--main-color);
    color: black;
  
    border: 2px solid var(--second-color);
  
    padding: 6px 10px;
  
    font-size: 0.85rem;
    white-space: nowrap;
  
    opacity: 0;
    pointer-events: none;
  
    transition: opacity 0.15s ease;
  }
  
  .art-piece:hover .art-title {
    opacity: 1;
  }