@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Update root variables to match the app's color scheme */
:root {
    --primary-color: rgba(69, 111, 111, 0.95);    /* Matches the app's primary color */
    --secondary-color: rgba(44, 62, 80, 0.95);    /* Dark text color from the app */
    --background-color: rgba(255, 255, 255, 0.92); /* Matches the card background */
    --border-color: rgba(44, 62, 80, 0.3);        /* Subtle border color */
    --text-color: rgba(44, 62, 80, 1);          /* Main text color */
    --accent-color: rgba(69, 111, 111, 0.75);     /* Button background color */
    --error-color: rgba(231, 76, 60, 0.95);       /* Error text color */
    --font-family: 'VT323', monospace;
    --box-background-color: rgba(255, 255, 255, 0.92); /* Matches the card background */
}

/* Base styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Header styles */
h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 36px;
    color: var(--secondary-color);
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    margin-top: 10px;
    padding: 0;
}

h2, h3 {
    color: var(--primary-color);
    text-align: center;
}

.tabcontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    display: none;
    padding: 20px;
    border: 2px solid var(--border-color);
    background-color: var(--box-background-color);
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
    background: var(--box-background-color);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border: none;
    backdrop-filter: blur(10px);
}

.tabcontent form {
    width: 30%;
    margin: 0 auto;
    text-align: center;
}

.tabcontent input[type="text"],
.tabcontent input[type="email"],
.tabcontent input[type="password"],
.tabcontent select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button[type="submit"] {
    height: 44px;
    font-size: 15px;
    letter-spacing: 2px;
    border-radius: 12px;
}

#riderSelectionForm select {
    display: block;
    margin-bottom: 10px;
}

form {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 25%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 16px;
}


button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 18px;
    border-radius: 5px;
}

button:hover {
    opacity: 0.8;
}

/* Updated table styles */
table {
    margin: 0 auto 20px;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: none;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 15px;
}

tr:hover {
    background: rgba(41, 128, 185, 0.05);
}


#leagueStandingsTable {
    width: 60%;
    border-collapse: collapse;
}

#leagueStandingsTable th, #leagueStandingsTable td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#leagueStandingsTable th:last-child, #leagueStandingsTable td:last-child {
    width: 120px; /* Adjust this value to make the column narrower or wider */
    text-align: center;
}



/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    #leagueStandingsTable {
        width: 95%;
    }
    
    #leagueStandingsTable th:last-child, #leagueStandingsTable td:last-child {
        width: 30%;
    }
}

.ascii-art {
    font-family: monospace;
    white-space: pre;
    line-height: 1;
    font-size: 16px;
    padding: 20px;
    display: inline-block;
}
/* News styles */
.news-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden; /* This will ensure that child elements don't overflow */
}

.news-column {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.current-news {
    background-color: var(--box-background-color);
    border-right: 1px solid var(--border-color);
}

.future-content {
    padding: 20px;
    margin-top: 20px;
}

.news-summary {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.news-summary p {
    margin: 5px 0;
}

.news-summary strong {
    color: var(--primary-color);
}

#newsList {
    list-style-type: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 0; /* Remove bottom margin to fit container */
}

#newsList li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--background-color);
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

#newsList li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Scrollbar styles for the news list */
#newsList::-webkit-scrollbar {
    width: 8px;
}

#newsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#newsList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#newsList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* For Firefox */
#newsList {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }

    .news-column {
        width: 100%;
    }

    .current-news {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-family: var(--font-family);
}
.profile-container {
    width: 66%;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--box-background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.profile-container h2 {
    color: var(--primary-color);
    text-align: center;
}

.riders-table {
    width: 66%;
    max-width: 1000px; /* Adjust this value as needed */
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
    
}

  
.riders-table .col-name { width: 20%; }
.riders-table .col-team { width: 20%; }
.riders-table .col-cost { width: 10%; }
.riders-table .col-total-points { width: 10%; }
.riders-table .col-contributed-points { width: 10%; }

@media (max-width: 768px) {
    .riders-table {
        width: 95%;
    }
    .riders-table th,
    .riders-table td {
      width: auto !important;
    }
}


.riders-table th, .riders-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--border-color);
}



