:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-primary: #4f46e5;
    --accent-secondary: #6366f1;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --progress-red: rgba(239, 68, 68, 0.15);
    --progress-yellow: rgba(245, 158, 11, 0.15);
    --progress-green: rgba(34, 197, 94, 0.15);
    --progress-dark-green: rgba(21, 128, 61, 0.2);
}

body {
    font-family: "Noto Sans", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}


/* Chitchat effect for navbar title */
:root {
  --word-animation-duration: 1.2s;
  --hover-word-color: #FAC921;
  --default-word-color: var(--text-primary);
}

.flicker-text {
  display: inline-block;
  color: var(--default-word-color);
  font-weight: 800;
  position: relative;
  overflow: visible;
  opacity: 0; /* Hide the text initially */
  transition: opacity 0.5s ease;
}

@keyframes chitchat {
  0% {
    content: "#";
  }
  5% {
    content: ".";
  }
  10% {
    content: "^{";
  }
  15% {
    content: "-!";
  }
  20% {
    content: "#$_";
  }
  25% {
    content: "№:0";
  }
  30% {
    content: "#{+.";
  }
  35% {
    content: "@}-?";
  }
  40% {
    content: "?{4@%";
  }
  45% {
    content: "=.,^!";
  }
  50% {
    content: "?2@%";
  }
  55% {
    content: "\\;1}]";
  }
  60% {
    content: "?{%:%";
    right: 0;
  }
  65% {
    content: "|{f[4";
    right: 0;
  }
  70% {
    content: "{4%0%";
    right: 0;
  }
  75% {
    content: "'1_0<";
    right: 0;
  }
  80% {
    content: "{0%";
    right: 0;
  }
  85% {
    content: "]>'";
    right: 0;
  }
  90% {
    content: "4";
    right: 0;
  }
  95% {
    content: "2";
    right: 0;
  }
  100% {
    content: "";
    right: 0;
  }
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 4rem);
    max-width: 1200px;
    background-color: var(--bg-secondary);
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 1.5rem auto;
    box-sizing: border-box;
    border-radius: calc(var(--border-radius) * 1.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}


.nav-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    max-width: fit-content;
    font-weight: 800;
    font-family: 'Barriecito', system-ui;
    white-space: nowrap;
    min-width: 120px; /* Maintain space for title when hidden */
    height: 2.1rem;
}


.nav-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Mobile menu styling */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: transform 0.3s ease;
    background-color: transparent !important; /* Force no background */
    box-shadow: none;
    outline: none; /* Remove outline on focus */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.mobile-menu-toggle button:hover,
.mobile-menu-toggle button:focus,
.mobile-menu-toggle button:active {
    background-color: transparent !important;
    transform: scale(1.1);
    color: var(--text-primary);
    outline: none;
    box-shadow: none;
}

.mobile-menu-toggle button.open {
    transform: rotate(90deg);
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 200px;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav {
    flex-direction: column;
    align-items: stretch;
}

.mobile-nav .icon-button-small {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 2rem);
        padding: 0.75rem 1rem;
        margin: 1rem auto;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .nav-title {
        font-size: 1.75rem;
        animation-duration: 2s;
        min-width: 160px; /* Larger min-width for mobile */
    }
}

.icon-button-small {
    padding: 0.35rem 0.75rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}


.play-with-twitch-after-login-div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}


.icon-button-small:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.icon-button-small:active {
    transform: translateY(0);
}

header {
    /* Align header items and position buttons to top right */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.container {
    background-color: var(--bg-secondary);
    padding: 2rem !important; /* Force large screen padding */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    text-align: center;
    box-sizing: border-box;
}

/* Apply smaller padding only on mobile screens */
@media only screen and (max-width: 768px) {
    .container {
        padding: 0.7rem !important;
    }
}

h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Guess counter container positioning */
.guess-counter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 100%;
}

.guess-counter {
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: auto;
    display:none;
}


#guess-form label {
    display: none;
}

#guess-input {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    flex-grow: 1;
    font-size: 1rem;
    transition: var(--transition);
}

