
/*****************************/
/* CHANGING SITE COLOURS!!!! */
/*****************************/
:root {
  --green-color: #2f523e; 
  --color-hover: #F5DEB3; 
  --button-text-color: #2f523e; 
  font-size: 20px;
  font-family: 'Open Sans', sans-serif;
}

/* Update the body background color to manilla */
body {
  background-color: #F5DEB3 !important; 
}

/* Ensure the main content area has the same background color */
.main-content {
  background-color: #F5DEB3 !important; 
}

/* Ensure the sidebar remains green */
.sidebar {
  background-color: #2f523e !important;
  color: #fff;
}

/* Change sidebar links and heading colors to manilla */
.sidebar a,
.sidebar-about h1,
.sidebar-about h2 {
  color: #F5DEB3 !important; 
}

/* Update other sidebar elements to have manilla text color */
.sidebar nav li,
.sidebar nav a {
  color: #F5DEB3 !important; 
}

/* Target "Data Scientist" */
.sidebar-about p {
  color: #F5DEB3 !important; 
}

/* Update the border color of the circle image */
.img-headshot {
  border: 6px solid #F5DEB3 !important; 
  height: 180px;
  width: 180px;
}

/*******************/
/* Link styling */
/*******************/
/* General link styling */
body .content a,
body .homepage .home-content a {
  color: #016126; /* Ensure the general link color takes precedence */
  text-decoration: none;
}

/* Link hover styling for all pages */
body .content a:hover,
body .homepage .home-content a:hover {
  color: #049735; /* Ensure the hover color takes precedence */
  text-decoration: none;
}


/*******************/
/*Columns*/
/*******************/

/* Base styling for columns */
.gdoc-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Adjust the gap as needed */
}

.gdoc-columns__content {
  flex: 1 1 calc(50% - 1rem); /* Each column takes up to 50% of the width minus the gap */
  max-width: 50%; 
  box-sizing: border-box;
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
  .gdoc-columns {
    flex-direction: column;
  }
  .gdoc-columns__content {
    flex: 1 1 100%;
    max-width: 100%; /* Ensure full width on mobile view */
  }
}


/*******************/
/*Bookshelf styling*/
/*******************/


.book-wrapper {
    width: 100%;
    position: relative;
    margin: 0 auto;
    column-count: 4;
    column-gap: 12px;
    padding: 4px;
    border-radius: 15px;
    background-color: #f8e9c9;
    background-image: url("https://www.transparenttextures.com/patterns/cream-pixels.png");
  }
  
  .book-items {
    position: relative;
    cursor: default;
    padding: 16px;
    margin: 0;
    display: grid;
    break-inside: avoid;
  }
  
  .main-book-wrap {
    position: relative;
  }
  
  .book-cover {
    position: relative;
  }
  
  .book-cover .book-inside {
    position: absolute;
    width: 90%;
    height: 96%;
    top: 1%;
    left: 16px;
    border: 1px solid grey;
    border-radius: 2px 6px 6px 2px;
    background: white;
    box-shadow: 10px 40px 40px -10px #00000030, inset -2px 0 0 grey,
      inset -3px 0 0 #dbdbdb, inset -4px 0 0 white, inset -5px 0 0 #dbdbdb,
      inset -6px 0 0 white, inset -7px 0 0 #dbdbdb, inset -8px 0 0 white,
      inset -9px 0 0 #dbdbdb;
  }
  
  .book-cover .book-image {
    line-height: 0;
    position: relative;
    border-radius: 2px 6px 6px 2px;
    box-shadow: 6px 6px 18px -2px rgba(0, 0, 0, 0.2), 24px 28px 40px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    transform: perspective(2000px) rotateY(-15deg) translateX(-10px) scaleX(0.94);
    cursor: pointer;
    overflow: hidden;
  }
  
  .book-cover .book-image::before {
    content: "";
    display: block;
    padding-top: 150%;  
  }
  
  .book-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px 6px 6px 2px;
    margin-top: 0;
  }
  
  .book-image:hover {
    transform: perspective(2000px) rotateY(0deg) translateX(0px) scaleX(1);
    transform-style: preserve-3d;
    box-shadow: 6px 6px 12px -1px rgba(0, 0, 0, 0.1),
      20px 14px 16px -6px rgba(0, 0, 0, 0.1);
  }
  
  .effect {
    position: absolute;
    width: 20px;
    height: 100%;
    margin-left: 16px;
    top: 0;
    border-left: 2px solid #00000010;
    background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.5s ease;
    z-index: 5;
  }
  
  .light {
    width: 90%;
    height: 100%;
    position: absolute;
    border-radius: 3px;
    background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 100%
    );
    top: 0;
    right: 0;
    opacity: 0.1;
    transition: all 0.5s ease;
    z-index: 4;
  }
  
  .book-image:hover .effect{
      margin-left: 14px;
  }
  
