/* General Styles */

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

body {
  font-family: "Exo 2", sans-serif;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Container Styles */

.container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 780px;
}

/* Seesaw Stats Styles */

.seesaw-stats {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d3d3d3;
}

.seesaw-stats .stats-box {
  padding: 12px 14px;
  background-color: #ebebeb;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  text-align: center;
}

.seesaw-stats .stats-box .stats-label {
  font-size: 16px;
  font-weight: bold;
  color: #666666;
  padding: 4px;
  border-bottom: 1px solid #d3d3d3;
}

.seesaw-stats .stats-box .value {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin-top: 8px;
}

/* Seesaw Simulation Styles */

.seesaw-simulation {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
  background-color: #ebebeb;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
}

.seesaw-simulation .base {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 150px;
  background-color: #8b4513;
  border-top: 1px solid #5a2d0c;
}

.seesaw-simulation .seesaw-fulcrum {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 50px solid #646262;
  z-index: 55;
}

.seesaw-simulation .seesaw-plank {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #222222;
  width: 400px;
  height: 20px;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%);
  transition: transform 1s ease;
  border-radius: 6px;
  z-index: 50;
}

#clickable {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#clickable .weight-object {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 400ms ease-out;
  top: -100px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  pointer-events: none;
  z-index: 60;
}

#clickable .weight-object.preview {
  opacity: 0.45;
  filter: saturate(0.9);
  transition: none;
}

/* Button Styles */
.btn {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d3d3d3;
}

.btn button {
  background-color: #9e9e9e;
  padding: 6px 10px;
  border: 1px solid #7d7d7d;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  color: #d3d3d3;
}

.btn button:hover {
  background-color: #7d7d7d;
  color: #ffffff;
}

/* Logs Styles */
.weight-logs {
  margin-top: 20px;
  height: 150px;
  overflow-y: auto;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 10px;
  background-color: #ebebeb;
}

.weight-logs .log {
  font-size: 16px;
  font-weight: bold;
  background-color: #d3d3d3;
  color: #333333;
  border-left: 4px solid #038d21;
  border-radius: 4px;
  padding: 6px;
  margin: 4px 0;
}

/* Mobile Responsive for 768px */
@media (max-width: 768px) {
  .seesaw-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  seesaw-stats .stats-box {
    width: 100%;
  }

  .btn {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
    text-align: initial;
  }

  .btn button {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
  }

  .seesaw-simulation .seesaw-plank {
    width: 320px;
  }
}

/* Mobile Responsive for 420px */
@media (max-width: 420px) {
  .seesaw-simulation .seesaw-plank {
    width: 280px;
  }

  .weight-logs {
    height: 140px;
  }
}
