body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #7b61ff, #33b1ff);
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

/* Top Bar Styling */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin-bottom: -10px;
  margin-top: 30px;
}

.profile-icon {
  width: 30px;
  color: #fff;
}

.points-balance {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffd700; /* Oro per rappresentare i punti */
}

.success-page {
    margin-top: -25px;
}

.success-page header h2 {
  color: white;
  font-size: 24px;
  text-align: center;
  margin-top: 20px;
}

.success-card {
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 320px;
  margin: 20px;
}

.success-card h3 {
  color: #4CAF50;
  font-size: 20px;
  margin-top: 10px;
}

.rewards-section {
  margin-top: 20px;
}

.rewards-section h4 {
  color: #333;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.reward-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
  text-align: center;
}

.reward-box img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.reward-box h5 {
  font-size: 16px;
  color: #333;
  margin: 5px 0;
  font-weight: bold;
}

.reward-box p {
  font-size: 14px;
  color: #666;
}

.btn.go-home {
  background: linear-gradient(to right, #7b61ff, #33b1ff);
  color: white;
  font-weight: bold;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 18px;
  margin-top: 55px;
}

.btn.go-home:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

a {
  text-decoration: none;
}

.reward-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  border: 2px solid transparent;
}

.reward-box:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.reward-box.active {
  background-color: #e6f7ff; /* Light blue background to indicate selection */
  border: 2px solid #7b61ff; /* Highlight border color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}