/* Page formatting */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #11141d;
  color: #f1f1f1;
}

a {
  color: #4aa8ff;
}

a:hover {
  color: #82cfff;
}



/* Sidebar styling */

.sidebar {
  background-color: #212529;
  color: #f1f1f1
}

.sidebar a {
  display: block;
  padding: 0.5rem;
  color: #f1f1f1;
  text-decoration: none;
}

.sidebar .nav a:hover {
  background-color: #3a4456;
  border-radius: 6px;
  color: #ffffff
}

#sidebar-container {
  width: 350px;
  min-width: 350px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column
}

.sidebar-name {
  font-size: 2rem
}

#sidebar-container .nav-link {
  font-size: 1.4rem;
}

#sidebar-container .nav-link.active {
  background-color: #23325a;
  color: white !important;
  border-radius: 6px;
}

#sidebar-container .account-icon-img {
  width: 1.4em;
  height: 1.4em;
  filter: brightness(75%) saturate(10%) contrast(100%);
}

.sidebar i.bi { /* bootstrap account icon */ 
  font-size: 1.4rem;
  color: #ccc;
}

.sidebar-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rounded-avatar {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc; 
}



/* Main content styling */

.main-content {
  margin-left: 350px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

main.container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  min-height: 0;
}

.content-container {
  position: relative;
  background-color: #161f31;
  border-radius: 10px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}



/* Banner styling */

.banner {
  background: url('../images/banner.jpg') no-repeat center center/cover;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-bottom: 10px solid #212529;
}

.banner .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.banner .container {
  position: relative;
  z-index: 2;
}



/* Publication entry styling */

.publication-title {
  font-weight: 600;
  color: #ffffff;
}

.publication-journal {
  font-style: italic;
  color: #dbdbdb;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.publication-authors {
  font-style: italic;
  color: #dbdbdb;
  margin-bottom: 0.5rem;
}

.publication-abstract {
  color: #dbdbdb;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.publication-link {
  color: #ffffff;
  background-color: #3a4456;
  border-color: #dbdbdb
}

.publication-link:hover {
  background-color: #23325a;
}

.toggle-abstract {
  cursor: pointer;
  font-weight: 500;
  color: #4aa8ff;
  text-decoration: underline;
}

.toggle-abstract:hover {
  color: #82cfff;
}


/* Other styling */

.no-pointer {
  pointer-events: none;
}


/* Screen size formatting */

@media (max-width: 768px) {
  #sidebar-container {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
  }

  .main-content {
    margin-left: 0;
  }

  .flex-grow-1 {
    margin-left: 0;
  }

  .rounded-avatar {
    width: 70px;
    height: 70px;
  }
}
