body{
    min-height: 100vh;
    background-color: #15212d;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

#container{
    width: 90%;
    max-width: 700px;
    background-color: #ffffff;
    margin: 40px 0;
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

#info-boxes{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-box{
    flex: 1;
    min-width: 0;
    height: 80px;
    background-color: #e9e9e9;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e3e0e0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-box h5{
    font-size: clamp(8px, 1.5vw, 12px);
    color: #a19e9e;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.info-box p{
    font-size: clamp(8px, 1.5vw, 13px);
    color: #4b4949;
    font-weight: bold;
    margin: 0;
}

#seesaw-container{
    width: 100%;
    height: 400px;
    margin: 30px 0;
    border-radius: 10px;
    background-color: #e3e0e0;
    position: relative;
}

#seesaw-container::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #8d6e63;
    border-radius: 0 0 10px 10px;
}

#seesaw-plank{
    width: 400px;
    height: 10px;
    border-radius: 30px;
    background-color: #e7b16c;
    
    position: absolute;
    left: 50%;
    top: calc(50% - 30px);
    transform: translateX(-50%);
    transform-origin: center center 0;
    transition: transform 0.5s ease-out;
}

#seesaw-pivot{
    width: 0;
    height: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid #15212d;
}

#buttons{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 30px;
    gap: 20px;
}

.button{
    width: 130px;
    height: 50px;
    border-radius: 10px;
    background-color: #15212d;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    color: #ffffff;
    font-size: clamp(10px, 1.5vw, 12px);
}

.button:hover{
    background-color: #15212dd3;
    transform: scale(1.03);
    transition: 0.2s ease;
}

#event-log-container{
    width: 100%;
    height: 150px;
    background-color: #e9e9e9;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e3e0e0;

    overflow-y: auto;
}

#event-log-container::-webkit-scrollbar{
    width: 8px;
}

#event-log-container::-webkit-scrollbar-thumb{
    background-color: #b5b5b5;
    border-radius: 4px;
}

#event-log-container::-webkit-scrollbar-thumb:hover{
    background-color: #888;
}

.log-entry{
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 8px;
    font-size: clamp(8px, 1.5vw, 12px);
    color: #333;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.weight-box{
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preview-box{
    opacity: 0.5;
    border: 2px dashed rgba(0, 0, 0, 0.2);
}

.weight-box,
.preview-box {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.weight-label{
    color: #ffffff;
    font-weight: bold;
    font-size: clamp(8px, 1.5vw, 10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.preview-label{
    opacity: 0.6;
}

@keyframes fall {
    0% {
        transform: translateY(-200px);
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.falling{
    animation: fall 0.6s ease-out forwards;
}