@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-bright-orange: #f43a09;
  --color-bright-orange-hover: #d23207;
  --color-grandpa-orange: #ffb766;
  --color-grey-blue-green: #c2edda;
  --color-live-green: #68d388;

  --color-text-dark: #2d2e46;
  --color-text-light: #5c5c6d;
  --color-bg: #ffffff;
  --color-bg-alt: #f1ebe7;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  font-family: Poppins, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--color-bright-orange);
}
a:hover {
  color: var(--color-bright-orange-hover);
  text-decoration: underline;
}

/* Navigation bar styling */
.topnav {
  background-color: var(--color-bg);
  overflow: hidden;
  margin-top: 5px;
  left: 0;
  width: 100%;
  height: auto;
}

/* Style the links inside navigation */
.topnav a {
  float: left;
  color: var(--color-text-dark);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: larger;
}

/* Changes the color of links on hover */
.topnav a:hover {
  color: var(--color-text-light);
}

/* Active color for the links */
.topnav a.active {
  color: var(--color-bright-orange);
}

/* Profile picture styling */
.profile-pic {
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 5px 10px;
}

/* Flexbox container */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px; /* Account for fixed navigation */
  min-height: calc(100vh - 60px); /* Full height minus nav */
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

/* Flex items styling */
.flex-item {
  padding: 20px;
  box-sizing: border-box;
}

/* Main content area - takes up most space */
.flex-item:first-child {
  flex: 2;
  min-width: 300px;
  order: 2; /* Middle position */
}

/* Left sidebar */
.flex-item:nth-child(2) {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  order: 1; /* Left position */
}

/* Right sidebar */
.flex-item:nth-child(3) {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  order: 3; /* Right position */
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
  .flex-container {
    flex-direction: column;
    margin-top: 60px;
  }

  .flex-item:first-child,
  .flex-item:nth-child(2),
  .flex-item:nth-child(3) {
    order: unset;
    flex: none;
    min-width: unset;
    max-width: unset;
  }
}