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;
    transform: none !important; /* Add this */
    transform-style: flat !important; /* Add this */
    perspective: none !important; /* Add this */
}
html {
    transform: none !important;
    transform-style: flat !important;
    perspective: none !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
header {
    text-align: center;
    position: relative;
    padding: 10px 0;
    margin-bottom: 40px;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
    transform: none !important; /* Add this */
}


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);
}
h1 {
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
    color: white;
}

.game-container {
    background-color: rgba(44, 62, 80, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    text-align: center;
    max-width: 500px;
}

.silhouette-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    background: radial-gradient(circle, #ffffff 0%, #a8d8ff 100%);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pal-silhouette {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) contrast(100%);
    -webkit-filter: brightness(0) contrast(100%);
    transform-origin: center;
    left: 50%;
    top: 50%;
    transition: transform 0.5s ease;
}
/* Add a wrapper div for the zoom effect */
.silhouette-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: transform 0.5s ease;
}

.zoom-indicator {
    color: white;
    margin: 10px 0;
    font-size: 0.8em;
    font-family: 'Press Start 2P', cursive;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0;
    position: relative;
    margin: 20px auto;
    z-index: 1001;
    border: 3px solid #00182e;
    border-radius: 25px;
    background: white;
    height: 45px;
    overflow: visible;
    align-items: stretch;
    width: 300px;
}

#pal-input {
    padding: 0 20px;
    width: 250px;
    border: none;
    font-size: 16px;
    background: transparent;
    height: 100%;
    outline: none;
    border-radius: 25px 0 0 25px;
}

#submit {
    padding: 0;
    background: #4AA7FF;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 23px 23px 0;
    margin-right: -1px;
}

#submit:hover {
    background: #3590e3;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: rgb(255, 255, 255);
    border: 4px solid #000000;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
}

.suggestion {
    padding: 8px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion:hover {
    background: #f0f0f0;
}

.suggestion.selected {
    background-color: #4AA7FF;
    color: white;
}

.pal-icon {
    width: 60px;
    height: 50px;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    background: #763bd3dc;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    color: white;
    width: 80%;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    text-align: center;
}

.modal-content p {
    margin: 10px 0;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.pal-result {
    margin: 20px 0;
    padding: 10px;
    background-color: #320550;
    border-radius: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#victory-pal-icon {
    width: 164px; /* Maybe make it a bit larger than the thumbnail */
    height: 164px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}
#pal-name {
    font-size: 1.2em;
    margin: 5px 0;
}

.tries {
    margin-top: 5px;
    color: #ffd700; /* Same yellow as the countdown timer */
}
#countdown {
    color: #4ef2fd; /* Yellow color */
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
}

.next-pal {
    margin: 15px 0;
}

.yesterday-pal {
    margin-top: 15px;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 40px;
}

.social-links {
    margin-bottom: 10px;
}

.social-link {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
}

.social-link:hover {
    opacity: 0.8;
}

/* Streak */
.streak-icon {
    position: relative;
    width: 40px;  /* Adjust size as needed */
    height: 40px;  /* Adjust size as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin: 20px auto;
}

.streak-icon img {
    position: absolute;
    width: 125%;
    height: 125%;
    object-fit: contain;
}

.streak-number {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 22px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-top: 12px;
}

.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-icon[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;
}

.streak-icon:hover[data-tooltip]:before {
    visibility: visible;
    opacity: 1;
}
.guesses-container {
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.guess-row {
    background: #ff0000de;
    border: 2px solid #ffffff;
    border-radius: 10px;
    margin: 5px 0;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.guess-row.correct {
    background: #2cf533d8;
    border: 2px solid #ffffff;
}

.guess-row .pal-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.guess-row .pal-name {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Make sure guesses stay within game container */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}
html, body {
    transform: scale(1) !important;
    zoom: 1 !important;
    -webkit-transform: scale(1) !important;
    -moz-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
    transform-origin: center !important;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

* {
    transform-style: flat !important;
    backface-visibility: hidden;
}
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 {
    min-height: 100vh;
    padding-bottom: 50px; /* Add some bottom padding */
}

/* Ensure footer stays at bottom */
footer {
    margin-top: auto;
    padding-bottom: 20px;
}
/* Add to your existing CSS */
.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 */
}
.yesterday-name {
    color: #37f046;
    font-weight: bold;
}
.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 !important;
    margin: 0 auto;
    padding: 20px 30px; /* Added more horizontal padding */
    border: 2px solid #45d2fd !important;
    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;
}
.share-box {
    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: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: opacity 0.2s;
}

.copy-button {
    background-color: #4a4a4a;
}

.twitter-button {
    background-color: #1DA1F2;
}

.share-button:hover {
    opacity: 0.8;
}
.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;
}
.silhouette-wrapper img {
    pointer-events: none;
}

.silhouette-wrapper {
    pointer-events: auto;
}
.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;
}