html, body {
  font-family: 'Source Serif Pro', serif;
  font-weight: 400;
  letter-spacing: .5px;
  height: 100%;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-color: #f8f9fa;
  color: #000000;
}

a {
  color: #4169E1;
  text-decoration: none;
}

    a:hover {
      color: #0F52BA;
    }


/* -------------------------------------------------------BACKGROUNDS */

.bg-cover {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.light-grey-bg {
  background-color: #f0f0f0;
}

.mid-grey-bg {
  background-color: #e0e0e0;
}

/* -------------------------------------------------------BORDERS */

.border-bottom_mid-grey {
  border-bottom: 1px solid #e0e0e0;
}

.border-mid-grey {
  border: 1px solid #e0e0e0;
}

/* -------------------------------------------------------BUTTONS */

.btn-bg-green {
  background-color: #506e30;
}

    .btn-bg-green:hover {
       background-color: #3a5023;
       text-decoration: none;
    }



.btn-bg-grey {
  background-color: #898b8b;
}

    .btn-bg-grey:hover {
       background-color: #6A6C6E;
       text-decoration: none;
    }

.btn-bg-red {
  background-color: #FF0000;
  color: #ffffff;
}

    .btn-bg-red:hover {
       background-color: #990000;
       text-decoration: none;
       color: #ffffff;
    }


/* -------------------------------------------------------CARDS */

.card {
    flex: 1 5 auto;
    margin: 10px;
}


/* -------------------------------------------------------HEIGHTS */

.height-10px {
	height: 10px;
}

.height-20px {
	height: 20px;
}

.height-30px {
	height: 30px;
}

.height-40px {
	height: 40px;
}

.height-60px {
	height: 60px;
}

.height-80px {
	height: 80px;
}

.height-100px {
	height: 100px;
}

.height-150px {
  height: 150px;
}

.height-200px {
  height: 200px;
}


.height-100pc {
  height: 100%;
}


/* -------------------------------------------------------FAMILY TREE */

#family-tree {
  width: 800px;
  height: 600px;
}


/* -------------------------------------------------------FLEX */

.flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;;
}


/* -------------------------------------------------------FONTS */

.font_default {
  font-family: 'Source Serif Pro', serif;
}

/* -------------------------------------------------------FONT WEIGHTS */

.font-bold {
    font-weight: 600;
}

.font-light {
    font-weight: 300;
}


/* -------------------------------------------------------GRIDS */

.grid-box {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(20rem, 1fr));
}




/* -------------------------------------------------------IMAGES */

.person-img-box {
  width: 100%;
  object-fit: cover;
}


/* ------------------------------------------------------- MARGINS */

.margin-bottom-10px {
  margin-bottom: 10px;
}

.margin-bottom-20px {
  margin-bottom: 20px;
}

.margin-left-20px {
  margin-left: 20px;
}

.margin-right-10px {
  margin-right: 10px;
}

.margin-right-20px {
  margin-right: 20px;
}

.margin-top-10px {
  margin-top: 10px;
}

.margin-top-20px {
  margin-top: 20px;
}


/* -------------------------------------------------------MEDIA QUERIES */

@media only screen and (max-width : 480px) {
   /* Smartphone view: 1 tile */
   .box {
      width: 100%;
      padding-bottom: 100%;
   }
}

@media only screen and (max-width : 650px) and (min-width : 481px) {
   /* Tablet view: 2 tiles */
   .box {
      width: 50%;
      padding-bottom: 50%;
   }
}

@media only screen and (max-width : 1050px) and (min-width : 651px) {
   /* Small desktop / ipad view: 3 tiles */
   .box {
      width: 33.3%;
      padding-bottom: 33.3%;
   }
}

@media only screen and (max-width : 1290px) and (min-width : 1051px) {
   /* Medium desktop: 4 tiles */
   .box {
      width: 25%;
      padding-bottom: 25%;
   }
}



/* -------------------------------------------------------NAVS */

.nav-tabs > a {
  color: #ec671b;
}

.nav-tabs.active > a {
  color: #ec671b;
}

nav .navbar-nav li a{
  color: #000000 !important;
  }


/* -------------------------------------------------------PADDINGS */

.padding-default {
  padding: 1em;
}

.padding-feature {
  padding: 50px;
}


/* -------------------------------------------------------SIDEBAR */

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #f8f9fa;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidebar a {
  padding: 8px 8px 8px 32px;
  margin-left: 20px;
  text-decoration: none;
  color: black;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #f1f1f1;
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #f8f9fa;
  color: black;
  padding: 10px 15px;
  border: none;
}


#main {
  transition: margin-left .5s;
  padding: 16px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidebar {padding-top: 15px;}
  .sidebar a {font-size: 18px;}
}


/* ------------------------------------------------------- TABLES */

table {
    margin: 0 auto;
    width:100%;
    table-layout: fixed;
    overflow-wrap: break-word;
  }

.table_cell_pad td, th {
    padding: 8px;
}

/* ------------------------------------------------------- TEXT COLOURS */

.text-blue {
  color: #4169E1;
}

#link-red {
  color: #FF0000 !important;
}




/* ------------------------------------------------------- TEXT SIZES */

.text-sml {
  font-size: .8em;
}

.text-large {
  font-size: 1.5em;
}

.text-medium {
  font-size: 1.5em;
}

.text-regular {
  font-size: 14px;
}

.text-42 {
  font-size: 42px;
}


/* ------------------------------------------------------- TEXT FORMATS */

.text-center {
  text-align: center;
}

.text-justified {
  text-align: justify;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-uppercarse {
  text-transform: uppercase;
}


/* ------------------------------------------------------- WIDTHS */

.max-width-380px {
  max-width: 380px!important;
  margin-left: auto;
  margin-right: auto;
}
