body,
header {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
}

.navbar {
    background-color: #2c3e50;
    overflow: hidden;
}

.navbar-item {
    float: left;
    display: block;
    color: #ecf0f1;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar-current-item {
    background-color: #3498db;
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 5px;
}

.navbar-item:hover {
    background-color: hwb(204 0% 15%);
    color: #fff;
    box-shadow: inset 0 0 1px black;
}

.navbar-current-item:hover {
    background-color: hwb(204 0% 45%);
    color: #fff;
    box-shadow: inset 0 0 1px black;
}

.square {
    background-color: #0099ff;
    position: relative;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px black;
    text-align: center;
}

.massLabel {
    position: absolute;
    top: -20px; /* Adjust the distance above the square */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: rgb(0, 0, 0);
}

.inputContainer {
    display: flex;
    justify-content: center;
    padding-top: 10%;
}

.statsContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    width: 500px;
    border: 2px solid black;
    margin: auto;
    padding-bottom: 10px;
}

.statsLeft, .statsRight {
    text-align: center;
    flex: 1;
}

.animationContainer {
    display: flex;
    align-items: flex-end;
    width: 500px;
    height: 350px;
    border: 2px solid black;
    margin: 0 auto;
    overflow: hidden;
    border-top: 0px;
}

#movingSquare {
    width: 100px;
    height: 100px;
    bottom: 0;
    left: calc(100% - 100px);
    transform: translateX(-50%);
}

#stillSquare {
    width: 50px;
    height: 50px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.displayContainer {
    display: flex;
    justify-content: center;
    border: 2px solid black;
    width: 500px;
    margin: auto;
}