/* /*
Theme Name: CrowdParticipation v2
Theme URI: https://crowdpolicy.com
Author: Stavros Melidoniotis, Nikos Belias, Sofia Karaterzidi
Author URI: https://crowdpolicy.com
Description: Crowdpolicy custom theme
Tags: blog, theme
Version: 1.0
Requires at least: 5.0
Tested up to: 5.9
Requires PHP: 7
Licence: GNU General Public Licence v2 or later
Licence URI: https://www.gnu.org/licences/gpl-2.0.html
Text Domain: crowd-participation-theme
*/

body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  font-family: "Ubuntu", sans-serif;
}

/* Navigation Bar */

.nav-box {
  width: 100vw;
  height: 215px;
  border-radius: 0 0 70% 70% / 0 0 3em 3em;
  background: var(--primary);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Header */
/* Login Button on nav bar */

.profileMenuWrapper {
  position: relative;
}

.profileMenu {
  position: absolute;
  bottom: -51px;
  background-color: white;
  min-width: 172px;
  border-radius: 27px;
  text-align: center;
  padding: 1rem 0;
}

.lgnButton {
  min-width: 172px;
  height: 53px;
  padding: 0 1rem;
  background: var(--color-foreas);
  border-radius: 27px;
  border: none;
  color: var(--primary);
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.lgnButton.logged-in .toggleProfileMenu {
  color: var(--primary);
}

.lgnButton.logged-in .toggleProfileMenu:hover {
  cursor: pointer;
  color: var(--color-foreas);
}

.lgnButton.logged-in:hover {
  cursor: default;
}

.link-to-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.link-to-profile:hover {
  color: var(--color-foreas);
}

.lgnButton:hover {
  color: var(--color-foreas);
  background-color: #fff;
}

#user-avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
}

.link-to-profile {
  color: var(--primary) !important;
}

.profileMenu a {
  color: var(--primary);
}

/* Login Button on hamburger menu */

.lgnButtonHam {
  margin-top: 20px;
}

.lgnButtonHam:hover {
  background-color: #fff;
  color: var(--color-foreas);
  border: 1px solid var(--color-foreas);
}

/* The main navbar container */

.header-container {
  background-color: var(--primary);
  height: 165px;
  position: relative;
}

.rounded-header {
  border-radius: 0% 0% 150% 150%/0% 0% 40% 40%;
}

/* The navbar links styling */

.collapse .navbar-nav > a,
.collapse .navbar-nav .profileMenuWrapper,
.collapse .navbar-nav #language-switcher {
  text-decoration: none;
  margin-left: 68px;
  color: #fff;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 53px;
  white-space: nowrap;
  font-weight: 700;
}

#language-switcher > a {
  color: #fff;
}

.navbar-nav > a:hover,
#language-switcher > a:hover {
  color: #000;
}

/* The hamburger links styling */

#menu .navbar-nav > a,
#menu .navbar-nav #language-switcher {
  text-decoration: none;
  color: var(--primary);
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 53px;
  white-space: nowrap;
  margin-top: 20px;
}

#menu .navbar-nav #language-switcher > a {
  color: var(--primary);
}

#menu .navbar-nav a:hover,
#menu .navbar-nav #language-switcher > a:hover {
  color: #000;
}

/* The logo image */

.image-logo {
  max-width: 210px;
  height: unset;
  padding: unset;
  max-height: 120px;
}

/* The responsiveness of the main navigation bar, the logo image and the login button */

