/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}

/* Container to center everything */
.container {
  max-width: 400px;
  width: 100%;
  animation: fadeIn 0.6s ease-in;
}

/* Header Text */
h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #111827;
}

/* Subtext */
p {
  font-size: 16px;
  color: #4b5563;
  margin: 20px 0;
}

/* Loader animation */
.loader {
  margin: 30px auto;
  width: 50px;
  height: 50px;
  border: 6px solid #e5e7eb;
  border-top: 6px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Button container */
#ios-redirect {
  margin-top: 30px;
}

/* Store Button */
#ios-redirect button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  touch-action: manipulation; /* improves mobile button tap response */
}

#ios-redirect button:hover {
  background-color: #1d4ed8;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive (optional, for very small phones) */
@media (max-width: 320px) {
  h2 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }

  .loader {
    width: 40px;
    height: 40px;
    border-width: 4px;
  }
}
