/**
 * ============================================================================
 * Setting global variables
 * ============================================================================
 */
:root {
  --color-red: rgb(151, 38, 53);
  --color-red-transparent: rgba(152, 38, 53, 0.975);
  --color-red-light: rgba(227, 145, 156, 1);
  --color-red-lighter: rgb(226, 225, 225);
  --color-error: rgba(255, 80, 61, 1);
  --color-error-light: rgba(255, 149, 138, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-black-alpha-003: rgba(0, 0, 0, 0.03);
  --color-black-alpha-005: rgba(0, 0, 0, 0.05);
  --color-black-alpha-010: rgba(0, 0, 0, 0.1);
  --color-black-alpha-015: rgba(0, 0, 0, 0.15);
  --color-black-alpha-020: rgba(0, 0, 0, 0.2);
  --color-black-alpha-030: rgba(0, 0, 0, 0.3);
  --color-black-alpha-035: rgba(0, 0, 0, 0.35);
  --color-black-alpha-040: rgba(0, 0, 0, 0.4);
  --color-black-alpha-050: rgba(0, 0, 0, 0.5);
  --color-black-alpha-060: rgba(0, 0, 0, 0.6);
  --color-black-alpha-070: rgba(0, 0, 0, 0.7);
  --color-black-alpha-080: rgba(0, 0, 0, 0.8);
  --color-grey: rgba(175, 175, 175, 1);
  --color-grey-lighter: rgb(215, 215, 215);
  --color-box-shadow: var(--color-black-alpha-015);
  --color-box-shadow-dark: var(--color-black-alpha-035);
  --color-transparent: rgba(0, 0, 0, 0);
  --color-white-alpha-010: rgba(255, 255, 255, 0.1);
  --color-white-alpha-020: rgba(255, 255, 255, 0.2);
  --color-white-alpha-030: rgba(255, 255, 255, 0.3);
  --color-white-alpha-040: rgba(255, 255, 255, 0.4);
  --color-white-alpha-050: rgba(255, 255, 255, 0.5);
  --color-white-alpha-060: rgba(255, 255, 255, 0.6);
  --color-white-alpha-070: rgba(255, 255, 255, 0.7);
  --color-white-alpha-080: rgba(255, 255, 255, 0.8);
  --color-white-alpha-090: rgba(255, 255, 255, 0.9);
  --color-facebook: rgba(59, 89, 152, 1);
  --color-linkedin: rgba(1, 119, 181, 1);
  --color-twitter: rgba(0, 172, 237, 1);
  --color-instagram: rgba(251, 57, 88, 1);
  --color-medium: rgba(26, 167, 125, 1);
  --screen-xs: 600px;
  --screen-sm: 768px;
  --screen-md: 992px;
  --screen-lg: 1200px;
  --z-index-level-ceil: 1000; /* highest level for HTML elements */
  --z-index-level-1st: 900; /* use this for the menu in sizeXs */
  --z-index-level-2nd: 800; /* use this for modals */
  --z-index-level-3rd: 700;
  --z-index-level-4th: 600;
  --z-index-level-5th: 500;
  --z-index-level-ground: 0; /* lowest level for HTML elements */
  --background-image-size: 80px;
}

/**
 * ============================================================================
 * Changes affecting the entire website
 * ============================================================================
 **/

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s;
}

body {
  margin: 0;
  line-height: 1.5;
}

div {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  background-color: transparent;
}

.no-scroll {
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
}

.page-container {
  width: 100vw;
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.main-block {
  min-width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.error-box {
  font-weight: 100;
  color: white;
  padding: 1rem 1rem 1.25rem 1rem;
  background-color: var(--color-error);
  border-left: 10px solid var(--color-white-alpha-050);
  border-right: 10px solid var(--color-white-alpha-050);
}

.error-box a,
.error-box a:link,
.error-box a:visited {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

.font-weight-700 {
  font-weight: 700;
}

/* In the following section, we'll edit each of the 5 main component one by one */

/**
 * ============================================================================
 * Editing the loading page
 * ============================================================================
 */

.loading-container {
  /* display: none; */
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  justify-content: center;
  background-color: var(--color-grey-lighter);
  z-index: var(--z-index-level-ceil);
  transition: all 0.5s;
}

.loading-container.hidden {
  display: none;
}

.loading-container.visually-hidden {
  opacity: 0;
}

.loading-image-container {
  background-image: url("../assets/africa_print.png");
  background-size: var(--background-image-size);
  width: var(--background-image-size);
  height: var(--background-image-size);
  transition: all 0.3s;
  -webkit-animation: loading 2s linear;
  animation: loading 2s linear;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  transform: scale(0);

  /* filter: invert(15%) sepia(41%) saturate(5148%) hue-rotate(337deg)
    brightness(92%) contrast(85%); */
}

.loading-image-container img {
  display: block;
  object-fit: cover;
}

@media (min-width: 400px) {
  :root {
    --background-image-size: 100px;
  }
}

@media (min-width: 768px) {
  :root {
    --background-image-size: 120px;
  }
}

@media (min-width: 1200px) {
  :root {
    --background-image-size: 140px;
  }
}

@keyframes loading {
  0% {
    transform: scale(0);
  }

  20% {
    transform: scale(1.2);
  }

  40% {
    transform: scale(0.6);
  }

  60% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(0);
  }
}

/**
 * ============================================================================
 * Editing the Header
 * ============================================================================
 **/

#header {
  padding: 1rem;
  display: flex;
justify-content: space-between;
}

/* Extra small devices (portrait phones, less than 576px) */
/* No media query since this is the default in Bootstrap */
#header-logo, #header-logo-1 {
  display: inline-block;
  max-width: 8%;
  align-self: center;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 600px) {
  #header-logo,#header-logo-1  {
    display: inline-block;
    max-width: 8%;
    margin: auto 25px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  #header-logo,#header-logo-1  {
    display: inline-block;
    max-width: 8%;
    margin: auto 25px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #header-logo,#header-logo-1  {
    display: inline-block;
    max-width: 8%;
    margin: auto 25px;
  }
}

