/* General styles */

body {
    font-family: Arial, sans-serif;
    color: #1c1e21;
    font-size: 14px;
    background-color: #90f6d7;
}

h2 {
    font-size: 24px;
    margin-bottom: 1rem;
}

input, button {
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 1rem;
}

input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd0d5;
    border-radius: 5px;
}

button {
    background-color: #1f6f78;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #080808;
}

.guess-table {
    width: 100%;
    border-collapse: collapse;
}

.guess-table th, .guess-table td {
    padding: 4px 8px;
    border: 1px solid #ccd0d5;
}

.hidden {
    display: none;
}

/* Container */

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.player-section {
    width: 48%;
    margin-bottom: 1rem;
}

.player1 {
    background-color: #118a7e;
    color: #ffffff;
    text-align: center;
}

.player2 {
    background-color: #d63447;
    text-align: center;
}

/* Menu */

#menu {
    width: 100%;
    height: 50px;
    margin: 0 auto 1rem auto;
    padding: 0px 40px;
    background-color: #1f6f78; 
}

#menu ul {
    margin: 0;
    padding: 0px 0px 0px 0px;
    list-style: none;
    line-height: normal;
}

#menu li {
    float: left;
}

#menu a {
    display: block;
    height: 40px;
    margin-right: 1px;
    padding: 20px 20px 0px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: normal;
    color: #FFFFFF;
    border: none;
}

#menu .current_page_item a {
    background: #57385c;
}

#menu a:hover {
    background: #57385c;
}

input, button {
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 1rem;
}

input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd0d5;
    border-radius: 5px;
}

button {
    background-color: #1f6f78;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #080808;
}

.guess-table {
    width: 100%;
    border-collapse: collapse;
}

.guess-table th, .guess-table td {
    padding: 4px 8px;
    border: 1px solid #ccd0d5;
}

.hidden {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #90f6d7;
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.restart {
    position: fixed;
    align-self: center;
    text-align: center;
}

/* Responsive styles */

@media only screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .player-section {
    width: 100%;
  }
  #menu {
    margin-bottom: 2rem;
  }
}