@font-face {
    font-family: 'KrabbyPatty';
    src: url('/Krabby Patty.ttf') format('truetype');
}

body {
    font-family: 'KrabbyPatty', sans-serif;
    background-color: #fdfbf6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

#game-container {
    background-color: #fff;
    border: 5px solid #a41e21;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

h1 {
    color: #a41e21;
    font-size: 3em;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

#score-container {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

#score-container p {
    margin: 5px 0;
    font-size: 1.5em;
}

#score-container span {
    color: #d93a3e;
    font-weight: bold;
}

#clicker-container {
    margin-bottom: 20px;
}

#clicker-btn {
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

#clicker-btn:active {
    transform: scale(0.95);
}

#upgrades-container {
    border-top: 3px dashed #ddd;
    padding-top: 15px;
}

h2 {
    font-size: 2em;
    color: #a41e21;
    margin-top: 0;
}

.upgrade-btn {
    font-family: 'KrabbyPatty', sans-serif;
    background-color: #fff;
    border: 3px solid #d93a3e;
    color: #333;
    border-radius: 10px;
    padding: 10px 15px;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: left;
}

.upgrade-btn:hover:not(:disabled) {
    background-color: #fff5f5;
}

.upgrade-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.upgrade-btn:disabled {
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.upgrade-btn h3 {
    margin: 0 0 5px 0;
    color: #a41e21;
    font-size: 1.2em;
}

.upgrade-btn p {
    margin: 0;
    font-size: 1em;
}

#win-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(164, 30, 33, 0.9); /* KFC red with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#win-screen.hidden {
    display: none;
}

#win-message {
    background-color: #fff;
    border: 5px solid #fdfbf6;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #a41e21;
    transform: scale(0);
    animation: pop-in 0.5s forwards cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes pop-in {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

#win-message h2 {
    font-size: 3em;
    margin: 0 0 10px 0;
}

#win-message p {
    font-size: 1.5em;
    margin: 0;
}