/* Reset some default styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    background-image: url(../images/background4.jpg);
    background-size: cover;
}

/* Center the game container */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: auto;
    width: 1000px;
}

/* Common styles for cells */
.cell {
    width: 120px;
    height: 120px;
    text-align: center;
    vertical-align: middle;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    /* background-color: #eaeaea; */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* .cell:hover {
    background-color: #d5d5d5;
} */

/* Style the game board */
.board-table {
    border-collapse: collapse;
    /* background-color: #fff; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    table-layout: fixed;
}

/* Style the game header */
.game-header {
    display: flex;
    align-items: center;
}

.game-header img {
    width: 140px;
    height: 120px;
    animation: vibrate 0.3s infinite;
  }
  
  @keyframes vibrate {
    0% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(3px);
    }
    50% {
      transform: translateY(0);
    }
    75% {
      transform: translateY(-3px);
    }
    100% {
      transform: translateX(0);
    }
  }  

.game-header h1 {
    font-size: 48px;
    color: #008CBA;
    margin: 20px 0;
    text-transform: uppercase;
    text-align: center;
}

/* Style the game content container */
.game-content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
}

/* Adjust the width of the game board and game info */
.game-board {
    flex: 1;
    margin-right: 20px;
    /* Add some spacing between game board and game info */
}

.game-stash {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 400px;
}

/* Style the game info and controls */
.game-info, .game-controls {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.info-table, .controls-table {
    width: 200px;
    text-align: center;
}

/* Style the game help container */
.game-help {
    flex: 1;
    padding: 15px 15px 0px 15px;
    /* background-color: #f9f9f9; */
    border-radius: 10px;
}

/* Style the content within the game-help container */
.game-help span {
    font-size: 18px;
    line-height: 1.5;
    color: #ffffff;
    font-weight: bold;
}

/* Style the buttons */
input[type="button"] {
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="button"]:hover {
    background-color: #005f7a;
    transform: scale(1.05);
}

/* Add a subtle glow effect to the game board */
.board-table {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Add a pulse animation to the buttons */
input[type="button"] {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Style the game-info container */
.game-info {
    background-color: #008CBA;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    color: white;
    text-align: center;
}

/* Style the info-container to arrange items horizontally */
.info-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Style each info-item (label and input) */
.info-item {
    flex: 1;
    padding: 10px;
}

.info-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.info-value input[type="text"] {
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 18px;
    border: none;
    background-color: transparent;
    color: white;
    border-bottom: 2px solid white;
    transition: border-bottom 0.3s ease;
}

.info-value input[type="text"]:focus {
    border-bottom: 2px solid #005f7a;
    outline: none;
}

/* Add a subtle hover effect */
.game-info:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.cell img {
    border-radius: 10px;
}

#table-board-id.disabled {
    pointer-events: none;
    /* Disable pointer events */
    cursor: not-allowed;
    /* Change cursor to 'not-allowed' */
}

#table-board-id.disabled .cell img {
    cursor: not-allowed;
}

/* Style the winning message */
.message-container {
    text-align: center;
    margin: auto;
    margin-top: 15px;
    color: white;
    font-size: 18px;
    padding: 5px;
    font-weight: bold;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.win-message {
    background-color: #4CAF50;
}

.los-message {
    background-color: #d00b0b;
}

.tie-message {
    background-color: #ffa500;
}

.error-msg {
    display: block;
    color: #fff;
    text-align: center;
    margin: auto;
    margin-top: 15px;
    font-weight: 600;
    font-style: italic;
}