/*
Theme Name: BeChange Theme
Author: Activart
Author URI: https://www.activart.com/
Description: BeChange's website theme
Version: 1.5
License: GNU General Public License
Text Domain: bechange-theme
*/

@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css');

:root {
  font-family: sans-serif;
  font-size: 16px;
  --bechange-primary: #000000;
  --bechange-secondary: #00003f;
  --bechange-elevation-1: 0 1px 1px 0 rgba(0, 0, 0, 0.14),
                          0 2px 1px 0 rgba(0, 0, 0, 0.12),
                          0 1px 3px 0 rgba(0, 0, 0, 0.2);
  --bechange-background: none;
}

* {
  box-sizing: border-box;
}

body {
  background-image: var(--bechange-background);
  background-size: cover;
  background-position: center;
}

header {
  position: relative;
  display: block;
  width: 100%;
  z-index: 2;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 56px;
  height: 56px;
  margin-left: 10px;
}

.hamburger-menu .line-top,
.hamburger-menu .line-middle,
.hamburger-menu .line-bottom {
  width: 90%;
  height: 6px;
  border-radius: 3px;
  background-color: #333333;
}

.logo-wrapper, .top-menu {
  background-color: #ffffff;
}

.logo-wrapper {
  text-align: center;
}

.logo-link {
  display: inline-block;
}

.logo {
  display: block;
  max-width: 100%;
  max-height: 140px;
  margin: 0 auto;
}

.top-menu {
  display: block;
  width: 100%;
}

.top-menu>ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  list-style-type: none;
  margin: 0;
  padding: 1rem 0;
}

.top-menu>ul>li>a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--bechange-secondary);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.25rem;
}

.top-menu>ul>li>a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.top-menu .menu-item {
  position: relative;
}

.top-menu .menu-item>.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  list-style-type: none;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.7);
  padding-bottom: 0.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.top-menu .menu-item:hover>.sub-menu {
  display: block;
}

.top-menu .sub-menu>.menu-item>a {
  display: block;
  color: #333333;
  text-decoration: none;
  width: 12.5rem;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5em 1em;
}

.top-menu .sub-menu>.menu-item>a:hover {
  font-weight: bold;
  color: var(--bechange-primary);
}

.top-menu>ul>li.current_page_item>a,
.top-menu>ul>li.current-menu-parent>a,
.top-menu .sub-menu>.current_page_item>a {
  color: var(--bechange-primary);
  font-weight: bold;
}

main {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.page-title-wrapper {
  padding: 1rem 2rem;
  border-radius: 0 0 2rem 2rem;
  background: linear-gradient(105deg, var(--bechange-primary) 0%, var(--bechange-secondary) 100%);
}

.page-title-wrapper h1 {
  text-align: center;
  color: #ffffff;
}

footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-radius: 0 0 2rem 2rem;
  background: linear-gradient(105deg, var(--bechange-secondary) 0%, var(--bechange-primary) 100%);
  color: #ffffff;
}

.home-gradient-1 {
  background: linear-gradient(to right, var(--bechange-primary) 0%, var(--bechange-secondary) 100%);
}

.home-gradient-2 {
  background: linear-gradient(to left, var(--bechange-primary) 0%, var(--bechange-secondary) 100%);
}

.bechange-currency-module {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--bechange-elevation-1);
}

.bechange-currency-module-title {
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1em;
  background-color: var(--bechange-secondary);
  padding: 0.5rem 1rem;
}

.bechange-currency-module-body {
  background-color: #ffffff;
  padding: 1rem;
}

.bechange-currency-module-input-wrapper {
  display: flex;
  flex-direction: row;
  padding: 0.5rem 0;
}

.bechange-currency-module-input {
  height: 3em;
  padding-left: 1em;
  flex: 1;
  border-radius: 1.5rem;
  border: 1px solid #aaaaaa;
  background-color: #ffffff;
  z-index: 2;
}

.bechange-currency-module-dropdown {
  position: relative;
  left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 2rem;
  padding-right: 1rem;
  border-radius: 0 1.5rem 1.5rem 0;
  border: 1px solid #aaaaaa;
  color: #555555;
  z-index: 1;
}