.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
}

.back-button:hover {
    opacity: 0.8;
}

.stats {display: flex; justify-content: center; margin-bottom: 20px; width: 100% }

.stat-box {border: 1px solid var(--border-color); background-color: var(--box-background-color2); color: var(--text-color); padding: 10px; border-radius: 5px; text-align: center; flex: 0 1 calc(25% - 20px); /* Adjust the width as needed */ margin: 0 10px; max-width: 150px; /* Adjust as needed */ }
.riders-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
    list-style-type: none;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 40px;
}

.riders-list::before {
    content: 'My Riders';
    position: absolute;
    top: -1.2em;
    left: 10px;
    padding: 0 10px;
    font-size: 1em;
    color: #2C3E2E;
}

.rider-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px; /* Adjust this value as needed */
    background: var(--box-background-color);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s ease;
}

.rider-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.rider-team {
    font-style: italic;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.rider-points {
    font-size: 1.5em;
    font-weight: bold;
    margin: 5px 0;
}

.rider-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    margin-top: auto;
}

.rider-cost {
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.rider-contributed {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.notice {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
}

textarea#info {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  resize: vertical;
}

/* Common styles for both forms */
#EditProfileTab form, #ChangePasswordTab form {
    max-width: 300px;
    margin: 0 auto;
}

#EditProfileTab form div, #ChangePasswordTab form div {
    margin-bottom: 15px;
}

#EditProfileTab label, #ChangePasswordTab label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#EditProfileTab input, #EditProfileTab textarea, #ChangePasswordTab input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

#EditProfileTab textarea {
    resize: vertical;
    min-height: 100px;
}

#EditProfileTab button, #ChangePasswordTab button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#EditProfileTab button:hover, #ChangePasswordTab button:hover {
    opacity: 0.8;
}



/* Ensure consistency with other form elements */
input[type="email"], input[type="password"], textarea {
    font-family: inherit;
}

.profile-header {
    position: relative;
    margin-bottom: 20px;
}

.profile-actions {
    position: absolute;
    top: 0;
    right: 0;
}
@media screen and (max-width: 768px) {
    .profile-actions {
        position: static;
        margin-top: 10px;
        text-align: center;
    }

    .small-button {
        display: inline-block;
        width: auto;
        padding: 8px 12px;
        font-size: 14px;
        margin: 5px;
    }
}
.small-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    padding: 6px 8px;
    margin: 0 2px;
}

.small-button:hover {
    opacity: 0.8;
}

/* League tab link styles */
#LeagueTab a {
    color: var(--text-color);  /* Use the standard text color */
    text-decoration: none;     /* Remove underline */
    transition: color 0.3s;    /* Smooth transition for hover effect */
}

#LeagueTab a:hover {
    color: var(--primary-color);  /* Change color on hover */
    text-decoration: underline;   /* Optionally add underline on hover */
}
.points-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.points-bar {
    height: 20px;
    background-color: var(--primary-color);
    text-align: right;
    color: white;
    transition: width 0.5s ease-in-out;
}

.points-bar-text {
    padding-right: 5px;
    line-height: 20px;
    font-size: 12px;
}

/* Footer styles */
.site-footer {
  max-height: 200px;
  min-height: 100px;
  margin-top: 20px;
  padding: 10px 0;
  background-color: var(--background-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9em;
  border-radius: 5px;
  color: var(--text-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.terms-link {
  color: #777;
  text-decoration: none;
  transition: color 0.3s;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.terms-link {
  font-size: 0.9em;
  margin-top: 15px;
  text-align: center;
}

.terms-link a {
  color: var(--primary-color);
  text-decoration: none;
}



.link-button {
    font-family: var(--font-family);
    color: var(--primary-color);
    background-color: transparent;
    text-align: center;
    padding-right: 10px;
    margin-top: 20px; /* Adjusted margin-top */
    font-size: 16px; /* Adjusted font-size */
    text-decoration: underline; /* Adjusted text-decoration */
}

.link-button:hover,
.link-button:focus {
  text-decoration: underline; /* Adjusted text-decoration */
}

/* Existing modal styles */

#termsContent {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

#termsContent h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

#termsContent p {
  margin-bottom: 15px;
}

#termsContent ol {
  padding-left: 20px;
}

#termsContent li {
  margin-bottom: 10px;
}

#termsContent strong {
  color: #2c3e50;
}

