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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7fc;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Typography */
h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-top: 30px;
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Alert */
#alert {
  display: none;
  background-color: #f44336;
  color: white;
  padding: 15px;
  margin-top: 20px;
  font-size: 18px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 800px;
  text-align: center;
}

/* Data Display */
#heartRate, #rawValue {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
}

#location {
  margin-top: 20px;
  display: block;
  text-align: left;
  font-size: 18px;
}

#mapsLink {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 10px;
  text-decoration: none;
  background-color: #007BFF;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

#mapsLink:hover {
  background-color: #0056b3;
}

/* Map */
#map {
  width: 100%;
  height: 400px;
  margin-top: 20px;
  display: none;
  border: 2px solid #ddd;
  border-radius: 5px;
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 30px auto;
  text-align: center;
}

/* Data Container */
.data-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.data-container p {
  font-size: 20px;
  color: #34495e;
  margin: 10px 0;
}

/* Button */
.button {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Link */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #1d6fa5;
}

/* Info Links */
.info-links {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

.info-links li {
  margin: 10px 0;
}

.info-links a {
  display: block;
  padding: 10px 15px;
  background-color: #2c3e50;
  color: white;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s;
}

.info-links a:hover {
  background-color: #1d2e40;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  .data-container p {
    font-size: 18px;
  }

  #alert {
    width: 100%;
  }
}