#guess-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

#guess-input::placeholder {
    color: var(--text-secondary);
}


/* Animation for invalid words */
@keyframes invalidWordShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.invalid-word {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
    animation: invalidWordShake 0.4s ease-in-out;
}

.vocabulary-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    height: 1.2em;
    text-align: left;
    transition: var(--transition);
}

button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

button:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.header-buttons .icon-button {
    /* Smaller header buttons */
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}


#new-game-btn {
    background-color: var(--success);
    margin-bottom: 1.5rem;
}

#new-game-btn:hover {
    background-color: #16a34a;
}

#status-message {
    margin-top: 1rem;
    min-height: 1.2em;
    font-weight: 500;
    color: var(--text-secondary);
}

.history-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#guess-history {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#guess-history li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: calc(var(--border-radius) - 2px);
    background-color: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#guess-history li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--progress-color, transparent);
    transition: width 0.5s ease-out;
    z-index: -1;
    width: var(--progress-width, 0%);
}

#guess-history li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#guess-history li > * {
    z-index: 2;
}

#guess-history .word {
    color: white;
    font-weight: 800;
    font-size: 1.1rem; /* Increased font size */
}

#guess-history .distance {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.25rem 0.5rem;
    background-color: rgba(72, 51, 255, 0.1);
    border-radius: calc(var(--border-radius) - 4px);
    transition: var(--transition);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Score-based background colors for distance indicators */
#guess-history .distance.distance-far {
    background-color: rgba(239, 68, 68, 0.5); /* Based on progress-red but darker */
}

#guess-history .distance.distance-medium {
    background-color: rgba(245, 158, 11, 0.5); /* Based on progress-yellow but darker */
}

#guess-history .distance.distance-close {
    background-color: rgba(34, 197, 94, 0.5); /* Based on progress-green but darker */
}

#guess-history .distance.distance-very-close {
    background-color: rgba(21, 128, 61, 0.6); /* Based on progress-dark-green but darker */
}

/* Animation for duplicate words */
@keyframes duplicateWordPulse {
    0% { background-color: rgba(245, 158, 11, 0); }
    50% { background-color: rgba(245, 158, 11, 0.15); }
    100% { background-color: rgba(245, 158, 11, 0); }
}

/* Animation for new guesses */
@keyframes newGuessSlide {
    0% { 
        transform: translateY(-20px);
        opacity: 0; 
    }
    100% { 
        transform: translateY(0);
        opacity: 1; 
    }
}

@keyframes newGuessBorder {
    0% { 
        box-shadow: 0 0 0 2px white;
        border-color: rgba(255, 255, 255, 1);
    }
    100% { 
        box-shadow: 0 0 0 0 transparent;
        border-color: rgba(255, 255, 255, 0);
    }
}

.new-guess {
    position: relative;
    animation: newGuessSlide 0.4s ease-out;
}

.new-guess::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: calc(var(--border-radius) - 2px);
    pointer-events: none;
    border: 2px solid transparent;
    border-color: rgba(255, 255, 255, 1);
    animation: newGuessBorder 1.5s ease-in-out forwards;
}

.duplicate-word {
    animation: duplicateWordPulse 0.8s ease-in-out;
}

/* Style for correct guesses */
#guess-history li .distance.correct {
    background-color: var(--success);
    color: white;
}

/* Style for not found words */
#guess-history li .distance.not-found {
    background-color: var(--error);
    color: white;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 640px) {

    h1 {
        font-size: 1.75rem;
    }

    #guess-form {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

/* Add this to your style.css if you don't have it */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* Added */
  border: 0;
}

.guess-status {
    margin: 1.5rem auto;
    padding: 0.75rem 1.25rem;
    border-radius: calc(var(--border-radius) * 1.5);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center; /* This aligns items vertically center */
    justify-content: flex-start; /* Align items to the start horizontally */
    min-height: 2.5rem; /* Ensure consistent height */
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: newGuessSlide 0.4s ease-out;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 95%;
}

