@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;600;700&display=swap");

body {
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #4a4a4a;
  background-size: cover;
  font-family: "Merriweather", sans-serif;
}

h1 {
  color: #ff0073;
  text-align: center; 
}

::selection {
  color: #fff;
  background: deepskyblue;
}

.wrapper {
    width: 95%; /* Antes era 90%, agora ocupará mais espaço da largura da tela */
    height: 90vh; /* Antes era 80vh, agora ocupará mais da altura da tela */
    margin: 2.5% auto; /* Centraliza o conteúdo na tela */
    padding: 10px;
    background: #ffffff;
    color: #000000;
    border-radius: 10px;
    position: fixed;
    top: 5%; /* Define a distância do topo da tela */
    left: 2.5%; /* Ajuste para centralizar após alteração da largura */
    overflow: auto; /* Permite a rolagem quando necessário */
}


.wrapper .input-field {
  opacity: 0;
  z-index: -999;
  position: absolute;
}

.wrapper .content-box {
  padding: 13px 25px 0;
  border-radius: 15px;
  border: 4px solid #bfbfbf;
}

.content-box .typing-text {
  overflow: hidden;
  max-height: 90vh; /* Ajusta a altura máxima para 90% da altura da tela */
}

.typing-text::-webkit-scrollbar {
  width: 0;
}



.typing-text p span {
  position: relative;
}

.typing-text p span.correct {
  color: lawngreen;
}

.typing-text p span.incorrect {
  color: #cb3439;
  outline: 1px solid #fff;
  background: #ffc0cb;
  border-radius: 4px;
}

.typing-text p span.active {
  color: deepskyblue;
}

.typing-text p span.active::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 100%;
  bottom: 0;
  left: 0;
  opacity: 0;
  border-radius: 5px;
  background: deepskyblue;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

.content-box .content {
  margin-top: 20px;
  display: flex;
  padding: 12px 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #bfbfbf;
  line-break: auto;
}

.content button {
  outline: none;
  border: none;
  width: 105px;
  color: #fff;
  padding: 10px 5;
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
  background: deepskyblue;
  transition: transform 0.3s ease;
}

.content button:active {
  transform: scale(0.97);
}

.content .result-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: calc(100% - 140px);
  justify-content: space-between;
}

.result-details li {
  display: flex;
  height: 20px;
  list-style: none;
  position: relative;
  align-items: center;
}

.result-details li:not(:first-child) {
  padding-left: 22px;
  border-left: 1px solid #bfbfbf;
}

.result-details li p {
  font-size: 19px;
}

.result-details li span {
  display: block;
  font-size: 20px;
  margin-left: 10px;
  color:#297204

}

li span b {
  font-weight: 500;
  color:#ff0000
}

li:not(:first-child) span {
  font-weight: 500;
}

.errors span {
  color: #fa1515;
}

