@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
    --primary-color: #282828;
    --secondary-color: #3c3836;
    --text-color: #ebdbb2;
    --gruvbox-green: #98971a;
    --highlight-color: #fabd2f; /* Adding a highlight color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items:center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeIn 1.5s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.start-button {
    display: inline-block;
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.5s ease, transform 0.3s ease;
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
    /* Removed padding, background-color, border-radius, and border properties */
}

.start-button:hover {
    color: var(--gruvbox-green);
    transform: scale(1.05);
    /* Removed background-color change on hover */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Selected piece styling */
.piece.selected {
    transform: scale(1.15);
    box-shadow: 0 0 8px var(--highlight-color), 0 0 12px var(--highlight-color);
    z-index: 10;
}

.square.highlight {
    box-shadow: inset 0 0 10px var(--highlight-color);
}