/* Footer Terms of Use link styling */
.footer-terms {
    color: var(--text-color); /* Use the standard text color */
    text-decoration: none; /* Remove underline */
    opacity: 0.7; /* Slightly faded */
    transition: opacity 0.3s ease; /* Smooth transition effect on hover */
}

.footer-terms:hover,
.footer-terms:focus {
    opacity: 1; /* Full opacity on hover/focus */
    text-decoration: underline; /* Add underline on hover/focus */
}

.banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
  }

  .banner-image {
    width: 100%;
    height: auto;
    opacity: 0.4;
  }


  .rank-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}


.profile-header {
    position: relative;
}

.profile-header p {
    color: #FFD700;  /* Gold color */
    font-weight: bold;
    margin-top: 5px;
}
.admin-actions {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--box-background-color);
    text-align: center;
}

.admin-actions h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.admin-actions form {
    display: inline-block;
    margin: 0 10px 10px;
}

.danger-button,
.update-button,
.warning-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: inline-block; /* Change from block to inline-block */
    width: auto; /* Change from 100% to auto */
    margin: 5px; /* Add some margin for spacing */
}

.danger-button {
    background-color: #ff4136;
    color: white;
}

.danger-button:hover {
    background-color: #ff1a1a;
}

.update-button {
    background-color: #2ecc40;
    color: white;
}

.update-button:hover {
    background-color: #29b739;
}

.warning-button {
    background-color: #ff851b;
    color: white;
}

.warning-button:hover {
    background-color: #ff7701;
}

.news-column.future-content {
    padding: 20px;
    margin-top: 20px;
}

.gameplay-title {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.gameplay-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

.gameplay-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.gameplay-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: -2px;
}

.beta-notice {
    background-color: #ffe082;
    border: 1px solid #ffd54f;
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
}

.beta-notice strong {
    color: #e65100;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 16px;
    }

    h1 {
        font-size: 24px;
    }

    .tabcontent {
        padding: 10px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-family: var(--font-family);
        height: 50px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 0 16px;
        font-size: 15px;
        color: var(--text-color);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .tabcontent form {
        width: 100%;
    }

    table, .news-container, #leagueStandingsTable {
        width: 100%;
    }

    #leagueStandingsTable th:last-child, 
    #leagueStandingsTable td:last-child {
        width: 25%;
    }

   

    .news-container {
        width: 90%;
        padding: 10px;
    }

    .news-summary {
        padding: 10px;
    }

    #newsList {
        max-height: 300px; /* Adjust as needed */
    }

    #newsList li {
        padding: 8px;
        margin-bottom: 8px;
    }

    .rider-item {
        width: 100%;
    }

    .stat-box {
        flex: 0 1 calc(50% - 10px);
        margin: 5px;
    }

    .profile-container {
        width: 100%;
    }

  

    .admin-actions {
        width: 100%;
    }

    .admin-actions form {
        margin: 0 0 10px;
    }

    .danger-button,
    .update-button,
    .warning-button {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
        display: inline-block; /* Change from block to inline-block */
        width: auto; /* Change from 100% to auto */
        margin: 5px; /* Add some margin for spacing */
    }

    .danger-button {
        background-color: #ff4136;
        color: white;
    }

    .danger-button:hover {
        background-color: #ff1a1a;
    }

    .update-button {
        background-color: #2ecc40;
        color: white;
    }

    .update-button:hover {
        background-color: #29b739;
    }

    .warning-button {
        background-color: #ff851b;
        color: white;
    }

    .warning-button:hover {
        background-color: #ff7701;
    }

    /* Adjust the admin actions container */
    .admin-actions {
        width: 66%;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        background-color: var(--box-background-color);
        text-align: center;
    }

    .admin-actions form {
        display: inline-block; /* Change from block to inline-block */
        margin: 5px; /* Adjust margin for spacing */
    }
}

