body {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  background-color: #b3e5fc;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-clouds {
  display: block;
  position: fixed;
  top: -5vh;
  left: -5vw;
  width: 110vw;
  height: 110vh;
  z-index: 0;
  background: url('../Sky.png') center center / cover no-repeat;
  pointer-events: none;
}

.sidebar {
  width: 400px;
  background: url('../Sidebar.png') center center / 100% 100% no-repeat;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  height: 88vh;
}

.layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1800px;
  width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  margin: 20px;
  flex-grow: 1;
  padding: 20px;
  background: url('../Page.png') center center / 100% 100% no-repeat;
  border: none;
  min-height: 90vh;
  display: flex;
}

.main-content {
  flex: 1;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.logo-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}
.logo-text-img {
  height: 50px;
  width: auto;
}

.nav-buttons {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-auth-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nav-auth-buttons .nav-btn {
  width: 100%;
  padding: 8px 45px;
  font-size: 1rem;
}

.nav-btn {
  width: 100%;
  padding: 12px 0; /* Homepage-style compact padding */
  font-size: 1rem; /* Homepage-style font size */
  font-family: 'Baloo 2', cursive;
  border: none;
  border-radius: 8px;
  background: url('../GreyButton.png') center center / 100% 100% no-repeat;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  outline: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.nav-btn.active, .nav-btn:hover {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat;
  color: #fff;
  border: none;
  transform: scale(1.05);
}

.nav-auth-buttons .nav-btn:hover {
  background: url('../GreyButton.png') center center / 100% 100% no-repeat;
  filter: brightness(1.2);
}

.greeting-avatar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.greeting {
  font-size: 2.5rem;
  color: #000;
  margin: 0;
}
.username {
  color: #000;
}

.avatar-edit-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
}
.avatar-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-text {
  position: absolute;
  bottom: 5px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 4px;
}


.featured-projects h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 25px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}
.project-card {
  background: #fff;
  border: 3px solid #000;
  padding: 5px;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1200px) {
  .sidebar {
    width: 300px;
  }
  .greeting {
    font-size: 2.2rem;
  }
  .featured-projects h2 {
    font-size: 1.6rem;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .layout-wrapper {
    flex-direction: column;
    height: auto;
    width: 100%;
    gap: 0;
  }
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  .logo {
    margin-bottom: 0;
  }
  .logo-text {
    font-size: 1.5rem;
  }
  .nav-buttons {
    flex-direction: row;
    width: auto;
    gap: 8px;
    align-items: center;
  }
  .nav-btn {
    padding: 10px 15px;
    font-size: 1rem;
    white-space: nowrap;
  }
  .nav-auth-buttons {
    display: contents;
  }
  .container {
    width: 100%;
    min-height: auto;
    border-radius: 0;
  }
  .main-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .greeting-avatar {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }
  .greeting {
    font-size: 1.8rem;
  }
  .sidebar {
    padding: 10px;
  }
  .logo-img {
      display: none;
  }
  .nav-buttons {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
  }
  .nav-buttons::-webkit-scrollbar { 
    display: none; /* Safari and Chrome */
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }
  .greeting {
    font-size: 1.5rem;
  }
  .featured-projects h2 {
    font-size: 1.3rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
} 

.auth-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 400px;
}

.auth-box h1 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #007BFF;
}

.auth-btn {
    width: 80%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: url('../BlueButton.png') center center / 100% 100% no-repeat;
    color: white;
    font-size: 1.2em;
    font-family: 'Baloo 2', cursive;
    cursor: pointer;
    transition: filter 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.auth-btn:hover {
    filter: brightness(1.2);
}

.auth-box p {
    margin-top: 20px;
}

.auth-box a {
    color: #007BFF;
    text-decoration: none;
}

.auth-box a:hover {
    text-decoration: underline;
} 