/* GLOBAL SCALING: Set base font size for 1rem = 14px (usually 16px) */
html { 
  font-size: 87.5%; /* This makes 1rem equal to 14px if browser default is 16px */
}

/* Base styles for main pages */
body, html { 
  margin: 0; 
  padding: 0; 
  height: 100%; 
  background-color: #fff; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Header Overlay Div */
#header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 36px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

#header-overlay a {
  text-decoration: none;
}

.header-name {
  font-size: 2.2rem;
  color: #3d474d;
  font-weight: bold;
  margin: 0;
}

/* Avatar styles */
.header-avatar-container {
  width: 70px;
  height: 70px;
  border: 2px solid #89949B;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default; 
}

.header-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Core SVG styles for background cloud */
.me404-bg .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#E8EBED;}

/* Custom content styles inside the cloud */
.content-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* MODIFIED: Changed from 80% to 100% */
  max-width: 540px;
  text-align: center;
  z-index: 10;
  padding: 0 15px; /* Added some horizontal padding for safety */
  box-sizing: border-box; /* Ensure padding is included in the width */
}

.profile-name { 
  font-size: 2rem;
  color: #3d474d;
  margin-bottom: 10px;
}

.profile-quote { 
  color: #89949B;
  margin-bottom: 27px;
  min-height: 1.2em;
  transition: opacity 0.5s;
}

/* Flexbox for adaptive width buttons */
.nav-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto 27px;
}

.nav-btn {
  padding: 4px 12px;
  text-align: center;
  background: #E8EBED;
  border: 2px solid #89949B;
  border-radius: 4px;
  color: #5a666d;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-btn:hover {
  background: #89949B;
  color: white;
}

/* Styles for the Security Statement page */
.security-page-wrapper .profile-name {
  font-size: 1.6rem;
}
.security-page-wrapper .profile-quote {
  font-size: 0.8rem;
  margin-bottom: 15px;
}

/* Container for statement text with scrolling */
.statement-content {
  max-height: 230px;
  overflow-y: auto;
  text-align: left;
  padding: 0 10px;
}
.statement-content h3 { color: #3d474d; margin-top: 13px; font-size: 1rem; }
.statement-content p { color: #5a666d; line-height: 1.4; margin-bottom: 13px; font-size: 0.8rem; }
.statement-content a { color: #5a666d; text-decoration: underline; }

/* Footer styles */
.footer {
  position: absolute;
  bottom: 18px;
  right: 18px;
  text-align: right;
  color: #89949B;
  font-size: 0.8rem;
  width: auto;
  z-index: 10;
}

.footer a { color: #89949B; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
