/* Reset default margins and padding */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #CAA8F5; /* Mauve */
    padding-bottom: 80px;
}

/* Header Styling */
header {
    background-color: #592E83; /* Tekhelet */
    color: #FFFFFF; /* White for better contrast */
    padding: 15px;
    display: flex;
    flex-direction: column;  /* Stack the logo and title vertically */
    align-items: center;
    justify-content: center;
}

#logo-container {
    margin-bottom: 5px; /* Space between logo and title */
}

#game-logo {
    width: 100px;  /* Adjust the size of the logo */
    height: 100px; /* Make it square */
    border-radius: 50%; /* Makes the logo round */
}

/* Header Title */
header h1 {
    font-size: 26px;
    color: #FFFFFF; /* White color for contrast */
    font-weight: bold;
    margin-top: 5px;
}

/* Header */
h2 {
    color: #230C33;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Style for Game Name Input Field */
#gameName {
    padding: 10px;
    font-size: 16px;
    width: 70%;
    max-width: 400px;
    border: 2px solid #592E83; /* Tekhelet */
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    margin: 15px auto;
    display: block;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#gameName::placeholder {
    color: #B27C66;
    font-style: italic;
    opacity: 0.7;
}

#gameName:focus {
    border-color: #B27C66;
    box-shadow: 0 0 5px rgba(178, 124, 102, 0.6);
    outline: none;
}


/* Game Container */
#game-container {
    background: #9984D4; /* Tropical Indigo */
    width: 60%;
    margin: 50px auto;
    padding: 30px 20px; /* increased top and bottom padding */
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Game Description */
p {
    font-size: 14px;
    color: #333;
}

/* Player Input Fields */
#player-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px auto;
    width: 70%;
}

/* Styling for the Player Name Input Field */
.player-name {
    padding: 8px;
    font-size: 14px;
    width: 100%;
    border: 2px solid #592E83; /* Tekhelet */
    border-radius: 8px;
    background-color: #ffffff; 
    color: #333;
    margin-bottom: 12px;
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition on focus */
}

/* Styling for the placeholder text */
.player-name::placeholder {
    color: #B27C66;
    font-style: italic;
    font-size: 14px;
    opacity: 0.7;
}

/* Focus effect for the input */
.player-name:focus {
    border-color: #B27C66;
    box-shadow: 0 0 5px rgba(178, 124, 102, 0.6);
    outline: none;
}

/* Style for Player Name Input Field on Add Players Page */
#playerName {
    padding: 10px;
    font-size: 16px;
    width: 70%;
    max-width: 400px;
    border: 2px solid #592E83; /* Tekhelet */
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    margin: 15px auto;
    display: block;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#playerName::placeholder {
    color: #B27C66;
    font-style: italic;
    opacity: 0.7;
}

#playerName:focus {
    border-color: #B27C66;
    box-shadow: 0 0 5px rgba(178, 124, 102, 0.6);
    outline: none;
}


/* Button Styles */
button {
    background-color: #B27C66;
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background 0.3s;
    margin-top: 15px;
}

button:hover {
    background-color: #230C33;
}

/* Specific Styles for Next Button */
#next-button {
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 5px;
    width: 100px;
    margin-top: 20px;
}

#next-button:hover {
    background-color: #230C33;
}

/* Footer */
footer {
    background-color: #592E83;
    color: white;
    padding: 8px;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Player List Styling */
#player-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px auto;
    width: 70%;
}

.player-option {
    background-color: white;
    border: 1px solid #592E83;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.player-option:hover {
    background-color: #f0e6ff;
}

.player-option input[type="radio"] {
    accent-color: #592E83;
    transform: scale(1.2);
}


/* Results Container */
.results {
    background-color: #9984D4; /* Match container theme */
    border-radius: 8px;
    padding: 10px 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Result Rows */
.results p {
    font-size: 16px;
    color: #333;
    padding: 10px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 5px;
    text-align: center;
    width: 80%;
    box-sizing: border-box;
    word-wrap: break-word; /* Prevent text from overflowing */
}



/* Adjusting the width of the Next Button for results page */
a button {
    background-color: #B27C66;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
    text-decoration: none;
}

a button:hover {
    background-color: #230C33;
    transform: scale(1.05);
}

a button:active {
    background-color: #230C33;
    transform: scale(1);
}


#selection-form {
    padding: 0; /* No background or card styling needed */
    margin-top: 20px;
}


.player-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    width: 80%;
}

.player-list label {
    font-size: 18px;
    color: #592E83;
    padding: 10px;
    background-color: white;
    border: 1px solid #592E83;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.player-list label:hover {
    background-color: #f0e6ff;
}

/* Submit Vote button */
button[type="submit"] {
    background-color: #B27C66;
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    width: auto;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

button[type="submit"]:hover {
    background-color: #230C33;
    transform: scale(1.05);
}

button[type="submit"]:active {
    background-color: #230C33;
    transform: scale(1);
}

/* Footer for Pages */
footer {
    background-color: #592E83;
    color: white;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* Odd One Out Instructions Page */

/* Container styling */
.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Header */
h1 {
    color: #592E83; /* Tekhelet */
    font-size: 28px;
    margin-bottom: 20px;
}

/* Instructions text */
.instructions {
    font-size: 18px;
    color: #230C33;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Reminder box */
.reminder {
    font-size: 16px;
    color: #230C33;
    background-color: #f0e6ff;
    padding: 12px 16px;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 auto 30px auto;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Next button */#next-button {
    background-color: #B27C66; /* Brown Sugar */
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}

#next-button:hover {
    background-color: #230C33; /* Dark Purple */
    transform: scale(1.1);
}

#next-button:active {
    background-color: #230C33; /* Dark Purple */
    transform: scale(1);
}

/* Discussion Page Chat Styling */
#discussion-instructions {
    font-size: 16px;
    color: #230C33;
    margin-bottom: 20px;
  }

#timer {
    font-size: 18px;
    margin: 20px 0;
    color: #230C33;
    font-weight: bold;
  }

  .odd-reveal-box {
    background-color: #ffffff;
    border: 2px dashed #592E83;
    padding: 25px 20px;
    border-radius: 12px;
    margin: 20px auto;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .reveal-text {
    font-size: 24px;
    font-weight: bold;
    color: #230C33;
    margin-top: 10px;
  }
  
  .reveal-subtitle {
    font-size: 16px;
    color: #592E83;
    margin-bottom: 8px;
  }

  .summary-box {
    background-color: #ffffff;
    border: 2px solid #592E83;
    border-radius: 10px;
    padding: 20px;
    margin: 25px auto;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
  }
  
  .summary-box h3 {
    color: #592E83;
    margin-bottom: 15px;
  }
  
  .vote-list {
    list-style: none;
    padding-left: 0;
    color: #230C33;
    font-size: 16px;
  }
  
  .vote-list li {
    margin-bottom: 10px;
  }
  
  .play-again {
    margin-top: 40px;
  }
  
  .play-again p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  .yes-button, .no-button {
    background-color: #B27C66;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }
  
  .yes-button:hover, .no-button:hover {
    background-color: #230C33;
    transform: scale(1.05);
  }
  
/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    #game-container {
        width: 90%;
    }

    .player-list {
        width: 90%;
    }

    #next-button {
        font-size: 12px;
    }
}
