body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e; 
    color: #ecf0f1; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.simulation-container {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.stats {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #bdc3c7; 
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.seesaw-wrapper {
    position: relative;
    height: 300px;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.plank {
    width: 600px;
    height: 12px;
    background: linear-gradient(to bottom, #ecf0f1, #bdc3c7); 
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    transform-origin: center center;
    z-index: 2;
}

.pivot {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 60px solid #e74c3c; 
    position: absolute;
    bottom: 0;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.5));
}

.object-box {
    position: absolute;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 12px; 
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5); 
    pointer-events: none;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-reset {
    margin-top: 120px; 
    padding: 12px 30px;
    background-color: transparent; 
    color: #e74c3c; 
    border: 2px solid #e74c3c; 
    border-radius: 30px; 
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-reset:hover {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4); 
}

/* CETVEL */
.ruler {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px;
    pointer-events: none; 
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 49px,
        rgba(255, 255, 255, 0.3) 50px 
    );
    z-index: 0; 
} 


.btn-pause {
    margin-top: 120px;
    margin-right: 15px; 
    padding: 12px 30px;
    background-color: transparent;
    color: #f1c40f; 
    border: 2px solid #f1c40f;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-pause:hover {
    background-color: #f1c40f;
    color: #1a1a2e; 
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.paused-mode .plank {
    opacity: 0.7;
    filter: grayscale(100%); 
}