/* Colour palette 

Main Blue:     #5c8ecb
Offwhite:      #f0f0ef
White:         #ffffff
Black:         #191818
Dark Grey:     #505053
Light Grey:    #9d9fa4
*/

/*--------------------------------------------------------------- Home Page ---------------------------------------------------------------*/

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif, Arial, Helvetica, sans-serif
}

html {
  scroll-behavior: smooth;
}

#polarisation,
#filter-bubble,
#scepticism,
#echo-chamber,
#homophily {
  scroll-margin-top: 15vh;
}

body {
  font-family: 'Poppins';
  margin: 0;
  background: #f0f0ef;
}

.factblocked-nav {
  top: 0;
  position: sticky;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  height: 70px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
  margin: 0;
}

/* Sections */
.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

/* Logo */
.nav-logo {
  width: 180px;
  cursor: pointer;
}

/* Center nav icons */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  color: #505053;
  cursor: pointer;
  padding: 10px 30px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  text-decoration: none;
}

.nav-icon:hover {
  transition: .3s ease;
  background-color: #f0f0ef;
  color: #5c8ecb;
}

.nav-icon.active {
  color: #5c8ecb;
}


.nav-icon::before {
  content: attr(data-tooltip);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);

  background-color: #5c8ecb;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.nav-icon:hover::before,
.nav-icon.active::before {
  opacity: 1;
}

.profile-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  color: #505053;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  text-decoration: none;
}

.logo {
  width: 240px;
  margin-right: 45px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-user-icon img {
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.online {
  position: relative;
}

.online::after {
  content: '';
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #41db51;
  position: absolute;
  top: 0;
  right: 0;
}

.nav-gap {
  margin-bottom: 25px;
  font-style: italic;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  color: #5c8ecb;
}


.container {
  display: flex;
  justify-content: space-between;
  padding: 25px 5%;
}

.sidebar-header {
  margin-top: 0 !important;
}

.left-sidebar {
  flex-basis: 25%;
  top: 110px;
  position: sticky;
  align-self: flex-start;
  box-sizing: border-box;
}

.right-sidebar {
  flex-basis: 25%;
  top: 110px;
  position: sticky;
  align-self: flex-start;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  color: #626262;
  box-sizing: border-box;

}

.main-content {
  flex-basis: 47%;
  box-sizing: border-box;
}

.guide-links a,
.climate-links a,
.factchecking-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  color: #626262;
  width: fit-content;
}

.guide-links {
  border-bottom: 1px solid #ccc;
}

.guide-links p,
.climate-links p,
.factchecking-links p {
  margin: 25px 0;
  color: #191818;
  font-weight: 600;
  font-size: 18px;
}

.climate-links a img,
.factchecking-links a img,
.guide-links a img {
  width: 40px;
  border-radius: 4px;
  margin-right: 15px;
}

.climate-links {
  border-bottom: 1px solid #ccc;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.right-sidebar h4 {
  font-weight: 600;
  font-size: 18px;
  color: #191818;
}

.right-sidebar h3 {
  font-weight: 500;
  font-size: 16px;
  color: #191818;
}

.right-sidebar h2 {
  font-weight: 500;
  font-size: 22px;
  color: #191818;
}

.online-list p {
  font-weight: 400;
  font-size: 16px;
  color: #626262;

}

.online-list a {
  text-decoration: none;
}

.event {
  display: flex;
  font-size: 14px;
  margin-bottom: 20px;
}

.left-event {
  border-radius: 10px;
  height: 65px;
  Width: 65px;
  margin-right: 15px;
  padding-top: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.event p {
  font-size: 12px;
  text-decoration: none;
  color: #9d9fa4;
}

.left-event span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #5c8ecb;
  color: #fff;
  font-size: 10px;
  padding: 4px 0;
}

.sidebar-ads {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 4px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.sidebar-ads:hover {
  transform: scale(0.995);
  opacity: 80%;
  cursor: pointer;
}

.online-list {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.online-list .online img {
  width: 40px;
  border-radius: 50%
}

.online-list .online {
  width: 40px;
  border-radius: 50%;
  margin-right: 15px;
}

.online-list .online::after {
  top: unset;
  bottom: 5px;
}


.user-profile h2 {
  margin-bottom: 1%;
  font-weight: 500;
  font-size: 16px;
  color: #191818;
}

.user-profile h3 {
  margin-bottom: 20%;
  font-weight: 600;
  font-size: 18px;
  color: #191818;
}

.post-input-container {
  padding-left: 55px;
  padding-top: 20px;
}

.post-input-container textarea {
  width: 100%;
  border: 0;
  outline: 0;
  border-bottom: 1px solid #ccc;
  background: transparent;
  resize: none;
}

.add-post-links {
  display: flex;
  margin-top: 10px;
}

.add-post-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #505053;
  margin-right: 30px;
  font-size: 13px;
}

.add-post-links a img {
  width: 2rem;
  margin-right: 10px;
}

.post-container {
  width: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  color: #505053;
  margin: 20px 0;
  box-sizing: border-box;
}

.user-profile span {
  font-size: 13px;
  color: #9d9fa4;
}

.post-text {
  margin-bottom: 5%;
  color: #9d9fa4;
  font-size: 15px;
}

.post-text span {
  color: #505053;
  font-weight: 500;

}

.post-text a {
  color: #0000FF;
  text-decoration: none;
}



.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-icons div img {
  width: 26px;
  margin-right: 10px;
}

.activity-icons div {
  display: inline-flex;
  align-items: center;
  margin-right: 30px;
}

.post-profile-icon {
  display: flex;
  align-items: center;
}

.post-profile-icon img {
  width: 30px;
  border-radius: 50%;
  margin-right: 5px;
}

.hover-text {
  color: #191818;
  transition: color .3s ease;
}

.hover-text:hover {
  color: #5c8ecb;
  font-weight: 500;
  transition: color .3s ease;
}

.accordion {
  margin: auto;
  width: 100%;
}

.accordion li {
  list-style: none;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #ffffff;
}

.accordion li label {
  display: flex;
  align-items: center;
  padding: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.5s ease;
}

.accordion li label:hover {
  color: #5c8ecb;
}

input[type="radio"]:checked+label {
  color: #5c8ecb;
}

label::before {
  content: '+';
  margin-right: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #5c8ecb;
}

input[type="radio"] {
  display: none;
}

.accordion .content {
  padding: 0 10px;
  line-height: auto;
  max-height: 0;
  overflow: hidden;
  transition: ease-in-out 0.5s, padding 0.5s;
}


.content p {
  font-size: 16px;
  color: #9d9fa4;
  padding: 0% 2% 0% 2%;
}

.content h2 {
  font-size: 18px;
  font-weight: 500;
  color: #191818;
  padding: 0% 2% 4% 2%;
}

.accordion input[type="radio"]:checked+label+.content {
  max-height: 800px;
  padding: 10px 10px 20px;
}

.accordion input[type="radio"]:checked+label::before {
  content: '-';
}

/* Dropbox */

.dropdown-section {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
}

.dropdown-section.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar-title a {
  text-decoration: none;
  color: #9d9fa4;
  font-size: 12px;
}

.sidebar-title a:hover {
  color: #5c8ecb;
}

.accordion .user-profile img {
  max-width: 50px;
  height: auto;
}


.accordion .post-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  border-radius: 6px;
  box-sizing: border-box;
}

.image-wrapper {
  padding: 0 2%;
  border-radius: 6px;
  overflow: hidden;
}

.post-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}


