/* General Body Styles */
body {
    background-color: #FFFDF7;
    color: #333;
    margin: 0;
    padding: 0;
}

/* --- Media Query for Mobile Devices. --- */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}
/* --- Media Query for Desktop Devices. --- */
@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

.login-header {
    font-family: 'Arizonia';
}

.login-subtitle {
    font-family: 'Darker Grotesque';
}

.tandem-bike {
    margin-top: 1em;
}

/* Login Page Specific Styles */
.login-body {
    background-color: #ca9fa2;
    color: #75130f;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.login-container {
    max-width: 400px;
    padding: 2rem;
}

.login-container h1 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
}

.login-container .login-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

#login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    font-family: 'Darker Grotesque', serif;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

#guest-name-input {
    padding: 10px;
    margin-bottom: 1rem;
    margin-right: 24px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    font-family: 'Darker Grotesque', serif;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

#login-form button {
    width: 100%;
    padding: 12px;
    background-color: #390000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Darker Grotesque';
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#login-form button:hover {
    background-color: #555;
}

.error {
    color: #390000;
    font-family: 'Darker Grotesque';
    font-size: 18px;
    margin-top: 1rem;
}

/* Use a different font for the main heading for impact */
.names {
    font-family: 'Playfair Display', serif;
}

/* --- Main Layout & Navigation --- */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.primary-navigation {
    padding: 2rem 2.5rem;
    position: fixed; /* Fixes the nav to the viewport */
    top: 0;
    right: 0;
    text-align: right;
    font-family: "Playfair Display", serif;
}

.primary-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-navigation a:hover {
    color: #75130f;
}

/* --- Mobile Navigation (defaults to hidden) --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    z-index: 1000;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* The hamburger icon lines */
.mobile-nav-toggle::before,
.mobile-nav-toggle::after,
.mobile-nav-toggle span {
    content: '';
    display: block;
    background-color: #333;
    height: 3px;
    width: 25px;
    margin: 5px 0;
    transition: transform 0.3s ease-out, opacity 0.1s ease-out;
}

