@font-face{ /*Import font*/
  font-family: "Montserrat";
  src:url("fonts/Montserrat-Regular.ttf");
}
@font-face{
  font-family: "Montserrat-Medium";
  src:url("fonts/Montserrat-Medium.ttf");
}
@font-face{
  font-family: "Montserrat-Bold";
  src:url("fonts/Montserrat-Bold.ttf");
}
html{
  scroll-behavior: smooth; /*smooth scrolling*/
}
body{
  background-image: url("../img/bgr.jpg");
  background-size: cover;
  background-attachment: fixed;
  font-family: Montserrat;
  font-size: 1.6em;
}
nav{
  margin: 0 auto;
  max-width: 1024px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.navbar{
  border-radius: 4px;
  box-shadow: -7px 7px 8px 0px rgba(0,0,0,0.30); /*semi-transparent shadow, cssmatic.com/box-shadow*/
}
nav li:hover{
  background-color: #151515; /*darker gray color*/
}
.navbar-brand img{ /*logo in nav*/
  width: 50%;
  margin-top: -19%;
}
.navbar-brand img:hover{
  opacity: 0.85;
}
.header{
  max-width: 1024px;
  margin: 0 auto;
  color: white;
  padding-top: 150px;
  padding-bottom: 80px;
}
.leftin{
  animation: slidel 3.5s 1; /*my custom keyframe animation, lasts 3.5s, runs once. Explained later*/
}
.rightin{
  animation: slideR 3.5s 1;
}
.rightin img{
  padding-top: 100px;
  width: 100%;
}
.rightin img:hover{
  animation: tilt 1s;
}
.header button{
  background-color: #222; /*same color as nav*/
  transition: 0.3s;
  margin-top: 8%;
  font-size: 1.4em;
  padding: 9px 25px 9px 25px; /*top, right, bottom, left*/
}
.header button:hover{
  color:#222;
  background-color: white;
}
.header a{
  color: white;
  text-decoration: none;
}
.header a:hover{
  text-decoration:none;
}
.header h1{
  margin-bottom: 6%;
  font-weight: bold;
  font-size: 3.8em;
}
.header p{
  font-size: 1.4em;
}
.caret{
  transform: rotate(-90deg); /*rotate it by 90 degrees clockwise*/
}
.page1{
  background-color: white;
  padding-top: 50px;
  padding-bottom: 80px;
}
.page1 h1{
  text-align: center;
  margin-bottom: 25px;
}
.page1 img{
  height: 100px;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  transition: 0.4s
}
.page1 img:hover{
  transform: rotate(180deg);
}
.page1 p{
  padding-left: 20%;
  padding-right: 20%;
  text-align: center;
}
hr{
  width: 40%;
}
.page1 .prva{
  margin-top: 50px;
}
.page1 .prva p{
  font-size: 1.4em;
}
.page1 .prva #kile{
  font-size: 3em;
  font-weight: bold;
  margin-top: 40px;
  text-transform: uppercase;
  transition: 0.5s;
  cursor: context-menu;
}
.page1 .prva #kile:hover{
  font-size: 4em;
}
.cont{
  background-color:#4ba9c8;
  color: white;
  padding-top: 50px;
  padding-bottom: 80px;
}
.cont h1{
  text-align: center;
}
.cont .contactimg{
  max-width: 70%;
  display: flex;
  margin: 0 auto;
  padding-top: 12vh;
}
.cont .contactimg:hover{
  animation: tilt 1s infinite; /*custom keyframe animation, lasts 1s, runs forever*/
}
.cont .telimg{
  max-width: 61%;
  display: flex;
  margin: 0 auto;
  padding-top: 12vh;
}
.cont .telimg:hover{
  animation: tilt 1s infinite;
}
.cont p{
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 15px;
}
.cont a{
  text-decoration: none;
  color: white;
  transition: 0.3s;
}
.cont a:hover{
  color: #222;
}
.tabl{
  background-color: #fff6e5;
  padding-top: 50px;
  padding-bottom: 80px;
}
.tabl h1{
  text-align: center;
}
.tabl hr{
  border-color: #222; /*sets the color of the table border*/
  opacity: 0.15;
}
.tabl table{
  margin: 60px auto;
  margin-top: 115px;
  box-shadow: -7px 7px 16px 0px rgba(0,0,0,0.75);
  transition: 0.3s;
  font-weight: bold;
}
.tabl table:hover{
  box-shadow: -7px 7px 32px 0px rgba(0,0,0,0.75); /*blur radius doubles*/
}
.tabl caption{
  font-size: 18px;
  padding: 12px 0;
}
.tabl thead th{
  background: #4ba9c8;
  color: #fff;
  font-size: 1.3em;
  font-weight: initial;
}
.tabl tr{
  background: #f1f1f1;
  font-size: 1.3em;
}
.tabl tr:nth-child(2n){
  background: #e0e0e0;
}
.tabl th, td {
  text-align: left;
  padding: 24px;
}
.tabl img{
  max-width: 80%;
  margin-top: 90px;
  display: flex;
}
.tabl img:hover{
  animation: point 0.8s infinite; /*Custom keyframe animation, lasts 0.8s, runs forever*/
}
footer{
  background-color: #222;
  padding-top: 50px;
  padding-bottom: 10px;
  color: white;
}
footer img{
  width: 60px;
  margin: 0 auto;
  display: flex;
  margin-bottom: 40px;
  transition: 0.4s;
}
footer img:hover{
  transform: rotate(180deg);
}
footer a{
  text-decoration: none;
  color: white;
}
footer a:hover{
  color: white;
}
.copyright{
  text-align: center;
}
@keyframes slidel { /*element slides in from left, then bounces left-right and gradually stops*/
  0% { transform:translateX(-200%); }
  30% { transform:translateX(4%); }
  45% { transform:translateX(-2%); }
  60% { transform:translateX(1%); }
  75% { transform:translateX(-1%); }
  100% { transform:translateX(0%); }
}
@keyframes slideR { /*element slides in from right, then bounces left-right and gradually stops*/
  0% { transform:translateX(200%); }
  30% { transform:translateX(-4%); }
  45% { transform:translateX(2%); }
  60% { transform:translateX(-1%); }
  75% { transform:translateX(1%); }
  100% { transform:translateX(0%); }
}
@keyframes tilt{ /*element tilts to the right, then left, then right again*/
   0% { transform: rotate(0deg); }
   25% { transform: rotate(10deg); }
   50% { transform: rotate(-10deg); }
   75% { transform: rotate(10deg); }
   100% { transform: rotate(0deg); }
}
@keyframes point{ /*element moves to the left then returns back to its starting position*/
   0% { transform:translateX(0%); }
   50% { transform:translateX(-8%); }
   100% { transform:translateX(0%); }
}
@keyframes ljulj{ /*element moves to the left, then to the right, then returns back to its starting possition*/
   0% { transform:translateX(0%); }
   25% { transform:translateX(-8%); }
   50% { transform:translateX(8%); }
   100% { transform:translateX(0%); }
}
@media only screen and (max-width:767px){ /*For mobile devices*/
  .navbar{
    box-shadow: none;
    border-radius: 0px;
  }
  .tabl img{
    transform: rotate(90deg);
    margin: 0 auto;
    margin-top: 100px;
  }
  .cont .telimg{
    padding-top: 4vh;
  }
  .rightin{
    display: none;
  }
  @keyframes point{} /*removes custom keyframe animation*/
}
