/* static/style.css */
body {
    font-family: 'Bubblegum Sans', cursive;
    text-align: center;
    background: linear-gradient(45deg, #ff6b6b, #ffe66d, #4ecdc4, #45b7d1, #96c93d, #ff9ff3);
    background-size: 400% 400%;
    animation: rainbow 15s ease infinite;
    margin: 0;
    padding: 20px;
}

@keyframes rainbow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes flash {
    0% { background-color: rgba(255, 255, 255, 0.7); transform: scale(1); }
    50% { background-color: rgba(255, 99, 71, 0.9); transform: scale(1.05); }
    100% { background-color: rgba(255, 255, 255, 0.7); transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    color: #ff4081;
    font-size: 48px;
    text-shadow: 2px 2px #fff;
}

#controls {
    margin: 20px auto;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#controls label {
    font-size: 18px;
    color: #d81b60;
    margin-right: 10px;
}

#controls select {
    font-size: 16px;
    padding: 5px;
    border-radius: 5px;
    font-family: 'Bubblegum Sans', cursive;
}

#game-board {
    margin: 20px auto;
    width: 384px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.row {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.row.locked .letter {
    background-color: #e0e0e0;
    border-color: #bdbdbd;
    color: #666;
    cursor: not-allowed;
}

.letter {
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 4px;
    font-size: 28px;
    text-align: center;
    border: 2px solid #ffcc00;
    border-radius: 10px;
    background-color: #fff;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.letter:hover {
    transform: scale(1.1);
}

.correct { background-color: #00e676; color: white; border-color: #00c853; }
.misplaced { background-color: #ffeb3b; color: #333; border-color: #fbc02d; }
.wrong { background-color: #bdbdbd; color: white; border-color: #757575; }

#submit-btn, #hint-btn, #next-btn, #reset-stats-btn {
    margin: 10px;
    padding: 10px 25px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

#submit-btn { background-color: #ff9100; color: white; }
#hint-btn { background-color: #3d5afe; color: white; }
#next-btn { background-color: #e91e63; color: white; }
#reset-stats-btn { background-color: #ff5252; color: white; display: block; margin: 15px auto 0; }

#submit-btn:hover, #hint-btn:hover, #next-btn:hover, #reset-stats-btn:hover {
    transform: scale(1.05);
}

#message {
    margin: 15px;
    font-size: 20px;
    color: #d81b60;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10px;
}

#message.flash {
    animation: flash 1s ease 5;
}

#keyboard {
    margin: 20px auto;
    width: 520px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 15px;
}

.key {
    width: 40px;
    height: 50px;
    margin: 4px;
    background-color: #80deea;
    border: 2px solid #26c6da;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.key:hover { transform: scale(1.1); }
.key.correct { background-color: #00e676; color: white; border-color: #00c853; }
.key.misplaced { background-color: #ffeb3b; color: #333; border-color: #fbc02d; }
.key.wrong { background-color: #bdbdbd; color: white; border-color: #757575; }

#backspace {
    width: 90px;
    font-size: 16px;
    background-color: #ff5252;
    border-color: #d32f2f;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #ff4081;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover { color: #d81b60; }

#stats-content {
    text-align: left;
    font-size: 18px;
    color: #333;
}

#stats-content h2 { text-align: center; color: #ff4081; }
#stats-content h3 { margin-top: 15px; color: #d81b60; }

#guess-distribution div {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.dist-bar {
    display: inline-block;
    background-color: #00e676;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    margin-left: 5px;
    min-width: 20px;
    text-align: center;
    transition: width 0.3s ease;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #ff4081;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: #fff;
    font-size: 24px;
    margin-top: 20px;
    text-shadow: 1px 1px 2px #000;
}

/* static/style.css */
/* Existing styles... */

/* static/style.css */
/* Existing styles... */

#visitor-counter {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #f8f9fa; /* Light gray background */
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd; /* Subtle border */
    font-family: 'Arial', sans-serif; /* Clean, professional font */
    font-size: 14px;
    color: #333; /* Dark gray text */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}

#visitor-counter span {
    font-weight: bold;
}