html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Prevent scroll on entire page */
  background-image: url("../images/buildingbg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.main-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
}


.logo {
  background-image: url("../images/logo_pl.png");
  width: 338px;
  height: 208px;
  background-size: cover;
}

.auth-container {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 100vh;
  /* This is the key fix */
  margin: 0 auto;
  width: 80%;
  max-width: 100%;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.login-container,
.signup-container {
  width: 40%;
}

.welcomeText {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-height: 100%;

}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo h1 {
  font-weight: bold;
  color: #17ff8b;
  font-size: 46px !important;
}

.logo p {
  color: #ffffff;
  font-style: italic;
}

.form-control {
  border-radius: 5px;
  padding: 12px;
}

.btn-primary {
  background-color: #3498db;
  border: none;
  padding: 12px;
  border-radius: 5px;
  width: 100%;
}



/*end base styles */

.auth-form-control {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #ffffff55;
  border-radius: 0;
  color: white;
  padding: 10px 15px;
  width: 100%;
  margin-bottom: 15px;
  height: 40px;
}

.auth-form-control::placeholder {
  color: #ffffff;
  opacity: 0.7;
  font-size: 0.9em;
}

.auth-form-control:focus {
  background: rgba(0, 0, 0, 0.9);
  border-color: #ffffff88;
  outline: none;
  box-shadow: none;
  color: white;
}

.auth-btn {
  width: 150px;
  background: #555;
  border: 2px solid #9d9d9c;
  height: 39px;
  display: flex;
  color: #ffffff;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 0;
  font-weight: bold;
}

.align-right {
  justify-content: flex-end;
}

.auth-btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.auth-link {
  color: #ffffff;
  text-decoration: none;
  margin-top: 10px;
  display: block;
  text-align: center;
}

.auth-link:hover {
  color: #3498db;
  text-decoration: underline;
}

.auth-title {
  color: #eee;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 30px;

}

.signup-container .auth-form-control {
  height: 35px;
}

.home-container,
.about-container,
.credit-container,
.leaderboard-container,
.profile-container,
.feedbackmain-container,
.progress-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  color: #ffffff99;
  min-height: 100vh;
  position: relative;
}

.leadertable-content {
  height: 500px;
  overflow: auto;
  width: 100%;

  margin: 20px;

}


.hero-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

.text-content
 {
  height: 500px;
  overflow: auto;
  width: 100%;
  padding: 10px 20px;
  margin: 20px;
}


.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff99;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
}

.download-section {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #3498db;
}

.download-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.download-btn {
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.windows-btn {
  background-color: #0078d7;
  color: white;
}

.mac-btn {
  background-color: #000000;
  color: white;
  border: 1px solid #555;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.hamburger-menu {
  position: absolute;
  left: 146px;
  top: 0px;
  z-index: 1000;
}

.homeicon {
  position: absolute;
  left: 17px;
  top: 34px;
}

.hamburger-icon {
  cursor: pointer;
  padding: 10px;
  display: inline-block;
}

.hamburger-icon span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #c2c0c0;
  transition: all 0.3s ease;
}

.menu-items {
  display: none;
  position: absolute;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.9);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  border: 1px solid #ffffff88;
}

.menu-items a {
  color: #ffffff88;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.menu-items a:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: #000000;
}

.show {
  display: block;
}

/* Hamburger animation */
.hamburger-icon.change span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-icon.change span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.change span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}


::-webkit-scrollbar {
  width: 4px;
  /* Makes scrollbar thinner */
  height: 4px;
  /* For horizontal scrollbars */
}

::-webkit-scrollbar-track {
  background: #000;
  /* Black track */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  /* Grey thumb */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
  /* Darker grey on hover */
}

/* For Firefox */
html {
  scrollbar-width: thin;
  /* Makes scrollbar thinner */
  scrollbar-color: #888 #000;
  /* thumb track */
}

/* For Internet Explorer */
body {
  scrollbar-face-color: #888;
  /* Grey thumb */
  scrollbar-track-color: #000;
  /* Black track */
  scrollbar-arrow-color: #000;
  /* Black arrows */
  scrollbar-width: thin;
}

/* Leaderboard Table */

