.lucky-number {
  max-width: 600px;
}

.box {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f4f4f4;
  margin-bottom: 20px;
  overflow: hidden;
}

.input-box {
  padding: 20px;
}

.how-many-number {
  width: 57%;
}

.row {
  margin-bottom: 15px;
}

label {
  font-weight: bold;
  margin-right: 10px;
}

input[type="number"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

#generateBtn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.result-header {
  background: #1f6fb2;
  color: white;
  font-weight: bold;
  padding: 12px;
  font-size: 18px;
}

.result-body {
  padding: 15px;
  font-size: 16px;
  background: #f9f9f9;

}

.result-box {
  display: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  margin-top: 20px;
}

#result-text {
  margin: 0 0 10px 0;
}

#copyBtn {
  background: #1f6fb2;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
}

#copyBtn:hover {
  background: #155a8c;
  color: white;
}

.result-box {
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  margin-top: 20px;
}

.result-header {
  background: #1f6fb2;
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  font-size: 22px;
  text-align: center;
  gap: 8px;
}

#result-text {
  color: black !important;
}

.result-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e9f0f6;
  padding: 12px 15px;
  font-size: 15px;
}

#result-text {
  margin: 0;
}

#result-text strong {
  font-weight: bold;
}

.yes-or-no .fa-solid {
  border: 0px;
  padding: 0px;
  border-radius: 0px;
}

.warning-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999999;
}

.warning-content {
  background: #fffbea;
  border: 2px solid #ffb84d;
  border-radius: 14px;
  width: 420px;
  max-width: 90%;
  margin: 12% auto;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  animation: fadeIn 0.3s ease-in-out;
  font-family: Arial, sans-serif;
  text-align: center;
  overflow: hidden;
  position: absolute;
  top: 0%;
  left: 40%;
}

.warning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffcc80;
  padding: 14px;
  border-bottom: 1px solid #ffb84d;
}

.warning-header .icon {
  font-size: 22px;
  margin-right: 8px;
  color: #e65100;
}

.warning-header .title {
  font-weight: bold;
  font-size: 20px;
  color: #e65100;
}

.warning-body {
  font-size: 16px;
  color: #333;
  padding: 20px;
  line-height: 1.5;
}

.restart-text {
  display: inline-block;
  padding: 10px 18px;
  background: #28a745;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease;
}

.restart-text:hover {
  background: #218838;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 12px;
  font-size: 28px;
  cursor: pointer;
  color: #e65100;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width:992px) {
  .warning-content{
    left:28%;
  }
}

@media (max-width: 768px) {
  .hero-section{
    margin: 0 !important;
  }
  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  label {
    margin-bottom: 5px;
  }

  #result-text {
    font-size: 14px;
  }

  #generateBtn {
    font-size: 15px;
    padding: 10px 16px;
  }

  .warning-content {
    top: 30%;
    left: 27%;
  }
}

@media (max-width:575px) {
  .warning-content {
    margin: 0 auto;
    top: 30%;
    left: 5%;
  }
}

@media (max-width: 480px) {
  .result-header {
    font-size: 18px;
    padding: 8px;
  }

  #result-text {
    font-size: 13px;
  }

  #copyBtn {
    font-size: 16px;
    padding: 8px 12px;
  }

  input[type="number"] {
    width: 100%;
  }
}

@media (max-width:400px) {
  .warning-content {
    width: 310px;
  }
}