body {
  overflow-x: hidden;  
  font-family: Verdana, Geneva, sans-serif;
}

p {
  line-height: 1.75;
}

a {
  color: #A20A0C;
}

a:hover {
  color: #505050;
}

.text-primary {
  color: #A20A0C !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  font-family: Helvetica, Arial, sans-serif;
}

section {
  padding: 100px 0;
}

section h2.section-heading {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 15px;
}

section h3.section-subheading {
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 75px;
  text-transform: none;
  font-family: Helvetica, Arial, sans-serif;
}
section h3.section-subtitle {
  font-size: 24px;  
  margin-bottom: 55px;  
}
#portfolio h4 {
	margin-top: 25px; 
	margin-bottom: 10px; 
	font-size: 22px;  
}
b.text-bold {
	margin-top: 10px;
	color: #A30B0D;
}
.bottomSpace {
	padding-bottom: 40px;
}
.competence-header {
	display: flex;
	align-items: left;	
}
.list-competence b {
	color: #A30B0D;
	padding: 5px;
}

::-moz-selection {
  background: #A30B0D;
  text-shadow: none;
}

::selection {
  background: #A30B0D;
  text-shadow: none;
}

img::selection {
  background: transparent;
}

img::-moz-selection {
  background: transparent;
}

#mainNav {
  background-color: #212529;
}

#mainNav .navbar-toggler {
  font-size: 12px;
  right: 0;
  padding: 13px;
  text-transform: uppercase;
  color: white;
  border: 0;
  background-color: #A30B0D;
  font-family: Helvetica, Arial, sans-serif;
}

#mainNav .navbar-brand {}

#mainNav .navbar-brand.active, #mainNav .navbar-brand:active, #mainNav .navbar-brand:focus, #mainNav .navbar-brand:hover {
  color: #fec503;
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-size: 90%;
  font-weight: 400;
  padding: 0.75em 0;
  letter-spacing: 1px;  
  font-family: Helvetica, Arial, sans-serif;
}
#mainNav.navbar-shrink .navbar-nav .nav-item .nav-link {
	color: white;
	font-weight: normal;
}

#mainNav .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-nav .nav-item .nav-link:hover {
  color: #F4292F;
}

header.masterheader { 
  background-image: url("../img/header-bg.jpg");
  background-repeat: no-repeat; 
  background-attachment: fixed;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover; 
}
header.masterheader .intro-text {
	padding-top: 0;
	padding-bottom: 400px;
}

.service-heading {
  margin: 15px 0;
  text-transform: none;
}

#services .portfolio-link  {
  overflow: hidden;  
}

#services .portfolio-item {
  right: 0;
  margin: 0 0 15px;  
}

#services .portfolio-item .portfolio-link {
  position: relative;
  display: block;
  max-width: 400px;
  margin: 0 auto;
  cursor: pointer;
  border-top: 1px solid #A20A0C;
  border-left: 1px solid #A20A0C;
  border-right: 1px solid #A20A0C;
}

#services .portfolio-item .portfolio-caption {
  max-width: 400px;
  margin: 0 auto;
  padding: 25px;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid #A20A0C;
  border-left: 1px solid #A20A0C;
  border-right: 1px solid #A20A0C;
}

#services .portfolio-item .portfolio-caption h4 {
  margin: 0;
  text-transform: none;
  color: #A20A0C;
}

#services .portfolio-item .portfolio-caption p {
  font-size: 16px;
  font-style: italic;
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
}

#services * {
  z-index: 2;
}

.portfolio-img {
  -webkit-transition: all 0.8s ease-in-out;
  transition: all 0.8s ease-in-out;
  z-index: -1;
}

#services .portfolio-item:hover .portfolio-img {
  -webkit-transform: scale(1.5) rotate(-15deg);
  transform: scale(1.5) rotate(-15deg);
  opacity: 0.5;
}

#services a:hover, #services a{
	text-decoration: none;
	color: #000;
}

#services .overlay {
  background-color: #000;
  color: #fff; 
  left: 0;
  right:0;
  bottom:-100%;
  height: 0;
  position: absolute;
  text-align: center;
  opacity:0;  
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

#services .portfolio-item:hover .overlay {
  opacity: 0.8;
  bottom: 0;
  height: 100%;
}

.overlay .overlay-content {
  display: table;
  height: 100%;
  width: 100%;
}

.overlay .overlay-text {
  display: table-cell;
  vertical-align: middle;
  font-size: 2em;
}

.overlay .overlay-text .fa-link {
  font-size: 18px;
  color: #fff;
  height: 50px;
  width: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #F4292F;
  display: inline-block;
  margin-top: 20px;
  margin-right: 5px;
}