/***************************/
/* post and project styling*/

  .projects, .posts {
    margin-top: 2em;
  }
  
  .projects h2, .posts h1 {
    font-size: 2em;
    margin-bottom: 1em;
  }
  
  .project-card, .post-preview {
    display: block;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 15px;
    background-color: #fde9c0;
  }

  .project-title {
    margin: 0 0 0.75em 0;
    color: #2f523e;
  }

  .project-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }

  /* Clickable project cards */
  a.project-card {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  a.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  .project-content, .post-content {
    flex: 1;
    padding-left: 1em;
  }

  .post-preview h2 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #087817;
  }

  .project-card p, .post-preview p {
    color: #666;
  }
  
  .project-image, .post-image {
    width: 35%;
    flex-shrink: 0;
  }
  
  .project-image img, .post-image img {
    width: 100%;
    border-radius: 5px;
  }
  
  .read-more-link {
    display: flex;
    align-items: center;
    margin-top: 1em;
  }
  
  .read-more-link a {
    color: #087817; /*087817*/
    text-decoration: none;
  }
  
  .read-more-link a:hover {
    color: #087817;
    text-decoration: underline;
  }
  
  .read-more-link .post-date {
    margin-left: 10px; /* Add space between Read More button and date */
  }
  
  .read-more {
   display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #ead09f;
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  }
  
  .read-more:hover {
    background-color: #e2c48b !important; /* Ensure the hover color takes precedence */
    color: #087817 !important; /* Ensure the text color on hover takes precedence */
  }
  
  .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }
  
  .post-footer .post-date {
    white-space: nowrap;
    font-size: 0.9em;
    color: #757575;
    margin-left: 10px;
  }

/*****************/
/* Dividing Line */
/*****************/

hr.green {
  border: none; /* Remove default border */
  height: 2px; /* Height of the line */
  background-color: #34704e; /* Line color */
  margin: 2rem 0; /* Vertical spacing around the line */
  width: 100%; /* Ensure the line spans the entire width */
}

