html{
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f2f2f2;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 30px;
}

.navbar h1 {
  margin: 0;
  font-size: 2rem;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  font-size: 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

/* Tambahan untuk nav-links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px; /* Jarak antar menu diperlebar */
  margin: 0;
  padding: 0;
}

.nav-links li a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;
  transition: color 0.3s ease;
}

/* Efek hover underline */
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: -4px;
  left: 0;
  background-color: #1abc9c;
  transition: width 0.3s ease-in-out;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: #1abc9c;
}

/* Section Styling */
section {
  padding: 40px 20px;
}

h2 {
  font-size: 40px;
  color: #34495e;
}

table, th, td {
  border: 1px solid #ccc;
  border-collapse: collapse;
  padding: 10px;
}

th {
  background-color: #ecf0f1;
}

.gambar-penuh {
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
}

button {
  padding: 8px 14px;
  background-color: #1abc9c;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #16a085;
}

input[type="text"] {
  padding: 8px;
  margin: 5px 0;
  width: 200px;
}

.kelompok ul {
  padding-left: 20px;
  font-size: 28px;
}

.kelompok h3 {
  font-size: 1.9rem;
}

.home {
  text-align: center;
  position: relative;
  height: 100vh; /* Full layar */
  background-image: url('UPGRIS_upacara.jpg'); /* Ganti dengan nama file gambar */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Warna gelap semi-transparan */
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.home h1 {
  font-size: 2.25rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}


.tentang {
  height: 100vh;
}

.tentang p {
  font-size: 28px;
  font-weight: bold;
}

.overlay h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.overlay h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.data {
  height: 100vh;
}

.perhitungan {
  height: 100vh;
}

.tabel-container {
  width: 100%;
  padding: 0 30px; /* jarak kiri-kanan */
  overflow-x: auto; /* agar bisa geser jika terlalu lebar */
  box-sizing: border-box;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table th, table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: center;
}
