body {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 100vh;
    margin: 0; /* remove default margin */
    background-color: ghostwhite; 
    overflow: hidden; /* prevent scrollbars */
}

#area_of_scene {
    position: relative; /* for absolute children */
    width: 100%;
    max-width: 800px;
    height: 600px;
    border:1px solid darkolivegreen;
    background-color: whitesmoke;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

#ui {
    position: absolute; 
    top: 20px;
    left: 20px;
    background: rgba(red, green, blue, alpha);
    padding: 10px; /* spacing inside */
    border-radius: 8pt; /* rounded corners*/
    border: 1px solid #ccc;
    z-index: 10;
}

#seesaw-case{
    position: absolute;
    bottom: 150px;
    left: 50%; /* center cheat*/
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    z-index: 10; /* clicking issue */
    cursor: crosshair; /*aiming*/
}

#seesaw{
    pointer-events: none; /* playing improved (cant let the click seesaw) */
    width: 100%;
    height:10px;
    background-color: #2ce;
    position: absolute;
    bottom: 40px;
    left: 0;
    transition: transform 0.5s cubic-bezier(0.25,1,0.5,1); /*smoother*/
    transform-origin: 50% 100%; /*pivot point*/
    cursor: pointer;
    border-radius: 5px;
    z-index: 2;
}

#pivot{
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid #7f7f7f;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    
}

#ghost-object{
    position: absolute;
    top: 0;
    bottom: 10px;
    width: 34px;
    height: 34px;
    background-color: cadetblue;
    border-radius: 50%;

    opacity: 0.4;
    pointer-events: none; /* click issue solved */

    display: none;
    justify-content: center;
    align-items: center;
    color: azure;
    font-size: 12px;
    font-weight: bold;
    transform: translateX(-50%);
    z-index: 5;
    border: 2px darksalmon;
}

.weight-object{
    position: absolute;
    /*bottom: 10px;*/
    width: 30px;
    height: 30px;
    background-color: red;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    line-height: 30px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transform: translateX(-50%);
    pointer-events: none; /* through to shadow */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#log-panel {
    position: absolute;
    top: 20px;
    right: 40px; /*right corner*/
    width: 200px;
    height: 225px; 
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 20;
    font-family: monospace; 
}

#log-panel h3 {
    margin: 0;
    padding: 10px;
    background-color: #f1f1f1;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    color: #333;
}

#log-list {
    flex: 1;
    overflow-y: auto; /* scrolling*/
    padding: 10px;
}

.log-entry {
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    animation: fadeIn 0.5s; /*callin' */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