/***********************************/
/* Clickable card link wrapper */
/***********************************/
.card-link {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-header h3 {
  margin: 0;
  padding: 0.5em;
  font-size: 2.2em;
  font-weight: bold;
}

/***********************************/
/* Style for the about card */
/***********************************/
.about-card {
  background-color: #f8e8c5;
  padding: 0em;
  border-radius: 15px;
  margin-bottom: 1em;
}

.about-card .card-header h3 {
  color: #087817;
}

.about-card-content {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.about-card-image {
  flex: 7;
  padding-right: 1em;
  padding-left: 1em;
}

.about-card-image img {
  width: 100%;
  border-radius: 15px;
}

.about-card-text {
  flex: 2;
  padding-left: 0.5em;
}

.about-card-text p {
  color: #666;
  margin: 0;
}

/***********************************/
/* Style for the puzzle card on homepage */
/***********************************/
.puzzle-card-home {
  background-color: #C8D5B9;
  padding: 0em;
  border-radius: 15px;
  margin-bottom: 1em;
}

.puzzle-card-home .card-header h3 {
  color: #2f523e;
}

.puzzle-card-content {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.puzzle-card-image {
  flex: 1;
  padding: 1em;
}

.puzzle-card-image img {
  width: 100%;
  max-width: 120px;
  border-radius: 15px;
}

.puzzle-card-text {
  flex: 3;
  padding-right: 1em;
}

.puzzle-card-text p {
  color: #333;
  margin: 0;
}

.puzzle-card-text a {
  color: #2f523e;
  font-weight: 600;
}

/***********************************/
/* Style for the video game tier list */
/***********************************/
.tierlist-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.tier-row {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* Make sure tier labels stretch to match the game rows */
  gap: 1em;
  padding: 10px;
  background-color: #d3bf9f; 
  border-radius: 7px; 
}

.tier-label {
  font-size: 2em;
  font-weight: bold;
  width: 80px !important; /* Fixed width */
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background-color: #f8e9c9;
  border-radius: 7px;
  padding: 10px;
}

/* styles for S tier */
.tier-s .tier-label {
  background-color: #f77b7b;
  color: rgb(0, 0, 0);
}

/* styles for A tier */
.tier-a .tier-label {
  background-color: #fca859; 
  color: black;
}

.tier-games {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.game-case {
  position: relative;
  width: 100px; /* Match tier label size */
  height: 100px; /* Match tier label size */
  cursor: pointer;
}

.game-cover {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.game-image {
  width: 100px; /* Manually set image size */
  height: 100px; /* Manually set image size */
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  transform: rotateY(-15deg);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-image:hover {
  transform: rotateY(0deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/********************/

.contact-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1em !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  padding: 2em !important;
  background-color: #fdedcd !important; /* Background color matching your site */
  border-radius: 15px !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3) !important;
  border: 2px solid #2f523e !important; /* Border color matching your site */
}

.contact-form label {
  display: flex !important;
  flex-direction: column !important;
  font-weight: bold !important;
  color: #2f523e !important; /* Text color matching your site */
}

.contact-form input,
.contact-form textarea {
  padding: 0.5em !important;
  font-size: 1em !important;
  border: 1px solid #ffffff !important;
  border-radius: 5px !important;
  background-color: #fff !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2f523e !important; 
  border-radius: 2px;
  outline: none !important;
}

.contact-form button {
  padding: 0.5em 1em !important;
  font-size: 1em !important;
  background-color: #2f523e !important; 
  color: white !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}

.contact-form button:hover {
  background-color: #157123 !important; 
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background-color: #fff !important; 
  color: #666 !important; 
}

.contact-form textarea {
  resize: vertical !important; 
  min-height: 100px !important;
}

/***********************************/
/* Style for button short code */
/***********************************/
.rounded-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #ead09f;
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.rounded-button:hover {
  background-color: #e2c48b;
}
 
/*******************
gooey button style
********************/


/* Override link styling inside buttons */
.c-button,
.c-button a {
  color: var(--button-text-color) !important; /* Ensure button text color is applied */
  text-decoration: none !important; /* Remove any underline from links inside buttons */
}

/* Button-specific styling */
.c-button--gooey {
  color: var(--button-text-color) !important; /* Default text color */
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--green-color);
  border-radius: 25px; /* Rounded corners */
  padding: 0.1em 0.1em;
  position: relative;
  transition: all 700ms ease;
  overflow: hidden; /* Prevent gooey animation overflow */
}

.c-button--gooey:hover {
  color: var(--color-hover) !important; /* Change text color to manilla on hover */
  border-color: var(--green-color); /* Keep border color on hover */
}

/* Smaller version for Read More buttons */
.c-button--small {
  font-size: 0.7em;
  padding: 0.3em 0.8em;
}

.c-button {
  color: var(--button-text-color) !important; /* Override general link color */
  font-weight: 600;
  font-size: 0.8em;
  text-decoration: none !important;
  padding: 0.4em 1.0em;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

/* Blobs and Gooey Effect */
.c-button--gooey .c-button__blobs {
  height: 100%;
  filter: url(custom.css);
  overflow: hidden; /* Ensure blobs don't overflow outside the button */
  position: absolute;
  top: 0;
  left: 0;
  bottom: -3px;
  right: -1px;
  z-index: -1;
}

.c-button--gooey .c-button__blobs div {
  background-color: var(--green-color);
  width: 30%;
  height: 100%;
  border-radius: 100%;
  position: absolute;
  transform: scale(1.4) translateY(125%) translateZ(0);
  transition: all 700ms ease;
}

.c-button--gooey .c-button__blobs div:nth-child(1) {
  left: -5%;
}

.c-button--gooey .c-button__blobs div:nth-child(2) {
  left: 30%;
  transition-delay: 60ms;
}

.c-button--gooey .c-button__blobs div:nth-child(3) {
  left: 66%;
  transition-delay: 25ms;
}

.c-button--gooey:hover .c-button__blobs div {
  transform: scale(1.4) translateY(0) translateZ(0);
}

/************************************/
/* Cryptic Puzzle Styling           */
/* Minute Cryptic style, green/brown */
/************************************/

/* Puzzle page - sage green background */
.puzzle-page {
  background-color: #C8D5B9;
  border-radius: 16px;
  padding: 1.5em;
  margin: -20px;
  margin-top: 0;
  margin-bottom: 20px;
  min-height: calc(100vh - 100px);
}

.puzzle-page .title {
  color: #1a1a1a;
  margin-bottom: 1em;
}

.cryptic-puzzle {
  max-width: 420px;
  padding: 0;
  position: relative;
}

/* Clue Box - White with rounded corners */
.puzzle-clue-box {
  background-color: #fff;
  padding: 1.25em 1.5em;
  border-radius: 16px;
  margin-bottom: 0.75em;
}

/* Solved Counter */
.puzzle-solved-counter {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  font-style: italic;
  margin-bottom: 1.5em;
}

.puzzle-solved-counter #solved-count {
  font-weight: 600;
  color: #2f523e;
}

.puzzle-clue {
  font-size: 1.4em;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

/* Connected Letter Boxes - Crossword style */
.puzzle-letter-grid {
  display: flex;
  justify-content: center;
  margin: 2em 0;
}

.letter-box {
  width: 52px;
  height: 52px;
  border: 3px solid #2a2a2a;
  border-left: none;
  font-size: 1.5em;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  background-color: #fff;
  color: #1a1a1a;
  transition: background-color 0.15s ease;
  caret-color: transparent;
}

.letter-box:first-child {
  border-left: 3px solid #2a2a2a;
  border-radius: 8px 0 0 8px;
}

.letter-box:last-child {
  border-radius: 0 8px 8px 0;
}

.letter-box:focus {
  outline: none;
  background-color: #E8F0E0;
}

.letter-box:disabled {
  background-color: #f0f0f0;
}

.letter-box.correct {
  background-color: #d4edda;
}

.letter-box.shake {
  animation: shake 0.4s ease;
}

/* Buttons - Pill shaped, side by side */
.puzzle-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75em;
  margin: 2em 0 1em 0;
}

.puzzle-btn {
  padding: 0.9em 2.5em;
  font-size: 1.1em;
  font-style: italic;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  user-select: none;
  -webkit-user-select: none;
}

.puzzle-btn-filled {
  background-color: #E8DFC4;
  color: #1a1a1a;
  border: 3px solid #2a2a2a;
}

.puzzle-btn-filled:hover:not(:disabled) {
  background-color: #DDD4B8;
}

.puzzle-btn-outline {
  background-color: #fff;
  color: #2a2a2a;
  border: 3px solid #2a2a2a;
}

.puzzle-btn-outline:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.puzzle-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hints Panel */
.hints-panel {
  background-color: #fff;
  border-radius: 12px;
  padding: 0.5em;
  margin-top: 1em;
  border: 2px solid #2a2a2a;
}

.hints-panel.slide-in {
  animation: slideDown 0.3s ease;
}

.hint-option {
  display: flex;
  align-items: flex-start;
  padding: 0.75em 1em;
  margin-bottom: 0.25em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hint-option:last-child {
  margin-bottom: 0;
}

.hint-option:hover:not(.revealed) {
  background-color: #f5f5f5;
}

.hint-option.revealed {
  background-color: #E8F0E0;
  cursor: default;
  flex-direction: column;
}

.hint-icon {
  margin-right: 0.75em;
  color: #2a2a2a;
  font-size: 1em;
}

.hint-label {
  color: #1a1a1a;
  font-weight: 500;
  font-style: italic;
}

.hint-content {
  color: #333;
  margin-top: 0.5em;
  padding-left: 1.75em;
  font-size: 0.95em;
}

/* Floating Message (wrong answer) */
.floating-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8em;
  font-weight: 600;
  font-style: italic;
  color: #2a2a2a;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
}

.floating-message.fade-down {
  animation: fadeDown 1.5s ease forwards;
}

@keyframes fadeDown {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 100px);
  }
}

/* Congrats Popup */
.congrats-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.congrats-content {
  background-color: #fff;
  padding: 2.5em 3em;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: popIn 0.3s ease;
}

.congrats-content h2 {
  color: #2a2a2a;
  font-size: 2.2em;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

.congrats-content p {
  color: #666;
  margin-bottom: 1.5em;
  font-size: 1.1em;
}

.congrats-buttons {
  display: flex;
  gap: 0.75em;
  justify-content: center;
}

.share-copied {
  color: #2f523e;
  font-size: 0.9em;
  margin-top: 1em;
  margin-bottom: 0;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Puzzle List Page */
.puzzle-list {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  margin-top: 1.5em;
}

.puzzle-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.25em;
  background-color: #fff;
  border: 2px solid #2a2a2a;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.puzzle-list-item:hover {
  background-color: #E8DFC4;
  transform: translateX(5px);
}

.puzzle-list-title {
  font-weight: 600;
  color: #1a1a1a;
}

.puzzle-list-enum {
  font-size: 0.9em;
  color: #888;
  font-style: italic;
}

.puzzle-list-meta {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

/* Difficulty Stars */
.difficulty-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
}

.star {
  width: 1em;
  height: 1em;
  color: #4a7c59;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.star-full {
  fill: #4a7c59;
}

.star-half {
  color: #4a7c59;
}

.star-empty {
  color: #4a7c59;
}

.puzzle-difficulty {
  text-align: center;
  margin-top: 0.5em;
}

.puzzle-difficulty .star {
  width: 1.1em;
  height: 1.1em;
}

.puzzle-difficulty .difficulty-stars {
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .puzzle-container {
    padding: 1em 0.5em;
  }

  .cryptic-puzzle {
    padding: 0.5em;
  }

  .puzzle-clue {
    font-size: 1.2em;
  }

  .letter-box {
    width: 44px;
    height: 44px;
    font-size: 1.3em;
  }

  .puzzle-buttons {
    gap: 0.5em;
  }

  .puzzle-btn {
    padding: 0.8em 1.5em;
    font-size: 1em;
  }

  .congrats-content {
    margin: 1em;
    padding: 2em;
  }

  .puzzle-difficulty .star {
    width: 0.9em;
    height: 0.9em;
  }

  .puzzle-list-meta .star {
    width: 0.85em;
    height: 0.85em;
  }

  .leaderboard-table {
    font-size: 0.9em;
  }
}

/* Leaderboard */
.puzzle-leaderboard {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 2px solid #e0e0e0;
}

.leaderboard-title {
  font-size: 1.3em;
  margin-bottom: 0.25em;
}

.leaderboard-solves {
  color: #888;
  font-size: 0.95em;
  margin-bottom: 1em;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.leaderboard-table th {
  text-align: left;
  padding: 0.6em 0.75em;
  border-bottom: 2px solid #2a2a2a;
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-table td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid #e8e8e8;
}

.leaderboard-table tbody tr:hover {
  background-color: #f5f5f0;
}

.leaderboard-table tbody tr:first-child td {
  color: #2f523e;
  font-weight: 600;
}

.leaderboard-empty {
  color: #aaa;
  font-style: italic;
}

/* Wrong Answers Section */
.wrong-answers-section {
  margin-top: 1.5em;
}

.wrong-answers-section h4 {
  font-size: 1em;
  margin-bottom: 0.75em;
  color: #666;
}

.wrong-answers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.wrong-answer-tag {
  display: inline-block;
  padding: 0.3em 0.7em;
  background-color: #f0e6d3;
  border-radius: 15px;
  font-size: 0.85em;
  color: #666;
  font-family: monospace;
  letter-spacing: 0.05em;
}

/* Name Input in Congrats Popup */
.congrats-name-section {
  margin: 1em 0;
  text-align: center;
}

.solver-name-input {
  padding: 0.6em 1em;
  font-size: 1em;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-width: 250px;
  text-align: center;
  margin-bottom: 0.75em;
  font-family: inherit;
  box-sizing: border-box;
}

.solver-name-input:focus {
  outline: none;
  border-color: #4a7c59;
}

.submit-status {
  font-size: 0.85em;
  margin-top: 0.5em;
  color: #888;
}

/* Global Leaderboard */
.global-leaderboard {
  margin-top: 1.5em;
  padding: 1.25em 1.5em;
  background-color: #f0ead6;
  border-radius: 16px;
}

.global-leaderboard-title {
  font-size: 1.3em;
  color: #2f523e;
  margin-bottom: 0.75em;
}

.puzzle-page .global-leaderboard {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 2px solid #e0e0e0;
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
