/* Common Styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex; /* Center all items on the screen */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

/* Header Styles */
.header {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sidebar Styles */
.sidebar {
  display: none;
  color: #fff;
  padding: 20px;
  background-color: #ffffff;
}

.app-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
}

@media (min-width: 769px) {
  .app-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


.app {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.app img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

.app img:hover {
  box-shadow: 5px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
.footer {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header,
  .sidebar,
  .app-grid {
    grid-column: span 2;
  }

  .header {
    flex-direction: column;
  }

  .sidebar {
    display: block;
    grid-column: span 2;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  overflow: auto;
  display: none;
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #ffffff;
  width: 80%; /* Adjusted width for better visibility */
}

/* Button Styles */
button,
.close,
.close-modal {
  background: linear-gradient(to right, #3498db, #2c3e50);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

button:hover,
.close:hover,
.close-modal:hover {
  background: linear-gradient(to right, #2c3e50, #3498db);
  box-shadow: 0px 7px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

button:active,
.close:active,
.close-modal:active {
  transform: translateY(1px);
}