@media (max-width: 575.98px) {
  .image-logo {
    width: 150px;
  }

  .lgnButton {
    width: 80px;
    height: 38px;
    color: var(--primary);
    font-size: 14px;
  }

  .header-container {
    height: 135px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .imgLogo {
    padding-left: 6%;
  }

  .lgnButton {
    width: 132px;
    height: 43px;
    color: var(--primary);
    font-size: 18px;
  }
  .header-containerd {
    height: 135px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .lgnButton {
    width: 132px;
    height: 43px;
    color: var(--primary);
    font-size: 18px;
  }
  .header-container {
    height: 165px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .lgnButton {
    width: 152px;
    height: 48px;
    color: var(--primary);
    font-size: 18px;
  }
}

/* changing navbar links margin on smaller screens */

@media (max-width: 1700px) {
  .collapse .navbar-nav > a,
  .collapse .navbar-nav .profileMenuWrapper {
    margin-left: 48px;
  }
}

/* Hiding elements on smaller screens */

.navbar-nav .dis-none {
  visibility: hidden;
}

@media (min-width: 1400px) {
  .navbar-nav .dis-none {
    visibility: visible;
  }
}

/* Responsive navbar hamburger */

#menuToggle {
  display: block;
  position: absolute;
  right: 7vw;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
  visibility: hidden;
}

#menuToggle a {
  text-decoration: none;
  color: var(--color7);
  transition: color 0.3s ease;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  -webkit-touch-callout: none;
}

#menuToggle > span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #fff;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#menuToggle .signout-b {
  margin-top: 30px !important;
  background-color: #f26a6c;
  color: #fff !important;
  border-radius: 30px;
  height: fit-content !important;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: var(--color-foreas);
}

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menu {
  top: 0;
  right: 0;
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow-y: hidden;
  padding: 50px;
  padding-top: 125px;
  background: #fff;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77, 1, 0.05, 1);
  display: flex;
  justify-content: center;
}

#menu li {
  padding: 10px 0;
  font-size: 22px;
}

#menuToggle input:checked ~ ul {
  transform: none;
}

@media (max-width: 1400px) {
  #menuToggle {
    visibility: visible;
  }

  .imgLogo {
    padding-left: 6%;
  }
}

@media (max-width: 1399px) {
  .navbar-collapse.collapse {
    display: none !important;
  }
}

/* Breadcrumbs */

#breadcrumbs {
  display: flex;
  list-style: none;
  font-size: 2rem;
  gap: 1rem;
  margin-top: 4rem;
}

#breadcrumbs li a {
  color: #000;
}

/* Footer */
footer {
  padding: 26px 0 10px 0;
  background: #1b1d1e;
}

#span-right {
  margin: 0 0 0 55px;
  border-right: 2px solid #fff;
}

#span-left {
  margin: 0 55px 0 0;
  border-right: 2px solid #fff;
}

footer p {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

footer a {
  text-decoration: none;
  color: #fff;
}

footer a:hover {
  color: rgb(136, 136, 136);
}

@media (max-width: 767.98px) {
  footer .col-12 {
    margin-bottom: 20px;
  }

  footer #span-right {
    display: none;
  }

  footer #span-left {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  footer #span-right {
    margin: 0 0 0 20px;
  }

  footer #span-left {
    margin: 0 20px 0 0;
  }
}

/* width */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 1px grey;
  border-radius: 3px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #a2a2a2;
}

.holdbody {
  overflow-y: hidden;
}

/* Back to top button */

#back-to-top {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 5%;
  right: 5%;
  border-radius: 100%;
  z-index: 2;
  font-size: 2.3rem;
  padding: 1rem;
  background-color: #fff;
  color: var(--color-politis);
  border: 2px solid var(--color-politis);
  justify-content: center;
  align-items: center;
  display: none;
  animation: fade-in 0.6s ease reverse;
}

#back-to-top.active {
  animation: fade-in 0.6s ease;
}

#back-to-top:hover > i {
  animation: up-and-down 1s ease infinite;
}

@keyframes fade-in {
  0% {
    transform: translateY(25px);
    opacity: 0;
  }
  30% {
    opacity: 0.3;
  }
  60% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes up-and-down {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Reactions Counter */

.reactions-counter:hover {
  cursor: pointer;
}

.reactions-counter * {
  pointer-events: none;
}

#reactioners {
  max-height: 300px;
  list-style: none;
  margin-top: 1rem;
}

#reactioners > li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
}

#reactioners .user-data {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

#reactioners .user-data > .avatar {
  width: 40px;
  border-radius: 100%;
  box-shadow: 0px 0px 6px #00000029;
}

/* .like-border {
  border: 3px solid #039BE5;
}

.love-border {
  border: 3px solid #FF5252;
}

.superb-border {
  border: 3px solid #FDBF35;
}

.hmm-border {
  border: 3px solid #6B35FD;
} */

#reactioners .reaction-icon {
  width: 19px;
  position: absolute;
  bottom: -5px;
  left: 25px;
}

#reactioners .user-data > .profile-link {
  font-size: 1.5rem;
}

.screen-reader-text {
  display: none !important;
}
