/* style.css */

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  padding: 70px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.department-navigator-section {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.department-navigator-section h1 {
  margin-bottom: 10px;
  color: #333;
  font-size: 2em;
}

.building-buttons {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.building-btn {
  background-color: #007acc;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.building-btn:hover {
  background-color: #005b99;
}

#search-box {
  padding: 10px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.department-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

.department-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: left;
}

.department-card:hover {
  transform: scale(1.02);
}

.department-title {
  font-size: 1.2em;
  color: #004080;
  margin-bottom: 5px;
}

.department-location {
  font-size: 0.9em;
  color: #666;
}

.room-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.room {
  background-color: #4CAF50;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.room:hover {
  background-color: #45a049;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.close:hover {
  color: #ff0000;
}

#popup-image,
#building-popup-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 8px;
  margin-top: 10px;
  object-fit: cover;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #28a745;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.map-link:hover {
  background-color: #218838;
}