/* --- Media Query for Mobile Devices --- */
@media (max-width: 768px) {
    .primary-navigation {
        /* On mobile, make it a full-screen overlay */
        position: fixed;
        inset: 0 0 0 0; /* top, right, bottom, left */
        background-color: #FFFDF7;
        z-index: 999;
        
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;

        /* Hide it by default */
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .primary-navigation[data-visible="true"] {
        /* Show it when toggled */
        transform: translateY(0);
    }
    
    .primary-navigation a {
        font-size: 1.5rem;
    }

    .mobile-nav-toggle {
        display: block; /* Show the hamburger */
    }

    /* Animate hamburger to an 'X' when menu is open */
    .mobile-nav-toggle[aria-expanded="true"] span {
       opacity: 0;
    }
    .mobile-nav-toggle[aria-expanded="true"]::before {
        transform: translateY(0) rotate(45deg);
    }
    .mobile-nav-toggle[aria-expanded="true"]::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-open .main-content {
        display: none;
    }
    
    .connection-word {
        padding: 10px;
        font-size: clamp(0.7rem, 2vw, 1rem);
    }
}


/* --- Homepage Hero Section --- */
.hero {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.hero .names {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(2rem, 10vw, 6rem); /* Responsive font size */
    font-weight: 700;
    color: #000;
}

.hero .hero-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.hero .hero-image {
    width: clamp(100px, 20vw, 180px); /* Responsive image size */
    height: clamp(100px, 20vw, 180px);
    overflow: hidden;
    border: 2px solid #000;
    object-fit: cover; /* Prevents image from stretching */
    filter: blur(0.02rem) saturate(0.8) contrast(1.1) brightness(1.1); /* Vintage photo effect */
}

/* Pseudo element for dark overlay on top of images. This makes text more readable. */
.hero-image-row::after {
    content: '\A';
    position: absolute;
    width: 100%; height:100%;
    top:0; left:0;
    background:rgba(0,0,0,0.6);
    opacity: 0.2;
}

.hero .hero-image-grid {
    margin: 0 1.5rem;
    border-top: 12px solid #000;
    border-bottom: 12px solid #000;
    border-left: 4px solid #000;
    border-right: 4px solid #000;
}

.hero-image-row {
    display: flex;
    flex-direction: row;
    align-items: start;
    position: relative; /* Needed for dark overlay */
}

/* Animation for looping through images */

.image-loop {
   display: grid;
}

.image-loop-fast {
   --time: 2s;
}

.image-loop-slow {
   --time: 3s;
}

.image-loop img {   
grid-area: 1/1;
animation: rotate calc(var(--time) * 3) linear 0s infinite;
}

.image-loop img:nth-child(2) { animation-delay: calc(var(--time) * -2); }
.image-loop img:nth-child(3) { animation-delay: calc(var(--time) * -1); }

@keyframes rotate {
   /* 33.33% is (100% / number of images) */
   0%, 33.33% { opacity: 1; }
   /* 33.34% is (100% / number of images) + 0.01 */
   33.34%, 100% { opacity: 0; }  
}

.hero-image-content {
    position: relative; /* Needed for text overlay */
    color: #75130f;
    font-family: 'Meddon';
    font-size: 40px;
    font-weight: 700;
    text-shadow: 0 0 0.5px white, 0 0 0.5px white, 0 0 0.5px white, 0 0 0.5px white;
}

/* --- Media Query for Mobile Devices to move overlays above/below image grid. --- */
@media (max-width: 768px) {
    .hero-image-name-overlay {
        display: block;
        position: inherit; /* Needed for z-index */
    }

    .hero-image-sentence-overlay {
        display: block;
        position: inherit; /* Needed for z-index */
    }
}
/* --- Media Query for Desktop Devices to move overlays left/right of image grid. --- */
@media (min-width: 769px) {
    .hero-image-name-overlay {
        position: absolute;
    }

    .hero-image-sentence-overlay {
        position: absolute;
    }

    .hero-image-content {
        padding-left: 150px;
        padding-right: 150px;
    }
}

.hero-image-name-overlay {
    line-height: 52px;
    top: 20%;
    left: 0;
    transform: rotate(-12deg);
    z-index: 1;
}

.hero-image-sentence-overlay {
    line-height: 46px;
    bottom: 20%;
    right: 0;
    transform: rotate(-8deg);
    z-index: 1;
}

.date-location {
    margin-top: 1rem;
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-family: 'Darker Grotesque';
    color: #333;
}

.divider-curvy-line {
    margin-top: 3em;
    margin-bottom: 1em;
}

/* --- Homepage RSVP Section --- */
.rsvp-section {
    font-family: 'Darker Grotesque';
    font-size: 20px;
    color: #75130f;
    padding: 4rem 2rem;
    background-color: #ca9fa2;
    margin: 2rem -2rem; /* Stretch to edges of content area */
    position: relative;
}

.rsvp-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

.rsvp-bird {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.rsvp-flower {
    position: absolute;
    top: 12px;
    left: 12px;
    transform: rotate(80deg);
}

.button {
    display: inline-block;
    background-color: #390000;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 1rem;
}
.button:hover {
    background-color: #555;
}


/* --- Site Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #777;
}

/* --- Screen-reader only text --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- RSVP Form Styles --- */
.rsvp-page {
    font-family: 'Darker Grotesque';
    font-size: 1.3rem;
}

#guest-rsvp-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    box-sizing: border-box;
    max-width: 500px;
}

.form-group input.error {
    border-color: #a94442;
    box-shadow: 0 0 4px #a94442;
}

/* Checkbox styles */
#events-checkboxes label {
    display: block;
    font-weight: normal;
    margin-bottom: 0.5rem;
}
#events-checkboxes input[type="checkbox"] {
    margin-right: 10px;
}

input[type=checkbox] {
  accent-color: #75130f;
}

/* Leave space for the checkmark */
.event-button-content {
    padding-left: 12px;
    padding-right: 12px;
}

/* Add checkmark when event is selected */
.event-button .event-button-content::before {
  content: '✓'; /* The checkmark character */
  position: absolute;
  top: 25%;
  left: 12px;
  color: white; /* Color of the checkmark */
  font-size: 1.1em;
}

#rsvp-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Allura';
    font-size: 3.5rem;
    margin: 0;
    color: #75130f;
}

