/* Common Styles */
html,
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background-color: #222;
  color: #fff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  color: #ccc;
}

/* App Box */
.app-box {
  background-color: #444;
  color: #fff;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  display: inline-block;
  vertical-align: top;
  width: 300px;
  height: 200px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease-out;
}

.app-box:hover {
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.app-box img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 80%;
  z-index: 2;
}

.app-box h2 {
  font-size: 24px;
  margin-top: 10px;
  z-index: 2;
}

.app-grid {
  text-align: center;
}

.app-box a {
  background-color: #fff;
  color: #444;
  padding: 8px 16px;
  border-radius: 5px;
  display: block;
  margin: 10px auto 0;
  text-align: center;
  font-size: 16px;
  width: 80%;
  max-width: 200px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease-out;
}

.app-box a:hover {
  background-color: #ccc;
  color: #fff;
}

.app-box.disabled {
  background-color: #f5c6c6; /* Darker pink/red */
  border-color: #f1b0b7; /* Slightly darker pink/red */
  color: #721c24; /* Dark red */
  position: relative; /* Ensure proper stacking context */
}

.app-box.disabled .reason {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 95%;
  height: 100%;
  padding: 10px;
  background-color: #f5c6c6FF; /* Semi-transparent white */
  color: #333; /* Dark text color */
  z-index: 1;
  pointer-events: none; /* Allows hovering over link */
}

.app-box.disabled:hover .reason {
  display: block;
}

.app-box.disabled a {
  color: #721c24; /* Dark red */
  cursor: not-allowed;
}

.app-box.disabled a:hover {
  text-decoration: none;
}

/* Main Content */
main {
  max-width: 1200px;
  width: auto;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  background-color: #111;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.search-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

#search-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  width: 200px;
}