body, html {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #222;
}

.content {
  margin-left: 75px;
  margin-top: 50px;
  padding: 1rem;
}

.header-img-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  position:fixed;
  display: flex;
  gap: 0px;
  background: rgba(255, 255, 255, 0.0);
  margin: 0;
  top: 0;
  right:0;
  box-shadow: none;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 30px;
}
.nav-btn {
  background: #fffbe6;
  color: #222;
  border: 2px solid #222;
  border-radius: 6px;
  padding: 10px 24px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 4px;
  transition: box-shadow 0.2s;
  box-shadow: 1px 1px 4px rgba(34,34,34,0.08);
}

.nav-btn.active, .nav-btn:hover {
  box-shadow: 0 2px 8px rgba(255,224,102,0.18);
  background: #ffe066;
  color: #222;
}

.home {
  max-width: 1200px;
  margin: 20px auto;
  background: #fffde7;
  box-shadow: 0 8px 32px rgba(34,34,34,0.10);
  border-radius: 18px;
  padding: 32px;
}

.home p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.home ul,li {
    display: inline-block;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;

}

h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 24px;
  color: #222;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #ffe066;
}

h2 {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 24px;
  color: #222;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #ffe066;
}

.main-content-area {
  display: flex;
  gap: 2rem;
}

.pictures-section {
  flex: 2;
}

.picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 12px;
}

.picture-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,34,34,0.12);
  border: 3px solid #ffe066;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fffbe6;
}

.picture-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(34,34,34,0.18);
  border-color: #222;
}

.sidebar {
  flex: 1;
  background: #fffbe6;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 2px 8px rgba(34,34,34,0.08);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 2px solid #ffe066;
}

.sidebar.banner {
  background: #ffe066;
  border: 3px solid #ffe066;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(34,34,34,0.10);
  padding: 28px 22px;
}

.brother-count h3, .newsletter h3 {
  margin-top: 0;
  color: #222;
  font-size: 1.2em;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 #ffe066;
}

.brother-count .count {
  font-size: 2.5em;
  font-weight: bold;
  color: #222;
  text-align: center;
  margin-bottom: 0;
  text-shadow: 1px 1px 0 #ffe066;
}

.newsletter a {
  display: inline-block;
  background: #ffe066;
  color: #222;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(34,34,34,0.10);
  border: 2px solid #222;
  transition: background 0.2s, color 0.2s;
}

.newsletter a:hover {
  background: #222;
  color: #ffe066;
}

.newsletter p {
  color: #222;
  font-style: italic;
  margin: 0;
}

#carousel {
  width: 100%;
  max-width: 700px;
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 8px 32px rgba(34,34,34,0.10);
  border-radius: 18px;
  background: #fffde7;
  overflow: hidden;
}

.carousel-img {
  max-width: 100%;
  max-height: 100%;
  max-width: auto;
  max-height: auto;
  border-radius: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background: transparent;
  transition: opacity 0.5s;
}

.carousel-img.active {
  display: block;
}

#prevBtn, #nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffe066;
  color: #222;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0.8;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffe066;
  color: #222;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2em;
  cursor: pointer;
  opacity: 0.85;
  z-index: 2;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(34,34,34,0.10);
}

.carousel-btn:hover {
  background: #222;
  color: #ffe066;
  box-shadow: 0 4px 16px rgba(34,34,34,0.18);
}

#prevBtn {
  left: 16px;
}

#nextBtn {
  right: 16px;
}

footer {
  text-align: center;
  padding: 18px 0;
  color: #888;
  font-size: 0.95em;
  background: #fffbe6;
  border-top: 1px solid #ffe066;
  margin-top: 32px;
}

.logout-section {
  text-align: center;
  margin-top: 1rem;
}

.standard-button {
  margin-top: 0.5rem;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #ffe066;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.standard-button:hover {
  background: #222;
  color: #ffe066;
}

.logout-btn {
  background: #ffe6e6;
  color: #222;
  border: 2px solid #222;
  border-radius: 6px;
  padding: 10px 24px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 4px;
  transition: box-shadow 0.2s;
  box-shadow: 1px 1px 4px rgba(34,34,34,0.08);
}

