* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  padding: 0 10px;
  min-height: 100vh;
  align-items: center;
  background: #2a3032; 
  justify-content: center;
  color: #fff;
}

.qr_box {
  height: 265px;
  max-width: 410px;
  background: #303030; 
  border-radius: 10px;
  border: 2px solid #1d1924; 
  padding: 20px 25px 0;
  transition: 0.2s ease;
}

.qr_box.active {
  height: 530px;
}

header h1 {
  font-size: 21px;
  font-weight: 500;
  color: #fff; 
}

header p {
  margin-top: 5px;
  color: #aaa; 
  font-size: 16px;
}

.qr_box .form {
  margin: 20px 0 25px;
}

.form :where(input, button) {
  width: 100%;
  height: 55px;
  border: none;
  outline: none;
  border-radius: 5px;
  transition: 0.1s ease;
  background-color: #444; 
  color: #fff; 
}

.form input {
  font-size: 18px;
  padding: 0 17px;  
  border: 1px solid #555;
}

.form input::placeholder {
  color: #888; 
}

.form button {
  color: #fff;
  cursor: pointer;
  margin-top: 20px;
  font-size: 17px;
  background: #1d1924; 
}

.qr-code {
  opacity: 0;
  display: flex;
  padding: 33px 0;
  border-radius: 10px;
  align-items: center;
  pointer-events: none;
  justify-content: center;
  border: 2px solid #1d1924; 
}

.qr_box.active .qr-code {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s 0.05s ease;
}

.qr-code img {
  width: 180px;
}

@media (max-width: 430px) {
  .qr_box {
    height: 255px;
    padding: 16px 20px;
  }

  .qr_box.active {
    height: 510px;
  }

  header p {
    color: #aaa; 
  }

  .form :where(input, button) {
    height: 52px;
  }

  .qr-code img {
    width: 160px;
  }
}

#ytb {
  position: absolute;
  height: 70px;
  width: 70px;
  left: calc(50% - 35px);
  top: 10px;
  text-align: center;
  line-height: 70px;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 30px;
  transition: 0.2s;
  background-image: url('./imgs/website.png');
  background-size: cover;
}

#ytb:hover{
border-radius: 100%;
border-color: #ffffff;
box-shadow: 0 0 10px #ffffff;
}

.qr_box {
  position: relative; 
}

.qr-code {
  position: relative; 
}

.downloadBtn {
  position: absolute; 
  bottom: -55px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 100%;
  height: 50px;
  border: none;
  outline: none;
  border-radius: 5px;
  transition: 0.1s ease;
  background-color: #1d1924; 
  color: #fff; 
  font-size: 17px;
  margin-top: 20px; 
}

.downloadBtn:hover {
  background-color: #444; 
  cursor: pointer;
}
