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

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #00202e 0%, #003f5c 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.subtitle {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.section-title {
  color: white;
  font-size: 1.2rem;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.demo-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: block;
}

.info-panel {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-panel code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
}

.info-panel pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

.info-panel pre code {
  background: none;
  padding: 0;
}

.attributes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.attr-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #ffd380;
}

/* Navigation styles */
.nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-link {
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
	  background: rgba(0, 63, 92, 0.3);
	  color: white;
	  border-color: rgba(0, 63, 92, 0.5);
}

/* Button styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
	  background: #ff6361;
  color: white;
}

.btn-primary:hover {
	  background: #ff8531;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Demo grid */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Physics box styles */
.physics-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 20px;
  transform-origin: top left;
  transition: box-shadow 0.3s ease;
}

.physics-box.moving {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 12px 35px rgba(0, 0, 0, 0.2);
}

.physics-box::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0px;
  transform: translate(-50%, -50%);
	  width: 12px;
	  height: 12px;
	  background-color: #ffd380;
	  border-radius: 50%;
	  opacity: 0;
	  transition: opacity 0.3s ease;
	  box-shadow: 0 0 8px rgba(255, 211, 128, 0.6);
}

.physics-box.moving::after {
  opacity: 1;
}

.physics-box-red { background: linear-gradient(135deg, #ff6361 0%, #ff8531 100%); }
.physics-box-blue { background: linear-gradient(135deg, #ff6361 0%, #2c4875 100%); }
.physics-box-green { background: linear-gradient(135deg, #ffd380 0%, #003f5c 100%); }
.physics-box-yellow { background: linear-gradient(135deg, #ffa600 0%, #ffd380 100%); }
.physics-box-purple { background: linear-gradient(135deg, #8a508f 0%, #bc5090 100%); }

/* Physics area */
.physics-area {
  position: relative;
  height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.gravity-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Controls panel */
.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.controls-fixed {
  position: fixed;
  top: 84px;
  right: 20px;
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(10, 10, 25, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px 16px 16px;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.controls-title {
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Physics controls */
.physics-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.physics-controls label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.physics-controls input[type="range"] {
  width: 100px;
	  accent-color: #ff6361;
}

.physics-controls span {
	  color: #ff8531;
  font-weight: 600;
  min-width: 40px;
}