/* Additional mobile-specific styles */
@media screen and (max-width: 480px) {
    body {
        padding: 5px;
    }

    h1 {
        font-size: 20px;
    }

    .tabcontent {
        padding: 5px;
    }

    table, th, td {
        font-size: 14px;
    }



    .stat-box {
        flex: 0 1 100%;
        margin: 5px 0;
    }
    .news-container {
        width: 95%;
        padding: 8px;
    }

    .news-summary {
        padding: 8px;
    }

    #newsList {
        max-height: 250px; /* Further reduce for very small screens */
    }

    #newsList li {
        padding: 6px;
        margin-bottom: 6px;
        font-size: 14px;
    }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    button, 
    input[type="submit"],
    .small-button,
    .link-button {
        min-height: 44px;
        min-width: 44px;
    }

    input[type="checkbox"],
    input[type="radio"] {
        min-width: 44px;
        min-height: 44px;
    }
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
    /* Option 1: Adjust image size */
    .banner-image {
        height: 200px; /* Adjust this value as needed */
        object-fit: cover;
        object-position: center bottom;
    }


    .banner-image {
        display: none; /* Hide the img element */
    }

    /* Option 4: Hide on mobile */
    .banner-container {
        display: none;
    }
}
.chart-container {
    height: auto;
    min-height: 400px;

    width: 80%;
    max-width: 900px;
    margin: 30px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.8);

  }
  #notifications {
    position: relative;
    width: 50%;
    margin:auto;
    margin: 30px auto 20px;  /* Increased top margin */
    background-color: #e9ecef;
    border: 1px solid var(--border-color);
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
}

#notifications::before {
    content: 'Notifications';
    position: absolute;
    top: -1.2em;  /* Adjust this value to fine-tune vertical position */
    left: 10px;
    padding: 0 10px;
    font-size: 0.9em;
    color: #2C3E2E;  /* Same as container text color */
}


#notificationsContent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.notification-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 5px;
}

.hey-button 
.heart-button{
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    margin-right: 2px;
    font-size: 0.6em;
}
.heart-button{
    background-color: #ff7765;
}
.hey-button:hover {
    background-color: #45a049;
}

.heart-button:hover {
    background-color: #ffad9d;
}

.by-user {
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 0.9em;
}

.notification-group:hover .by-user {
    opacity: 1;
}

/* Updated tooltip styles */
.notification-group::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fdffcd;
    color: black;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: max-content;
}

.notification-group:hover::after {
    opacity: 1;
    visibility: visible;
}

.hey-button-old {
    background-color: #808080;  /* Gray color for old notifications */
}

.hey-button-old:hover {
    background-color: #6a6a6a;  /* Darker gray on hover */
}
.notification-item {
    margin-bottom: 10px;
}

.recent-notification {
    color: #000;
    font-weight: bold;
}

.old-notification {
    color: #888;
}

.notification-timestamp {
    font-size: 0.8em;
    color: #666;
}


#leagueStandingsLink {
    position: relative;
}

.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* Increase z-index to ensure it's above other content */
}

/* Adjust these values as needed */
.sub-nav a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap; /* Prevents wrapping of text */
}

.sub-nav a:hover {
    background-color: #f1f1f1;
}
.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* Increase z-index to ensure it's above other content */
}



/* Adjust the tab styles to ensure they're above the banner */
.tab {
    position: relative;
    z-index: 100; /* Lower than sub-nav but higher than content */
}

