/* Base Styles */
:root {
  /* Indian Flag Colors */
  /* --saffron: #FF9933;
  --white: #FFFFFF;
  --green: #138808;
  --navy-blue: #000080;
  
  /* Additional Colors */
  /* --light-saffron: #FFB266;
  --light-green: #4CAF50;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #F5F5F5;  */

  --saffron: #1e3a8a;  /* Dark blue */
  --white: #FFFFFF;
  --green: #1d4ed8;    /* Bright blue */
  --navy-blue: #172554; /* Darker blue */
  
  /* Additional Colors - Updated */
  --light-saffron: #3b82f6; /* Light blue */
  --light-green: #60a5fa;   /* Lighter blue */
  --text-dark: #000000;     /* White text */
  --text-light: #000000;    /* White text */
  --background-light: #1e3a8a; /* Dark blue background */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--light-saffron) 0%, var(--white) 50%, var(--light-green) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
}

body::before {
  background-color: var(--saffron);
}

body::after {
  background-color: var(--green);
  bottom: 8px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--navy-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--saffron);
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  color: var(--text-dark);
}

h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 16px;
  text-align: justify;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Main Content Styles */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Desktop Specific Styles */
.desktop-view {
  display: block;
}

.flag-container {
  display: flex;
  justify-content: center;
  margin: 32px auto;
  max-width: 600px;
}

.main-flag {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.main-flag:hover {
  transform: scale(1.03);
}

.intro-section,
.history-section {
  max-width: 800px;
  margin: 48px auto;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.flag-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.flag-item {
  width: calc(25% - 16px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.flag-item:hover {
  transform: translateY(-4px);
}

.flag-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* Mobile Specific Styles */
.mobile-view {
  display: none;
}

.mobile-header {
  background-color: var(--saffron);
  padding: 24px;
  text-align: center;
}

.logo-container {
  margin-bottom: 16px;
}

.tiranga-logo {
  color: #FFFFFF;
  font-size: 1.8rem;
  margin-bottom: 0;
}

.tiranga-subtitle {
  color: #2196f3;
  font-size: 1.2rem;
  margin-top: -8px;
  text-align: center;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: nowrap;
  padding: 0 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.register-btn,
.login-btn {
  flex: 1;
  min-width: 140px;
  background-color: #0066ff;
  color: #FFFFFF;
  font-size: 0.9rem;
  padding: 8px 24px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  height: 36px;
  line-height: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register-btn:hover,
.login-btn:hover {
  background-color: #0052cc;
  transform: translateY(-1px);
}

.mobile-content {
  padding: 24px;
  background-color: var(--light-saffron);
}

.gaming-image-container {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.gaming-image {
  width: 100%;
  border-radius: 8px;
}

.app-info {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.app-title {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.app-description {
  font-size: 0.95rem;
}

.mobile-flag-container {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}

.mobile-flag {
  width: 100%;
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(to right, var(--saffron), var(--white), var(--green));
  padding: 16px 0;
  margin-top: auto;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 24px;
  padding: 0 16px;
}

.footer-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--navy-blue);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .desktop-view {
    display: none;
  }
  
  .mobile-view {
    display: block;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .footer-nav ul {
    gap: 16px;
  }
  
  .footer-nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Remove this part */
  /*.auth-buttons {
    flex-direction: column;
    gap: 8px;
  }*/
  
  .footer-nav ul {
    flex-direction: column;
    gap: 8px;
  }
}