html, body { height: 100%; width: 100%; overflow: hidden;
} :root { --bg-colorl: #229ed4; --bg-colorm: #0571f5; --bg-colord: #004a8f; --button-color: #455982; --text-color: #ffffff; } .dynamic-background { background: var(--bg-colord); transition: background-color 0.5s ease;
} body { background: var(--bg-colord); color: #fff; font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; margin: 0;
}
#game-container { position: relative; width: 380px; height: 620px; min-width: 380px; min-height: 620px; background: var(--bg-colorm); border: 5px solid #002266; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
#game-board {
    background: var(--bg-colorl);
    width: 300px;
    height: 370px;
    margin-top: 0;
    display: block;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.9),
        -2px 2px 5px rgba(0, 0, 0, 0.9); /* İçe doğru gölge */
    border-radius: 10px; /* Köşe yuvarlama (isteğe bağlı) */
} #ads-panel { position: relative; margin-top: 2px; width: 99%; padding: 2px; background: var(--bg-colorm); border: 5px solid #002266; box-sizing: border-box; display: flex; justify-content: center; align-items: center; z-index: 1;
} #ads-panel img { max-width: 100%; height: auto; }
#next-letter-panel { position: relative; margin-top: 2px; width: 80%; padding: 10px; background: var(--bg-colorm); border: 2px solid #002266; color: var(--text-color); box-sizing: border-box;
}
#mute-btn { position: absolute; top: 5px; right: 5px; background: var(--bg-colord); border: none; cursor: pointer; width: 40px; height: 40px; font-size: 18px; border-radius: 50%; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
} #mute-btn:hover { background: var(--bg-colorl); fill: black;
} #mute-btn svg { fill: #fff; } #show-words-btn { margin-top: 4px; width: 50%; background-color: #ff4d4d; color: white; border: none; padding: 4px; border-radius: 1px; font-size: 12px; cursor: pointer;
} #panel { margin-top: 20px; display: flex; width: 80%;
} .controls { display: flex; gap: 20px; padding: 10px; } .control-button { padding: 12px 24px; background-color: var(--bg-colord); border: 1px solid var(--button-color); border-radius: 4px; font-family: monospace; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; font-size: 20px; cursor: pointer; transition: all 0.1s ease; } .control-button:hover { background-color: var(--bg-colorl); } .control-button:active { background-color: var(--bg-colorl); transform: scale(0.95); } @keyframes buttonPress { 0% { transform: scale(0.95); } 100% { transform: scale(0.95); } } .control-button.pressed { animation: buttonPress 0.1s linear infinite; background-color: #9ca3af; } #settings-container { position: absolute; top: 10px; right: 10px; background: #444; padding: 10px; border-radius: 8px; border: 2px solid #002266; display: none; z-index: 100;
} .settings-option { padding: 2px; margin-bottom: 20px; display: flex; align-items: center; justify-content: flex-start; } .settings-option label { margin-left: 10px; font-size: 14px; color: #fff; cursor: pointer;
} select, input[type="checkbox"] { margin-left: 10px;
} input[type="radio"] { appearance: radio; margin-right: 5px; width: 16px; height: 16px;
} label { display: flex; align-items: center; cursor: pointer; } input[type="color"] { margin-left: 10px; width: 40px; height: 30px; border: none; cursor: pointer; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
} input[type="color"]:hover { box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
} input[type="radio"]:hover, input[type="checkbox"]:hover { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.icon-button { background: var(--bg-colorm); border: none; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer;
} .icon-button svg { width: 24px; height: 24px;
}
.icon-button:hover { transform: scale(1.1); background-color: rgba(0, 0, 0, 0.1); } .icon-button:active { transform: scale(0.9);
}
#settings-toggle { position: absolute; top: 10px; left: 10px; background: var(--bg-colord); border: none; color: #000; cursor: pointer; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#settings-toggle:hover { background: var(--bg-colorl); color: #fff;
}
#pause-resume-btn { position: absolute; top: 10px; right: 10px; background: var(--bg-colord); border: none; fill: black; cursor: pointer; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
} #pause-resume-btn:hover { background: var(--bg-colorl); fill: white;
} #restart-btn { position: absolute; top: 10px; left: 10px; background: var(--bg-colord); border-radius: 50%; color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
#restart-btn:hover { transform: scale(1.1); background-color: rgba(0, 0, 0, 0.1); } #start-btn { position: absolute; top: 170px; left: 150px; padding: 10px; background: var(--bg-colord); border: none; color: #000; cursor: pointer; border-radius: 5px; width: 80px; height: 80px; box-sizing: border-box;
}
#start-btn:hover { background: var(--bg-colorm); color: #fff;
}
.letter-box { position: absolute; top: 10px; right: 70px; width: 50px; height: 50px; background: var(--bg-colorm); color: var(--text-color); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 260;
} #all-found-words { display: none; position: fixed; bottom: 10%; right: 10%; width: 200px; max-height: 300px; padding: 15px; background-color: var(--bg-colorm); border: 1px solid #ccc; border-radius: 5px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); overflow-y: auto; z-index: 140; } #last-found-word { color: var(--text-color); font-weight: bold;
}
#infoText { color: var(--text-color); font-size: 11px;
} .inventory { position: absolute; width: 50px; text-align: center;
}
#KajuKey-container { left: -2px; bottom: 410px;
} #prison3-overlay { left: -2px; bottom: 360px; z-index: 9;
}
#prison3-overlay-4 { left: -2px; bottom: 360px; z-index: 9;
}
#prison3-container { left: -2px; bottom: 360px; z-index: 10;
}
#rocket-container { right: -2px; bottom: 450px;
} #bomb-container { right: -2px; bottom: 250px;
} .bomb-icon, .rocket.icon { position: relative; width: 40px; height: 40px; margin: 5px; display: inline-block; text-align: center;
} .bomb-icon img, .rocket.icon img { width: 100%; height: 100%; object-fit: contain; } #prison3-indicator { position: absolute; top: -30px; left:5px; font-size: 14px; color: white; background-color: #444; padding: 5px 8px; border-radius: 5px; font-weight: bold; display: flex; align-items: center; justify-content: center;
} .bomb-icon .count, .rocket-icon .count, .lamp-icon .count, .prison3-icon .count { position: absolute; bottom: -15px; left:15px; background-color: rgba(0, 0, 0, 0.5); color: #fff; font-size: 10px; font-weight: bold; padding: 2px 4px; border-radius: 50%; width: 10px; height: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 1px rgba(0, 0, 0, 0.3); }
#language-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 250; color: white; font-size: 24px; text-align: center;
} #language-overlay button { margin: 10px; padding: 10px 20px; font-size: 20px;
} .size-selector { display: flex; justify-content: space-around; align-items: center; flex-wrap: nowrap; margin-top: 20px; padding: 5px;
} .size-option { display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; margin: 0 10px; }
.size-option input[type="radio"] { display: none; } .background-square { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-colorl); border: 2px solid #002266; border-radius: 8px; z-index: 1; } .size-background { position: relative; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; } .size-background img { position: relative; z-index: 2; } #lamp-container { position: absolute; left: -2px; top: 325px; text-align: center;
} .lamp-icon { position: relative; animation: idleLamp 2s infinite; } @keyframes idleLamp { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2px); }
} #lamp-icon:hover { transform: scale(1.1); transition: transform 0.2s;
} .lamp-icon::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 20px; height: 20px; background: rgba(200, 200, 200, 0.6); border-radius: 50%; transform: translateX(-50%) scale(0.8); animation: smoke 3s ease-in-out infinite;
} @keyframes smoke { 0% { opacity: 0.3; transform: translate(-50%, 0) scale(0.5); } 50% { opacity: 0.6; transform: translate(-50%, -10px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -20px) scale(1.2); }
} #genie-animation { position: absolute; transform: translate(-50%, -50%) scale(0); transition: transform 1.5s ease-in-out; z-index: 50;
} #lamp-icon img { transition: transform 0.5s ease-in-out;
} #harf-sec-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.8); color: white; padding: 20px; border-radius: 8px; z-index: 100; text-align: center; display: none;
} #harf-sec-modal input { margin: 10px; padding: 5px; font-size: 16px; text-align: center; width: 40px;
} @keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
} .confetti-piece { position: absolute; width: 10px; height: 20px; background-color: var(--confetti-color, #f00); animation: confetti 2s ease-in-out forwards;
} #task-indicator { position: absolute; bottom: 100px; left: 75px; background: rgba(0, 0, 0, 0.8); color: white; padding: 10px 15px; border-radius: 5px; font-size: 14px; z-index: 60;
} #task-indicator button { margin-top: 10px; background-color: #ff4d4d; color: white; border: none; padding: 8px; border-radius: 2px; cursor: pointer; font-size: 8px; z-index: 60;
} .icon-container { position: relative; bottom: 1px; left: -115px; display: inline-block; cursor: pointer;
} .tooltip { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.8); color: white; padding: 5px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease-in-out; } .tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 5px; border-style: solid; border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
} .icon-container:hover .tooltip { visibility: visible; opacity: 1;
} .icon { font-size: 22px; } #info-icon { position: absolute; top: 60px; right: 5px; width: 30px; height: 30px; cursor: pointer; z-index: 201;
} #info-panel { position: fixed; top: 10%; left: 50%; transform: translateX(-50%); width: 80%; height: 70%; background-color: #444; padding: 20px; border-radius: 8px; z-index: 200; color: white; text-align: left; overflow-y: auto; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
} #info-panel-close-btn-ust,
#info-panel-close-btn-alt { display: block; margin: 10px auto; background-color: #ff4d4d; border: none; color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 14px; text-align: center;
} #info-panel-close-btn:hover,
#info-panel-close-btn-bottom:hover { background-color: #d93636;
} #score { position: absolute; bottom: 218px; left: 150px; width: 180px; height: 30px; cursor: pointer; color: var(--text-color); font-size: 24px; z-index: 20;
} #gift-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index:100; } .gift-box { font-size: 50px; cursor: pointer; animation: bounce 1s infinite;
} @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); }
} #gift-countdown { position: absolute; bottom: 217px; left: 300px; display: flex; align-items: center; gap: 5px;
} .gift-icon { position: absolute; bottom: 1px; left: -35px; cursor: pointer; font-size: 24px; } .countdown-number { bottom: 230px; font-size: 14px; color: white; background-color: #444; padding: 5px 8px; border-radius: 5px; font-weight: bold; display: flex; align-items: center; justify-content: center;
} @keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-2px); } 40%, 80% { transform: translateX(2px); }
} .shake-animation { animation: shake 0.5s infinite;
} @keyframes sparkle { 0% { opacity: 0; transform: translate(0, 0) scale(0.5); } 50% { opacity: 1; transform: translate(-5px, -10px) scale(1); } 100% { opacity: 0; transform: translate(-10px, -20px) scale(0.5); }
} .sparkle { position: absolute; top: 13px; right: 22px; font-size: 12px; color: yellow; animation: sparkle 1s infinite; animation-delay: calc(var(--i) * 0.2s); z-index: 10;
} @keyframes reward-animation { 0% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.5); }
} .reward-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 50px; font-weight: bolder; color: var(--text-color); animation: reward-animation 2s ease-in-out forwards; z-index: 100; text-align: center;
} @keyframes score-fade { 0% { opacity: 1; transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.2); } 100% { opacity: 0; transform: translateY(-20px) scale(0.8); }
} .score-popup { position: absolute; pointer-events: none; z-index: 100;
} #floating-target-word { position: absolute; top: 150px; left: 50px; font-size: 18px; font-weight: bold; background: rgba(0, 0, 0, 0.8); color: #fff; padding: 5px 10px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); z-index: 50; animation: floatToRocket 3s forwards ease-in-out; } @keyframes floatToRocket { 0% { top: 10px; left: 10px; opacity: 1; } 100% { top: 390px; left: 40px; opacity: 0.5; }
}
#prison-selection-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.8); color: white; padding: 20px; border-radius: 10px; text-align: center; z-index: 1000;
}
.animate-scale { animation: scaleUp 1s ease-out;
} @keyframes scaleUp { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; }
}
#tip-bubble { 
    display: none;
    position: absolute;
    z-index: 1000;
}

#tip-content {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 150px;
    position: relative;
}

#tip-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    display: block;
    z-index: 1100;
}

#tip-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

#tip-description {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

#next-tip, #skip-tips {
    margin: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#next-tip {
    background: #28a745;
    color: #fff;
}

#skip-tips {
    background: #dc3545;
    color: #fff;
}

#dynamic-modal {
    width: 80%;
    max-width: 400px;
    background: #fff;
    color: #000;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 20px;
}

#modal-buttons button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#modal-buttons .confirm {
    background-color: #28a745;
    color: #fff;
}

#modal-buttons .cancel {
    background-color: #dc3545;
    color: #fff;
}

