/* Estilos padrão */
body {
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .form,
  #scanner-container,
  #qrcode-container {
    font-family: Helvetica;
    max-width: 400px;
    margin: 0 10px;
    padding: 16px;
    background: #f7f7f7;
    display: flex;
    flex-wrap: wrap;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }
  
  .form {
    flex: 1;
  }
  
  .form h1,
  #scanner-container h1,
  #qrcode-container h1 {
    font-weight: bold;
    background: #5868bf;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    margin: -16px -16px 16px -16px;
    font-size: 25px;
    width: 100%;
  }
  
  .form input[type="text"],
  .form input[type="url"] {
    box-sizing: border-box;
    width: 100%;
    background: #fff;
    margin-bottom: 4%;
    border: 1px solid #ccc;
    padding: 3%;
    color: #555;
  }
  
  .form input[type="text"]:focus,
  .form input[type="url"]:focus {
    box-shadow: 0 0 5px #5868bf;
    padding: 3%;
    border: 1px solid #5868bf;
  }
  
  .form button {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: calc(33.33% - 10px);
    margin: 0 auto;
    padding: 3%;
    background: #5868bf;
    border-bottom: 2px solid #5868bf;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    color: #fff;
    cursor: pointer;
  }
  
  .form button:hover {
    background: rgba(88, 104, 191, 0.5);
  }
  
  .qrcode {
    padding: 16px;
  }
  
  .qrcode img {
    margin: 0 auto;
  }
  
  #scanner-video {
    width: 100%;
    height: auto;
    margin-right: 20px;
  }
  
  #scanner-canvas {
    display: none
  }
  
  /* Responsividade */
  @media (max-width: 768px) {
    .form,
    #scanner-container,
    #qrcode-container {
      max-width: 80%;
    }
  }
  
  @media (max-width: 480px) {
    .form,
    #scanner-container,
    #qrcode-container {
      max-width: 100%;
      margin: 0;
    }
  
    .form button {
      width: 100%;
    }
  }
  #scanner-button,
  #stop-scan-button,
  #switch-camera-button {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: calc(33.33% - 10px);
    margin: 0 5px;
    padding: 3%;
    background: #5868bf;
    border-bottom: 2px solid #5868bf;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    color: #fff;
    cursor: pointer;
  }
  
  #scanner-button:hover,
  #stop-scan-button:hover,
  #switch-camera-button:hover {
    background: rgba(88, 104, 191, 0.5);
  }
  
  .buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }
  #scanner-button, #stop-scan-button, #switch-camera-button {
    width: 100px;
    height: 50px;
    font-size: 18px;
  }
  
  #switch-camera-button{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: calc(33.33% - 10px);
    margin: 0 auto;
    padding: 3%;
    background: #5868bf;
    border-bottom: 2px solid #5868bf;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    color: #fff;
    cursor: pointer;
    background-image: url(https://cdn-icons-png.flaticon.com/512/3594/3594877.png);
    background-size: 48px;
    background-position: center;
}

  #switch-camera-button:hover{
    background: rgba(88, 104, 191, 0.5);
  }
  