/* Table Styles */
.leaderboard-table {
  width: 100%;
  font-size: 0.95rem;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

/* Header Styles */
.leaderboard-header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.leaderboard-header th {
  background: #343a40;
  color: white;
  border-color: #454d55;
  padding: 12px 8px;
  text-align: center;
}

.leaderboard-header th.rank-col,
.leaderboard-header th.level-col,
.leaderboard-header th.time-col,
.leaderboard-header th.points-col {
  text-align: center;
}

/* Column Widths */
.rank-col {
  min-width: 60px;
}

.level-col {
  min-width: 80px;
}

.time-col {
  min-width: 120px;
}

.points-col {
  min-width: 100px;
}

.tools-col {
  min-width: 120px;
}

.badges-col {
  min-width: 120px;
}

.powers-col {
  min-width: 140px;
}

/* Row Styles */
.leaderboard-row {
  transition: background-color 0.2s;
}

.leaderboard-row:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.first-place {
  background-color: rgba(255, 215, 0, 0.1);
  font-weight: bold;
}

.second-place {
  background-color: rgba(192, 192, 192, 0.05);
}

.third-place {
  background-color: rgba(205, 127, 50, 0.05);
}

/* Cell Styles */
.leaderboard-table td {
  padding: 10px 8px;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

.rank-cell,
.level-cell,
.time-cell,
.points-cell {
  text-align: center;
}

.time-cell {
  font-family: monospace;
}

.points-cell {
  font-weight: bold;
  color: #28a745;
}

/* Badge Styles */
.rank-badge {
  display: inline-block;
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 12px;
  font-size: 0.8em;
  background: #f8f9fa;
  color: #212529;
}

.level-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.85em;
  background: #007bff;
  color: white;
}

.items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.item-badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 10px;
  font-size: 0.75em;
}

.tool-badge {
  background: #17a2b8;
  color: white;
}

.badge-badge {
  background: #28a745;
  color: white;
}

.power-badge {
  background: #dc3545;
  color: white;
}

/* Empty State */
.empty-message {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.empty-message i {
  margin-right: 8px;
}



.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.data-table-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table-header th {
  background-color: #343a40;
  color: white;
  padding: 12px 10px;
  text-align: left;
  font-weight: 500;
  border-bottom: 2px solid #1a252f;
}

.data-row {
  transition: background-color 0.2s ease;
}

.data-row:hover {
  background-color: #f8f9fa;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.progress-table .col-rank {
  width: 6%;
}

.progress-table .col-attempt {
  width: 7%;
}

.progress-table .col-task {
  width: 6%;
}

.progress-table .col-status {
  width: 10%;
}

.progress-table .col-points {
  width: 16%;
}



.progress-table .col-time {
  width: 10%;
}

.progress-table .col-tools {
  width: 15%;
}

.progress-table .col-badges {
  width: 15%;
}

.progress-table .col-powers {
  width: 20%;
}

.progress-table .cell-time {
  font-family: 'Courier New', monospace;
  color: #495057;
}

.progress-table .cell-points {
  font-weight: bold;
  color: #28a745;
}

.progress-table .cell-max-points {
  color: #6c757d;
  font-weight: 500;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
  text-transform: capitalize;
}

.status-completed {
  background-color: #d4edda;
  color: #155724;
}

.status-in_progress {
  background-color: #fff3cd;
  color: #856404;
}

.status-not_started {
  background-color: #f8d7da;
  color: #721c24;
}

.feedback-card {
  background-color: transparent;
  color: #fff;
}

.feedback-body {
  background-color: transparent;
  color: darkgrey;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .download-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Modal Styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

/* When modal is active (shown) */
.modal.active {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #000000;
  border: 1px solid #000;
  border-radius: 10px;
  position: relative;
  width: auto;
  max-width: 90%;
}

/* Rest of your CSS remains the same */
.modal-contentimg {

  width: 559px;
  height: 339px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 559/339;
}

.close {
  color: #aaa;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 2;
}

.close:hover {
  color: white;
}

/* Add any video styles here */
.video-login-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  /* Match your video width */
  transition: opacity 1s ease-in-out;
}

#video-container video {
  /*  width: 100%;
  height: auto;
  display: block;
  Remove extra space below video */
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#login-container {
  position: absolute;
  /* Add absolute positioning */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-in-out;
  z-index: 10;
  flex-direction: column;
}

.login-content {
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;


  /* padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 695px;
  color: #ffffff88;
  font-size: 34px;
  text-align: center; */
}

/* State classes */
.active {
  opacity: 1;
  visibility: visible;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

/*disabled download button */
.download-btn.disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
  text-decoration: none;
}

.download-btn.disabled:hover {
  background-color: #cccccc;
  color: #666666;
}

/* Logo positioning */
.logo-container {
  position: absolute;
  top: 5px;
  right: 140px;
  z-index: 1000;
}

.top-right-logo {
  height: 78px;
  width: 125px;

}


