
body{
    background-color: rgb(84, 84, 84);
    background-size: cover;
}
div{
    border-color: black;
    border-radius: 10px;
    width: 50%;
    border: 25px;
    border: solid;
    margin-left: auto;
    margin-right: auto;
    background-color: grey;
}
h1{
    text-align: center;
}
.left{
    border-color: black;
    border-radius: 10px;
    width: 75%;
    border: 25px;
    border: solid;
    margin-bottom: 10px;
    background-color: rgb(98, 98, 98);
    border-style: dashed;
}
.a{
    font-size: 25px;
    text-align: center;
    margin: 10px;
}
p{
    text-align: center;
}
h2{
    text-align: center;
}
#clicker-game {
    padding: 20px;
    position: relative;
    overflow: hidden;
}
#clicker-game h2 {
    position: relative;
    z-index: 10;
}
#clicker-game * {
    border: none !important;
}
.bouncing-box {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: auto;
    transition: transform 0.1s;
}
.bouncing-box:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.bouncing-box:active {
    transform: scale(0.95);
}
.box-glow {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    transition: box-shadow 0.1s, filter 0.1s;
    border: none;
    border-radius: 4px;
}
#game-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 10;
}
#main-game-area {
    flex: 0 1 250px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}
#score-display {
    text-align: center;
    width: 200px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(33, 150, 243, 0.15));
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}
#score-display h3 {
    font-size: 18px;
    margin: 5px 0 8px 0;
    color: #2c3e50;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
#score-display h3.score-pop {
    transform: scale(1.1);
    color: #4CAF50;
}
#stats-panel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.stat-item {
    font-size: 11px;
    margin: 2px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}
.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.stat-item span {
    font-weight: bold;
    color: #2c3e50;
}
#click-button {
    font-size: 16px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    width: 100%;
    max-width: 200px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5), 0 0 30px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}
#click-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
#click-button:active::before {
    width: 300px;
    height: 300px;
}
#click-button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.7), 0 0 40px rgba(76, 175, 80, 0.4);
}
#click-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 15px rgba(76, 175, 80, 0.4);
}
#points-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}
.points-popup {
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: floatUp 1s ease-out forwards;
    white-space: nowrap;
    background-color: #000000;
}
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) translateX(0) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) translateX(0) scale(1);
    }
}
#upgrades-section {
    flex: 1 1 350px;
    min-width: 250px;
    max-width: 600px;
    position: relative;
    z-index: 10;
}
#upgrades-section h3 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 18px;
    color: #2196F3;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    font-weight: bold;
    letter-spacing: 0.5px;
}
#upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
}
.upgrade-btn {
    padding: 12px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}
.upgrade-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.upgrade-btn:hover:not(:disabled)::before {
    left: 100%;
}
.upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.6);
}
.upgrade-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}
.upgrade-btn:disabled {
    background: linear-gradient(135deg, #666, #555);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}
.upgrade-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}
.upgrade-desc {
    font-size: 10px;
    opacity: 0.95;
    margin: 2px 0;
}
.upgrade-cost {
    font-size: 11px;
    font-weight: bold;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.upgrade-cost span {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
#ai-mouse {
    position: absolute;
    background: linear-gradient(135deg, #440000, #000000);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1000;
    border: 2px solid #fff;
}
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 10;
}
.toggle-switch input[type="checkbox"] {
    display: none;
}
.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    transition: background-color 0.3s;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #4CAF50;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}
.toggle-label {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}