body {
    font-family: "Segoe UI", Verdana, Arial, sans-serif;
    background-color: #eaecef; /* Softer background */
    color: #444; /* Muted text color */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 80%;
    max-width: 1100px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: #4d7cba; /* Softer blue */
    color: #f8f9fa; /* Off-white */
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #ffc857; /* Muted yellow */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

nav {
    background: #658dc6; /* Soft blue */
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #f8f9fa;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffc857; /* Muted yellow for hover */
}

nav ul li a.join-link {
    color: #ffc857; /* Muted yellow */
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a.join-link:hover {
    background-color: #ffc857; /* Yellow background on hover */
    color: #4d7cba; /* Blue text on hover */
}

main {
    padding: 32px;
    font-size: 1.1em;
    color: #333;
}

main h2 {
    font-size: 2em;
    color: #4d7cba; /* Matching header blue */
}

main h3 {
    font-size: 1.5em;
    color: #658dc6; /* Matching nav blue */
}

main p, main ul {
    margin-bottom: 20px;
}

footer {
    background: #4d7cba; /* Softer blue */
    color: #f8f9fa;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    border-top: 2px solid #ffc857; /* Muted yellow */
}

footer p {
    margin: 0;
}

.dialogue-block {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin: 20px 0; /* Adds top and bottom margins */
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #4d7cba;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-event {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
}

.timeline-event.left {
    flex-direction: row-reverse;
}

.timeline-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ffc857;
    border: 4px solid #4d7cba;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
}

.timeline-content h3 {
    margin: 0 0 10px;
    color: #658dc6;
    font-size: 1.5em;
}

.timeline-content p {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.prize-card {
    background: #f8f9fa;
    border: 2px solid #4d7cba;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.prize-card h3 {
    color: #658dc6;
    font-size: 1.5em;
    margin: 0 0 10px;
}

.prize-card p {
    margin: 0 0 15px;
    font-size: 1.1em;
    color: #444;
}

.prize-card .amount {
    font-size: 1.8em;
    font-weight: bold;
    color: #4d7cba;
}

.guidelines {
    margin-left: 20px; /* Indents the sections to the right */
}

code {
    font-size: 0.95em; /* Slightly smaller to differentiate it from regular text */
    font-family: Consolas, "Courier New", monospace; /* Monospace font for code */
    background-color: #f4f4f4; /* Light background to highlight code */
    color: #333; /* Neutral color for text */
    padding: 2px 4px; /* Padding for better readability */
    border-radius: 4px; /* Smooth corners for modern design */
  }



table {
    font-family: 'Inter', sans-serif;
    width: 80%;
    border-collapse: collapse;
    margin: 20px auto;
    font-size: 0.9em; 
    min-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table thead tr {
    background-color: #4d7cba;
    color: white;
    text-align: left;
    font-weight: bold;
}

table th, table td {
    white-space: nowrap;
    padding: 12px;
    border: 1px solid #ddd;
}

/* table tbody tr:nth-child(even) {
    background-color: #d0e4f7;
} */

table tbody tr:hover {
    background-color: #b0d0f0;
}

th.sortable {
    cursor: pointer;
    position: relative;
}

th.sortable::after {
    content: " \25B2";
    position: absolute;
    right: 0px;
    font-size: 0.8em;
    opacity: 0.6;
}

th.sortable.desc::after {
    content: " \25BC";
}

.log-box {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    width: 700px;
    font-family: Courier, monospace;
  }

.log-box .entry {
    padding: 2px 4px;
    margin: 2px 0;
  }

.log-box .entry .name {
    font-weight: bold;
}

.log-box .entry.fact {
    background-color: #ffe5b4; /* light orange */
}

/* Vibrant variations */
.vibrant-blue {
  background-color: #d0e4f7; /* light blue base */
  border: 2px solid #4d7cba;
  box-shadow: 0 6px 14px rgba(77, 124, 186, 0.4);
  border-radius: 8px;
}

.vibrant-blue .entry {
  color: #1e3d6b;
  font-weight: 500;
}

.vibrant-yellow {
  background-color: #fff6e0; /* warm light yellow */
  border: 2px solid #ffc857;
  box-shadow: 0 6px 14px rgba(255, 200, 87, 0.4);
  border-radius: 8px;
}

.vibrant-yellow .entry {
  color: #664d00;
  font-weight: 500;
}
