/*
    Document   : sigloweb.css
    Created on : Nov 19, 2013, 11:06:00 AM
    Author     : fernando_cav@megalab.es
    Description: Application main styles.
*/

/* ¬_¬ CSS Reset
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
}

/* Sticky footer
-------------------------------------------------- */
html,
body {
  height: 100%;
}

body>#wrap {
  min-height: 100%;
}

#main-content {
  overflow: auto;
  padding-bottom: 200px;
  /* must be same height as the footer */
  text-align: center;
}

footer {
  position: relative;
  clear: both;
  margin-top: -160px;
  /* at least negative value of footer height */
  height: 220px;
  padding: 10px 0;
  text-align: center;
}

footer p,
footer a:link,
footer a:visited {
  margin-bottom: 0;
}

@media screen and (min-width: 979px) {
  footer {
    background-color: white;
    border-top: 1px solid #DADADA;
  }

  footer:hover {
    -webkit-box-shadow: 0 -2px 6px 2px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 -2px 6px 2px rgba(0, 0, 0, .2);
    -o-box-shadow: 0 -2px 6px 2px rgba(0, 0, 0, .2);
    box-shadow: 0 -2px 6px 2px rgba(0, 0, 0, .2);
  }
}

/* Legacy footer styles
-------------------------------------------------- */
#footer {
  position: relative;
  clear: both;
  background-color: white;
  margin-top: -160px;
  /* at least negative value of footer height */
  height: 220px;
  padding: 10px 0;
  text-align: center;
  border-top: 1px solid #DADADA;
}

#footer p,
#footer a:link,
#footer a:visited {
  margin-bottom: 0;
}

/* END legacy footer styles */


@media screen and (min-width: 979px) {
  html {
    /* Pretty light mosaic background */
    background: url('../images/bg.png');
  }
}

/* Set responsive footer */
@media (max-width: 979px) {
  body {
    padding-right: 0;
    padding-left: 0;
  }

  footer,
  .wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Set up a baseline grid
-------------------------------------------------- */
h1 {
  font-size: 3rem;
  /* 48 / 16 */
  line-height: 1rem;
  /* 48 / 48 */
  margin-bottom: .5rem;
  /* 24 / 48 */
}

h2 {
  font-size: 2.25rem;
  /* 36 / 16 */
  line-height: 1.333333333333333rem;
  /* 48 / 36 */
  margin-bottom: .6666666666666667rem;
  /* 24 / 36 */
}

h3 {
  font-size: 1.5rem;
  /* 24 / 16 */
  line-height: 1rem;
  /* 24 / 24 */
  margin-bottom: 1rem;
  /* 24 / 24 */
}

h4 {
  font-size: 1.3125rem;
  /* 21 / 16 */
  line-height: 1.142857142857143rem;
  /* 24 / 21 */
  margin-bottom: 1.142857142857143rem;
  /* 24 / 21 */
}

h5 {
  font-size: 1.125rem;
  /* 18 / 16 */
  line-height: 1.333333333333333rem;
  /* 24 / 18 */
  margin-bottom: 1.333333333333333rem;
  /* 24 / 18 */
}

h6 {
  font-size: 1rem;
  /* 16 / 16 */
  line-height: 1.5rem;
  /* 24 / 16 */
  margin-bottom: 1.5rem;
  /* 24 / 16 */
}

p {
  font-size: 1rem;
  /* 16 / 16 */
  line-height: 1.5rem;
  /* 24 / 16 */
  margin-bottom: 1.5rem;
  /* 24 / 16 */
}

/* Images vertical alignment
-------------------------------------------------- */
img {
  vertical-align: middle;
}

/* Styles for definition lists
-------------------------------------------------- */
dl {
  font-size: .9rem;
}

dt {
  clear: left;
  float: left;
  padding-right: 20px;
  font-weight: bold;
}

dd {
  padding-bottom: 5px;
  font-weight: normal;
}

/* Hidden stuff
-------------------------------------------------- */
.hidden {
  display: none;
}

/* General links styles
-------------------------------------------------- */
body {
  background-color: rgba(255, 255, 255, 0);
  /* transparent background */
  font-size: .95rem;
}

a:link,
a:visited {
  color: #0F3369;
  /* Megalab corporate dark blue */
  text-decoration: none;
  font-weight: normal;
}

a:hover {
  color: #0F3369;
}

/* Megalab corporate dark blue */

/* Common list styles
-------------------------------------------------- */
ul {
  list-style: none;
}

/* Styles for header stuff
-------------------------------------------------- */
header {
  border-bottom: solid 1px #b7ddf2;
}

@media (max-width: 767px) {
  header h3 {
    padding: 10px 0 5px 1%;
    margin: 0;
  }
}

@media (max-width: 979px) {
  header h3 {
    padding: 25px 0 5px 1%;
    margin: 0;
  }
}

@media screen and (min-width: 980px) {
  header img {
    padding: 15px;
  }

  header h3 {
    padding: 45px 0 15px 3%;
    margin: 0;
  }
}

/* Style for main sections
-------------------------------------------------- */
.main-section {
  background-color: rgba(255, 255, 255, .9);
  text-align: left;
}

@media screen and (min-width: 980px) {
  .main-section {
    width: 85%;
    margin: 30px auto;
    padding-bottom: 1rem;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .2);
    -o-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .2);
  }
}

@media (max-width: 979px) {
  .main-section {
    width: 100%;
  }
}

.main-section p {
  font-weight: normal;
  text-align: justify;
}

/* Main info articles
-------------------------------------------------- */
.main_info {
  margin: 0 auto;
  padding: 20px 3%;

  text-align: left;
}

/* Toolbars
-------------------------------------------------- */
.actions_box {
  text-align: right;
  padding: 10px;
}

/* Login stuff
-------------------------------------------------- */
#login_box {
  padding: 20px 10px;
}

/* Whole page login container
--------------------------------------------------- */
.login_content {
  width: 25%;
  margin: 20px auto 20px auto;
  padding: 20px;
}

/* Form settings
-------------------------------------------------- */
form {
  background-color: rgba(255, 255, 255, 1);
  overflow: hidden;
  -webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, .5);
  -moz-box-shadow: 0 0 3px 0 rgba(0, 0, 0, .5);
  -o-box-shadow: 0 0 3px 0 rgba(0, 0, 0, .5);
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, .5);
}

form fieldset {
  padding: 15px 5%;
  margin: 0 auto;
  border: 0;
}

form label {
  font-size: .8rem;
  font-weight: bold;
  text-align: left;
}

form .textarea {
  width: 90%;
  border: solid 1px #aacfe4;
  text-align: left;
}

form .checkbox {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Error/warning styles
-------------------------------------------------- */
form .error_hilight {
  border: 1px solid red;
  box-shadow: 0 0 3px red;
}

/* Legal terms styles
-------------------------------------------------- */
#legal_content,
#privacy_content {
  background: #fff;
  color: #333333;
  padding: 25px;
  font-size: .8rem;
  font-style: normal;
  text-align: justify;
}

#legal_content>h4,
#privacy_content>h4 {
  margin: 0 auto;
  padding-bottom: 20px;
  text-align: center;
}

#legal_content>.lead,
#privacy_content>.lead {
  margin: 25px 0 5px;
  font-size: 1rem;
  font-weight: bold;
}

#legal_content a:link,
#legal_content a:visited,
#privacy_content a:link,
#privacy_content a:visited {
  text-decoration: underline;
}