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

body {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f1f1f1;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
#banner {
    position: fixed;   /* take it out of the normal flow */
    top: 0;            /* pin to top edge */
    left: 0;           /* pin to left edge */
    width: 100%;       /* span the full viewport width */
    z-index: 999;     /* keep it above everything else */
    background-color: #1f1f1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row; /* Ensures horizontal layout */
    padding: 28px;
    gap: 20px; /* Adds spacing between items */
    font-size: 30px;
}
#buffer {
    padding: 55px;
}

.home {
    display: inline-block;
    padding: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffca28;
    font-size: 30px;
}

#home {
    display: inline-block;
    padding: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffca28;
    font-size: 30px;
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* make it span the full height */
    width: auto;   /* or set a fixed width like 200px */
    background-color: #1f1f1f; /* optional for contrast */
    z-index: 900; /* ensures it sits above other content */
    padding: 1rem;
}

nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align items to the start (left) */
    gap: 1rem;
    list-style: none;
}

nav ul li a {
    color: #f1f1f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

a:hover {
    background-color: #333;
}

.logo a {
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffca28;
}

/* Section Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    margin-left: 155px;
}

.flex-container {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}
.flex-container p {
    font-size: 1.1rem;
    justify-content: center; /*TODO WHY NO WORK?*/
}
.flex-container h1 {
    color:whitesmoke;
    font-size:30px;
    text-align:center;
}

/* Button Styling */
.button {
    background-color: #ffca28;
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #ffc12f;
}

/* Section Large S Placeholder */
section:nth-of-type(2) {
    padding: 2rem;
    text-align: center;
    font-size: 1.5rem;
    color: #aaa;
}

/* Footer */
footer {
    margin: 0;
    padding: 0;
    background-color: #121212;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}
#footer-banner {
    width: 100%;         /* 100% of viewport width */
    height: auto;         /* preserve aspect ratio */
    display: block;       /* remove inline spacing */
}

.vscode-style {
  background-color: #1e1e1e;         /* VS Code dark background */
  color: greenyellow;                    /* Default text color */
  font-family: 'Fira Code', Consolas, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;                 /* preserves formatting */
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;                 /* horizontal scroll if needed */
  tab-size: 4;                      /* spacing similar to editors */
}


/* JS DEPENDNET CSS */
/* Grid Container for Board */
#board-wrapper {
    justify-content: center;
    align-items: center; /* optional: vertical centering */
    width: 100%;
}
#board {
    display: grid;
    grid-template-rows: repeat(28, 8px);
    grid-template-columns: repeat(28, 8px);
    gap: 1px;
    padding: 10px;
    border-radius: 6px;
    user-select: none;
    touch-action: none;
}
#board div {
    width: 8px;
    height: 8px;
    background-color: white;
    transition: background-color 0.1s ease;
    border-radius: 1px;
}

/* Guess Output */
#guess-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    margin-top: 20px;
    gap: 4px;
    width: 268px;
}

#ASCII {
    color: #f1f1f1;
    white-space: pre;           
    font-family: monospace;     
    line-height: 0.9;       
    /* necessary CSS ^ */  
}