.logout-btn:hover {
  background: #222;
  color: #ffe6e6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  background: #fff8e1;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  border: 1px solid #ffe066;
  padding: 0.8em;
  text-align: left;
  color: black;
}

th {
  background: #ffe066;
  color: black;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #fff4cc;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1000;
}

.hamburger {
  font-size: 1.8em;
  background: #ffe066;
  border: 2px solid #222;
  color: #222;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  margin: 12px;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: -220px;
  height: 100%;
  background: #fffbe6;
  box-shadow: 2px 0 8px rgba(34,34,34,0.2);
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
}

.sidebar-nav.open {
  left: 0;
}

.sidebar-nav .nav-btn {
  margin: 10px;
  text-align: center;
  padding: 12px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #222;
}
.close-btn:hover {
  color: #ff3333;
}

.path-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1em;
  padding: 1em;
}

.path-files a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8em;
  background: #f5f5fa;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.path-files a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.path-files a.folder::before {
  content: "📁";
  font-size: 2em;
  margin-bottom: 0.5em;
}

.path-files a.file::before {
  content: "📄";
  font-size: 2em;
  margin-bottom: 0.5em;
}

.path-files a span {
  word-break: break-word;
}

@media (max-width: 900px) {
  .main-content-area {
    flex-direction: column;
    gap: 1.5rem;
  }
  .home {
    padding: 16px;
  }
  #carousel {
    max-width: 100%;
    height: 260px;
  }
}

/*================== attempt at device width solution remove if breaks site ===================*/

/* Mobile: phones under 600px */
@media (max-width: 600px) {
  .navbar {
    align-items: stretch;   /* full width buttons */
    gap: 8px;               /* spacing between buttons */
    padding: 8px;           /* tighter padding */
  }

  .nav-btn {
    width: 70%;            /* expand buttons */
    text-align: center;     /* center text */
  }

  .sidebar-nav {
    width: 70%;        /* sidebar fills screen */
    max-width: none;    /* remove fixed 220px limit */
    left: -100%;        /* hide fully offscreen */
  }

  .sidebar-nav.open {
    left: 0;            /* slide in fully */
  }

  .standard-button {
  width: 100%;        /* take full width */
  padding: 0.8em;     /* make it finger-friendly */
  font-size: 1.1em;   /* slightly larger text */
  }

  .content {
    margin-left: 0;         /* remove left margin */
    margin-top: 60px;       /* adjust for fixed navbar */
    padding: 0.5rem;        /* smaller padding */
  }

  h1 {
    font-size: 1.8em;       /* smaller heading */
  }

  h2 {
    font-size: 1.2em;       /* smaller secondary heading */
  }

  #carousel {
    height: 200px;          /* smaller carousel */
  }
}

/* Tablet: 601px – 900px */
@media (min-width: 601px) and (max-width: 900px) {
  .navbar {
    gap: 8px;               /* spacing between buttons */
    padding: 10px 20px;     /* adjusted padding */
  }

  .sidebar-nav {
    width: 70%;        /* sidebar fills screen */
    max-width: none;    /* remove fixed 220px limit */
    left: -100%;        /* hide fully offscreen */
  }

  .sidebar-nav.open {
    left: 0;            /* slide in fully */
  }

  .home {
    padding: 20px;          /* medium padding */
  }

  h1 {
    font-size: 2.2em;       /* medium heading */
  }

  #carousel {
    height: 260px;          /* medium carousel */
  }
}

/* Desktop: 901px and above */
@media (min-width: 901px) {
  .navbar {
    gap: 12px;              /* more space between buttons */
    padding: 12px 24px;     /* desktop padding */
  }

  .nav-btn {
    padding: 12px 28px;     /* larger buttons */
  }

  .content {
    margin-left: 75px;      /* sidebar spacing */
    margin-top: 80px;       /* top margin */
  }

  h1 {
    font-size: 2.5em;       /* full-size heading */
  }

  h2 {
    font-size: 1.5em;       /* desktop secondary heading */
  }

  #carousel {
    height: 420px;          /* full carousel height */
  }
}