.mt-4 {
  font-weight: 750;
}

/* General Styling */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #f0f4f7, #ffffff);
  color: #333;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
h6 {
  font-size: 0.2rem;
  font-weight: 200;
  color: rgba(0, 0, 0, 0.75);
  opacity: 0.7;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

/* Flex Container */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
}

/* Camera Section */
.camera-section {
  flex: 1;
  max-width: 640px;
  margin-right: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
  padding: 10px;
  position: relative;
}

#canvas {
  border: none;
  border-radius: 8px;
  width: 100%;
}

.heatmap-container {
  margin-top: 20px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Info Section */
.info-section {
  flex: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  background-color: #ffffff;
}

.info-section h3 {
  color: #555;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-section div {
  margin-bottom: 15px;
}

/* Buttons */
button {
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  background-color: #007bff;
  color: #fff;
}

button:hover {
  background-color: #0056b3;
  color: #fff;
  transform: scale(1.05);
}

/* Progress Bar */
progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
  margin-top: 5px;
}

progress::-webkit-progress-bar {
  background-color: #e0e0e0;
}

progress::-webkit-progress-value {
  background-color: #007bff;
}

progress::-moz-progress-bar {
  background-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }

  .camera-section {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* Add these styles */
.stats-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item {
  margin-bottom: 15px;
}

.progress {
  height: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #007bff;
  transition: width 0.3s ease;
}

.github-info {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.github-link {
  display: inline-block;
  padding: 8px 15px;
  background: #24292e;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 10px;
}

.github-link:hover {
  background: #2f363d;
  color: white;
  text-decoration: none;
}

.commit-count {
  font-size: 0.9rem;
  color: #666;
}

#analysisCanvas {
  position: fixed; /* Makes it cover the entire viewport */
  top: -100%; /* Start hidden above the screen */
  left: 0;
  width: 100%;
  height: 100%; /* Fullscreen height */
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 9999; /* Ensure it appears above all other elements */
  overflow-y: auto; /* Allows scrolling if content overflows */
  transition: top 0.5s ease; /* Smooth sliding effect */
}

#analysisCanvas.visible-canvas {
  top: 0; /* Slides down to cover the screen */
}

#analysisCanvas h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
  color: #333;
}

.tutorial-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  max-width: 600px;
  text-align: center;
}

.tutorial-popup.show {
  display: block;
  opacity: 1;
}

.tutorial-content {
  position: relative;
}

.tutorial-steps {
  margin: 20px 0;
  text-align: left;
}

.tutorial-steps p {
  margin: 10px 0;
  color: #666;
}

/* Add these new styles */
.tutorial-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tutorial-overlay.show {
  display: block;
  opacity: 1;
}

.camera-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.camera-placeholder img {
  max-width: 400px;
  margin-bottom: 20px;
}

.camera-placeholder p {
  color: #6c757d;
  font-size: 1.1em;
  text-align: center;
}
#center_snaps {
  text-align: center;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  padding: 20px;
  text-align: center;
}

.piechart-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.piechart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: conic-gradient(
    orange 0deg 360deg /* Initial fallback color */
  );
  transition: background-image 0.5s ease; /* Smooth transition */
}

.piechart-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  pointer-events: none; /* Allows clicks to pass through to the pie chart */
}

#mainContent {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers horizontally */
  justify-content: center; /* Centers vertically if height is defined */
  text-align: center;
}
