html, body { height: 100%; margin: 0; }

body {
  opacity: 0.15;
  background-color: black;
  transition: opacity 1.5s ease;
}

.hero-overlay-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero-overlay-content h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.hero-overlay-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-get-started-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-get-started {
  background-color: #ffffff;
  color: black;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-get-started:hover {
  background-color: #353535;
  color: black;
  transform: scale(1.08);
}

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.137);
  pointer-events: none;
}

.navbar-transparent {
  background-color: rgba(0, 0, 0, 0.233) !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  transition: background-color 0.25s ease;
}

.navbar-transparent .nav-link {
  color: #fff !important;
}

.navbar-toggler {
  z-index: 11;
}
.navbar-collapse {
  z-index: 11;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.226) !important;
}

.navbar {
  background-color: rgba(0, 0, 0, 0.226) !important;
  transition: background-color 0.3s ease-in-out;
}

.navbar .nav-link {
    font-family: "Orbitron", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #696969;
    transform: scale(1.1);
}

.navbar-transparent .nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.navbar-transparent .nav-link:hover,
.navbar-transparent .nav-link:focus {
  color: #696969 !important;
  transform: scale(1.05);
}

.navbar-transparent .nav-link.active {
  color: #696969 !important;
  border-bottom: 2px solid #5c5c5c;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #424242;
  transition: width 0.3s ease-in-out;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar .navbar-brand img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

footer {
  background-color: #696969;
}

footer img {
  width: 15%;
  height: auto;
}

footer a {
  color: #00c6ff;
}

.card-general a {
  color: #919191;
}

.card-general img {
  width: 100%;
  max-width: 350px;
  height: auto;
}

.main-general {
  background: white;
  padding: 4rem 0;
}

.card-list-container {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  justify-content: center;
  align-items: center;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-general h4 a {
  position: relative;
  z-index: 2;
}

.card-general h4 a:hover{
  color: #2b2b2b;
  transition: color 0.3s ease-in-out;
}

.card-general p a {
  position: relative;
  z-index: 2;
}

.card-general p a:hover{
  color: #2b2b2b;
  transition: color 0.3s ease-in-out;
}

.card-general {
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-general:hover {
  box-shadow: 0 0 35px rgba(0, 0, 0, 1);
  cursor: pointer;
}

.card-general::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 15px;
  background: #ffffff;
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.3s ease;
}

iframe {
    border-radius: 12px;
}

.card-general:hover::before {
  opacity: 0.9;
}

.card-login {
  margin-top: 11rem;
  margin-bottom: 11rem;
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-profile {
  margin-top: 17rem;
  margin-bottom: 17rem;
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-mod {
  margin-top: 5rem;
  margin-bottom: 5rem;
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-level {
  margin-top: 5rem;
  margin-bottom: 5rem;
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-level img{
  width: 500px;
  height: auto;
}

.card-level a {
  position: relative;
  color: #9e9e9e;
  z-index: 2;
}

.card-level a:hover{
  color: #2b2b2b;
  transition: color 0.3s ease-in-out;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ccc;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-description-block {
    text-align: center;
    max-width: 700px;
}

.profile-description-title {
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-description {
    margin: 0;
}

.profile-edit a.btn-edit {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: #363636;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-edit a.btn-edit:hover {
    background: #808080;
    cursor: pointer;
}

.card-edit {
  margin-top: 5rem;
  margin-bottom: 5rem;
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-general {
  width: 100%;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #2b2b2b;
  background-color: #f5f5f5;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.btn-general:hover {
  background-color: #eaeaea;
  color: #111;
  transform: translateY(-1px);
}

.btn-general:active {
  background-color: #dddddd;
  transform: translateY(0);
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.difficulty-rate-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin-top: 15px;
}

.difficulty-rate-wrapper .difficulty,
.difficulty-rate-wrapper .rate {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.difficulty-rate-wrapper img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.difficulty-rate-wrapper .separator {
    width: 2px;
    height: 24px;
    background-color: #999;
}

.victors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-family: "Orbitron", sans-serif;
    text-align: left;
}

.victors-table th,
.victors-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ccc;
}

.victors-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.victors-table tbody tr:hover {
    background-color: rgba(0,0,0,0.05);
    transition: background-color 0.25s ease;
}

.victors-table a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.victors-table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.hr-line {
    width: 100%;
    height: 2px;
    border: none;
    background-color: #8f8f8f;
    margin: 1rem 0;
}

.mod-section {
    margin-bottom: 40px;
    text-align: left;
}

.table-victors {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table-victors th,
.table-victors td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: center;
}

.table-victors th {
    background-color: #f5f5f5;
}

.actions button {
    padding: 5px 12px;
    margin: 0 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-accept {
    background-color: #4caf50;
    color: white;
}

.btn-accept:hover {
    background-color: #3e8e41;
}

.btn-deny {
    background-color: #f44336;
    color: white;
}

.btn-deny:hover {
    background-color: #c7382f;
}

.level-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.level-form .form-group {
    display: flex;
    flex-direction: column;
    width: 48%;
}

.level-form label {
    font-weight: 600;
    margin-bottom: 4px;
}

.level-form input,
.level-form select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.btn-submit {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #0b5ed7;
}

.leaderboards-container {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.leaderboard-card {
  width: 100%;
  max-width: 480px;
  margin-top: 20rem;
  margin-bottom: 20rem;
}

.leaderboard-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-card a {
  color: #2b2b2b;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.6rem;
  text-align: center;
}

.leaderboard-table thead {
  border-bottom: 2px solid #ddd;
}

.leaderboard-table tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.03);
}

.leaderboard-table tbody tr:nth-child(1) td {
  font-weight: bold;
  color: #d4af37;
}

.leaderboard-table tbody tr:nth-child(2) td {
  font-weight: bold;
  color: #aaa;
}

.leaderboard-table tbody tr:nth-child(3) td {
  font-weight: bold;
  color: #cd7f32;
}

.victors-table-wrapper {
  max-height: 420px;
  overflow-y: auto;
  margin-top: 1rem;
  border-radius: 8px;
}

.victors-table thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

.victors-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.victors-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.victors-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}