/* --- Collision Simulation Styles --- */
#sim-area {
  position: relative;
  margin: 40px auto 20px auto;
  background: #232526;
  border-radius: 18px;
  width: 1200px;
  height: 160px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.13);
  overflow: hidden;
  border: 2px solid #4e54c8;
  display: flex;
  align-items: flex-end;
}
#wall {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 100%;
  background: linear-gradient(120deg, #555 60%, #888 100%);
  border-radius: 8px 0 0 8px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
#blockA,
#blockB {
  position: absolute;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  user-select: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
  transition: background 0.2s;
}
#blockA {
  width: 100px;
  height: 100px;
  background: linear-gradient(120deg, #4e54c8 60%, #8f94fb 100%);
  border-radius: 16px;
  z-index: 3;
}
#blockB {
  width: 40px;
  height: 60px;
  background: linear-gradient(120deg, #43cea2 60%, #185a9d 100%);
  border-radius: 12px;
  z-index: 4;
}
.collision-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.collision-header h1 {
  color: #fff;
  font-size: 2.2rem;
  display: flex;
}
.collision-info {
  color: #e6e1e3;
  display: flex;

  margin-top: 18px;
  font-size: 1.1rem;
}
#sim-info {
  position: absolute;
  top: 10px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  width: 90%;
  justify-content: space-between;
  z-index: 5;
  align-self: center;
  margin-left: 20px;
  margin-right: 20px;
}
.object-info {
  margin: 0 20px;
  text-align: center;
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
}
.object-info h2 {
  font-size: 2.5rem;
}
@media (max-width: 800px) {
  #sim-area {
    width: 98vw;
    min-width: 260px;
    max-width: 99vw;
  }
}
/* Shared styles for all pages */
.centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  color: #fff;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #4e54c8;
  background: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: background 0.15s, color 0.15s;
}
.back-link:hover {
  background: #4e54c8;
  color: #fff;
}
* {
  margin: 0;
  padding: 0;

  overflow-y: hidden;
  overflow-x: hidden;
}

.container {
  background-color: #141314;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#upper-container {
  margin: 10px;
  padding: 20px;
  border-radius: 10px;
  background-color: #1c1b1d;
  display: flex;
  justify-content: space-around;
}
p,
h2 {
  color: #e6e1e3;
  font-size: 20px;
  font-weight: 700;
  padding: 0px 20px;
  font-family: "Open Sans", sans-serif;
}

h2 {
  font-size: 60px;
  padding: 30px;
}
#settings {
  gap: 10px;

  display: flex;
  flex-direction: row;
}
#settings div {
  text-align: center;
  background-color: #1c1b1d;
  margin: 5px;
  padding: 10px;
  border-radius: 20px;
}
#settings p {
  margin-bottom: 10px;
}
#sub-container {
  border-radius: 20px;
  display: flex;
  justify-content: center;
  background-color: #ffb521d3;
  height: 50vh;
  width: 75vh;
  transition: all 0.5s ease-in-out;
}
#sub-container:hover {
  background-color: #ffb521;
}
#ball {
  border-radius: 20px;
  position: absolute;
  height: 20px;
  width: 20px;
  background-color: #c75df7;
}

button {
  margin: 20px;

  background-color: #553f5d;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
button:disabled {
  background-color: #3e2d44;
  cursor: not-allowed;
}

button:hover {
  background-color: #3e2d44;
}

button:active {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: #492755;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 200px;
  height: 10px;
  cursor: pointer;
}

.slider::-webkit-slider-runnable-track {
  background: #e0e0e0;
  height: 4px;
  border-radius: 2px;
  border: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #c75df7;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.slider:focus::-webkit-slider-thumb,
.slider:hover::-webkit-slider-thumb {
  background-color: #a344d3;
  transform: scale(1.1);
}

.slider::-moz-range-track {
  background: #e0e0e0;
  height: 4px;
  border-radius: 2px;
  border: none;
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #c75df7;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.slider:focus::-moz-range-thumb,
.slider:hover::-moz-range-thumb {
  background-color: #a344d3;
  transform: scale(1.1);
}

.slider:focus {
  outline: none;
}