/* --- Schedule Page Styles --- */
.event {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    font-family: 'Darker Grotesque';
}

.event:last-child {
    border-bottom: none;
}

.subevent {
    display: flex;
    justify-content: center;
}

.schedule-image {
    padding: 12px;
    width: 3em;
}

.schedule-image-up {
    margin-bottom: 3em;
}

.schedule-image-down {
    margin-top: 3em;
}

.schedule-image-down-more {
    margin-top: 6em;
}

.schedule-image-up-more {
    margin-bottom: 6em;
}

.schedule-image-rotate-left {
    transform: rotate(-15deg);
}

.schedule-image-rotate-right {
    transform: rotate(15deg);
}

img.schedule-image {
    max-width:100%;
max-height:100%;
object-fit: contain;
}

.divider-squiggle {
    width: 50%;
    max-width: 350px;
    min-width: 200px;
}

/* Day header */
.event h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
    color: #75130f;
}

/* Event header */
.event h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-time, .event-location, .event-details, .event-dress-code {
    font-size: 1.1rem;
    margin: 0.25rem 0;
}

.event-location {
    font-style: italic;
}

.event-time {
    font-weight: 700;
}

.event-details {
    min-width: 60%;
}

.event-dress-code {
    min-width: 60%;
    margin-top: 12px;
}

.event-details-wide {
    min-width: 70%;
}

/* --- Event Button Styles --- */
.event-day {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.event-day-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.event-button {
    display: inline-block;
    border: 1px solid #ccc;
    background-color: #ffffff;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: normal;
    text-align: center;
    border-radius: 4px; /* Optional: for slightly rounded corners */
    position: relative; /* Needed to position checkmark */
    font-size: 1rem;
}

.event-button span {
    color: #333;
    font-size: 1rem;
}

/* Style for the SELECTED button */
.event-button:has(input:checked) {
    background-color: #390000;
    border-color: #333;
}

.event-button:has(input:checked) span {
    color: #fff;
}

/* A subtle hover effect */
.event-button:not(:has(input:checked)):hover {
    border-color: #888;
}

.event-container {
    width: 100%;
    margin-bottom: 1rem;
}

.event-attendance-details {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.event-attendance-details .form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-attendance-details input[type="number"] {
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: 'Darker Grotesque', serif;
    font-size: 1rem;
    box-sizing: border-box;
}

/* --- Accommodations Styles --- */
.hotel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
    color: #75130f;
}

.hotel {
    font-family: 'Darker Grotesque';
    font-size: 1.3rem;
    padding-bottom: 24px;
}

.hotel-divider {
    margin-top: 2em;
    margin-bottom: 2em;
}

.booking-steps {
    text-align: left;
}

.booking-steps-header {
    font-weight: 700;
}

.airbnb-link {
    width: fit-content;
    padding: 12px;
    background-color: #390000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Darker Grotesque';
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto;
}

gmp-map {
    height: 400px;
    width: 100%;
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
}

/* --- Registry Style --- */
.registry {
    font-family: 'Darker Grotesque';
    font-size: 1.3rem;
}

.registry-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* --- FAQ Styles --- */
.faq {
    font-family: 'Darker Grotesque';
    font-size: 1.3rem;
}

.faq-content {
    text-align: left;
}

.faq h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-header-padding {
    margin-top: 2rem;
}


/* --- Games Page Styles --- */
.game-grid {
     gap: 2rem;
    display: flex;
  flex-wrap: wrap;
  justify-content: center;
    margin-top: 3rem;
}

.too-big-img {
    max-width: 75px;
    object-fit: contain;
    height: 100px;
    margin-bottom: 1rem;
}

.game-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 2rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: #75130f;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-img {
    max-width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.game-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
}

@media (min-width: 769px) {
    .game-item {
        flex: 0 0 calc(20%);
    }
}

#leaderboard h2 {
    font-family: 'Playfair Display', serif;
    color: #75130f;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .leaderboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-item {
        width: 100%;
    }
}

.game {
    font-family: 'Darker Grotesque';
    font-size: 1.2rem;
}

.game h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
    color: #75130f;
}

.game .hide {
    display:none;
}