/* Ensure the main content is above the banner */
.tabcontent {
    position: relative;
    z-index: 1; /* Lower than both tab and sub-nav */
}
.google-signin {
    display: inline-block;
    background-color: #4285F4;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .google-signin:hover {
    background-color: #357ae8;
  }
  .point-history .total-row {
    font-weight: bold;
    background-color: #f0f0f0;
    width: 50%;
    margin-left: 25%;
}
#calendar-section {
    background-color: var(--box-background-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#calendar-section h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

#calendar-events {
    list-style-type: none;
    padding: 0;
}

#calendar-events li {
    background-color: var(--background-color);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#calendar-events li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#calendar-events li strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

#calendar-events li span {
    color: var(--text-color);
    font-size: 0.9em;
}

.all-dates-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.all-dates-link:hover {
    text-decoration: underline;
}

.tutorial-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.tutorial-link:hover {
    text-decoration: underline;
}

#AllDatesTab ul {
    list-style-type: none;
    padding: 0;
}

#AllDatesTab li {
    background-color: var(--background-color);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#AllDatesTab li strong {
    color: var(--primary-color);
}

#AllDatesTab li span {
    color: var(--text-color);
}

.admin-actions {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
  }
  #add-race-results-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

#add-race-results-form select {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

.rider-results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.rider-result-item {
    flex: 0 1 calc(50% - 10px);
    box-sizing: border-box;
    min-width: 150px;
}

.rider-result-item label {
    display: block;
    margin-bottom: 5px;
}

.rider-result-item input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

#add-race-results-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .rider-result-item {
        flex: 1 1 100%;
    }
    
    #add-race-results-form select {
        width: 100%;
    }
}
  
/* Search container */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search input */
#search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: var(--primary-color);
}

/* Search results container */
#search-results {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
}

/* Individual search result item */
.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--box-background-color);
}

/* Add friend button */
.add-friend-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-friend-btn:hover {
    background-color: var(--secondary-color);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .search-container {
        max-width: 90%;
    }
}

.current-user {
    font-weight: bold;
    color: var(--primary-color);
}
.remove-friend-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-friend-btn:hover {
    background-color: #ff1a1a;
}

.awards-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  .award-card {
    background-color: var(--box-background-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .award-card:hover {
    transform: translateY(-5px);
  }
  
  .award-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
  }
  
  .award-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .award-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  
  .award-winner {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
  }
  
  .award-stat {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 10px 0;
  }
  
  .no-award {
    color: var(--text-color);
    font-style: italic;
  }
  
  .mvp {
    border-color: gold;
  }
  
  .mip {
    border-color: silver;
  }
  .points-grid {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.points-row {
    display: flex;
    justify-content: space-between;
}

.points-cell {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    margin: 2px;
    border-radius: 5px;
}

.points-cell .position {
    font-weight: bold;
    display: block;
    font-size: 1.2em;
}

.points-cell .points {
    display: block;
    font-size: 0.9em;
    color: #666;
}


.points-system-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.points-system-link:hover {
    text-decoration: underline;
}
.latest-event-winner, .all-event-winners {
    text-align: center;
  }
  
  .event-winners-list {
    max-height: 400px;
    overflow-y: auto;
  }
  
  .event-winner-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  
  .event-winner-item strong {
    display: block;
    font-size: 1.1em;
  }
  
  .event-winner-item span {
    font-size: 0.9em;
    color: #666;
  }
  
  .award-winner {
    font-weight: bold;
    margin: 5px 0;
  }
  
  .award-stat {
    color: #007bff;
  }
  
  .no-winner {
    font-style: italic;
    color: #999;
  }
  .event-winners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  .event-winners-table th,
  .event-winners-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
  }
  
  .event-winners-table th {
    background-color: #f2f2f2;
    font-weight: bold;
  }
  
  .event-winners-table tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  .event-winners-table tr:hover {
    background-color: #f5f5f5;
  }
  .all-event-winners {
    margin-top: 20px;
  }

  .all-event-winners h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
  }

.all-event-winners {
  margin-top: 20px;
}

