body {
    user-select: none;
    padding-bottom: 200px;
}

.centered {
    text-align: center;
}

#rules-link {
    font-size: 14px;
    cursor: pointer;
    color: #0066cc;
    text-decoration: underline;
}

.rules-section {
    margin: 20px auto;
    padding: 20px;
    background-color: #2d2d44;
    border-radius: 8px;
    border: 2px solid #4CAF50;
    max-width: 800px;
    text-align: left;
}

.rules-section.hidden {
    display: none;
}

.rules-section h2 {
    margin-top: 0;
    color: #4CAF50;
}

.rules-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.currency {
    font-weight: 600;
    color: #d4af37;
}

.currency.positive {
    color: #81c784;
}

.currency.negative {
    color: #e57373;
}

.currency.profit {
    color: #66bb6a;
}

.currency.loss {
    color: #ef5350;
}

.highlight-number {
    font-weight: 600;
    color: #64b5f6;
}

.operations {
    display: flex;
    gap: 20px;
}

.operations > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.operations > div > div {
    display: flex;
    gap: 10px;
}

.update-container {
    display: flex;
    gap: 5px;
}

.update-container select {
    flex: 1;
}

.update-container button {
    flex: 1;
    white-space: nowrap;
}

.finish-container {
    text-align: center;
    margin-top: 20px;
}

#finish-transaction {
    width: 100%;
    background-color: #4CAF50;
    color: white;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.wiggle {
    animation: wiggle 0.5s ease-in-out;
}

.transactions {
    display: flex;
    gap: 20px;
}

.transaction-column {
    flex: 1;
}

.operation-item {
    background-color: #57527a;
    border-left: 4px solid #2196F3;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    min-height: 20px;
}

.operation-spacer {
    padding: 0;
    margin: 5px 0;
    visibility: hidden;
    box-sizing: border-box;
}

#bob-operations .operation-item {
    border-left-color: #FF9800;
}

#bank-operations .operation-item {
    border-left-color: #4CAF50;
}

.atm-column {
    flex: 2;
    position: relative;
    align-self: flex-start;
}

.atm-column img {
    width: 100%;
    height: auto;
    display: block;
}

.balance-overlay {
    position: absolute;
    top: 23%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.2em;
    font-weight: bold;
    color: green;
    text-shadow: 2px 2px 2px lightgreen;
}

#achievements {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 30px 40px 40px 40px;
    background: linear-gradient(to bottom, #4A2A0F 0%, #6B3410 15%, #8B4513 40%, #A0522D 100%);
    width: 100%;
    height: 180px;
    box-sizing: border-box;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
    width: 80px;
}

.achievement-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
    width: 80px;
    filter: grayscale(100%);
    opacity: 0.3;
    cursor: help;
}

.achievement-slot.unlocked {
    filter: grayscale(0%);
    opacity: 1;
    cursor: pointer;
}

.achievement, .achievement-slot {
    font-size: 48px;
}

.achievement-name {
    font-size: 11px;
    margin-top: 5px;
    white-space: nowrap;
}

.achievement-category {
    font-size: 8px;
    margin-top: 3px;
    font-weight: bold;
}

.category-innocent {
    color: #2196F3;
}

.category-hacker {
    color: #f44336;
}

.category-financier {
    color: #FFC107;
}