:root {
  --page-background-color: #F7F7F7;
  --header-button-background-color: #F2F5FF;
  --header-button-text-color: #1C274A;
  --header-utils-background-color: #0D183B;
  --page-language-color: #806A7C;
}

html, body {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--page-background-color);
  width: 100vw;
  margin: 0;
  padding: 0;
}

a.homepage {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  position: relative;
  cursor: pointer;

}

/***    General styling of the header section of the website    ***/

header.headerBox {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 100%;
} 

div.colorSchemeBox {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-color: var(--header-button-background-color);
  cursor: pointer;
}

div.colorSchemeLight, div.colorSchemeDark {
  border: 3px solid black;
  border-radius: 15px 0px 0px 15px;
  padding: 4px 10px;
  background-color: var(--header-utils-background-color);
  color: var(--header-button-background-color);
  border-color: var(--header-utils-background-color);
}

div.colorSchemeDark {
  border-left: none;
  border-radius: 0px 15px 15px 0px;
  background-color: var(--header-button-background-color);
  color: black;
}

/***    Media query to target devices of mobile type in portrait mode     ***/

@media only screen and (orientation: portrait) and (max-width: 500px) and (min-resolution: 2dppx),
       only screen and (orientation: portrait) and (max-width: 500px) and (min-resolution: 3dppx),
       only screen and (orientation: portrait) and (max-width: 500px) {
  header.headerBox {
    display: flex;
    flex-direction: row-reverse;
    margin: 0;
    padding: 0;
    margin-top: 5px;
  }

  img.logoImg {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
  }

  span.slogan {
    padding-right: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--header-utils-background-color);
  }
  a.homepage {
    max-width: 50%;
    min-width: 30%;
    padding-right: 10px;
  }

  /**     styling the header buttons for support **/

  div.supportBtnsBox {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 30%;
    max-width: 60%;
  }

  .supportBtns {
    padding: 3px 5px;
    font-size: 14px;
    margin-left: 5px;
    min-width: 100px;
    background-color: var(--header-button-background-color);
    color:  var(--header-button-text-color);
    font-weight: bold;
    border-radius: 10px;
    opacity: 0.9;
    margin-top: 14px;
    box-shadow: 2px 2px 2px #C2B2B2;
  }

  .supportBtns:last-of-type {
    margin-top: 10px;
  }

  /**   Styling the page utilities (color scheme and search bar)    **/

  div.settingsBox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
  }

  div.pageLangBox {
    position: relative;
    padding: 4px 30px;
    border: 2px solid var(--header-utils-background-color);
    border-radius: 5px;
    margin-top: 10px;
    color: var(--page-language-color);
    box-shadow: inset 2px 2px 3px #C2B2B2;
    text-shadow: 3px 3px #EBE6E6;
  }

  i#firstPicker {
    font-size: 10px;
    position: absolute;
    color: var(--header-utils-background-color);
    top: 8px;
    left: 6px;
  }

  i#secondPicker {
    font-size: 10px;
    position: absolute;
    color: var(--header-utils-background-color);
    top: 8px;
    right: 6px;
  }

  hr {
    margin-top: 15px;
    background: var(--header-utils-background-color);
    height: 2px;
    border: none;
  }
}

/***    Media query to target devices of large screen type in landscape mode     ***/

@media only screen and (min-width: 900px) and (max-height: 1000px) {
  header.headerBox {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    width: 100vw;

  }

  a.homepage {
    position: absolute;
    top: 5px;
    right: 10px;
  }

  img.logoImg {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
  }

  span.slogan {
    padding-right: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--header-utils-background-color);
  }
  

  /**     styling the header buttons for support **/

  div.supportBtnsBox {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .supportBtns {
    padding: 10px 5px;
    font-size: 16px;
    margin-left: 5px;
    min-width: 150px;
    background-color: var(--header-button-background-color);
    color:  var(--header-button-text-color);
    font-weight: bold;
    border-radius: 10px;
    opacity: 0.9;
    box-shadow: 2px 2px 2px #C2B2B2;
    cursor: pointer;
    margin-top: 14px;
  }

  .supportBtns:hover {

  }

  hr {
    margin-top: 30px;
    background: var(--header-utils-background-color);
    height: 2px;
    border: none;
  }

  /**   Styling the page utilities (color scheme and search bar)    **/

  div.settingsBox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-left: 50px;
  }

  div.pageLangBox {
    position: relative;
    padding: 4px 30px;
    border: 2px solid var(--header-utils-background-color);
    border-radius: 5px;
    margin-left: 50px;
    color: var(--page-language-color);
    box-shadow: inset 2px 2px 3px #C2B2B2;
    text-shadow: 3px 3px #EBE6E6;
    cursor: pointer;
  }

  i#firstPicker {
    font-size: 10px;
    position: absolute;
    color: var(--header-utils-background-color);
    top: 8px;
    left: 6px;
  }

  i#secondPicker {
    font-size: 10px;
    position: absolute;
    color: var(--header-utils-background-color);
    top: 8px;
    right: 6px;
  }
}
