/**** GENERAL *****/
* {
  box-sizing: border-box;
  font-family: Roboto;
}

a {
  text-decoration: none;
  color: #002358;
}

.container {
  max-width:1350px;   
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  box-sizing: border-box;
}

main {
  padding-top: 120px;
  }


/**** HEADER *****/
header {
	padding: 0px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
  background-color: white;

}


.logo-container {
	text-align: center;
	height: 64px;
	max-height: auto;
	width: auto;
	background:linear-gradient(to right, white 1% , #002358 50%, white 99%);
}

.mylogo{
	height: 64px;
	max-height: 100%;
	width: auto;
}

.navbar li a {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 0px 20px;
  font-size: 1.2em;
  color: #002358;
}

.navbar {
  text-align: center;
  border-bottom: solid 2px;
  color: #002358;
  background-color: white;
  margin
}

  .navbar ul li{
  display: inline-block;
  text-decoration: none;
}

.navbar ul li :hover{
  transition: .7s;
  border-radius: 8px;
  background-color: #EAE6E5;

}

.navbar ul li:hover > ul,
.drop  ul:hover {
  visibility: visible;
  transition: visibility  5s;
  opacity: 1;
  display: block;
  float: left;
  padding: 0;
  }

.drop ul{
  visibility: hidden;
  position: absolute;
  z-index: 1;
  text-align: left;
  ;
}

.navbar ul li ul li {
  display: block;
  position: relative;
  text-align: left;
  padding: 15px 0;
  background-color: #EAE6E5;
  border: solid 1px;
  border-radius: 3%;
}

/**** MAIN TITLE ****/

#main-title {
  text-align: center;
  color: #002358;
  position: relative;
}

#main-title:after {
  background-image: url("../../images/endring1.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  content: '';
  width: 100%;
  top: -110px;
  left: 0;
  height: 668px;
  position: absolute;
  z-index: -1;
  transform: skew(0deg, -5deg);
}

.herobanner {
  padding-top: 10%;
  color: #002378;
  font-style: bold;
  font-size: 1.8em;
}

/**** ENDRINGS MODELS ****/

#endrings-models {
  margin-top: 2.5%;
}

#gallery {
  padding-top: 75px;
}

#gallery .container {
  padding: 25px 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 24px rgba(0, 0, 0, .5);
  position: relative;
}


#gallery .item {
  text-align: center;
  width: 25%;
  align-items: stretch;
  padding: 10px;
}

#gallery .picture img{
  width: 100%;
  text-align: center;
  border-radius: 50px;
  padding-top: 10px;
}


#gallery .pdf {
  display: flex;
  width: 25px;
  margin: 10px auto 0 auto;
}

.product {
  padding: 25px 25px;
  background-color: #F6F7F8;
  border-radius: 15px;
  box-shadow: 5px 5px 5px grey;
}

#gallery span{
  font-weight: bold;  
}

.caption2 {
  padding-top: 10px;
}

/***** FOOTER *****/
#page-footer {
  margin-top: 7.5%;
  background-color: #002378;
  padding-top: 10px;
}

#page-footer .container{
  height: 125px;
}

#mainfooter {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

#mainfooter .item {
  flex-grow: 1;
  margin-right: 100px;
}

#mainfooter .item p{
  font-size: 1em;
  margin-top:0;
  margin-bottom: 5px;
  color: #F6F7F8;
}

#contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: 35px;
}

#mainfooter #contact .item p {
  text-align: center;
}

#mainfooter #contact .item  {
margin: 2px 0;
 flex-shrink: 2;
}


#mainfooter #contact .item span {
  font-size: 1.0em;
  color: white;
  text-align: left;
  
}

#mainfooter #contact .item a {
  font-size: 1.0em;
  color: white; 
  text-align: left;
}

#mainfooter #contact .item span a{
  padding-right: 5px;
}

#mainfooter #contact .item span a:hover{
  color: orange;
}

.picture img {
  opacity: 1;
  transition: 0.4s linear;
}


.picture img:hover {
  opacity: 0.5;
  cursor: pointer;
}


/******** MEDIA QUERIES ********/
@media only screen and (max-width: 992px) {

#gallery .item {
  text-align: center;
  width: 33.3333%;
  align-items: stretch;
}

}

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

#gallery .item {
  text-align: center;
  width: 50%;
  align-items: stretch;
}

}

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

#gallery .item {
  text-align: center;
  width: 1000%;
  align-items: stretch;
}

}











/********* ANIMATION ***********/

@keyframes from-right {

0% {opacity: 0;
transform: translateX(500px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes from-left {

0% {opacity: 0;
transform: translateX(-500px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes from-top {

0% {opacity: 0;
transform: translateY(-150px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes from-bottom {

0% {opacity: 0;
transform: translateY(500px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes change-background {

0% {
  opacity: 0.25;
  background-color: black;

}

33% {
  opacity: 0.50;
  background-color: darkgrey;
}

66% {
  opacity: 0.75;
  background-color: lightgrey;
}

100% {
  opacity: 1;
  background-color: #F6F7F8;
}

}

