body {
  background-color: #f9f9f9;
}
.header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 15px;
  display: flex;
  align-items: center;
}
.header .back-button {
  color: #252525;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  font-weight: bold;
}
.header .back-button i {
  margin-right: 8px;
}
.app-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px;
  text-align: center;
}
.app-header img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.app-header .app-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 15px;
}
.app-header .app-category {
  color: #888;
  font-size: 1rem;
  margin-bottom: 15px;
}
.btn-download {
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  padding: 10px 25px;
  border-radius: 20px;
  text-transform: uppercase;
}
.btn-download:hover {
  background-color: #0056b3;
}
.app-description {
  margin-top: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.screenshots {
  margin-top: 30px;
}
.screenshots img {
  border-radius: 10px;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.game-info {
  margin-top: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.game-info .info-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}
.game-info .info-item:last-child {
  border-bottom: none;
}
.footer {
  margin-top: 50px;
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
}
.footer p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2b2b2ba6;
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 12px 6px 12px 6px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #252525;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.prog-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 12px 6px 12px 6px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 24px;
  width: 120px;
  height: 120px;
  text-align: center;
  color: #252525;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.prog-modal img{
  margin-top: 10px;
}

.progres-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 24px;
  max-width: 400px;
  width: 90%;
  text-align: left;
  color: #252525;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
}

/* Modal Header */
.modal-header-modd {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.modal-header-modd img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.modal-header-modd h2 {
  font-size: 18px;
  color: #000;
  font-weight: bold;
}

/* Modal Body */
.modal-body-modd {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.modal-body-modd span {
  font-weight: bold;
  color: #000;
}

/* Modal Footer */
.modal-footer-modd {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.modal-footer-modd button {
  border: none;
  background: none;
  color: #1a73e8;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 10px;
}

.modal-footer-modd button:active {
  opacity: 0.7;
}

#download-steps {
  background-color: #ececec;
  border-radius: 12px;
}

.step {
  display: none; /* Hide steps initially */
  align-items: flex-start;
  text-align: left;
  margin-bottom: 10px;
}
.step.active {
  display: flex; /* Show active step */
}
.step .status-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.step.done .status-icon {
  color: green;
}
.step.error .status-icon {
  color: red;
}
.step-text {
  flex-grow: 1;
}

.prog-modal #device {
  color: #0056b3;
}

#modal-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}

.progress-container {
  position: relative;
  width: 120px;
  height: 120px;
}

#dynamicText {
  font-size: 0.9em;
  margin-top: 20px;
  color: #252525;
  text-align: center;
  transition: color 0.3s;
}

.action-button,
.action-button-2,
.action-button-3 {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  width: 95%;
  cursor: pointer;
  transition: background-color 0.3s;
}

#action-button-3 {
  display: none;
  background-color: #e03f3f;
}

#small-note {
  font-size: 0.8em;
  margin-top: 8px;
}

#offers-place {
  display: block;
}

.action-button:hover {
  background-color: #0056b3;
}

.verify-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 12px 6px 12px 6px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #252525;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
}

.verify-content .verify-header {
  font-size: 0.9em;
}

.verify-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

#offers-place{
  display: none;
  justify-content: center;
  align-items: center;
}

.offers {
  text-decoration: none;
  color: #252525;
}

.offer-load {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offerplace {
  display: flex;
  align-items: center;
  background-color: #4285f4;
  border: 2px solid #1e437a;
  color: #fff;
  border-radius: 12px;
  padding: 4px;
  gap: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.offerplace:hover {
  background-color: #4285f4;
  color: #fff;
}

.offer-logo img {
  width: 50px;
  height: 50px;
  display: none;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.offer-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  overflow: hidden;
  font-size: 0.9em;
}

.offer-details #title {
  font-size: 1.01em;
  font-weight: bold;
  display: inline-block;
  max-width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-details #desc{
  display: inline-block;
  max-width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-footer{
    display: flex;
    justify-content: space-between;
}
.modal-footer img{
    width: auto;
    height: 25px;
}
.modal-footer button{
    border: none;
    background-color: #4285f4;
    color: #fff;
    padding: 4px 8px;
}

.custom-spinner {
  width: 20px;
  height: 20px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #445368;
  border-radius: 50%;
  animation: custom-spin 1s linear infinite;
  margin-bottom: 15px;
  margin-right: 6px;
}

@keyframes custom-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#custom-spinner-text {
  font-size: 0.9em;
  text-align: center;
}

.verify-header h5 {
  font-size: 1.6em;
}

.verify-header #pp {
  font-size: 1em;
}