.portfolio-modal {
  padding-right: 0px !important;
}

.portfolio-modal .modal-dialog {
  margin: 1rem;
  max-width: 100vw;
}

.portfolio-modal .modal-content {
  padding: 100px 0;  
}

.portfolio-modal .modal-content h2 {
  font-size: 3em;
  margin-bottom: 15px;
}

.portfolio-modal .modal-content p {
  margin-bottom: 30px;
}

.portfolio-modal .modal-content img {
  margin-bottom: 30px;
}

.portfolio-modal .modal-content button {
  cursor: pointer;
}

.portfolio-modal .close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 75px;
  height: 75px;
  cursor: pointer;
  background-color: transparent;
}

.portfolio-modal .close-modal:hover {
  opacity: 0.3;
}

.portfolio-modal .close-modal .lr {
  /* Safari and Chrome */
  z-index: 1051;
  width: 1px;
  height: 75px;
  margin-left: 35px;
  /* IE 9 */
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  background-color: #212529;
}

.portfolio-modal .close-modal .lr .rl {
  /* Safari and Chrome */
  z-index: 1052;
  width: 1px;
  height: 75px;
  /* IE 9 */
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
  background-color: #212529;
}

.btn-close {
  color: #fff;
  background-color: #A20A0C;	  
  font-size: 14px;
  font-weight: 600;
  padding:14px 40px;
  border: 2px solid #A20A0C;
  border-radius: 4px;
  margin-top: 40px;
}

.btn-close:hover {
  color: #A20A0C;  
  background-color: #fff;	  
}
.team-member {
  text-align: center;
  margin-bottom: 100px;
}
.member-info p {
	margin: 0;
}
.member-info h4 {
	color: #A20A0C;	
	margin: 3px 0 7px 0;
	font-weight: 200;
}
.member-info h5, .member-info .member-detail {
	margin-top: 7px;
	font-weight: 200;
	
}

.details-link {
	font-size: 0.8em;
}

section#info {
	padding: 0;
	margin: 0;
}

footer {  
  padding: 25px 0;
  text-align: left;
  background-color: #212529;
  color: #4e4e4e;
  margin: 0
}
footer .col-md-4 {
	padding: 0 20px 0 20px;
}
footer a {
	color: #F4292F;
}

.brand_red {
	color: #A20A0C;	
}

.copyright {
  background-color: #F8F9FA;
  color: #212529;
}

#portfolio .container{
	padding-top: 80px;
	padding-bottom: 80px;
}
@media (min-width: 991px) {
  #mainNav {
    padding-top: 25px;
    padding-bottom: 25px;
    -webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
    -moz-transition: padding-top 0.3s, padding-bottom 0.3s;
    transition: padding-top 0.3s, padding-bottom 0.3s;
    border: none;
    background-color: transparent;	
  }
  #mainNav .navbar-brand {
    font-size: 1.75em;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;	
  }
  #mainNav .navbar-nav .nav-item .nav-link {
    padding: 1.1em 1em !important;
	font-weight: bold;
    color: black;
  }
  #mainNav.navbar-shrink {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #212529;	
  }
  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.25em;
    padding: 12px 0;
  }
}
@media (min-width: 767px) {
  section {
    padding: 150px 0;
  }
  section#about {
	padding: 80px 0;  
  }
  section h2.section-heading {
	font-size: 36px;
  }
  section h3.section-subheading {
	font-size: 22px;
	margin-bottom: 65px;
  }
  section h3.section-subtitle {
	font-size: 22px;
	margin-bottom: 50px; 
  }
  #portfolio h4 {
	font-size: 20px;  
  }
  .bottomSpace {
	  padding-bottom: 100px;
  }
  footer {
    padding: 75px 0;
  }
  #services .portfolio-item {
    margin: 0 0 30px;
  }
  header.masterheader .intro-text {    
    padding-bottom: 600px;
  } 
}
@media (max-width: 575px) {
  section {
    padding: 105px 0;
  }
  section#about {
	padding: 55px 0;  
  }
  section h2.section-heading {
	font-size: 25px;
  }
  section h3.section-subheading {
	font-size: 19px;
	margin-bottom: 45px;
  }
  section h3.section-subtitle {
	font-size: 19px;
	margin-bottom: 30px; 
  } 
  #portfolio h4 {
	font-size: 17px;  
  }
  .bottomSpace {
	  padding-bottom: 60px;
  }
  footer {
    padding: 50px 0;
  }
  #services .portfolio-item {
    margin: 0 0 20px;
  }
  header.masterheader .intro-text {    
    padding-bottom: 420px;
  } 
  p {
	  line-height: 1.5;
  }
}