html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("jhu.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: white;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  background-color: rgba(0, 0, 0, 0.6); 
  padding: 30px;
  border-radius: 12px;
  max-width: 1200px;
  text-align: center;
}

.home-page .card a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: black;
  width: 100%;
  height: 100%;
  box-shadow: none;
  border: none;
}

.single-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; 
  margin-top: 30px;
}

.single-column a:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.energy-single-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; 
  margin-top: 30px;
}

.energy-single-column a {
  display: block;
  background-color: #f8f9fa;
  color: black;
  padding: 6px 12px;
  margin: 2;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  width: 200px; 
  text-align: center;
  transition: background-color 0.3s, transform 0.3s;
}

.energy-page h1 {
  margin-top: 10px;
  margin-bottom: 10px; 
  font-size: 24px;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  background-color: #f8f9fa;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  width: 300px;
  text-align: center;
  text-decoration: none;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card h2 {
  margin: 0;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
}

.card a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  text-decoration: none;
  color: black;
}

.back-link {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: background-color 0.3s;
  z-index: 10;
}

.back-link:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

a {
  display: inline-block;
  background-color: #f8f9fa;
  color: black;
  padding: 12px 20px;
  margin: 4px 0; 
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  width: 250px; 
  text-align: center; 
}

a:hover {
  background-color: #e0e0e0;
  color: black;
  transform: scale(1.05);
}