/* Password help text styling */
.password-help-text {
  color: #ffffffa8;
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.password-requirements {
  margin: 0.25rem 0 0 1rem;
  padding-left: 1rem;
}

.password-requirements li {
  list-style-type: disc;
  line-height: 1.4;
}

/* Error message styling */
.errorlist {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.justify-content-center {
  align-items: center !important;
}

.btn-primary {

  background: #555;
  border: 2px solid #9d9d9c;
  display: flex;
  color: #ffffff;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  font-weight: bold;
  margin-left: auto;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #666 !important;
  border-color: #ffffff88;
}

.credit-team {

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: left;

}


/* Team List Styling */
.team-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.team-list li {
  padding: 4px 0;
  color: #e9ecef;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  text-align: left;
}

.team-list li:before {
  color: #6c757d;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 5px;
}
.profile-inner-content
  {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: left;
}
.profile-actions{
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-self: end;
}
.profile-text{
  width:300px;
  
}
/* Container */
.credit-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #f5f5f5;
    font-family: "Poppins", sans-serif;
}

/* Main Title */
.auth-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

/* Intro text */
.about-content p {
    font-size: 16px;
    color: #e0e0e0;
}

/* Grid layout */
.credits-container {
    margin-top: 30px;
    height:420px;
    overflow:auto;
}

.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Column sections */
.credits-section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease-in-out;
}

/* Hover effect */
.credits-section:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

/* Section headings */
.credits-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Names */
.credits-section p {
    font-size: 15px;
    margin: 4px 0;
    color: #dcdcdc;
}

/* Home icon spacing */
.homeicon {
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }

    .auth-title {
        font-size: 28px;
    }
}


/* MEdia Queries */
@media (max-width: 575.98px) {
  body {
    overflow: auto;
  }

  .logo {
    width: 193px;
    height: 120px;

  }

  .auth-container {
    padding: 2px;
    width: 98%
  }

  .welcomeText p {
    font-size: 12px;
  }

  .login-content {
    width: 80% !important;
  }

  .logo-container {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
  }

  .top-right-logo {
    height: 71px;
    width: 116px;
  }

  .auth-btn:not(.loginbtn) {
    margin: 0 auto;
  }

  .signup-container {
    width: 100%;
  }

  .home-container {
    padding: 5px;

  }

  .hero-section {
    margin-bottom: 0;
  }

  .hamburger-menu {
    left: 5px;
  }

  .home-container,
  .about-container,
  .credit-container,
  .profile-container,
  .leaderboard-container,
  .progress-container {
    padding: 5px;
    margin-top: 65px;
  }


  .profile-container .homeicon {
    left: 4px;
    top: -87px;
  }

  .profile-container {
    width: 100%;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .homeicon {
    left: -6px;
    top: -4px;
  }

  .leadertable-content,
  .text-content {
    margin: 0;
    height: 610px;
  }


  .close {
    right: 10px;
    top: 5px;
    font-size: 24px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  body {
    overflow: auto;
  }

  .logo {
    width: 193px;
    height: 120px;

  }

  .forgotlink {
    margin-right: 10px;
  }

  .welcomeText p {
    font-size: 12px;
  }

  .login-content {
    width: 70% !important;
  }

  .logo-container {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
  }

  .top-right-logo {
    height: 71px;
    width: 116px;
  }

  .auth-btn:not(.loginbtn) {
    margin: 0 auto;
  }

  .signup-container {
    width: 100%;
  }

  .home-container {
    padding: 5px;

  }

  .hero-section {
    margin-bottom: 0;
  }

  .hamburger-menu {
    left: 5px;
  }

  .about-container,
  .credit-container {
    padding: 5px;
  }

  .home-container,
  .about-container,
  .credit-container,
  .leaderboard-container,
  .progress-container,
  .profile-container {
    padding: 5px;
    margin-top: 65px;
  }

  .homeicon {
    left: -6px;
    top: -4px;
  }

  .leadertable-content,
  .text-content {
    margin: 0;
    height: 610px;
  }

  .close {
    right: 10px;
    top: 5px;
    font-size: 24px;
  }
}


/* Modal background */
.modal {
  display: block;
  /* Show on load */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  font-family: 'Segoe UI', sans-serif;
}

/* Modal content */
.modal-content {
  background-color: #0C111F;
  margin: 10% auto;
  padding: 20px;
  border: 8px solid #FF0F49;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  color: white;
  position: relative;
  text-align: center;
}

/* Close button */
.close {
  color: white;
  position: absolute;
  top: -23px;
  right: 4px;
  font-size: 49px;
  font-weight: bold;
  cursor: pointer;
}

.excited-text {
  font-size: 2rem;
  font-weight: 700;
  color: #FF652F;
  margin: 0.5rem 0;
}

.description {
  font-size: 1.1rem;
  color: white;
  margin-top: 1rem;
}

.datetime {
  font-size: 1.1rem;
  margin: 1rem 0;
  font-weight: 600;
}

.see-you {
  color: #7D6BFF;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    padding: 15px;
    height: 320px;
  }

  .excited-text {
    font-size: 1.5rem;
  }

  .see-you {
    font-size: 1.2rem;
  }

  .datetime {
    font-size: 1rem;
  }
}