/*Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  #header-logo,#header-logo-1  {
    display: inline-block;
    max-width: 8%;
    margin: auto 25px;
  }
}

/**
 * ============================================================================
 * Editing the Navigation Bar
 * ============================================================================
 **/

.sticky-navigation-bar {
  position: fixed;
  top: 0;
  border-bottom: 3px solid var(--color-white-alpha-050);
  -webkit-box-shadow: 0 2px 6px 0 var(--color-box-shadow-dark);
  -moz-box-shadow: 0 2px 6px 0 var(--color-box-shadow-dark);
  box-shadow: 0 2px 6px var(--color-box-shadow-dark);
}

#navigation-bar {
  background-color: var(--color-red-transparent);
  color: white;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  z-index: var(--z-index-level-3rd);
}

#navigation-bar ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-left: 0;
  list-style-type: none;
  margin: 0 auto;
}

#navigation-bar-toggler {
  display: none;
}

#navigation-bar ul li {
  display: block;
  font-weight: 400;
  padding: 1.2em 0;
  cursor: pointer;
  /* padding-bottom: 0.1rem; */
}

#navigation-bar ul li[selected="true"] span {
  color: white;
  border-bottom: 3px solid white;
}

#navigation-bar ul li:hover span {
  border-bottom: 3px solid var(--color-white-alpha-050);
  color: var(--color-white-alpha-070);
  transition: all 150ms;
}

#modal {
  display: none;
}

@media (min-width: 0px) and (max-width: 599px) {
  #navigation-bar {
    height: 5rem;
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #navigation-bar ul {
    top: 0;
    bottom: 0;
    background-color: var(--color-red);
    position: fixed;
    width: 70%;
    right: -70%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    border-left: 4px solid white;
    z-index: var(--z-index-level-1st);
  }

  #navigation-bar ul::before {
    display: block;
    content: "Menu";
    font-weight: 700;
    font-size: 1.5em;
    margin-bottom: 1rem;
    padding: 1rem 0 1.5rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 3px solid var(--color-white-alpha-010);
  }

  #navigation-bar ul li {
    display: block;
    margin: 1rem 0;
  }

  #navigation-bar ul[open="true"] {
    right: 0;
  }

  #navigation-bar #modal[open="true"] {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--color-black-alpha-080);
    z-index: var(--z-index-level-2nd);
  }

  #navigation-bar-title-on-xs-screen {
    color: white;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
  }

  #navigation-bar-title-on-xs-screen span {
    background-color: var(--color-black-alpha-015);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 5px;
  }

  #navigation-bar-toggler {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    width: 3rem;
    background-color: var(--color-black-alpha-020);
    border-radius: 50%;
    font-size: 1.3rem;
  }

  #navigation-bar-toggler:hover {
    fill: red;
    background-color: var(--color-white-alpha-020);
  }
}

@media (min-width: 600px) {
  #navigation-bar-title-on-xs-screen {
    display: none;
  }

  #avigation-bar-toggler {
    display: none;
  }

  #navigation-bar ul li {
    display: inline;
    margin: 0 1rem;
  }
}

@media (min-width: 1200px) {
  #navigation-bar ul li {
    margin: 0 2rem;
  }
}

/* disables hover styles on touch devices */
@media (hover: none) {
  #navigation-bar ul li[selected="true"] a {
    color: white;
    border-bottom: 3px solid white;
  }

  #navigation-bar-toggler {
    background-color: var(--color-black-alpha-020);
  }
}

/**
 * ============================================================================
 * Editing the Page Title
 * ============================================================================
 **/

#page-title {
  background-color: black;
  font-weight: 900;
  text-align: center;
  color: white;
  /* we need to have a 0ms transition in order to allow for the sticky top
   * to work seamlessly */
  transition: padding-top 0ms;
}

#page-title span {
  padding: 2rem 1rem;
  display: inline-block;
}

@media (max-width: 599px) {
  #page-title {
    font-size: 1.4rem;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  #page-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #page-title {
    font-size: 2.6rem;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  #page-title {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  #page-title {
    font-size: 3.25rem;
  }
}

/**
 * ============================================================================
 * Editing the Page Body
 * ============================================================================
 * */

