#main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#innerCollumn {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 725px) {
  #innerRow {
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }
}

@media screen and (max-width: 725px) {
  #innerRow {
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

#P_1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  overflow-x: hidden;
  background-color: #072a26;
}

@font-face {
  font-family: "RozanovaGEO"; /* Гарнитура шрифта */
  src: url("RozanovaGEO-Demo-SemiBold_1.otf"); /* Путь к файлу со шрифтом */
}

* {
  font-family: "RozanovaGEO", sans-serif;
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.running-text {
  /*color: #2dd4bf;*/
  color: #2dd4bf;
  overflow-x: hidden;
  line-height: 1;
  display: flex;
  width: 100vw;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  border: 0.5rem solid;
  border-color: #000;
}

.marquee {
  overflow: hidden;
  font-size: 0;
  font-family: sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.marquee__inner {
  padding-left: 27px;
  font-size: 6rem;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

#footer {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#footer2 {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 25px;
  margin-bottom: 10px;
  justify-content: center;
  align-items: center;
  font-family: Poppins, sans-serif;
}

#footer3 {
  margin-top: 50px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media screen and (min-width: 1024px) {
  #footer2 {
    max-width: 512px;
  }
}

@media screen and (min-width: 1536px) {
  #footer2 {
    max-width: 1024px;
  }
}

#adv {
  display: block;
  max-width: 100%;
  width: auto;
  padding-right: .5rem;
  height: 20rem;
  top: .5rem;
  right: .5rem;
  position: absolute;
}

#advButtons {
  margin-top: 3.5rem;
  top: .75rem;
  right: 5rem;
  position: absolute;
  margin-right: 5rem;
}

#bigtext {
  max-width: 11rem;
  margin-top: 9rem;
  right: 0rem;
  position: absolute;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

@media screen and (min-width: 1024px) {
  #bigtext {
    min-width: 18rem;
    margin-right: 5.25rem;
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media screen and (min-width: 1536px) {
  #bigtext {
    right: 18.25rem;
    min-width: 24rem;
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

.body-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /*background: linear-gradient(135deg, #0a1a1a 0%, #1a2f2f 50%, #0f2020 100%);*/
  display: flex;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 500px;
}

.nav-buttons {
  justify-content: center;
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 2px solid #2dd4bf;
  color: #2dd4bf;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-btn-2 {
  background-color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-content: center;
  align-items: center;
  color: #000;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 300px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-btn:hover {
  background: #2dd4bf;
  color: #0a1a1a;
}

.nav-btn.active {
  background: #2dd4bf;
  color: #0a1a1a;
}

.form-container {
  position: relative;
  background: rgba(20, 40, 40, 0.8);
  border: 2px solid #2dd4bf;
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(10px);
}
/*
.form-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #2dd4bf;
}*/

.form-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.input-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  background: rgba(10, 26, 26, 0.8);
  border: 2px solid #2dd4bf;
  border-radius: 12px;
  padding: 15px 20px;
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #6b7280;
}

.form-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.checkbox-group {
  background: rgba(10, 26, 26, 0.6);
  border: 2px solid #2dd4bf;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-item:last-child {
  margin-bottom: 0;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  background: #2dd4bf;
  border-radius: 4px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.custom-checkbox::after {
  content: "✓";
  color: #0a1a1a;
  font-weight: bold;
  font-size: 14px;
}

.checkbox-label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.action-btn {
  background: transparent;
  border: 2px solid #2dd4bf;
  color: #2dd4bf;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.action-btn:hover {
  background: #2dd4bf;
  color: #0a1a1a;
}

.submit-btn {
  width: 100%;
  background: #2dd4bf;
  border: none;
  color: #0a1a1a;
  padding: 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #14b8a6;
  transform: translateY(-2px);
}

.submit-btn:disabled {
  background: #6b7280;
  cursor: not-allowed;
  transform: none;
}

/* Added styles for invite friends page */
.invite-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
}

.invite-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title {
  color: #2dd4bf;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  background: rgba(10, 26, 26, 0.6);
  border: 2px solid #2dd4bf;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  color: #2dd4bf;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.referral-link-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.referral-input {
  flex: 1;
  background: rgba(10, 26, 26, 0.8);
  border: 2px solid #2dd4bf;
  border-radius: 12px;
  padding: 15px 20px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.copy-btn {
  background: #2dd4bf;
  border: none;
  color: #0a1a1a;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #14b8a6;
  transform: translateY(-2px);
}

.referral-info {
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

.social-share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  background: transparent;
  border: 2px solid #2dd4bf;
  color: #2dd4bf;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.social-btn:hover {
  background: #2dd4bf;
  color: #0a1a1a;
}

.twitter-btn:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: #ffffff;
}

.telegram-btn:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #ffffff;
}

.referrals-list {
  max-height: 300px;
  overflow-y: auto;
}

.referral-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 26, 26, 0.6);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
}

.referral-info {
  flex: 1;
}

.referral-username {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.referral-date {
  color: #6b7280;
  font-size: 12px;
}

.referral-number {
  color: #2dd4bf;
  font-size: 18px;
  font-weight: 600;
}

.no-referrals {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 30px;
}

.login-prompt {
  text-align: center;
}

.login-prompt h3 {
  color: #2dd4bf;
  margin-bottom: 15px;
}

.login-prompt p {
  color: #ffffff;
  margin-bottom: 20px;
}

/* Added styles for referral info banner and success message */
.referral-info-banner {
  background: rgba(45, 212, 191, 0.1);
  border: 2px solid #2dd4bf;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.referral-info-banner p {
  color: #2dd4bf;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.success-message {
  text-align: center;
  padding: 30px;
}

.success-message h3 {
  color: #2dd4bf;
  font-size: 24px;
  margin-bottom: 15px;
}

.success-message p {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
}

.success-actions {
  background: rgba(10, 26, 26, 0.6);
  border: 2px solid #2dd4bf;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.success-actions p {
  margin-bottom: 15px;
}

.success-actions strong {
  color: #2dd4bf;
  font-size: 18px;
}

/* Added styles for leaderboard page */
.leaderboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.leaderboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.leaderboard-list {
  max-height: 500px;
  overflow-y: auto;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  background: rgba(10, 26, 26, 0.6);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.leaderboard-item:hover {
  border-color: rgba(45, 212, 191, 0.5);
}

.leaderboard-item.top-3 {
  border-color: #2dd4bf;
  background: rgba(45, 212, 191, 0.1);
}

.position {
  font-size: 24px;
  font-weight: 700;
  color: #2dd4bf;
  margin-right: 20px;
  min-width: 40px;
}

.position.first {
  color: #ffd700;
}

.position.second {
  color: #c0c0c0;
}

.position.third {
  color: #cd7f32;
}

.user-info {
  flex: 1;
}

.username {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.join-date {
  color: #6b7280;
  font-size: 12px;
}

.referral-count {
  color: #2dd4bf;
  font-size: 20px;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 600px) {
  .nav-buttons {
    justify-content: center;
  }

  .nav-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .form-container {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 20px;
  }

  .stats-grid,
  .leaderboard-stats {
    grid-template-columns: 1fr;
  }

  .referral-link-container {
    flex-direction: column;
  }

  .social-share-buttons {
    flex-direction: column;
  }

  .leaderboard-item {
    padding: 15px;
  }

  .position {
    font-size: 20px;
    margin-right: 15px;
    min-width: 30px;
  }
}

