/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f2; /* Body Background */
    color: #23221f; /* Dark Gray */
    line-height: 1.6;
  }
  
  h1, h2, h3 {
    color: #000000; /* Non-text Color */
  }
  
  /* Container */
  .container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  /* Form */
  form {
    margin-bottom: 2rem;
  }
  
  input[type="text"] {
    width: 900%;
    padding: .9rem;
    font-size: 1.2rem;
    border: 2px solid #1B8477;
    border-radius: 4px;
    margin-right: 0.5rem;
  }

  input:hover {
    border: 2px solid #172B69;
    border-radius: 4px;
  }
  
  button {
    padding: .8rem .9rem;
    font-size: 1.4rem;
    background-color: #1B8477; /* Navigation Green */
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #172B69;
  }
  
  /* Word List - Two Column Layout */
  .word-cloud {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Two columns */
    gap: 20px;
    text-align: left;
    font-size: 1.1rem;
  }
  
  .word-cloud div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 10px;
    background-color: #172B69; /* Light background for each word */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for separation */
    transition: background-color 0.3s ease;
  }
  
  /* Rank Styling */
  .word-cloud .rank {
    margin-bottom: 5px;
    padding: 0.5rem;
    margin: 0 auto;
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFFFFF; /* Accent color for the rank */
  }
  
  /* Word Styling */
  .word-cloud .word {
    display: inline-block;
    padding: 0.5rem;
    background-color: #FFD600; /* Non-text Color */
    font-weight: bold;
    color: #000000;
    border-radius: 4px;
    margin: 0 auto;
    width: 80%;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 5px; /* Space between word and vote count */
  }

  /* Vote count Styling */
  .word-cloud .votes {
    display: inline-block;
    margin: 0 auto;
    margin-top: 5px;
    color: #FFFFFF;
    font-size: .9rem;
  }

  .input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 500px;
}

#nameInput {
  width: 100%;
  padding: .9rem;
  padding-right: 90px; /* make space for char count */
  font-size: 1.2rem;
  border: 2px solid #1B8477;
  border-radius: 4px;
}

#nameInput:hover {
  border-color: #172B69;
}

.vote-btn {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #1B8477;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  
}

.vote-btn:hover {
  width: 80%;
  background-color: #1B8477;
  font-size: 1rem;
}