body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f7ff;
  color: #1a1a2e;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.app-header {
  background-color: #4c90ff;
  color: white;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h2, h3, p, label {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Container alignments */
.central-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin-top: -70px;
}

/* Box styles */
.age-verification,
#dob-selection,
#ip-info,
#country-selection {
  background-color: #e6f0ff;
  box-shadow: 0 8px 24px rgba(58, 97, 152, 0.2);
  border-radius: 14px;
  padding: 30px;
  margin: 40px auto;
  width: 90%;
  max-width: 420px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  border: 1px solid #b3d1ff;
}

input[type="text"],
select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cce0ff;
  background-color: #ffffff;
  width: calc(100% - 24px);
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}

input:focus,
select:focus {
  box-shadow: 0 0 8px rgba(80, 180, 255, 0.6);
  outline: none;
}

button {
  padding: 10px 18px;
  background-color: #7eabff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
  background-color: #609cff;
  box-shadow: 0 0 10px rgba(80, 180, 255, 0.5);
}

/* Flag styling */
#flag {
  margin-top: 20px;
  height: 120px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(30, 50, 120, 0.2);
  transition: transform 0.3s;
  margin-left: 120px;
}
#flag:hover {
  transform: scale(1.05);
}
#country-info {
  text-align: center;
  font-size: 16px;
  color: #333;
}

/* Reset Button */
#reset-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  background-color: #7eabff;
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(64, 140, 255, 0.4);
  z-index: 10;
}

/* Toggle Button */
#toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #7eabff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 4px 16px rgba(64, 140, 255, 0.4);
  z-index: 10;
}

/* Dark Mode - Neon Night Mode */
.dark-mode {
  background-color: #12182f;
  color: #e0e8ff;
}

.dark-mode .age-verification,
.dark-mode #dob-selection,
.dark-mode #ip-info,
.dark-mode #country-selection {
  background-color: #1b2540;
  color: #e0e8ff;
  border-color: #3a4d78;
}

.dark-mode input,
.dark-mode select {
  background-color: #2d375a;
  color: #e0e8ff;
  border-color: #5070aa;
}

.dark-mode button {
  background-color: #648dff;
  color: #fff;
}

.dark-mode button:hover {
  background-color: #4a75f0;
  box-shadow: 0 0 10px rgba(100, 160, 255, 0.5);
}

/* Hover box animation */
#dob-selection:hover,
#ip-info:hover,
#country-selection:hover {
  transform: perspective(600px) rotateY(5deg) scale(1.03);
  box-shadow: 0 14px 36px rgba(70, 130, 180, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Animations */
@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}
.slide-out {
  animation: slideOutUp 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/*alert*/
/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Box */
.modal-content {
  background: #fff;
  position: relative;
  margin: 40px auto 0; /* Top spacing, no vertical centering */
  padding: 25px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease;
}
@keyframes slideDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close (×) Button */
.close-button {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}
.close-button:hover {
  color: #000;
}

/* Fade-in animation */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

