/* Global Styles */
body {
  background-color: #e0c4e5;
  color: black;
  text-align: left;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  min-height: 100vh;
}

#header { 
  background-image: url("https://paperumbrellas.neocities.org/Paper%20Umbrellas%20(2).png"); 
  background-size: 80%;   
  background-position: center;
  background-repeat: no-repeat;
  padding: 10px;
  height: 250px; 
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  width: 80%;
  border-radius: 20px;
  border: 2px solid #211e5c;
  margin: 0px auto; /* add vertical spacing */
}

.navbar a {
  color: #211e5c;
  padding: 10px 10px;
  text-decoration: none;
  text-align: center;
  border-radius: 20px;
  transition: background 0.3s;
  margin: 0px; /* spacing between links */
}

.navbar a:hover {
  background-color: #bde8ce;
  border-radius: 0px;
}

/* Main Layout */
.layout {
  display: flex;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap; /* allows wrapping on small screens */
  max-width: 1000px;
  margin: 0 auto;
  min-height: 500px;
}

/* Sidebar */
.sidebar {
  width: 250px;
  border: 2px solid #211e5c;
  border-radius: 10px;
  background-color: white;
  margin: 10px;
  padding: 10px;
  flex-shrink: 0; /* prevents shrinking too much */
}

/* Main Content */
.main {
  width: 700px;
  border: 2px solid #211e5c;
  border-radius: 10px;
  background-color: white;
  margin: 10px;
  padding: 10px;
  flex: 1; /* fills remaining space */
  min-width: 250px; /* ensures it doesn’t shrink too much */
}

/* Footer */
footer {
  display: flex;
  color: white;
  background-color: #211e5c;
  justify-content: center;
  width: 80%;
  border-radius: 20px;
  border: 2px solid #4B0082;
  padding: 5px;
  margin: 0 auto 10px auto;
  flex-wrap: wrap; /* adapts on small screens */
}

/* Headings */
h2 {
  font-size: 16px;
  color: #4B0082;
  margin: 0.5em 0;
  border: 2px dotted #FF69B4;
  padding: 5px 10px;
  border-radius: 10px;
  display: inline-block;
}

h2 strong {
  color: #FF69B4;
}

/* Cute Gradient Text */
.cute-gradient {
  background: linear-gradient(90deg, #ff69b4, #32cd32);
  font-weight: normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.avatar-round {
  display: block;              /* allows centering */
  margin: 0 auto;              /* centers the image horizontally */
  width: 50%;                  /* 50% of the parent container */
  height: auto;                /* keeps aspect ratio */
  border: 3px dotted #FF69B4; /* pink dotted border */
  border-radius: 50%;          /* makes it perfectly round */
  box-sizing: border-box;      /* includes border in width calculation */
}


/* Responsive Media Queries */

/* Tablets */
@media (max-width: 900px) {
  .layout {
    flex-direction: column; /* stack sidebar + main */
    align-items: center;
  }

  .sidebar,
  .main {
    width: 90%; /* fit smaller screens */
  }

  .navbar {
    width: 90%;
  }

  footer {
    width: 90%;
  }
}

/* Mobile Phones */
@media (max-width: 600px) {
  #header {
    background-size: 60%;
    height: 180px;
  }

  h2 {
    font-size: 14px;
  }

  .navbar a {
    padding: 8px;
    font-size: 14px;
  }

  .sidebar,
  .main {
    width: 95%; /* full width minus margin */
    margin: 5px;
  }

  footer {
    width: 95%;
    padding: 10px;
  }
}
