input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

:root {
  --primary-color: #448a61;
  --secondary-color: #f9f9f9;
  --match-color: #2196f3;
  --text-color: #333;
  --border-color: #ddd;
  --font-family: 'Arial', sans-serif;
}

body {
  font-family: var(--font-family);
  margin: 0;
  margin-top: 20px;
  overflow-x: hidden;
  gap: 5px;
  background-color: #f3f4f6;
  color: var(--text-color);
}

h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 24px;
  color: var(--primary-color);
}

.main {
  margin-top: 80px;
}

#results-input {
  margin-bottom: 5px;
  top: 100px;
  text-align: center;
  /* margin-bottom: 20px; */
}

#results-input input {
  width: 40px;
  height: 40px;
  font-size: 18px;
  text-align: center;
  margin: 5px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

#results-input input:focus {
  border-color: var(--primary-color);
}

.description {
  width: 70%;
  text-align: center;
  margin: 0 auto;
  font-size: 16px;
}

#tickets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 50px;
  margin-bottom: 20px;
}

.ticket {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ticket-header {
  grid-column: span 5;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  font-size: 16px;
  background-color: var(--secondary-color);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.number:hover {
  transform: scale(1.1);
}

.number.selected {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.number.match {
  background-color: var(--match-color);
  color: #fff;
  border-color: var(--match-color);
}

#check-results {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#check-results:hover {
  background-color: #1d6baa;
}

/* Estilo da Listbox */
#listbox {
  width: 100%;
  max-width: 250px;
  /* Reduzido a largura máxima */
  padding: 8px;
  /* Menor preenchimento */
  font-size: 14px;
  /* Fonte menor */
  border: 2px solid #007bff;
  border-radius: 8px;
  background-color: white;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  appearance: none;
  /* Remove estilo padrão */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23007bff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

#redirectSelect {
  font-size: 14px;
  font: bold;
  height: 40px;
  border-radius: 5px;
}

/* Efeito ao focar */
#listbox:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* Responsividade */
@media (max-width: 768px) {
  #listbox {
    font-size: 12px;
    /* Fonte ainda menor em dispositivos móveis */
    /* Menor preenchimento */
  }

  #redirectSelect {
    width: 80%;
    font-size: 11px;
    align-items: center;
  }

  #results-input {
    padding: 10px;
    gap: 5px;
  }

  #tickets-container {
    margin-bottom: 40px;
  }
}