* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Cambria, Georgia, serif;
  background: #121212;
  color: #fff;
}

/* Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 40px 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}

.a1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Buttons */
.open-btn {
  position: fixed;
  right: 10px;
  top: 20px;
  padding: 10px 16px;
  background: #0af;
  color: #121212;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Dialog */
dialog {
  border: none;
  border-radius: 12px;
  background: #1e1e1e;
  padding: 20px;
  color: white;
  max-width: 400px;
}

dialog::backdrop {
  background: rgba(0,0,0,0.6);
}

/* Cards */
.pmb {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.java, .bedrock {
  width: 220px;
  text-align: center;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 12px;
  transition: 0.3s;
}

.java:hover,
.bedrock:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,170,255,0.3);
}

/* Footer */
footer {
  background: #1e1e1e;
  text-align: center;
  padding: 15px;
  border-top: 1px solid #333;
}

/* Scroll Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 15px;
  padding: 12px;
  background: #3f3f3f;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: none;
}

 .java, .bedrock {
    width: 80%;
  }

/* Responsive */
@media (max-width: 768px) {
  .pmb {
    flex-direction: column;
    align-items: center;
  }
}