body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    /*background-image: url('assets/background.png');*/
    background: #050419;
    /*background-size: cover;*/
    /*background-attachment: fixed;*/
    /*background-position: center;*/
    font-size: 1rem;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header img {
    min-width: 100px;
    max-width: 300px;
    margin-top: 3rem;
    width: 20vw;
    height: auto;
}

.content {
    background-color: rgba(255, 255, 255, 0.8);
    margin: 40px auto;
    padding: 50px;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer {
    text-align: center;
    margin-top: 120px;
    margin-bottom: 40px;
}

.footer p {
    color: #9c9c9c;
    font-size: 0.8rem;
}

.footer img {
    width: 15vw;
    min-width: 50px;
    max-width: 300px;
    margin: 20px auto;
    display: block;
}

b {
    font-weight: 600; /* Adjust as needed */
}


h1 {
    color: #333;
    text-align: center;
    margin: 0 0 50px 0;
    font-weight: 550;
    font-size: 1.8rem;
}

h2 {
    color: #333;
    font-weight: 450;
    font-size: 1.3rem;
}

pre {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.8rem;
}

#intro-text, #instructions-text {
    line-height: 1.5;
}

form, table {
    margin-top: 20px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    background-color: #f1f1f1;
}

table, th, td {
    border: 1px solid #ccc;
    border-collapse: collapse;
    padding: 8px;
}

th {
    font-size: 1rem;
}

td {
    font-size: 0.8rem;
    font-family: monospace;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

textarea {
    padding: 10px;
    width: 100%;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    font-family: monospace;
}

#validation-issues {
    color: red;
    margin: 0 30px 10px 30px;
    font-size: 0.8rem;
}

button[type="button"] {
    background-color: #050419;
    color: rgba(255, 255, 255, 1);
    padding: 8px 12px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

button[type="button"]:hover {
    background-color: rgb(38, 93, 133);
}

.code-container {
    position: relative;
}

.copy-button {
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
}

.copy-code-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    background: #d5d3d3;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-button:hover {
    background: #e0e0e0;
}

.copy-button.copied {
    background: #2a932b;
    color: white;
    border-color: #2a932b;
}

#copy-tsp-button {
    background: #9e0c0c;
    color: white;
    /*border-color: none;*/
}

#copy-tsp-button.copied {
    background: #2a932b;
    color: white;
    border-color: #2a932b;
}

.section-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px 0;
    width: 100%;
    text-align: left;
    margin: 10px 0;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.section-content {
    margin: 25px 30px 40px 30px;
}

.section-content.hidden {
    display: none;
}

.arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.arrow.collapsed {
    transform: rotate(-90deg);
}

.success-banner {
    background-color: green;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    position: relative; /* Needed for positioning the close button */
    display: none;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

 .signature {
    border-bottom: 1px dashed grey;
  }

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: visible;
    width: 260px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 7px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -130px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 12px;
    font-weight: 400;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

#submissionsTable {
  table-layout: fixed;
  width: 100%; /* or any specific width you prefer */
}

#submissionsTable td,
#submissionsTable th {
  overflow: hidden;
  text-overflow: ellipsis; /* optional, for an ellipsis effect */
  white-space: nowrap;     /* prevents line breaks */
}

/* Simplified Navigation Bar Styles */
.navigation {
  margin-bottom: 30px;
  text-align: center;
  padding: 15px 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #050419 0%, #265d85 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(5, 4, 25, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
  background: linear-gradient(135deg, #265d85 0%, #050419 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(5, 4, 25, 0.3);
}


/* Responsive navigation */
@media (max-width: 768px) {
  .nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Focus states for accessibility */
.nav-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}


.leaderboard-controls {
  margin-bottom: 20px;
  text-align: left;
}

.leaderboard-controls button {
  margin-right: 10px;
  background-color: #050419;
  color: rgba(255, 255, 255, 1);
  padding: 8px 12px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.leaderboard-controls button:hover {
  background-color: rgb(38, 93, 133);
}


/* Rank highlighting - bold for top 3 */
.rank-1,
.rank-2,
.rank-3 {
  font-weight: bold;
}

/* Ensure all table rows match home page styling */
#submissionsTable tr {
  background-color: #f1f1f1;
}

#submissionsTable tr:nth-child(even) {
  background-color: #f8f8f8;
}
