html {
  height: 100%;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #2d3436;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  width: 100%;
  margin: 20px auto;
  background: rgba(47, 53, 66, 0.8);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.placa {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.placa-img {
  max-width: 900px;
  height: auto;
  display: block;
}

.overlay {
  position: absolute;
  color: white;
  font-weight: 300;
  font-size: 22px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}

#campo-kwcv {
  top: 35%;
  left: 40%;
}

#campo-fs {
  top: 45%;
  left: 40%;
}

#campo-ip-in {
  top: 73%;
  left: 58%;
}

#campo-rendimento {
  top: 73.5%;
  left: 42%;
}

#campo-fator-potencia {
  top: 65%;
  left: 58%;
}

#campo-in {
  top: 55%;
  left: 53%;
}

#campo-rpm {
  top: 65%;
  left: 28%;
}

.inputs {
  background: rgba(150, 150, 150, 0.1);
  padding: 25px;
  border-radius: 8px;
  max-width: 500px;
  width: 60%;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-row {
  display: flex;
  gap: 15px;
}

.input-row .input-group {
  flex: 1;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #dfe6e9;
}

select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  background: #f5f6fa;
  color: #2d3436;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 142, 170, 0.651);
}

button {
  background: #0050b8;
  color: white;
  border: none;
  padding: 14px 25px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

button:hover {
  background: rgba(51, 142, 170, 0.651);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
}

.infos {
  display: flex;
}

.infos h1 {
  margin: 0 !important;
  color: #fff;
}

.view {
  margin-left: 15px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(150, 150, 150, 0.1);
  width: 40%;
}

.view div {
  display: flex;
  margin: 15px 0;
}

.view label {
  margin: 0;
}

input[type="number"] {
  width: 87%;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  background: #f5f6fa;
  color: #2d3436;
  font-size: 16px;
  transition: all 0.3s;
}

input[type="number"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 142, 170, 0.651);
}

.modal-placa .imagem {
  padding: 3%;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.modal-placa {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: auto;
}

.modal-placa-img {
  max-width: 100%;
  height: auto;
}

.modal-placa button {
  background: none !important;
  position: absolute;
  right: 3% !important;
  top: 2% !important;
  width: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 40px;
  box-shadow: none !important;
}

.placa button {
  background: none;
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 30px !important;
  height: 30px !important;
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-overlay {
  position: absolute;
  color: white;
  font-weight: 300;
  font-size: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}

#modal-campo-kwcv {
  top: 40%;
  left: 40%;
  z-index: 999;
}

#modal-campo-fs {
  top: 47%;
  left: 40%;
  z-index: 999;
}

#modal-campo-ip-in {
  top: 66%;
  left: 58%;
  z-index: 999;
}

#modal-campo-rendimento {
  top: 66%;
  left: 42%;
  z-index: 999;
}

#modal-campo-fator-potencia {
  top: 60%;
  left: 57%;
  z-index: 999;
}

#modal-campo-in {
  top: 53.5%;
  left: 53%;
  z-index: 999;
}

#modal-campo-rpm {
  top: 66%;
  left: 26%;
  z-index: 999;
}


@media (max-width: 1090px) {
  .overlay {
    font-size: 20px;
    white-space: nowrap;
  }

  .modal-overlay {
    font-size: 20px;
    white-space: nowrap;
  }

  .container {
    padding: 20px 15px;
  }

  .placa {
    width: 100%;
  }

  .placa-img {
    width: 100%;
    height: auto;
  }

  select,
  button {
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .overlay {
    font-size: 16px;
  }

  .modal-overlay {
    font-size: 16px;
  }

  .input-row {
    flex-direction: column;
    gap: 10px;
  }

}

@media (max-width: 560px) {
  .overlay {
    font-size: 13px;
  }

  .modal-overlay {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .overlay {
    font-size: 12px;
  }

  .modal-overlay {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .overlay {
    font-size: 9px;
  }

  .modal-overlay {
    font-size: 9px;
  }
}

@media (max-width: 280px) {
  .overlay {
    font-size: 7px;
  }

  .modal-overlay {
    font-size: 7px;
  }
}