/*
Theme Name: CpTheme
Theme URI: https://crowdpolicy.com
Author: Stavros Melidoniotis, 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.7
Requires PHP: 7
Licence: GNU General Public Licence v2 or later
Licence URI: https://www.gnu.org/licences/gpl-2.0.html
Text Domain: cp
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  /* Colors */
  --dark-blue: #0e3376;
  --light-blue: #5287d7;
  --warm-blue: #3256a4;
  --white: #ffffff;
  --gray: #d6d6d6;
  --light-grey: #F9F9F9;
  --dark-gray: #707070;
  --input-border: #e4e4e4;
  --acf-label: #434444;
  --error: #e13636;
  --success: #0ea70e;
  --placeholder: #b8b8b8;
  --black-cp: #2E2E2E;
  --section-title: var(--black-cp);
  --btn-bg: var(--black-cp);
  --btn-bg-hover: #DCA75C;

  /* Font sizes */
  --heading-1: 35px;
  --heading-2: 20px;
  --heading-3: 18px;
  --paragraph: 16px;
  --window-sub-title: 25px;
  --btn-font-size: 16px;
}

/* Custom Scrollbar */

/* 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;
}

/* Custom Classes */
.justify-self-center {
  justify-self: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ----- Clamp the text ----- */
.text-row-1,
.text-row-2,
.text-row-3,
.text-row-4,
.text-row-5 {
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.text-row-1 {
  /* min-height: 24px; */
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.text-row-2 {
  /* min-height: 46px; */
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.text-row-3 {
  /* min-height: 72px; */
  -webkit-line-clamp: 3;
  line-clamp: 13;
}

.text-row-4 {
  /* min-height: 96px; */
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.text-row-5 {
  /* min-height: 120px; */
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

/* ----------------- */
h1 {
  font-size: var(--heading-1) !important;
}

h2 {
  font-size: var(--heading-2) !important;
}

h3 {
  font-size: var(--heading-3) !important;
}

p {
  font-size: var(--paragraph) !important;
}

body {
  border: none;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif !important;
  background-color: #fff !important;
  line-height: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
address,
big,
cite,
code,
em,
font,
img,
small,
strike,
sub,
sup,
li,
ol,
ul,
fieldset,
form,
label,
legend,
button,
table,
caption,
tr,
th,
td {
  border: none;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.wp-block-image img {
  object-fit: contain;
}

/* Main css generals */

html,
body {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none !important;
}

#page {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 100vh;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

/* HEADER */

header {
  box-shadow: 0px 3px 3px #35363629;
  padding: .25rem 0;
  background-color: #fff;
  transition: all 0.2s ease;
}

.thenav {
  max-width: 1065px;
}

header.compressed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999999999 !important;
  padding: unset;
  padding-top: .25rem;
}

header.compressed .custom-logo {
  width: 200px;
}

.custom-logo {
  max-width: 330px;
  height: 70px;
  object-fit: scale-down;
}

#header-text {
  color: var(--light-blue);
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-light .navbar-nav .menu-item>a {
  font-size: var(--paragraph);
  font-weight: bold;
  color: #000 !important;
  padding: 0 0 0 1rem;
  transition: font-size 0.4s ease-in-out;
}

.navbar-nav {
  align-items: center;
  gap: 0.5rem;
}

#participate-btn {
  padding: 0.5rem 1rem;
  margin: 0 auto;
  background-color: var(--btn-bg);
  color: #fff;
  border-radius: 30px;
  font-size: 18px;
  transition: all 0.4s ease-in-out;
}

#participate-btn:hover {
  background-color: var(--btn-bg-hover);
}

.menu-item>a:hover {
  text-decoration: underline !important;
}

.header-lang-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
}

.beta {
  width: 50px;
  object-fit: scale-down;
  position: absolute;
  top: .2rem;
  right: -35px;
}

.language-switchers {
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .2rem;
  padding: 0 .2rem;
}

.switcher>a>img {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.switcher>a.active>img {
  width: 23px;
  height: 23px;
  border: 3px solid var(--warm-blue);
}

.navbar {
  padding-top: unset !important;
}

.navbar-toggler {
  border: none !important;
}

#menu-bars {
  width: 30px;
}

.en-flag {
  width: 20px;
  margin-left: 10px;
}

/* FOOTER */

footer {
  margin-top: auto;
}

.famous-tags {
  display: flex;
  flex-wrap: wrap;
  max-width: 420px;
}

.famous-tags>a {
  background-color: var(--white);
  color: var(--dark-blue);
  border-radius: 15px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
  padding: .2rem 1rem;
}

.famous-tags>a:nth-child(odd) {
  margin-right: 0.5rem;
}

.terms a {
  color: #f9f9f9;
}

.terms a:not(:last-child)::after {
  content: " | ";
}

.terms a:hover {
  color: #f9f9f9;
}

.credits a {
  color: #fff;
}

.credits a:hover {
  color: #fff;
}

.credits img {
  width: 60px;
  height: 30px;
}

.footer {
  max-width: 1050px;
}

.main-footer {
  padding: 2.5rem 0;
  background-color: var(--black-cp);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.the-logo {
  display: flex;
  align-items: center;
}

#footer-hcap-logo-wrapper {
  border-radius: 5px;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#open-data-logo {
  width: 80px;
  height: 15px;
}

/* Scroll to top btn */
.progress-wrap {
  position: fixed;
  right: 50px;
  bottom: 50px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(15px);
  transform: translateY(15px);
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: "unicons";
  content: "\e84b";
  text-align: center;
  line-height: 46px;
  font-size: 36px;
  color: var(--light-blue);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap:hover::after {
  opacity: 0;
}

.progress-wrap::before {
  position: absolute;
  font-family: "unicons";
  content: "\e84b";
  text-align: center;
  line-height: 46px;
  font-size: 36px;
  opacity: 0;
  background-image: linear-gradient(298deg,
      var(--light-blue),
      var(--var(--light-blue)));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--light-blue);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 2;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap:hover::before {
  opacity: 1;
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: var(--light-blue);
  stroke-width: 4;
  box-sizing: border-box;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

/* 404 Page */

#not-found-img {
  width: 400px;
  height: 400px;
}