@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
  min-height: 100vh;
  margin: 0;
}

.container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 340px;
}

h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 600;
}

button {
  padding: 10px 18px;
  margin: 6px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #3498db;
  color: white;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #2980b9;
  transform: scale(1.05);
}

.zerar {
  background: #bdc3c7;
  color: #2c3e50;
}

.zerar:hover {
  background: #95a5a6;
}

model-viewer {
  height: 120px;
  width: 100%;
  margin-top: 15px;
}

.resultado {
  margin-top: 20px;
  font-size: 48px;
  font-weight: bold;
  color: #2ecc71;
}

.historico {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
  background: #f7f9fa;
  padding: 10px;
  border-radius: 6px;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rolling {
  animation: rotate 1.5s infinite linear;
}