/* --- Game Modal Styles --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 800px;
    position: relative;
}

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

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

/* --- Wordle Game Styles --- */
#wordle-grid {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-gap: 5px;
    margin: 20px auto;
    max-width: 300px;
}

.wordle-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
}

.wordle-cell {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.wordle-cell.correct {
    background-color: #6aaa64;
    color: white;
    border-color: #6aaa64;
}

.wordle-cell.present {
    background-color: #c9b458;
    color: white;
    border-color: #c9b458;
}

.wordle-cell.absent {
    background-color: #787c7e;
    color: white;
    border-color: #787c7e;
}

#wordle-keyboard {
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.key {
    height: 7vh;
    width: 7vw;
    max-width: 40px;
    margin: 2px;
    border: none;
    background-color: #d3d6da;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.key.large {
    width: 14vw;
    max-width: 120px;
}

/* --- Spelling Bee Game Styles --- */
.spelling-bee-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sb-hive {
    margin: 20px 0;
}

.sb-hex-row {
    display: flex;
    justify-content: center;
}

.sb-row-top {
    margin-bottom: -20px;
}

.sb-row-bottom {
    margin-top: -20px;
}

.sb-hex {
    width: 80px;
    height: 92.38px;
    background-color: #dce0e3;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    cursor: pointer;
}

.sb-letter {
    border: none;
    background: transparent;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.sb-center {
    background-color: #ddc35b
}

.sb-button-container {
    display: flex;
    gap: 16px;
    padding-bottom: 32px;
    padding-top: 16px;
}

.sb-button {
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

#sb-input {
    width: 200px;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid #ccc;
    margin-bottom: 10px;
}

.game-feedback {
    height: 16px;
    margin: 10px 0 26px;
    font-weight: bold;
}

#sb-word-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

/* --- Crossword Mini Game Styles --- */
.crossword-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-direction: column;
}

#crossword-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, 41px);
    grid-template-rows: repeat(5, 41px);
    border: 2px solid black;
    align-self: center;
}

.crossword-cell {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    position: relative;
}

.crossword-cell-number {
    font-size: 10px;
    position: absolute;
    left: 4px;
}

.crossword-cell input {
    width: 36px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.crossword-cell.black {
    background-color: black;
}

.clue-number {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.7rem;
}

.crossword-clues {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.clue-list-container {
    flex: 1;
}

.clue-list-container h3 {
    margin-top: 0;
}

.clue-list-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Connections Game Styles --- */
#connections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
}

.connections-grid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 26px 0 26px -0.4rem;
}

.connection-word {
    background-color: #efefef;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
}

.connection-word.selected {
    background-color: #bbde;
}

.connection-word.correct1 {
    background-color: #f7de6c;
}

.connection-word.correct2 {
    background-color: #a0c35a;
}

.connection-word.correct3 {
    background-color: #afc4ef;
}

.connection-word.correct4 {
    background-color: #b882c6;
}

.sb-letter.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.sb-letter.fade-in {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.game-feedback.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.game-feedback.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* --- Spelling Bee Rank Tracker --- */
.sb-rank-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.sb-rank-label {
    font-weight: bold;
    font-size: 1.2rem;
    padding-right: 16px;
    flex-shrink: 0; /* Prevent the label from shrinking */
}

.sb-dot-line {
    flex-grow: 1; /* Allow the line to take up the remaining space */
}

.sb-rank-line {
    width: 100%;
    height: 2px;
    background-color: #ccc;
    position: relative;
    top: 7px;
}

.sb-rank-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.sb-rank-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
}

.sb-rank-dot.active {
    background-color: #ddc35b;
}

.sb-instructions {
    max-width: 350px;
    margin: 0 auto 20px;
}

/* --- Spelling Bee Rank Popup --- */
#sb-rank-list {
    list-style: none;
    max-width: 500px;
    min-width: 350px;
    padding: 0;
}

.sb-rank-list-container {
    display: flex;
    justify-content: center;
}

#sb-rank-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

#sb-rank-list li:last-child {
    border-bottom: none;
}

.sb-rank-list-header {
    font-weight: bold;
}

#dino-canvas {
    max-width: 600px;
    width: 100%;
    height: auto;
}

#header {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    background-color: #FFFDF7;
    z-index: 998; /* Below the mobile nav overlay */
    width: 100%;
}
