/* This file should contain all styling for the Genoex pages  */


/* === General formatting === */
body {
  margin: 0;
  background-color: #ecebbe;
}

p {
  padding-bottom: 20px;
  margin: 0;
}

a {
  text-decoration: none;
}

a:focus, a:hover {
  text-decoration: underline;
}

h2 {
  padding-bottom: 10px;
  margin: 0;
/* TODO include basic fonts i.e. 'Open Sans' */
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
}

/* Basic element's */
.btn {
  border: 0;
  border-radius: 300px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Open Sans','Helvetica Neue',Arial,sans-serif;
  font-weight: 400;
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  font-size: 14px;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  touch-action: manipulation;
  transition: all .35s;
  cursor: pointer;
  background-color: #f1f1f1;
  color: black;
}

.btn:hover, .btn:focus {
  background-color: #e0e0e0;
  text-decoration: none;
}

/* used by web2py */
.form-group {
    margin-bottom: 15px;
}

/* Make error messages produced by web2py more visible */
.error_wrapper {
  display: block;
}
.error {
  background-color: yellow;
  color: red;
  display: inline-block;
  font-size: 18px;
  margin: 4px;
  padding: 0 1px 1px 1px;
}
/* Enable this to highlight the whole entry section of the form too
.invalidinput {
  background-color: yellow;
}
*/

/* === Nav-bar === */
/* general navbar list style */
.navbar ul{
  font-family: 'Open Sans','Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  background-color: #343967;
  position: fixed; /* don't scroll */
  top: 0;
  width: 100%; /* needed with 'fixed' */
  z-index: 10; /* always on top */
}

/* general navbar link style */
.navbar ul a {
  display: block; /* block is default 100% width */
  color: rgba(255,255,255,.7);
  padding: 15px; /* possible since 'block' */
  text-align: center; /* needed when not float */
}

.navbar li a:hover {
  text-decoration: none;
  color: #FFFFFF;
}

/* float menu horizontal (left-right) or vertical (none) */
.navbar li {
  float: left;
}

/* the div containing the left part */
.navbar-left {
  float: left;
}

.navbar-left li a {
  font-size: 18px;
}

/* the div containing the right part */
.navbar-right {
  float: right;
}

.navbar-right li a {
  font-size: 13px;
}

.dropdown {
    position: relative;
}

/* standard style for the dropdown items */
.dropdown-content {
  display: none;
  position: absolute; /* positioned relative to the nearest positioned ancestor  */
  background-color: #343967;
  right: 0; /* right align to parent position */
  min-width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 15px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* will display 'WHITE DOWN-POINTING TRIANGLE' */
.dropdown-btn:after {
    content: ' \25BD';
}

/* expanded vertical menu on small screens */
@media screen and (max-width: 800px) {
  .navbar ul{
    overflow: hidden; /* needed when not position 'fixed' */
    position: relative; /* do scroll */
  }

  .navbar li, .navbar-right, .navbar-left {
    float: none;
  }

  /* expand the drop down items */
  .dropdown-content {
    display: block;
    position: relative;
    box-shadow: none;
  }
}


/* === Centered column for text and content, only specifying width ===*/
.content-column {
  width: 66%;     		/* width of the column */
  margin: auto;         /* centre the column */
  text-align: center;   /* centre the text in the column */
}

/* limit expansion on huge screens */
@media screen and (min-width: 2500px) {
  .content-column {
    max-width: 1650px;  /* width of the column */
  }
}

/* increase width on small screens */
@media screen and (max-width: 800px) {
  .content-column {
    width: 90%;
  }
}


/* === <section> & <header> specifying height and style of text and background ===*/
.gx-top { /* content at the top, purple text on white background */
  margin: auto;
  padding-top: 120px;
  padding-bottom: 120px;
  color: rebeccapurple;
  font-size: 16px;
}

.gx-startpage { /* content at the top, purple text on white background, extra padding */
  margin: auto;
  padding-top: 200px;
  padding-bottom: 140px;
  color: rebeccapurple;
  font-size: 16px;
}

.gx-about { /* content mid page, white text on blue background */
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: #186396;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.gx-contact { /* content low page, black text on white background */
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: white;
  color: #333333;
  font-size: 16px;
}

.gx-aside { /* content end of page, black text on yellow background */
  padding-top: 50px;
  background-color: #D8DD38;
  color: #808080;
  font-size: 16px;
}

.gx-git-version { /* end of page, immediately following .gx-aside, black text on yellow background */
  padding: 15px;
  padding-top: 50px;
  font-weight: 400;
  text-align: right;
  font-size: 12px;
  background-color: #D8DD38;
  color: #808080;
}

.gx-status { /* status page, black text on white background */
  margin: auto;
  padding-top: 200px;
  padding-bottom: 140px;
  font-size: 14px;
}


/* === Tool-tip ===*/
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -100px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}


/* === Styling of the flash messages presentation ===*/
div.w2p_flash {
    font-weight:bold;
    display:none;
    position:fixed;
    padding:10px;
    top:58px;
    right:250px;
    min-width:280px;
    opacity:0.95;
    margin:0 0 10px 10px;
    vertical-align:middle;
    cursor:pointer;
    color:#fff;
    background-color:#000;
    border:2px solid #fff;
    -o-border-radius: 8px;
    -moz-border-radius:8px;
    -webkit-border-radius:8px;
    border-radius:8px;
    background-image: -webkit-linear-gradient(top,#222,#000);
    background-image: -o-linear-gradient(top,#222,#000);
    background-image: -moz-linear-gradient(90deg, #222, #000);
    background-image: linear-gradient(top,#222,#000);
    background-repeat: repeat-x;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    z-index:2000;
}

div.w2p_flash #closeflash{color:inherit; float:right; margin-left:15px;}

div.w2p_flash:hover { opacity:0.25; }


/* === Per element styling ===*/
.gx-about h2 {
  color: white;
}

.gx-about a {
  color: white;
}

.gx-contact a {
  color: #333333;
}

.gx-icon {
  max-width: 40px;
}

.gx-aside h2 {
  color: white;
}

.gx-aside a {
  color: #808080;
}

#aids {
  float: left;
  margin: 15px;
}

#platform-arrays {
  float: right;
  margin: 15px;
}

#extraction-type {
  float: left;
  margin: 25px;
}

#date {
  float: left;
  margin: 25px;
}

#delta {
  float: left;
  margin: 25px;
}

/* re-arrange blocks on small screens */
@media screen and (max-width: 1400px) {
  #aids {
    float: none;
  }

  #platform-arrays {
    float: none;
  }
}
@media screen and (max-width: 1000px) {
  #extraction-type {
    float: none;
  }

  #date {
    float: none;
  }

  #delta {
    float: none;
  }
}

.gx-logotype img {
  max-width: 70%;
  margin: 20px;
}