.all-event-winners h3 {
  color: var(--primary-color);
  font-size: 1.2em;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.event-winners-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-winners-table th,
.event-winners-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.event-winners-table th {
  background-color: var(--box-background-color2);
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.event-winners-table tr:last-child td {
  border-bottom: none;
}

.event-winners-table tr:nth-child(even) {
  background-color: var(--box-background-color);
}

.event-winners-table tr:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.event-winners-table td:nth-child(3),
.event-winners-table td:nth-child(4) {
  font-weight: bold;
}

.event-winners-table td:nth-child(4) {
  color: var(--primary-color);
}

@media screen and (max-width: 600px) {
  .event-winners-table {
    font-size: 0.9em;
  }

  .event-winners-table th,
  .event-winners-table td {
    padding: 8px 10px;
  }
}
#all-calendar-events {
    list-style-type: none;
    padding: 0;
}

.event-item {
    border-left: 5px solid;
    margin-bottom: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.past-event {
    border-left-color: #bababa; /* Gray color for past events */
    color: #888; /* Dimmed text for past events */
}

.future-event {
    border-left-color: #007bff; /* Blue color for future events */
    color: #333; /* Dark color for future events */
}

.event-item strong {
    display: block;
    margin-bottom: 5px;
}

.event-item span {
    font-size: 0.9em;
}

.event-status {
    font-style: italic;
    color: #666;
    margin-left: 10px;
}
/* Add these styles to your existing styles.css file */

#tutorial.tabcontent {
    display: block;
    padding: 20px;
    border: 2px solid var(--border-color);
    background-color: var(--box-background-color);
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.tutorial-step {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tutorial-step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tutorial-step p {
    color: var(--text-color);
    line-height: 1.6;
}

.tutorial-step img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.next-step, .finish-tutorial {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 18px;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.next-step:hover, .finish-tutorial:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    #tutorial.tabcontent {
        padding: 10px;
    }

    .tutorial-step {
        padding: 15px;
    }

    .next-step, .finish-tutorial {
        font-size: 16px;
        padding: 8px 16px;
    }
}
.tabcontent {
    display: none;
}
/* Add styles for tooltips */
  #countdown {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0px;
    background-color: var(--box-background-color);
    color: var(--text-color);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
  }
  
  #countdown span {
    display: inline-block;
    min-width: 40px;
  }
  
  #countdownEvent {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  .event-points-container {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--box-background-color);
  }

#eventSelector {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

#eventSelector:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

#eventSelector option {
    padding: 8px;
}
#eventPointsChart {
    display: flex;
    flex-direction: column;
}

.event-points-container {
    margin-bottom: 16px;
}

.chart-area {
    flex: 1;
    min-height: 400px;  /* or whatever minimum height you prefer */
}

.event-points-container {
    margin-bottom: 20px;
}

.chart-area {
    margin-top: 10px;
}

#eventSelector {
    width: 100%;
    max-width: 300px;
    padding: 5px;
}
/* Replace or update the oauth-buttons section (around line 1968) */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}
.oauth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.apple-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.apple-button img {
    display: block;
    width: auto;
    height: 55px; /* Standard height for Apple sign-in buttons */
}
.google-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.google-button img {
    display: block;
    width: auto;
    height: 55px; /* Standard height for Apple sign-in buttons */
}
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
  }
  
  .message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
  }
  #ResetPasswordTab.tabcontent {
    display: none;
  }
  
  #ResetPasswordTab.tabcontent[style*="block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000;
    position: relative;
  }
  
  .form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 400px;
  }
  .success-checkmark {
    color: #4CAF50;
    font-weight: bold;
}

button.success {
    background-color: #4CAF50 !important;
    color: white !important;
    transition: background-color 0.3s ease;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

#passwordRecoveryForm {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#passwordRecoveryForm input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#passwordRecoveryForm button {
    width: 100%;
    padding: 8px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#passwordRecoveryForm button:hover {
    background-color: #45a049;
}
#impressumModal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.impressum-content {
    line-height: 1.6;
    padding: 20px;
}

