/*
teal = 8,161,154
grey letters = 97, 91, 78
grey = #eee
blue = 20,112,184
*/

@font-face {
    font-family: sitemainfont;
    src: url(fonts/MyriadPro-Regular.otf);
}


body {
  padding-top: 50px;
  font-family: sitemainfont,'Lato', sans-serif;
}

img {
    padding-top: 10px;
    padding-bottom: 20px;
}

a {
  text-decoration: none;
	font-weight: bold;
  color: rgb(20,112,184);
}

footer {
	text-align: center;
	font-size: 85%;
	text-align: center;
	max-width: 600px;
	margin: auto;
}

h1, h2, h3 {
    font-family: sitemainfont,'Lato', sans-serif;
    text-align: center;
}

h1, h2 {
    color: rgb(8,161,154);
}


h4 {
    font-family: sitemainfont,'Lato', sans-serif;
}

.w3-card {
  background-color: white;
}

.w3-half {
  margin-bottom: 10px;
}

.country {
    height:150px;
}

.imgcolumn {
  float: left;
  width: 50%;
  padding: 5px;
}

.row::after {
  content: "";
  clear: both;
  display: table;
}

.logo {
  width:80%;
  min-width:300px;
  margin:0 auto;
}

.customPad {
    margin-left: 10px!important;
}

.navbar-brand {
    padding: 0;
}

.bg-grey {
    background-color: #eee;
    padding: 10px !important;   /* 40px needed for menu shortcuts */
}

.bg-main {
    background-color: white;
    /* padding:40px 20px !important; */
    padding:10px !important;
}

.bg-main a {
    color: rgb(27, 117, 187);
}

.addr-width {
    width: 260px!important;
}

.bottomPad {
    padding-bottom: 40px;
}

.clear {
    clear: both;
}

.text-fail {
  color: red;
  font-weight: bold;
}

#about, #services, #contact {
    padding-top: 20px;
}

#gallery {
   line-height:0;
   -webkit-column-count:6; /* split it into 5 columns */
   -webkit-column-gap:5px; /* give it a 5px gap between columns */
   -moz-column-count:4;
   -moz-column-gap:5px;
   column-count:6;
   column-gap:5px;
}

#gallery img {
   width: 100% !important;
   height: auto !important;
   padding-bottom:5px; /* to match column gap */
}

.boxcontainer {
  display: inline-block;
  overflow: hidden;
}

.boxcontainer img {
  display: block;
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.boxcontainer:hover img {
  -moz-transform: scale(1.5);
  -webkit-transform: scale(1.5);
  transform: scale(1.5);
}

.scrollwall_about {
  height: 40%;
  background-image: url('../images/aboutusback_large.jpg');
  background-size: 100%; /* cover whole width */
  background-attachment: fixed;  /* makes background scroll */
}

.scrollwall_news {
  height: 40%;
  background-image: url('../images/newsback2.jpg');
  background-size: 100%; /* cover whole width */
  background-attachment: fixed;  /* makes background scroll */
}



.ticker-container .ticker-tape {
  height: auto;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-container .ticker-tape:before, .ticker-container .ticker-tape:after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 80px;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.ticker-container .ticker-tape:after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.ticker-container .ticker-tape:before {
  left: 0;
  top: 0;
}

.ticker-container .slide-track {
  -webkit-animation: scroll 35s linear infinite;
          animation: scroll 35s linear infinite;
  display: flex;
  width: calc(200px * 8);
}

.ticker-container div.slide {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



/* Animation */
@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 5));
  }
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 5));
  }
}



@media (max-width: 1200px) {

   #gallery {
    -moz-column-count:    3;
    -webkit-column-count: 3;
    column-count:         3;
   }

   .scrollwall_about {
     background-image: url('../images/aboutusback_small.jpg');
   }

}

@media only screen and (max-width: 1000px) {


  .scrollwall_news {
    background-image: url('../images/newsbacksmall2.jpg');
  }

}

@media only screen and (max-width: 600px) {

  .imgcolumn {
    float:none;
    width: 80%;
    padding: 5px;
  }


}
