/* Styles for Noorplay website */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
:root {
  --orange-gradient: linear-gradient(180deg, #ff823d 0%, #ff5b00 100%);
  --blue-gradient: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
  --red-gradient: linear-gradient(180deg, #ff5252 0%, #d32f2f 100%);
  --button: linear-gradient(180deg, #ffffff 0%, #e7e7e7 100%);
  --progress: linear-gradient(135deg, #ff5252 0%, #42a5f5 50.17%, #ff5b00 100%);
  --primary: #e77f26;
  --ludo-red: #d32f2f;
  --ludo-blue: #1976d2;
}
/* Animations */
html[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}
body {
  background: url('images/teal-bg.jpg') center center / cover no-repeat fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 1;
}

/* Ensure all content appears above the overlay */
body > * {
  position: relative;
  z-index: 2;
}
.text-white {
  color: #ffffff;
}
.theme-icon {
  color: rgb(7 79 82);
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.cloud-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Device icons hover effects */
.device-icon {
  transition: transform 0.3s ease, filter 0.3s ease;
}
#responseMessage,
#pinResponseMessage,
#form-title {
  color: #000000 !important;
}
.device-icon:hover {
  transform: translateY(-5px) !important;
  filter: brightness(1.1);
}

/* Form focus effects - removed duplicate, now handled in critical form styles */

/* Button hover effects */
button[type="submit"] {
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(99, 102, 241, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}
.theme-btn {
  background: linear-gradient(to right, #e77f26, #d32f2f);
  color: #ffffff;
  text-transform: uppercase;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .device-icons-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}

/* Print styles */
@media print {
  .cloud-animation,
  .device-icons-container {
    display: none;
  }
}

/* language switcher */
/* Basic dropdown wrapper */
.dropdown.lang-swticher {
  position: relative;
  display: inline-block;
  text-align: right;
}

/* Button styling */
.lang-swticher .dropdown-button {
  background-color: black; /* Tailwind 'blue-500' */
  color: white;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  text-align: center;
  /* border: none; */
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  width: fit-content;
}
.w-100 {
  width: 100%;
}

/* Dropdown content */
.lang-swticher .dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* below the button */
  left: 0;
  min-width: 100%;
  background-color: white;
  border: 1px solid #e2e8f0; /* Tailwind 'gray-200' */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  text-align: center;
  overflow: hidden;
}

/* Individual language links */
.lang-swticher .dropdown-content a {
  color: #000000; /* Tailwind 'gray-800' */
  padding: 2px 12px;
  text-decoration: none;
  font-size: 13px;
  display: block;
  white-space: nowrap;
}

/* Hover effect */
.lang-swticher .dropdown-content a:hover {
  background-color: rgb(7 79 82); /* Tailwind 'gray-100' */
  color: #ffffff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.container {
  max-width: 28rem;
  margin: 0 auto;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-reverse {
  flex-direction: row-reverse;
}

.rounded-full {
  border-radius: 9999px;
}

.bg-white {
  background-color: white;
}

.text-white {
  color: white;
}

.font-bold {
  font-weight: 700;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-gray-700 {
  color: #374151;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.transform {
  transform: translateZ(0);
}

.rotate-12 {
  transform: rotate(12deg);
}

.-rotate-12 {
  transform: rotate(-12deg);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.hidden {
  display: none;
}

.max-w-md {
  max-width: 33rem !important;
}

.down-arrow {
  display: block;
  position: relative;
  width: 0;
  height: 8px;
}

.down-arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #666666;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

/* Logo container styles */
.logo-container {
  height: auto;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* legal-content */
.legal-content p {
  margin-bottom: 10px;
}

/* legal-content */
/* Prevent content shift */
.container {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* RTL support */
html[dir="rtl"] .space-x-4 > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

/* Icon container styles */
.icon-container {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.icon-container > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container svg {
  width: 48px;
  height: 48px;
}

/* Critical form styles */
#phoneInputContainer,
#pinInputContainer {
  display: flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
  border-color: #e77f26;
  box-shadow: 0 0 0 3px rgba(231, 127, 38, 0.2);
}

.phone-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  color: #374151;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.legal_text a {
  color: #0000ff;
}
ul.legal_text {
  list-style-type: disc !important;
  padding-inline-start: 1.5em;
  margin-left: 0;
  display: block;
}
ul.legal_text li {
  margin: 0 !important;
}
.pages-content {
  background: #ffffff;
  padding: 30px;
}
.pages-content p,
strong,
h2 {
  color: #000000;
  font-weight: 500;
}
.pages-container {
  max-width: 1170px;
  width: 100%;
  margin: auto;
}
.pages-content strong {
  font-size: 12px;
  font-weight: 600;
}
.pages-content p {
  font-size: 14px;
}

@media (max-width: 640px) {
  #form-title {
    font-size: 14px;
  }
  .logo-container img {
    height: 51px;
  }
}

/* Ludo World Dice Animation */
.dice-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.dice {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 10px;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: diceRoll 4s infinite;
}

.dice:nth-child(2) {
  animation-delay: 0.5s;
}

.dot {
  width: 7.2px;
  height: 7.2px;
  background-color: black;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
}

/* Dice 1 */
.dice-1 .dot:nth-child(1) {
  grid-column: 2;
  grid-row: 2;
}

/* Dice 2 */
.dice-2 .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.dice-2 .dot:nth-child(2) {
  grid-column: 3;
  grid-row: 3;
}

/* Dice 3 */
.dice-3 .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.dice-3 .dot:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}
.dice-3 .dot:nth-child(3) {
  grid-column: 3;
  grid-row: 3;
}

/* Dice 4 */
.dice-4 .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.dice-4 .dot:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
.dice-4 .dot:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}
.dice-4 .dot:nth-child(4) {
  grid-column: 3;
  grid-row: 3;
}

/* Dice 5 */
.dice-5 .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.dice-5 .dot:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
.dice-5 .dot:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.dice-5 .dot:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}
.dice-5 .dot:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

/* Dice 6 */
.dice-6 .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.dice-6 .dot:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
.dice-6 .dot:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}
.dice-6 .dot:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.dice-6 .dot:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}
.dice-6 .dot:nth-child(6) {
  grid-column: 3;
  grid-row: 3;
}

@keyframes diceRoll {
  0%,
  100% {
    transform: rotateZ(0deg);
  }
  20% {
    transform: rotateZ(-10deg) translateY(-5px);
  }
  40% {
    transform: rotateZ(10deg) translateY(5px);
  }
  60% {
    transform: rotateZ(-5deg) translateY(-3px);
  }
  80% {
    transform: rotateZ(5deg) translateY(3px);
  }
}

/* Enhanced container styling */
.enhanced-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.enhanced-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.enhanced-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Ensure form content appears above shimmer effect */
.enhanced-container > * {
  position: relative;
  z-index: 2;
}
