@font-face {
  font-family: 'Minecraftia';
  src: url('fonts/Minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-image: url('./wp10978057.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #e7ffe7;
  font-family: 'Minecraftia', monospace;
}
main {
  width: min(760px, calc(100vw - 2rem));
  padding: 2rem 2.2rem;
  text-align: center;
  background: rgba(8, 30, 18, 0.92);
  border: 1px solid rgba(124, 255, 179, 0.2);
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}
h1,
h2 {
  margin: 0.75rem 0;
}
.divider {
  margin: 1rem auto;
  letter-spacing: 0.45em;
  color: #8ff1a4;
}
img {
  width: 256px;
  height: 256px;
  object-fit: cover;
  border-radius: 20%;
  margin-top: 1.4rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
a {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.9rem 1.6rem;
  color: #7cffb3;
  background: rgba(124, 255, 179, 0.12);
  border: 1px solid rgba(124, 255, 179, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
a:hover {
  transform: translateY(-2px);
  background: rgba(124, 255, 179, 0.2);
}

#welcome {
  position: absolute;
  border: 2px dotted #8ff1a4;
  width: fit-content;
  border-radius: 16px;
  user-select: none;
  cursor: grab;
  display: flex;
  flex-direction: column;
}

#welcomeheader {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-family: 'Minecraftia', monospace;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  margin: 0;
}

#welcomeclose {
  cursor: pointer;
  position: absolute;
  top: -17px;
  left: 5px;
  background: transparent;
  border: none;
  padding: 0;
}

#welcomeclose img {
  width: 28px;
  height: 28px;
  display: block;
}

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  background-color: rgba(55, 97, 53, 0.25);
  color: #fff;
  backdrop-filter: blur(10px);
  z-index: 1;
}

#welcomeopen {
  margin-left: 16px;
  cursor: pointer;
}

#timeElement {
  margin-right: 16px;
}

#desktopApps {
  position: absolute;
  top: 76px;
  left: 16px;
}

#desktopApps .app-icon {
  text-align: center;
  padding: 16px;
  filter: drop-shadow(0px 0px 8px rgb(0, 63, 21));
  width: fit-content;
}

#desktopApps .app-icon img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

#desktopApps .app-icon p {
  margin: 0;
  color: #fff;
  text-shadow: 0px 0px 4px rgb(0, 63, 21);
  font-size: 14px;
  font-family: 'Minecraftia', monospace;
}

#instacraft {
  position: absolute;
  top: 180px;
  left: 220px;
  border: 2px dotted #8ff1a4;
  width: fit-content;
  border-radius: 16px;
  user-select: none;
  cursor: grab;
  display: none;
  flex-direction: column;
}

#instacraftHeader {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-family: 'Minecraftia', monospace;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  margin: 0;
}

#instacraft .app-content {
  width: 560px;
  padding: 1rem;
  text-align: left;
  background: rgba(8, 30, 18, 0.92);
  border: 1px solid rgba(124, 255, 179, 0.2);
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  position: relative;
}

#instacraft .insta-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

#instacraft .insta-account {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

#instacraft .insta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #f58529, #dd2a7b, #8134af, #515bd4);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

#instacraft .insta-account span {
  font-weight: bold;
}

#instacraft .insta-post-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

#instacraft .app-body {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

#instacraftSidebar {
  width: 150px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#instacraftSidebar .sidebar-entry {
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(124, 255, 179, 0.08);
  cursor: pointer;
  transition: background 0.2s ease;
}

#instacraftSidebar .sidebar-entry:hover,
#instacraftSidebar .sidebar-entry.active {
  background: rgba(255, 255, 255, 0.15);
}

#instacraftSidebar .sidebar-entry .entry-title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

#instacraftSidebar .sidebar-entry .entry-date {
  font-size: 0.72rem;
  opacity: 0.8;
}

#instacraftContent {
  flex: 1;
  min-height: 280px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 18px;
  overflow: auto;
}

#instacraftContent h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

#instacraftContent p {
  line-height: 1.6;
}

#instacraftContent .post-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

#instacraftContent .post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
}

#instacraftContent .post-header .post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #f58529, #dd2a7b, #8134af, #515bd4);
}

#instacraftContent .post-image {
  width: 100%;
  height: auto;
  display: block;
}

#instacraftContent .post-caption {
  padding: 0.75rem 0.85rem 1rem;
}

#instacraftContent .post-caption strong {
  display: block;
  margin-bottom: 0.4rem;
}

#instacraftClose {
  cursor: pointer;
  position: absolute;
  top: -17px;
  left: 5px;
  background: transparent;
  border: none;
  padding: 0;
}

#instacraftClose img {
  width: 28px;
  height: 28px;
  display: block;
}
