body {
    font-family: 'Ubuntu', sans-serif;
    background-image: url('../images/background.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    position: relative;
    padding: 10px;
    margin: 0;
    width: 100%;
}

.back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 36px;
    text-decoration: none;
    padding: 15px;
    z-index: 10;
    transition: opacity 0.2s;
}

.back-button:hover {
    opacity: 0.8;
}

h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 48px;
    color: white;
    margin-top: -8px; /* Make more negative to move higher */
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.subtitle {
    color: white;
    font-size: 28px;
    margin: 10px 0 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.description-section {
    margin: 30px 0;
}

.description-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#pal-description {
    font-size: 22px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    text-align: center;
}
.pal-icon {
    width: 60px;
    height: 50px;
    object-fit: cover;
}

.search-box {
    display: flex;
    position: relative;
    margin: 30px auto;
    z-index: 1001;
    border: 4px solid #00182e;
    border-radius: 30px;
    background: white;
    height: 55px;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


#pal-input {
    padding: 0 25px;
    width: 100%;
    border: none;
    font-size: 18px;
    background: transparent;
    height: 100%;
    outline: none;
    border-radius: 30px 0 0 30px;
}

#submit {
    padding: 0;
    background: #4AA7FF;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 26px 26px 0;
    transition: background-color 0.2s;
}

#submit:hover {
    background: #3590e3;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 4px solid #00182e;
    border-radius: 15px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.suggestion {
    padding: 12px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s;
}

.suggestion:hover {
    background: #f0f0f0;
}

.suggestion.selected {
    background-color: #4AA7FF;
    color: white;
}

.guesses-section {
    margin: 30px auto;
    max-width: 600px;
}

.guess-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guess-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.guess-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px; /* Add this line to limit width */
    width: 90%; /* Add this line to make it responsive */
    margin-left: auto; /* Center the item */
    margin-right: auto; /* Center the item */
}

.guess-item.correct {
    background: #2cf533d8;
    border: 2px solid #ffffff;
    color: white;
    max-width: 400px; /* Consistent with above */
    width: 90%; /* Consistent with above */
}

.guess-item.incorrect {
    background: #ff0000de;
    border: 2px solid #ffffff;
    color: white;
    max-width: 400px; /* Consistent with above */
    width: 90%; /* Consistent with above */
}
.streak-icon {
    position: relative;
    width: 40px;  /* Reduced from 60px */
    height: 40px; /* Reduced from 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin: 20px auto;
}

.streak-icon img {
    position: absolute;
    width: 125%; /* Adjusted from 150% */
    height: 125%; /* Adjusted from 150% */
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.streak-inactive {
    display: block;
}

.streak-active {
    display: none;
}

.streak-icon.active-streak .streak-inactive {
    display: none;
}

.streak-icon.active-streak .streak-active {
    display: block;
}

.streak-number {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 22px; /* Reduced from 28px */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-top: 12px; /* Adjusted from 15px */
}

.modal {
    display: none;
    width: 400px;
    margin: 20px auto;
    background-color: #763bd3dc;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #ffffff;
    color: white;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.modal.show {
    display: block;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    color: white;
}

.social-links {
    margin-bottom: 20px;
}

.social-link {
    color: white;
    font-size: 28px;
    margin: 0 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.8;
}

.copyright {
    margin: 15px 0;
    font-size: 16px;
}

.privacy-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

.privacy-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}


html {
    overflow-y: scroll;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4AA7FF;
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: #3590e3;
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #4AA7FF rgba(255, 255, 255, 0.1);
}

/* Ensure minimum content height for scrollbar */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Ensure footer stays at bottom */
footer {
    margin-top: auto;
    padding-bottom: 20px;
}
.game-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
}

.game-menu.show {
    display: block;
}

.menu-item {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.2s;
    border-radius: 8px;
    margin: 4px 0;
}

.menu-item:hover {
    background-color: #4AA7FF;
    color: white;
}

h1 {
    cursor: pointer;
    position: relative;
}

header {
    position: relative; /* Add this to ensure proper menu positioning */
}
/* Dropdown Menu */
.game-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
}

.game-menu.show {
    display: block;
}

.menu-item {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.2s;
    border-radius: 8px;
    margin: 4px 0;
}

.menu-item:hover {
    background-color: #4AA7FF;
    color: white;
}

/* Make title clickable */
h1 {
    cursor: pointer;
    position: relative;
}
.streak-container {
    position: relative;
    cursor: pointer;
}

.streak-container:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
}
.streak-icon[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}
.pal-result-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.pal-result-box img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.pal-name {
    font-size: 24px;
    color: white;
    margin: 10px 0;
}

.tries-text {
    color: #FFD700;
    font-size: 16px;
}

.share-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.share-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.copy-button {
    background: #444;
    color: white;
}

