/* W pliku style.css */
body, .game-container, .column, .task, .upgrade, .slot {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    padding: 10px;
    box-sizing: border-box;
}

.column {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    margin: 5px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2, h3 {
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.keyboard {
    cursor: pointer;
    text-align: center;
    margin: 20px 0;
    transition: transform 0.1s;
}

.keyboard img {
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.keyboard:active {
    transform: scale(0.98);
}

.balance {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
}

.task {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.task:hover {
    background-color: #e9ecef;
}

.task.active {
    background-color: #d4edda;
}

.task-progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.task-progress-bar {
    height: 100%;
    background-color: #28a745;
    width: 0%;
}

.collect-btn {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.machine {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.buy-machine-btn {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 5px;
}

.slot {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.slot.active {
    background-color: #d4edda;
}

.slot-progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.slot-progress-bar {
    height: 100%;
    background-color: #17a2b8;
    width: 0%;
}

.upgrade {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.buy-upgrade-btn {
    padding: 5px 10px;
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 5px;
}

.settings-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    max-width: 90%;
}

.modal-content button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    cursor: pointer;
}

#incomeDisplay {
    font-size: 0.9em;
    color: #28a745;
}

.payment-warning {
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .column {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
}
/* Nowe style dla przewijanych sekcji */
.scrollable {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

/* Dostosowanie szerokości paska przewijania */
.scrollable::-webkit-scrollbar {
    width: 8px;
}

.scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Zmniejszenie marginesów w kolumnach */
.column {
    min-width: 250px;
    max-width: 350px;
    padding: 10px;
    margin: 5px;
}

/* Kompaktowy wygląd zadań i ulepszeń */
.task, .upgrade {
    margin: 8px 0;
    padding: 8px;
}

.upgrade-section {
    margin-bottom: 15px;
}
/* Dodaj te style do istniejącego CSS */
#tasksList {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

#tasksList::-webkit-scrollbar {
    width: 8px;
}

#tasksList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#tasksList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#tasksList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.task {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 80px; /* Stała wysokość dla każdego zadania */
    box-sizing: border-box;
}
