:root {
  --blue1: #dfeef5;
  --blue2: #bcd9e5;
  --blue3: #a6c8d9;
  --silver: #e8edf0;
  --shadow: rgba(173,200,217,0.6);
}

body {
  margin: 0;
  background: linear-gradient(var(--blue1), var(--blue2));
  font-family: 'Open Sans', sans-serif;
  color: #444;
  overflow-x: hidden; /* allow vertical scroll, prevent horizontal scroll */
  cursor: url('https://ani.cursors-4u.net/nature/nat-11/nat1046.cur'), auto;
}

/* clouds behind everything */
.clouds {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}
.cloud {
  position: absolute;
  width: 400px;
  height: 200px;
  background: radial-gradient(circle at 30% 40%, #fff 40%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 60s linear infinite;
}
.cloud:nth-child(2) { top: 20%; left: 60%; animation-delay: 10s; }
.cloud:nth-child(3) { top: 60%; left: 10%; animation-delay: 30s; }
@keyframes float {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(120%); }
}

/* main layout box */
.layout {
  position: relative;
  z-index: 5;
  width: 1000px;
  max-width: 95vw;
  margin: 40px auto;
  background: var(--silver);
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(173,200,217,0.6);
  padding: 20px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--blue2), var(--blue3));
  border-radius: 25px;
  box-shadow: 0 3px 6px rgba(173,200,217,0.6);
  padding: 8px 20px;
  margin-bottom: 15px;
}

/* title pill */
.title-pill {
  background: var(--silver);
  padding: 6px 18px;
  border-radius: 20px;
  font-family: 'Pacifico', cursive;
  color: #6a8292;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* nav buttons */
.topbar nav button {
  background: var(--silver);
  border: none;
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: bold;
  color: #637b89;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.topbar nav button:hover,
.topbar nav button[aria-selected="true"] {
  background: var(--blue1);
  color: #3a4d59;
  box-shadow: 0 3px 6px rgba(173,200,217,0.6);
  transform: translateY(-2px);
}

/* content area */
.content-wrapper {
  display: flex;
  gap: 15px;
  flex-grow: 1;
  min-height: 360px;
}

/* avatar card */
.avatar-box {
  flex: 0 0 250px;
  background: linear-gradient(145deg, var(--blue1), var(--silver));
  border-radius: 14px;
  box-shadow: 0 3px 6px rgba(173,200,217,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  text-align: center;
}
.avatar-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.avatar-box h2 {
  margin-top: 10px;
  font-family: 'Pacifico', cursive;
  color: #55727f;
}

/* main content */
.content-box {
  flex: 1;
  background: linear-gradient(145deg, var(--blue1), var(--silver));
  border-radius: 14px;
  box-shadow: 0 3px 6px rgba(173,200,217,0.6);
  padding: 20px;
  overflow-y: auto;
  height: 360px;
}

/* tab content */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tab-content.active {
  display: block;
  opacity: 1;
}

/* Hide sections with hidden attribute (for accessibility) */
.tab-content[hidden] {
  display: none !important;
  opacity: 0 !important;
}

/* Responsive */
@media (max-width: 800px) {
  .content-wrapper {
    flex-direction: column;
  }
  .avatar-box {
    flex: none;
    width: 100%;
  }
  .content-box {
    height: auto;
    max-height: 400px;
  }
  .layout {
    width: 95vw;
    margin: 20px auto;
  }
  .topbar {
    flex-direction: column;
    gap: 10px;
  }
  .topbar nav button {
    margin-left: 0;
    margin-right: 10px;
  }
}