.timeLeft span {
  color: #cb3439;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,0,0,0.6));
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content, .form-modal-content {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  margin: 1% auto;
  padding: 20px;
  border: none;
  border-radius: 20px;
  width: 95%;
  max-width: 900px;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.15),
    0 8px 25px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  animation: slideIn 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes slideIn {
  from { 
    transform: translateY(-50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.form-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #0056b3, #007BFF);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.form-modal-content h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

.form-modal-content h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  border-radius: 2px;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255,107,107,0.3);
  transition: all 0.3s ease;
  z-index: 1001;
}

.close-button::before {
  content: '✕';
  line-height: 1;
}

.close-button:hover {
  background: linear-gradient(135deg, #ff5252, #d32f2f);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.close-button:active {
  transform: scale(0.95) rotate(90deg);
  box-shadow: 0 2px 10px rgba(255,107,107,0.3);
}

.close-button:focus {
  outline: none;
  box-shadow: 
    0 4px 15px rgba(255,107,107,0.3),
    0 0 0 3px rgba(255,107,107,0.2);
}


.content button.stop-test-button {
  background-color: black;
  color: white;
  font-size: 30px; /* Ajusta o tamanho da fonte para 24px */
  border-radius: 10px;
  padding: 8px 16px;
  margin-bottom: 20px; /* Adiciona espaço entre o botão e a caixa de texto abaixo */
  transition: background-color 0.3s, transform 0.3s;
}


.content button.stop-test-button:hover {
  background-color: #333;
}

.content button.stop-test-button:active {
  transform: scale(0.97);
}

.typing-text p span.incorrect {
  text-decoration: underline black; /* Sublinha com uma linha preta */
}

.typing-text p {
  font-size: 20px; /* Ajusta o tamanho da fonte */
  text-align: justify;
  letter-spacing: 3px;
}

.typing-text p {
  white-space: pre-wrap; /* Preserva espaços e quebras de linha */
  word-wrap: break-word; /* Permite que palavras longas sejam quebradas e movidas para a próxima linha */
  overflow-wrap: break-word; /* Garante a quebra de linha dentro de palavras se necessário */
  padding-right: 10px; /* Adiciona uma margem à direita para alinhar visualmente o texto */
  padding-left: 10px; /* Adiciona uma margem à esquerda para alinhar visualmente o texto */
  margin-right: auto; /* Alinha o conteúdo horizontalmente */
  margin-left: auto; /* Alinha o conteúdo horizontalmente */
  max-width: 95%; /* Limita a largura máxima para prevenir overflow horizontal */
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.7);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,123,255,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.form-group:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,123,255,0.2);
  box-shadow: 0 5px 15px rgba(0,123,255,0.1);
}

.form-group label {
  flex: 1;
  margin-right: 15px;
  font-weight: 600;
  min-width: 140px;
  color: #2c3e50;
  font-size: 16px;
  position: relative;
}

.form-group label::before {
  margin-right: 8px;
  font-weight: bold;
  font-size: 16px;
}

.form-group:nth-child(1) label::before {
  content: '🆔';
}

.form-group:nth-child(2) label::before {
  content: '📝';
}

.form-group:nth-child(3) label::before {
  content: '👤';
}

.form-group:nth-child(4) label::before {
  content: '💼';
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group.half-width {
  flex: 1;
  margin-bottom: 0;
}

.form-group.half-width label {
  font-size: 14px;
  margin-bottom: 5px;
}

.form-group.half-width span {
  padding: 12px 15px;
  font-size: 15px;
  min-height: 20px;
  display: block;
}

.candidate-info-compact {
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  border: 2px solid #28a745;
  border-radius: 10px;
  margin: 10px 0;
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(40,167,69,0.15);
  animation: slideInUp 0.5s ease-out;
}

.candidate-info-text {
  color: #2c3e50;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.candidate-info-text strong {
  color: #28a745;
  font-weight: 600;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.candidate-details .form-row {
  margin-bottom: 12px;
}

.candidate-details .form-row:last-child {
  margin-bottom: 0;
}

.candidate-details .form-group.half-width label {
  font-size: 13px;
  font-weight: 600;
  color: #2d5a3d;
  margin-bottom: 4px;
}

.candidate-details .form-group.half-width span {
  background: white;
  border: 1px solid #d4edda;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #155724;
  font-weight: 500;
  min-height: 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.form-group input {
  flex: 2;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.form-group input:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.05),
    0 0 0 3px rgba(0,123,255,0.1);
  transform: translateY(-1px);
}

.form-group input::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.form-group span {
  flex: 2;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-weight: 500;
  color: #495057;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.buscar-button {
  padding: 15px 25px;
  margin-left: 15px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
  position: relative;
  overflow: hidden;
}

.buscar-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.buscar-button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.buscar-button:hover::before {
  left: 100%;
}

.buscar-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,123,255,0.3);
}

.buscar-button:disabled {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.buscar-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.buscar-button.loading {
  background: linear-gradient(135deg, #17a2b8, #138496);
  position: relative;
  color: transparent;
}

.buscar-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.instructions {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  box-shadow: 0 6px 20px rgba(255,193,7,0.2);
  animation: fadeInUp 0.6s ease-out;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  position: relative;
}

.instructions::before {
  content: '📋';
  position: absolute;
  top: -8px;
  left: 18px;
  background: #007BFF;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0,123,255,0.3);
}

.instructions strong {
  display: block;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.instructions li {
  margin-bottom: 5px;
  padding: 7px 0;
  color: #495057;
  font-size: 14px;
  position: relative;
  padding-left: 20px;
  transition: all 0.2s ease;
}

.instructions li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #007BFF;
  font-size: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.instructions li:hover {
  background: rgba(0,123,255,0.05);
  border-radius: 6px;
  padding-left: 25px;
  margin-left: -3px;
  padding-right: 8px;
}

.instructions li strong {
  color: #007BFF;
  font-weight: 600;
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
}

.start-button {
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  max-width: 220px;
  margin: 15px auto;
  display: block;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(40,167,69,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes pulse {
  0% { box-shadow: 0 8px 25px rgba(40,167,69,0.3), 0 4px 15px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 12px 35px rgba(40,167,69,0.5), 0 6px 20px rgba(0,0,0,0.15); }
  100% { box-shadow: 0 8px 25px rgba(40,167,69,0.3), 0 4px 15px rgba(0,0,0,0.1); }
}

.start-button::before {
  content: '🚀';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  animation: rocket 1.5s ease-in-out infinite;
}

@keyframes rocket {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(5px); }
}

.start-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.start-button:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8, #007bff);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(40,167,69,0.4),
    0 8px 25px rgba(0,0,0,0.15);
  animation: none;
}

.start-button:hover::after {
  left: 100%;
}

.start-button:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 
    0 8px 25px rgba(40,167,69,0.3),
    0 4px 15px rgba(0,0,0,0.1);
}

.start-button:focus {
  outline: none;
  box-shadow: 
    0 8px 25px rgba(40,167,69,0.3),
    0 4px 15px rgba(0,0,0,0.1),
    0 0 0 3px rgba(40,167,69,0.2);
}


.typing-text-user p {
    color: #555;  /* Cor mais suave para diferenciar do texto original */
    background-color: #f0f0f0;  /* Fundo ligeiramente cinza para destaque */
    padding: 10px;  /* Almofadamento para melhor visualização */
    border-radius: 4px;  /* Bordas arredondadas */
}


.typing-text, .typing-text-user {
    max-height: 90vh; /* Assegura que a altura máxima seja grande o suficiente */
    overflow-y: auto; /* Permite rolagem vertical se o texto exceder a altura máxima */
}

.typing-text p, .typing-text-user p {
    font-size: 20px; /* Ajuste conforme necessário para melhor visualização */
    line-height: 1.5; /* Aumenta um pouco o espaçamento entre as linhas */
}

.modal-content, .form-modal-content {
    width: 70%; /* Ajuste a largura conforme necessário */
    padding: 20px;
    overflow-y: auto; /* Permite rolagem vertical se o conteúdo exceder a altura */
}

.logo-title-container {
    display: flex; /* Use display flex para alinhar os itens horizontalmente */
    align-items: center; /* Alinha os itens verticalmente ao centro */
}

.logo-title-container img {
    margin-right: 10px; /* Adicione uma margem à direita da logo para espaçamento */
}



