/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #27190f, #203a43, #2c5364);
  color: rgb(5, 145, 33);
  margin: 0;
  padding-top: 100px;
}
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #121212;
  color: white;
  border-bottom: 2px solid #ffd700;
  box-sizing: border-box;
}
.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-left: 5%;
  border: 2px solid #fff;
}
.main-header h1 {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
  color: #feca1b;
  white-space: normal;         /* 👈 Allow wrap by default */
  word-break: break-word;  
}
@media (min-width: 1024px) {
  .main-header h1 {
    white-space: nowrap;
  }
}
.main-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}
.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover {
  color: #ffd700;
}
.user-area {
  position: relative;
}
.user-btn {
  background-color: #ffd700;
  color: #111;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.user-dropdown {
  color: white;
  position: relative;
  cursor: pointer;
}
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background-color: #222;
  border: 1px solid #444;
  padding: 10px;
  list-style: none;
}
.user-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  margin: 5px 0;
}
.dropdown-menu a,
.dropdown-menu button {
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}
body.modal-open {
  overflow: hidden; /* Disable background scroll when modal open */
}
.social-share-bar {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: rgb(255, 255, 255);
  padding: 10px 5px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 1000;
}
.social-share-bar a img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, filter 0.3s ease;
  filter: grayscale(0.2);
}
.social-share-bar a img:hover {
  transform: scale(1.2);
  filter: grayscale(0);
}
.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}
/* Prize Grid */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
  margin-bottom: 40px;
}
.prize {
  text-align: center;
}
.prize span {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  color: #555;
}
.prize img {
  width: 100%;
  height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.prize img:hover {
  transform: scale(1.05);
}
/* === KBV Rules Section Styles === */
.rules-section {
  background-color: #fff;
  color: #222;
  padding: 30px;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 4px 6px rgb(194, 15, 15);
  line-height: 1.6;
}
.rules-section h2 {
  color: #007bff;
  margin-bottom: 20px;
}
.rules-section ul {
  padding-left: 20px;
}
.rules-section ul li {
  margin-bottom: 15px;
}
.rules-section ul ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style-type: circle;
}
/* Start Button Styles */
.start-btn {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}
/* For anchor link start button (if you keep it) */
.start-btn a {
  background-color: #28a745;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  display: inline-block;
}
.start-btn a:hover {
  background-color: #218838;
}
/* For button start button */
.start-btn button {
  background-color: #28a745;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.start-btn button:hover {
  background-color: #218838;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #6a32dc;
  cursor: pointer;
  z-index: 1001;
}
.auth-container{
  display: none;
  position: fixed;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(6, 137, 177, 0.906);
  position: fixed;
  overflow: auto;
  width: 768px;
  max-width: 80%;
  min-height: 480px;
   max-height: 90vh;        /* 👈 NEW: height limit */
  overflow-y: auto;        /* 👈 NEW: allow scroll */
  z-index: 1000;
  transition: all 0.3s ease;
}
.auth-container p{
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.3px;
  margin: 20px 0;
  margin-left: 20px;
}
.auth-container span{
    font-size: 12px;
}
.auth-container a{
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}
.auth-container button{
    background-color: #2da0a8;
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}
.auth-container button.hidden{
    background-color: transparent;
    border-color: #fff;
}
.auth-container form{
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}
.auth-container input{
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}
.form-container{
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}
.sign-in{
    left: 0;
    width: 50%;
    z-index: 2;
}
.auth-container.active .sign-in{
    transform: translateX(100%);
}
.sign-up{
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}
.auth-container.active .sign-up{
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}
@keyframes move{
    0%, 49.99%{
        opacity: 0;
        z-index: 1;
    }
    50%, 100%{
        opacity: 1;
        z-index: 5;
    }
}
.social-icons{
    margin: 20px 0;
}
.social-icons a{
    border: 1px solid #ccc;
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
}
.toggle-container{
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
}
.auth-container.active .toggle-container{
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}
.toggle{
    background-color: #2da0a8;
    height: 100%;
    background: linear-gradient(to right, #5c6bc0, #2da0a8);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}
.auth-container.active .toggle{
    transform: translateX(50%);
}
.toggle-panel{
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}
.toggle-left{
    transform: translateX(-200%);
}
.auth-container.active .toggle-left{
    transform: translateX(0);
}
.toggle-right{
    right: 0;
    transform: translateX(0);
}
.auth-container.active .toggle-right{
    transform: translateX(200%);
}
.captcha-container {
  display: flex;
  align-items: center;
  margin: 10px 0 20px;
  gap: 10px;
}
canvas {
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 110px;
}
.captcha-container button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #2da0a8;
  padding: 0 8px;
  user-select: none;
}
.captcha-container button:hover {
  color: #1b6f75;
}

/* User Area */
.user-area {
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.user-btn {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border: none;
  padding: 8px 14px;
  border-radius: 25px;
  border: 2px solid #ffd700;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 16px;
  user-select: none;
}
/*After Login*/
.user-btn:hover {
  background: linear-gradient(45deg, #2575fc, #6a11cb);
  color: #ffd700;
}

.user-dropdown {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ffd700;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 10px;
  z-index: 1000;
  font-size: 14px;
  color: #333;
  user-select: none;
}

.profile-info {
  display: flex;
  align-items: center;
}

.profile-pic {
  font-size: 30px;
  margin-right: 10px;
  background: #09490b;
  border: 2px #ffd700;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(106,17,203,0.6);
}

.profile-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.username {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #6a11cb;
}

.user-email {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  width: 150px;
  background-color: #ffd700;
  border: none;
  border-radius: 10px ;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: rgb(0, 0, 0) !important;
  border-radius: 8px;
  transition: background 0.25s ease;
  cursor: pointer;
  font-weight: 600;
}

.dropdown-item:hover {
  background-color: #068abe;
  color: #6a11cb;
}

.logout-btn {
  width: 100%;
  background: #e74c3c;
  color: rgb(0, 0, 0) !important;
  border: none;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
}
.logout-btn:hover {
  background: #c0392b;
}










/* Responsive-Mobile View */
@media (max-width: 768px) {
  .prize-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-header {
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    gap: 15px;
    text-align: center;
  }

  .logo-title {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin: 0 auto;
  }

  .logo-title img.logo {
    margin-left: 0;
  }

  .main-header h1 {
    font-size: 1.2rem;
    line-height: 1.4;
    white-space: normal;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  .main-nav ul li {
    margin: 5px 0;
  }

  .user-area {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .user-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 15px;
  }
  .auth-container {
    width: 95% !important;   /* Full width near mobile */
    min-height: 500px;        /* Adjust height for smaller screens */
    max-height: 80vh;        /* Fit within viewport */
    border-radius: 15px;     /* Slightly smaller radius */
    padding: 20px;           /* Thoda padding kam kar sakte ho */
  }

  .sign-in, .sign-up {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 5 !important;
    transition: none !important;
  }

  .toggle-container {
    display: none;           /* Hide toggle on mobile for simplicity */
  }
}