.bechange-currency-module-exchange-title {
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

.bechange-currency-module-exchange-body {
  display: flex;
  flex-direction: row;
  align-items: center;  
}

.bechange-currency-module-exchange-chf,
.bechange-currency-module-exchange-eur {
  margin: 0 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 0.75rem;
  box-shadow: var(--bechange-elevation-1);
}

.bechange-currency-module-exchange-chf {
  color: #ffffff;
  background-color: #ff0000;
}

.bechange-currency-module-exchange-eur {
  color: #ffffff;
  background-color: #0000ff;
}

.bechange-gold-module {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--bechange-elevation-1);
}

.bechange-gold-module-title {
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1em;
  background-color: var(--bechange-primary);
  padding: 0.5rem 1rem;
}

.bechange-gold-module-body {
  background-color: #ffffff;
  padding: 1rem;
}

.bechange-gold-module-subtitle {
  font-weight: bold;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1em;
}

.bechange-gold-module-table {
  display: flex;
  flex-direction: row;
  align-items: start;
}

.bechange-gold-module-table-column {
  flex: 1;
  text-align: center;
}

.bechange-gold-module-table-column-title {
  position: relative;
  padding: 0.25em 0;
}

.bechange-gold-module-table-column-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(to left, var(--bechange-primary) 0%, var(--bechange-secondary) 100%);
}

.bechange-gold-module-table-column-value {
  font-weight: bold;
  font-size: 2rem;
  padding: 0.5rem 0;
}

.bechange-gold-module-footer {
  background-color: #eeeeee;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.75rem;
}

.bechange-office-data-row {
  display: flex;
  flex-direction: row;
  align-items: start;
  width: 100%;
  padding: 1rem 0;
  border-top: 1px solid #aaa;
}

.bechange-office-data-label {
  width: 100px;
  max-width: 50%;
  font-weight: bold;
}

.bechange-office-data-value {
  flex: 1;
}

.bechange-office-data-value p {
  margin: 0;
}

.bechange-notice-carousel-wrapper {
  background-color: #ffffff;
  padding: 2em;
  border-radius: 2em;
  box-shadow: var(--bechange-elevation-1);
}

.bechange-notice-carousel-wrapper h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0;
  color: var(--bechange-primary);
  font-size: 1.5rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--bechange-secondary);
}

.bechange-notice-carousel {
  margin-left: 25px;
  margin-right: 25px;
}

.bechange-notice-carousel .slick-prev:before,
.bechange-notice-carousel .slick-next:before {
  color: #000000;
}

.bechange-container {
  width: 1160px;
  max-width: 100%;
  margin: 0 auto;
}

.bechange-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.bechange-col-third {
  width: 33.333333%;
  flex-basis: 33.333333%;
  padding: 1rem;
}

.footer-menu ul {
  list-style-type: none;
  padding: 0 1rem;
}

.footer-menu li {
  padding: 0.1rem 0;
}

.footer-menu a {
  text-decoration: none;
  color: #ffffff;
}


@media (max-width: 576px) {

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: #ffffff;
    box-shadow: var(--bechange-elevation-1);
  }

  .top-menu {
    display: none;
    position: fixed;
    top: 80px;
    box-shadow: var(--bechange-elevation-1);
  }

  .top-menu>ul {
    flex-direction: column;
  }

  .top-menu>ul>li {
    width: 100%;
  }

  .top-menu .menu-item>.sub-menu {
    position: static;
    translate: none;
  }

  .top-menu .sub-menu>.menu-item>a {
    color: var(--bechange-primary);
    text-align: left;
    width: 100%;
    padding-left: 2rem;
    font-size: 1rem;
  }

  .hamburger-menu {
    display: flex;
  }

  .logo-link {
    display: block;
  }

  .logo {
    max-height: 70px;
  }

  body.menu-open .hamburger-menu {
    background-color: #dddddd;
  }

  body.menu-open .top-menu {
    display: block;
  }

  main {
    padding-top: 80px;
  }

  .bechange-col-third {
    width: 100%;
    flex-basis: 100%;
  }

}