* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  justify-content: center;  
}

.nav {
text-decoration: none;
background-color: #d87f0b;
color: rgb(1, 26, 63);
padding: 6px;
border-radius: 25px;
}

body {
  background: #f8f4ee url('https://www.transparenttextures.com/patterns/cream-paper.png') repeat;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  color: rgb(1, 26, 63);
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

p {
  margin-bottom: 1.5em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nate {
  border-radius: 50px;
  margin: 0 auto;
  max-width: 400px;
}

header {
  max-width: 760px;
  margin: 0 auto 50px auto;
  padding-bottom: 40px;
  border-bottom: 1px solid #d87f0b;
}

main {
  max-width: 760px;
  margin: 0 auto;
}

.guitar {
    border-radius: 12px;
    margin-bottom: 15px;
}

/* Checkers Game Styles */
.checkers-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #d87f0b;
    text-align: center;
}

.checkers-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: rgb(1, 26, 63);
}

#gameStatus {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #8B4513;
    font-weight: bold;
}

#checkersBoard {
    border: 4px solid #8B4513;
    border-radius: 4px;
    max-width: 100%;
    touch-action: none;
    display: block;
    margin: 0 auto;
}

#resetBtn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
    background: #d87f0b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: background 0.2s;
}

#resetBtn:hover {
    background: #c06d00;
}

.checkers-instructions {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* ── Chess Game Styles ── */

.chess-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #d87f0b;
    text-align: center;
}

.chess-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: rgb(1, 26, 63);
}

#chessStatus {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #8B4513;
    font-weight: bold;
}

.chess-board-wrapper {
    display: inline-block;
    padding: 10px;
    background: linear-gradient(135deg, #8B4513, #a0522d, #8B4513);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 480px;
    max-width: calc(100vw - 80px);
    aspect-ratio: 1;
    border: 2px solid #5c3317;
}

.chess-square {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.15s ease;
}

.chess-light {
    background: #f0d9b5;
}

.chess-dark {
    background: #b58863;
}

.chess-selected {
    box-shadow: inset 0 0 0 3px rgba(216, 127, 11, 0.85), inset 0 0 16px rgba(216, 127, 11, 0.3) !important;
}

.chess-lastmove {
    box-shadow: inset 0 0 0 2px rgba(216, 127, 11, 0.35);
}

.chess-check {
    box-shadow: inset 0 0 0 3px rgba(200, 40, 40, 0.7), inset 0 0 16px rgba(200, 40, 40, 0.3) !important;
}

.chess-piece {
    font-size: min(5vw, 40px);
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    transition: transform 0.15s ease;
    position: relative;
    z-index: 2;
}

.chess-piece-white {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.2);
}

.chess-piece-black {
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.chess-dot {
    position: absolute;
    width: 26%;
    height: 26%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,50,50,0.4), rgba(50,50,50,0.15));
    pointer-events: none;
    z-index: 1;
}

.chess-capture-ring {
    position: absolute;
    width: 88%;
    height: 88%;
    border-radius: 50%;
    border: 4px solid rgba(50,50,50,0.3);
    pointer-events: none;
    box-sizing: border-box;
    z-index: 1;
}

.chess-rank-label {
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 10px;
    color: rgba(0,0,0,0.35);
    font-family: Georgia, serif;
    pointer-events: none;
    z-index: 3;
}

.chess-dark .chess-rank-label {
    color: rgba(255,255,255,0.35);
}

.chess-file-label {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 10px;
    color: rgba(0,0,0,0.35);
    font-family: Georgia, serif;
    pointer-events: none;
    z-index: 3;
}

.chess-light .chess-file-label {
    color: rgba(0,0,0,0.35);
}

.chess-dark .chess-file-label {
    color: rgba(255,255,255,0.35);
}

#chessResetBtn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    font-size: 1.1rem;
    background: #d87f0b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: background 0.2s;
}

#chessResetBtn:hover {
    background: #c06d00;
}

.chess-move-history {
    display: none;
    margin: 15px auto 0;
    max-height: 100px;
    overflow-y: auto;
    background: rgba(139, 69, 19, 0.07);
    border: 1px solid rgba(216, 127, 11, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #8B4513;
    max-width: 500px;
    line-height: 1.8;
    text-align: left;
    word-wrap: break-word;
}

.chess-instructions {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.chess-thinking {
    display: inline-block;
    animation: chessThinkPulse 1.2s infinite;
    letter-spacing: 2px;
}

@keyframes chessThinkPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Promotion dialog */
.chess-promo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chess-promo-box {
    background: linear-gradient(135deg, #8B4513, #a0522d);
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: flex;
    gap: 8px;
    border: 2px solid #d87f0b;
}

.chess-promo-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    background: #f0d9b5;
    border: 2px solid #b58863;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}

.chess-promo-btn:hover {
    transform: scale(1.1);
    background: #e8cfa0;
}

/* Responsive */
@media (max-width: 540px) {
    .chess-board {
        width: calc(100vw - 80px);
    }
    .chess-move-history {
        max-width: 100%;
    }
}