#page-body {
  display: flex;
  flex-grow: 1;
  text-align: center;
  background-color: var(--color-grey-lighter);
  z-index: var(--z-index-level-ground);
}

.page-loading {
  overflow: hidden;
}

#body-content {
  background-color: white;
  max-width: 77.5%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex-grow: 1;
  margin: 0 auto;
  padding: 1rem 2rem;
  -webkit-box-shadow: 0 0 0.4rem var(--color-box-shadow-dark);
  -moz-box-shadow: 0 0 0.4rem var(--color-box-shadow-dark);
  box-shadow: 0 0 0.4rem var(--color-box-shadow-dark);
  border-left: 2px solid var(--color-box-shadow-dark);
  border-right: 2px solid var(--color-box-shadow-dark);
}

#body-content a,
#body-content a:link,
#body-content a:visited {
  color: var(--color-red-light);
  font-weight: 700;
}

#body-content a:hover {
  text-decoration: underline;
}

#body-content img {
  display: block;
  width: 100%;
}

#body-content img:hover {
  box-shadow: 0 0 0.5rem var(--color-box-shadow);
}

#body-content .body-big-text {
  font-size: 2.5rem;
  font-weight: 100;
  background-color: var(--color-black-alpha-005);
  border-left: 1.5rem solid var(--color-black-alpha-020);
  border-right: 1.5rem solid var(--color-black-alpha-020);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;
  padding-bottom: 0.375rem;
}

p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h1,
h2 {
  border-bottom: solid 5px var(--color-black-alpha-005);
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.5rem;
  text-decoration: underline;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.3rem;
  font-style: oblique;
}

h6 {
  font-size: 1.25rem;
}

#body-content span {
  font-size: 0.95rem;
}

#body-content div,
#body-content {
  font-size: 1.1rem;
}

@media (max-width: 599px) {
  #body-content {
    max-width: 100%;
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 400px) {
  #body-content span {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.4rem;
  }
}

@media (min-width: 500px) {
  #body-content span {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.7rem;
  }

  h4 {
    font-size: 1.6rem;
  }

  h5 {
    font-size: 1.5rem;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  #body-content {
    max-width: 87.5%;
  }

  #body-content .body-big-text {
    font-size: 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  h4 {
    font-size: 1.7rem;
  }

  h5 {
    font-size: 1.6rem;
  }
}

@media (min-width: 768px) {
  p,
  #body-content span,
  #body-content div,
  #body-content {
    font-size: 1.25rem;
  }

  #body-content .body-big-text {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  #body-content .body-big-text {
    font-size: 4rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  #body-content {
    max-width: 82.5%;
  }
}

@media (min-width: 1200px) {
  h3 {
    font-size: 1.95rem;
  }

  #body-content .body-big-text {
    font-size: 4.5rem;
  }
}

@media (min-width: 1200px) and (max-width: 1499px) {
  #body-content {
    max-width: 70%;
  }
}

@media (min-width: 1500px) {
  #body-content {
    max-width: 85%;
  }
}

@media (hover: none) {
  #body-content a {
    text-decoration: underline;
  }
}

/**
 * ============================================================================
 * Editing the Footer
 * ============================================================================
 **/

#footer {
  background-color: var(--color-black);
  font-size: 0.95rem;
  padding: 2rem 1rem;
  color: white;
  font-weight: 200;
  border-top: 3px solid var(--color-white-alpha-020);
}

#footer-logo {
  max-width: 10%;
}
/* social media */

#social-media-box {
  display: block;
  margin: 1rem auto 1rem auto;
  text-align: center;
}

.social-media-icon {
  text-align: center;
  font-size: 2.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.2rem;
}

.footer-email {
  color: var(--color-red-light);
  font-weight: 700;
}

.social-media-icon a:hover {
  text-decoration: none;
}

.social-media-icon a svg {
  margin: 0 0.5rem;
  color: white;
}

#sm-facebook:hover * *,
#sm-facebook a:hover * * {
  fill: var(--color-facebook);
}

#sm-instagram:hover *,
#sm-instagram a:hover * {
  fill: var(--color-instagram);
}

#sm-medium:hover *,
#sm-medium a:hover * {
  fill: var(--color-medium);
}

#sm-twitter:hover *,
#sm-twitter a:hover * {
  fill: var(--color-twitter);
}

/* copyright box */

.footer-box {
  display: block;
  margin: 0 auto;
  text-align: center;
}

#footer-logo {
  margin: 0.75rem auto;
  max-width: 17.5%;
}

@media (max-width: 599px) {
  #footer-logo {
    max-width: 35%;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  #footer-logo {
    max-width: 20%;
  }
}

@media (min-width: 768px) {
  .social-media-icon a svg {
    margin: 0 0.75rem;
  }
}

.footer-box span {
  display: block;
  font-weight: 200;
  margin: 0 auto;
}

/**
 * ============================================================================
 * Editing the Modal
 * ============================================================================
 */

#modal {
  position: fixed;
  display: none;
  top: 0;
  width: 100%;
  background-color: var(--color-black-alpha-060);
  z-index: var(--z-index-level-2nd);
}