.twitter-button {
    background: #1DA1F2;
    color: white;
}

.share-button:hover {
    opacity: 0.9;
}

.next-pal, .yesterday-pal {
    margin: 15px 0;
    color: white;
}

.countdown {
    color: #4ef2fd;
    font-size: 24px;
    margin: 10px 0;
}
.yesterday-name {
    color: #37f046; /* or whatever specific green color you're using */
    font-weight: bold;
}

.yesterday-pal {
    color: white; /* This keeps "Yesterday's Pal was" in white */
}
.icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
}

.help-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.help-button:hover {
    opacity: 0.8;
}

.how-to-play-modal {
    display: none;
    position: absolute;
    z-index: 1002;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    width: 105%; /* Increased from 90% */
    max-width: 1800px; /* Increased from 600px */
}

.how-to-play-content {
    background-color: #3e1a5f;
    margin: 0 auto;
    padding: 20px 30px; /* Added more horizontal padding */
    border: 2px solid #45d2fd;
    border-radius: 10px;
    color: white;
    font-family: monospace;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-how-to-play {
    color: #ffd700;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-how-to-play:hover {
    color: #fff;
}

.how-to-play-text {
    margin-top: 20px;
    text-align: left; /* Add this line */
    font-size: 16px; /* Base font size for all text */
}

.green-text { color: #60d664; }
.yellow-text { color: #FFD93D; } /* Changed from orange-text */
.red-text { color: #e93a3a; }

.how-to-play-text h3 {
    color: #ffd700;
    margin-top: 20px;
}

.how-to-play-text ul {
    list-style-type: none;
    padding-left: 20px;
}

.how-to-play-text li {
    margin: 10px 0;
}
.icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    position: relative;
    z-index: 2; /* Ensure icons are above other elements */
}

.help-button {
    position: relative;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.streak-icon {
    margin: 0;
}
.help-button[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.help-button:hover[data-tooltip]:before {
    visibility: visible;
    opacity: 1;
}
.menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
}

.menu-container.show {
    display: block;
}
.next-mode-suggestion {
    margin-top: 15px;
    padding: 10px;
    font-size: 16px;
    color: white;
}

.next-mode-suggestion a {
    color: #4AA7FF;
    text-decoration: none;
    font-weight: bold;
}

.next-mode-suggestion a:hover {
    text-decoration: underline;
}
.hints-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.hints-box {
    background-color: rgba(44, 62, 80, 0.9);
    border-radius: 200px;
    padding: 20px;
    margin: 0px auto;
    width: 80%;
    max-width: 120px;
    border: 2px solid #87b5e0;
    transition: all 0.3s ease;
    position: relative;
}

.hints-box.expanded {
    border-radius: 200px;
    min-height: 120px;
}

.hint-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    height: 40px;
}

.hint-item {
    position: relative;
    text-align: center;
}

.hint-icon {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    color: white;
}

.hint-icon:hover {
    transform: scale(1.1);
}

.hint-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.hint-icon:hover[data-tooltip]:before {
    visibility: visible;
    opacity: 1;
}

.hint-content {
    display: none;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 90%;
    margin: 75px auto 0 auto;
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.hint-content.show {
    display: block;
}

.hint-icon.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint-icon.active {
    color: #ffd700;
}
.info-modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.info-modal-content {
    background-color: #3e1a5f;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #45d2fd;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    color: white;
}

.info-modal-content h2 {
    color: #ffd700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-modal-content h2:first-child {
    margin-top: 0;
}

.info-modal-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.close-info {
    color: #ffd700;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-info:hover {
    color: white;
}

.copy-email {
    cursor: pointer;
    color: #4AA7FF;
    text-decoration: underline;
    display: inline-block;
}

.copy-email:hover {
    color: #3590e3;
}

.coffee-link {
    color: #4AA7FF;
    text-decoration: none;
}

.coffee-link:hover {
    text-decoration: underline;
    color: #3590e3;
}
.how-to-play-content h2 {
    text-align: center;
    margin: 0 0 20px 0;
    padding-right: 30px; /* This accounts for the X button */
    color: #ffd700;
}
.play-again-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.play-again-button:hover {
    background-color: #45a049;
}
.game-menu-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
  
  .menu-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(116, 116, 223);
    border: 2px solid rgb(255, 255, 255); /* Add this line */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
  }
  
  .menu-button:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
  }
  
  .menu-button i {
    font-size: 24px;
    color: #ffffff;
  }
  .menu-button::before {
    content: attr(title);
    position: fixed; /* Change from absolute to fixed */
    bottom: auto; /* Remove bottom */
    top: calc(100% + 10px); /* Position below the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 9999; /* Use a very high z-index */
}
  
  .menu-button:hover::before {
    opacity: 1;
    visibility: visible;
  }
  .game-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    padding: 10px;
}