/* General Body Styles */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: url('TULT.jpg') no-repeat center center fixed; /* Background Image */
  background-size: cover;
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

/* Overlay to darken background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay */
  z-index: -1;
}

/* Header Styling */
header {
  background: linear-gradient(90deg, #e60012, #bb1717, #252722);
  color: white;
  padding: 30px 0;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 3rem;
  margin: 0;
  font-family: 'Arial', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Form Container Styling */
.form-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px; /* Max width of the form */
  text-align: center;
  margin-top: 30px;
}

/* Input Fields Styling */
input, select {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, select:focus {
  border-color: #e60012; /* Red border color on focus */
  outline: none;
}

/* Button Styling */
button {
  background-color: #e60012; /* Telkom Indonesia Red */
  color: white;
  font-size: 1.2rem;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  background-color: #a70010;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Status Text Styling */
#status {
  font-weight: bold;
  margin-top: 20px;
  color: #ffffff;
  text-align: center;
}

#status1 {
  font-weight: bold;
  margin-top: 20px;
  color: #000000;
  text-align: center;
}

/* Footer Styling */
footer {
  background-color: #6c6e6b;
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  position: fixed;
  bottom: 0;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* History Page Styling */
.history-container {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  margin: auto;
  text-align: center;
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  background-color: #e60012;
  border-radius: 5px;
  margin: 10px 0;
  padding: 10px;
  margin-bottom: 10px;
}

.history-item strong {
  color: silver;
}

footer {
  background-color: #252722;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Button Styling for Disabled State */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tombol-tombol yang aktif */
button {
  opacity: 1;
  cursor: pointer;
}

.history-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.history-button {
  opacity: 1;
  cursor: pointer;
}

/* Result Box for Session Summary (Distance and Calories) */
#results {
  display: none;
  background-color: rgba(0, 0, 0, 0.7); /* Black background with 70% transparency */
  color: white; /* White text for better readability */
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 1.1rem; /* Font size increased for better readability */
}

#results p {
  margin: 5px 0;
}

#results strong {
  color: #e60012; /* Red color for strong text (like Distance and Calories Burned) */
}