

/* font-family: 'Open Sans', sans-serif; */
/* font-family: 'Raleway', sans-serif; */

@font-face {
  font-family: BankGothic;
  src: url(fonts/BankGothic_Regular.ttf);
}

body {
  background-color: rgb(255, 255, 255);
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  color: #e12b00
}

header {
  margin-bottom: 65px;
  margin-top: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header img {
  width: 40%;
}


/* Navigation bar */


.navigationBar {
  background-color: #333;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navigationBar a {
  color: #f2f2f2;
  text-decoration: none;
  padding: 25px 50px;
}

.navigationBar a:hover {
  background-color: #ddd;
  color: black;
}

.navigationBar .active {
  background-color: red;
}


/* Short About Box */


.shortAboutContainer {
  padding: 50px 0;
  background-color: #4d4d4d;
}

.shortAbout {
  width: 50%;
  text-align: center;
  color: white;
  margin: auto;
}


/* Images */


.projectsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-bottom: 50px;
  padding-top: 70px;
  width: 70%;
  margin: auto;
}

.projectsPicturesColumns {
  margin: 1px;
  flex: 25%;
  max-width: 25%;
}

.item img{
  vertical-align: middle;
  width: 100%;
  margin: 1px;
}

/* YHTEYSTIEDOT */

.contactContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 10px 0 50px 0;
  background-color: #4d4d4d;
}

.contact {
  text-align: center;
  color: white;
  text-decoration: none;
}

.contactLinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact a {
  color: rgb(255, 71, 80);
  text-decoration: none;
  margin: 0 25px;
  line-height: 50px;
}

a[href^="tel"] {
  width: 250px;
}

a[href^="mailto"] {
  width: 350px;
}

/* CCR LYHYESTI */


.aboutBackground {
  background-color: #4d4d4d;
}

.about {
  margin: auto;
}

.aboutbox {
  margin: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 50%;
}

.abouttextframe {
  margin-top: 50px;
  margin-bottom: 75px;
  height: auto;
  color: white;
}

.abouttextframe h2 {
  font-family: BankGothic;
  text-align: center;
  font-size: 4rem;
}

.abouttextframe ul {
  justify-content: left;
  align-content: left;
  text-align: left;
  color: rgb(255, 71, 80);
}


/* footer */


footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  color: indianred;
  text-decoration: none;
  font-size: 1.8rem;
  margin: 25px auto;
}


.footerContainer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 25px auto;
  text-align: center;
}
/*
.footertextName {
 background-color: lightskyblue;
}

.footertextAddress1 {
 background-color: lawngreen;
}

.footertextAddress2 {
 background-color: lightcoral;
}
*/

footer h6 {
  padding: 0 50px;
}


/* Hover animation */


.projectsContainer img:hover {
  opacity: 1;
	animation: SizeBorder 0.5s;
  animation-fill-mode: forwards;
}

@keyframes SizeBorder {
	0% {
    box-shadow: 0 0 0px 0px rgba(0, 140, 186, 0.5);
    transform: scale(1);
	}
	100% {
    box-shadow: 0 0 10px 5px rgba(0, 140, 186, 0.5);
    transform: scale(1.01);
	}
}


/* For Tablet */
@media screen and (max-width: 1024px) {

  header img {
    width: 80%;
  }

  .navigationBar {
    display: block;
    margin: auto;
  }

  .navigationBar a {
    display: block;
  }

  .navigationBar a:hover {
    display: block;
    width: 35%;
    margin: auto;
  }
  
  .navigationBar .active {
    display: block;
    width: 35%;
    margin: auto;
  }

  .projectsPicturesColumns {
    flex: 100%;
    max-width: 100%;
  }

  .projectsContainer {
    padding-bottom: 25px;
  }

  .aboutbox {
    width: 70%;
  }
  
/*
  .footerContainer {
    display: block;
    width: 100%;
    font-size: 2rem;
  }
*/

}

/* For Mobile */
@media screen and (max-width: 768px) {

  header img {
    width: 80%;
  }

  .projectsPicturesColumns {
    flex: 100%;
    max-width: 100%;
  }

}