.accordion .tooltip {
  position: relative;
  display: inline-block;
}


.accordion .tooltip .tooltip-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  background-color: #5c8ecb;
  padding: 8px 12px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
}


.post-img:hover {
  transform: scale(0.99);
  filter: brightness(50%);
  cursor: pointer;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  background-color: #5c8ecb;
  padding: 8px 12px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
}

.tooltip:hover .tooltip-text {
  opacity: 1;
}


.post-text span {
  color: #505053;
  font-weight: 500;
  text-decoration: none;
}

.source-link {
  color: #191818;
  transition: color .3s ease;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.source-link:hover {
  color: #5c8ecb;
  text-decoration: none;
}

.accordion .content a {
  text-decoration: none;
  color: inherit;
}

.accordion .content a:hover {
  text-decoration: none;
  color: #5c8ecb;
}


/*--------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------- Tactics Page ---------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------*/


/*--------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------- Resources Page -------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------*/


/*--------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------- Case Study Page ------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------- Game Page ------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------- Mobile view ------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------*/

@media (max-width: 900px) {

  .add-post-links a img {
    width: 1.25rem;
    margin-right: .5rem;
  }

  .right-sidebar {
    display: none;
  }

  .left-sidebar {
    display: none;
  }

  .nav-center {
    display: none;
  }

  nav {
    flex-wrap: wrap;
  }

  .logo {
    width: 110px;
    margin-right: 20px;
  }

  .nav-left ul li img {
    width: 20px;
    margin: 0 8px;
  }

  nav-user-icon img {
    width: 30px;
  }

  .nav-user-icon {
    margin-left: 0;
  }

  .add-post-links {
    flex-wrap: wrap;
  }

  .main-content {
    flex-basis: 100%;
  }

  .nav-profile-mobile {
    display: none;
  }

  .accordion .post-text {
    font-size: 0.85rem;
  }

  .accordion .user-profile img {
    max-width: 40px;
  }

  .accordion .website-title p {
    font-size: 0.9rem;
  }

}

@media (min-width: 900px) {
  .dropdown-menu {
    display: none;
  }

  .nav-profile-desktop {
    display: none;
  }

  .profile-icon:hover {
    transition: .3s ease;
    background-color: #f0f0ef;
    color: #5c8ecb;
  }

  .profile-icon.active {
    color: #5c8ecb;
  }

  .profile-icon::before {
    content: attr(data-tooltip);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);

    background-color: #5c8ecb;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
  }

  .profile-icon:hover::before {
    opacity: 1;
  }
}

.dropdown-menu {
  display: none;
  position: sticky;
  top: 5.5rem;
  width: 100%;
  z-index: 1;
  border-bottom: 1px solid #9d9fa4;
  height: calc(100vh - 4rem);
  background-color: #ffffff
}

.dropdown-menu-item {
  display: flex;
  padding: 2rem 2rem 2rem 2rem;
  border-bottom: 1px solid #9d9fa4;
  color: #5c8ecb;
  text-decoration: none;
  font-weight: 600;
}

.dropdown-menu-item:last-of-type {
  border: none;
}

#close-icon {
  display: none;
}