/* styles.css */
body {
    font-family: Arial, sans-serif;
    text-align: center;
}

.game-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);  /* Maintains equal height rows for 6 attempts */
    grid-gap: 5px;                      /* Space between rows */
    margin: 20px auto;                  /* Centrally aligns the board, with margin on the top and bottom */
    width: 300px;                       /* Fixed width; adjust as needed based on device or preference */
    border: 1px solid #ddd;             /* Subtle border style */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Soft shadow for a subtle 3D effect */
    padding: 10px;                      /* Padding around the contents within the game board */
    border-radius: 10px;                /* Rounded corners for a softer look */
    position: relative;                 /* Makes position relative to nearest positioned ancestor (if needed) */
    top: 0;                             /* Ensures it's positioned directly under the header */
    z-index: 10;                        /* Lower z-index than the header but above normal content */
    max-height: calc(100vh - 160px);    /* Maximum height to ensure it fits in the viewport */
    overflow-y: auto;                   /* Adds scroll to the game board if content exceeds the height */
}


.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
}

.cell {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
}

.correct {
    background-color: #2ecc71;
    color: #fff;
}

.incorrect-position {
    background-color: #f7dc6f;
}

.incorrect {
    background-color: #aaa;
    color: #fff;
}

.input-group {
    position: absolute;
    bottom: 0; /* Aligns to the bottom of the game-board */
    width: 100%; /* Takes full width of the game-board */
    padding: 10px; /* Padding inside the input group */
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
    display: flex;
    justify-content: space-between; /* Distributes space between input and button */
  }

#guess-input {
    width: 200px;
    height: 30px;
    font-size: 18px;
    padding: 10px;
    border: none;
    border-radius: 10px;
}

.btn {
    height: 30px;
    font-size: 18px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
}

.btn:hover {
    background-color: #3e8e41;
}

.timer {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

#hide-guesses {
    display: none; /* Initially hidden until the game starts */
    margin: 20px;
    cursor: pointer;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  main {
    width: 90%; /* Adjust the width as necessary */
    max-width: 600px; /* Set a max-width for better control on larger screens */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Adjust this for vertical spacing and alignment */
    flex-grow: 1; /* Allows the main element to expand */
}

.header, .game-board {
    width: 100%; /* Full width of the main container */
    text-align: center; /* Center text for header and any centered elements in the game-board */
}

#guess-input, #submit-guess {
    flex: 1; /* Adjust the flex property as needed for alignment */
    margin: 0 5px; /* Space between elements */
  }

  .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the container takes up the full viewport height */
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* Optional: for better visibility */
    z-index: 1000; /* Ensures the header stays above other content */
    padding: 10px;
    box-sizing: border-box;
}

.content {
    padding-top: 70px; /* More than the height of the header to ensure clearance */
    width: 100%; /* Ensures full width */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}