.impressum-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.impressum-content h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #444;
}

.impressum-content p {
    margin-bottom: 15px;
}
/* Add these styles to styles.css */

.friends-list {
    font-family: var(--font-family);  /* Uses the site's default font family */
    font-size: 14px;  /* Adjust size as needed */
    line-height: 1.4;
}

.friends-list td {
    padding: 8px 12px;
    vertical-align: middle;
}

.friends-list tr:hover {
    background-color: var(--box-background-color);
}

/* Style for friend usernames */
.friends-list a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.friends-list a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .friends-list {
        font-size: 13px;  /* Slightly smaller on mobile */
    }
    
    .friends-list td {
        padding: 6px 8px;
    }
}
.points-column {
    width: 100px; /* Adjust this value as needed */
    min-width: 100px;
    max-width: 100px;
    text-align: center;
}
.profile-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

#userSearchInput {
    width: 200px;
}
/* Legal document styles (Terms & Privacy Policy) */
.legal-content {
    width: 80%;
    margin-left: 10%;
    max-width: 800px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
    text-align: left; /* Explicitly set left alignment */
}

.legal-content h3 {
    font-size: 24px;
    color: #1a365d;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    text-align: left;
}

.legal-content h4 {
    font-size: 20px;
    color: #2d3748;
    margin: 30px 0 15px 0;
    text-align: left;
}

.legal-content p {
    margin-bottom: 20px;
    text-align: left;
}

.legal-content ul,
.legal-content ol {
    margin: 20px 0;
    padding-left: 30px;
    text-align: left;
}

.legal-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: left;
}

.legal-content section {
    margin-bottom: 40px;
    text-align: left;
}

.legal-content footer {
    text-align: left;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .legal-content {
        width: 90%;
        margin-left: 5%;
        padding: 15px;
        font-size: 15px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tabcontent {
    animation: fadeIn 0.5s ease-out;
}

button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rider-item:hover {
    transform: translateY(-3px);
}

.tab {
    display: flex;
    gap: 12px;
    padding: 10px 30px;
    margin: 0 auto 15px;
    max-width: 1200px;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
    position: relative;
}

.tab button {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    background: transparent;
    color: var(--text-color);
}

.tab button:hover {
    background: var(--primary-color);
    color: white;
}

.points-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
}

input, select, textarea {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.8);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
    outline: none;
}

/* Modern, subtle navigation */
.tab {
    display: flex;
    gap: 12px;
    padding: 10px 30px;
    margin: 0 auto 15px;
    max-width: 1200px;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
    position: relative;
}

.tab button.tablinks {
    position: relative;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    opacity: 0.75;
    border-radius: 25px;
    min-width: 120px;
}

/* Hover and Active States */
.tab button.tablinks:hover {
    opacity: 1;
    background: rgba(69, 111, 111, 0.08);
    transform: translateY(-1px);
}

.tab button.tablinks.active {
    opacity: 1;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(69, 111, 111, 0.2);
}

/* League Dropdown Styling */
#leagueStandingsLink {
    padding-right: 35px; /* Increased padding for dropdown icon */
}

#leagueStandingsLink::after {
    content: '▾';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px; /* Slightly larger dropdown icon */
    opacity: 0.7;
    transition: transform 0.2s ease;
}