.guess-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--progress-color, transparent);
    transition: width 0.5s ease-out;
    z-index: -1;
    width: var(--progress-width, 0%);
}

.guess-status::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: calc(var(--border-radius) - 2px);
    pointer-events: none;
    z-index: 0;
}

.guess-status > * {
    z-index: 2;
}

/* Style for distance/rank in status message to match guess history */
.guess-status .word {
    color: white;
    font-weight: 800;
    font-size: 1.1rem; /* Increased font size */
}

.guess-status .distance {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.25rem 0.5rem;
    background-color: rgba(72, 51, 255, 0.1);
    border-radius: calc(var(--border-radius) - 4px);
    transition: var(--transition);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.guess-status .distance.distance-far {
    background-color: rgba(239, 68, 68, 0.5);
}

.guess-status .distance.distance-medium {
    background-color: rgba(245, 158, 11, 0.5);
}

.guess-status .distance.distance-close {
    background-color: rgba(34, 197, 94, 0.5);
}

.guess-status .distance.distance-very-close {
    background-color: rgba(21, 128, 61, 0.6);
}

.guess-status.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.guess-status.success::after {
    border-color: rgba(34, 197, 94, 1);
    animation: newGuessBorder 1.5s ease-in-out forwards;
}

.guess-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.guess-status.error::after {
    border-color: rgba(239, 68, 68, 1);
    animation: newGuessBorder 1.5s ease-in-out forwards;
}

.guess-status.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.guess-status.warning::after {
    border-color: rgba(245, 158, 11, 1);
    animation: newGuessBorder 1.5s ease-in-out forwards;
}

.status-icon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Modal styles - Modern Redesign */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    position: fixed;
    z-index: 9999; /* Increased z-index to ensure it's above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1; /* Ensure it's fully visible */
    visibility: visible; /* Ensure it's not hidden */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal[style*="display: block"] {
    display: flex !important; /* Force display as flex when it should be visible */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #232323;
    margin: 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal.show .modal-content {
    transform: translateY(0);
}



.modal-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 35px rgba(0, 0, 0, 0.35);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    border-bottom: none;
    padding-bottom: 0;
}

.modal-body {
    padding: 1.75rem;
    margin-bottom: 0;
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0;
}

.modal-body ul {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.75rem;
}

.close-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.close-button:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.close-button:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

/* Give up button style - adapted from example */
.give-up-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    background-color: #ef4444;
    margin-right: 15px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    padding-left: 10px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Icon container */
.give-up-btn i {
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Text styling */
.give-up-btn span {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition-duration: 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

/* Hover effect on button width */
.give-up-btn:hover {
    width: 110px;
    border-radius: 6px;
    background-color: #dc2626;
    transition-duration: 0.3s;
}

/* No movement of the icon on hover */
.give-up-btn:hover i {
    transition-duration: 0.3s;
}

/* Hover effect button's text */
.give-up-btn:hover span {
    opacity: 1;
    width: auto;
    transition-duration: 0.3s;
}

/* Button click effect */
.give-up-btn:active {
    transform: translate(2px, 2px);
}

/* Message modal design to match site style */
#message-modal .modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    transform: translateY(0);
    animation: modalFadeIn 0.3s ease;
}

#message-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#message-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

#message-modal .close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

#message-modal .close-button:hover {
    color: var(--accent-primary);
}

#message-modal .modal-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
}

#message-modal .modal-body p {
    margin: 0;
    line-height: 1.5;
}

#message-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#message-modal .action-button {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#message-modal #modal-ok-btn {
    background-color: var(--accent-primary);
    color: white;
    display: inline-block;
}

#message-modal #modal-ok-btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#message-modal #modal-cancel-btn {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#message-modal #modal-cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

@keyframes modalFadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Highlight correct Twitch guess with a bright green background */
.guess-item.correct-guess {
    background-color: #182718;  /* light bright green */
}

/* Override correct-guess background */
#guess-history li.correct-guess {
    background-color: #182718 !important;
}
#guess-history li.correct-guess:hover {
    background-color: #182718 !important;
}
