body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #d3dce5;
  color: #333;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 767px;
  width: 100%;
  background-color: #fff;
  min-height: 100vh;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

header {
  background-color: #2b2d42;
  color: white;
  padding: .75rem;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 50px;
  height: auto;
  border-radius: 8px;
}

.site-text h1 {
  margin: 0;
  font-size: 1.75rem;
}

.MENU-toggle {
  font-size: 1.75rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  color: white;
}

.dropdown-MENU {
  display: none;
  background-color: #3a3d5c;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 10px 0;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subMENU-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 0 10px;
}

.subMENU-row a {
  flex: 1 1 40%;
  margin: 5px;
  background: #4f5480;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.3s;
  font-weight: bold;
}

.subMENU-row a:hover {
  background: #6c72a5;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}

.app-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
}

.app-card:hover {
  transform: translateY(-5px);
}

.app-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.app-card h3 {
  margin: 0.3rem 0;
  font-size: 1.1rem;
  color: #222;
}

.app-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 20px;
  margin-bottom: 5px;
  background: #ff6600;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  border: 2px solid transparent;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  background: white;
  color: #ff6600;
  border: 2px solid #ff6600;
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

footer {
  text-align: center;
  padding: .75rem;
  background: #2b2d42;
  color: white;
  font-weight: bold;
}

@media (max-width: 500px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    width: 50px;
    height: auto;
    border-radius: 8px;
  }

  .site-text h1 {
    margin: 0;
    font-size: 1.25rem;
  }

  .MENU-toggle {
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    color: white;
  }
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background-color: #eee;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.tab-button.active {
  background-color: #007bff;
  color: white;
}