* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 800px;
    width: 100%;
}

.data-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.data-box {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.data-label {
    color: #999;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.data-value {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.content-area {
    background-color: #f5f5f5;
    border-radius: 8px;
    min-height: 400px;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.seesaw-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seesaw-plank {
    width: 400px;
    height: 20px;
    background-color: #8B4513;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.5s ease-out;
}

.placed-weight {
    position: absolute;
    bottom: 100%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: drop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes drop {
    from {
        transform: translate(-50%, -400px);
    }

    to {
        transform: translate(-50%, 0);
    }
}

.pivot-point {
    position: absolute;
    left: 50%;
    top: calc(50% + 10px);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid #1a1a2e;
    z-index: 1;
}

@media (max-width: 768px) {
    .data-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .data-display {
        grid-template-columns: 1fr;
    }
}

.weight-indicator {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -100%);
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 100;
}

.weight-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #89CFF0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.weight-line {
    width: 0;
    height: 50px;
    border-left: 2px dashed #9ca3af;
    position: relative;
    z-index: 1;
}

.actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.reset-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reset-btn:hover {
    background-color: #2980b9;
}

.reset-btn:active {
    transform: scale(0.98);
}