#leagueStandingsLink:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Menu */
.sub-nav {
    position: absolute;
    top: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#leagueStandingsLink:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-nav a {
    display: block;
    padding: 12px 20px; /* Increased padding */
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px; /* Larger font size */
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sub-nav a:hover {
    background: rgba(69, 111, 111, 0.08);
    color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .tab {
        padding: 10px 30px;
        gap: 8px;
    }

    .tab button.tablinks {
        padding: 10px 18px;
        font-size: 15px;
        min-width: 100px;
    }

    .sub-nav {
        position: fixed;
        left: 50%;
        width: 90%;
        max-width: 300px; /* Increased max-width for mobile */
        background: rgba(255, 255, 255, 0.95);
    }
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tabcontent {
    display: none;
}

.tabcontent.active {
    display: block;
}
.social-login-container {
    margin: 15px 0;
    text-align: center;
}

.divider {
    position: relative;
    margin: 10px 0;
}

.divider span {
    background: #fff;
    padding: 0 10px;
    color: #666;
    font-size: 0.8em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;  /* Changed from 50% to 8px for rounded rectangles */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.social-icon-btn:hover {
    background-color: #f5f5f5;
}

.social-icon-btn img {
    width: 20px;
    height: 20px;
}

/* Password Recovery Styling */
.password-recovery {
    margin: 10px 0;
    text-align: right;
}

.password-recovery a {
    color: #666;
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.2s;
    width: 60%;
}

.password-recovery a:hover {
    color: #333;
}

#passwordRecoveryForm {
    margin-top: 12px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#passwordRecoveryForm h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1em;
}

#passwordRecoveryForm input[type="email"],
#passwordResetForm input[type="text"],
#passwordResetForm input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.9em;
}

#passwordRecoveryForm button,
#passwordResetForm button {
    width: 100%;
    padding: 8px 12px;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

#passwordRecoveryForm button:hover,
#passwordResetForm button:hover {
    background-color: #333;
}

#recoveryMessage {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    text-align: center;
}

.success-message {
    background-color: #f0f7f0;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

#passwordResetForm {
    margin-top: 12px;
}

#passwordResetForm label {
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 0.9em;
}
.ios-app-promo {
    background: #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 50%;
    margin-left: 25%;
}

.app-promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
}


.app-info {
    flex: 1;
}

.app-info h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.app-info p {
    margin: 0 0 12px 0;
    color: #666;
}

.app-store-button img {
    height: 20px;
    transition: transform 0.2s ease;
}

.app-store-button img:hover {
    transform: scale(1.05);
}

.profile-leagues {
    position: relative;
    margin: 15px 0;
    padding: 12px;
    background: var(--box-background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 50%;
    align-self: center;  /* Add this to ensure centering */
}

.profile-leagues h4 {
  color: var(--text-color);
  font-size: 0.95em;
  margin-bottom: 0px;
  margin-top: 10px;
  opacity: 0.8;
  margin-left: 0%;
}

.leagues-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.league-entry {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9em;
}

.league-entry:hover {
  background: rgba(69, 111, 111, 0.05);
}

.league-rank {
  min-width: 50px;
  color: var(--text-color);
  opacity: 0.7;
}

.league-name {
  flex: 1;
  color: var(--text-color);
}

.admin-badge {
  padding: 1px 6px;
  background-color: rgba(69, 111, 111, 0.08);
  color: var(--primary-color);
  border-radius: 10px;
  font-size: 0.8em;
  opacity: 0.8;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .profile-leagues {
    padding: 8px;
  }
  
  .league-entry {
    padding: 4px 8px;
    font-size: 0.85em;
  }
}

/* Add this to ensure consistent centering */
#ProfileTab {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Centers children horizontally */
  width: 100%;
}

.profile-leagues {
  position: relative;
  margin: 15px 0;
  padding: 12px;
  background: var(--box-background-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 50%;  /* Match the width of notifications */
  align-self: center;  /* Add this to ensure centering */
  margin: 40px auto 10px;
}
.profile-leagues::before {
    content: 'My Leagues';
    position: absolute;
    top: -1.2em;  /* Adjust this value to fine-tune vertical position */
    left: 10px;
    padding: 0 10px;
    font-size: 1em;
    color: #2C3E2E;  /* Same as container text color */
}

.profile-leagues h4 {
  color: var(--text-color);
  font-size: 0.95em;
  margin-bottom: 0px;
  margin-top: 10px;
  opacity: 0.8;
  margin-left: 0%;
}

/* Keep the rest of the styles the same */
.leagues-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media screen and (max-width: 768px) {
  .profile-leagues {
    width: 90%;
  }
}


