@font-face {
  font-family: ExoBlack;
  src: url(../fonts/Exo-Black.otf);
}

@font-face {
  font-family: ExoBold;
  src: url(../fonts/Exo-Bold.otf);
}

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

@font-face {
  font-family: ExoThin;
  src: url(../fonts/Exo-Thin.otf);
}

html, body {
  height: 100%; 
}

body {
  font-family: 'ExoRegular';
  display: flex;
  flex-direction: column;

}

video {
  
  width: 100% !important;
  height: auto !important;
}

main {
  flex: 1 0 auto;
}

h3 {
  font-family: 'ExoRegular' !important;
}

h2 {
  font-family: 'ExoRegular' !important;
}

h1 {
  font-family: 'ExoRegular' !important;
}


 /* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 13px;
}

/* Add an active class to highlight the current page */
.active {
  background-color: #4CAF50;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 13px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

  .desktopslide{
    display: block;
  }
  .mobileslide{
    display: none;
  }  




/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }

  .slideright {
    width: 100% !important; /* width of container */
    height: 250px; /* height of container */
    object-fit: cover;
    object-position: -400px 0px;
  }  

  .desktopslide{
    display: none;
  }
  .mobileslide{
    display: block;
  }  
}



.servicemain {
  position: relative;
  height: 1000px;
}

.servicemain img {
  width: 100%;
}







.servicecontent {
  position: absolute;
  left: 0;
  width: 70%;
  text-align: left;
}

 /* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
} 

.tabcontent {
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.newsimage {
  margin-bottom: 20px;
}
.newsdate {
  font-size: 13px;
}

.newstitle {
  padding: 0;
  margin: -7px 0 0 0;
}
.newslist {
  padding:  0 0 0 20px;
}

.newsitem {
    margin-bottom: 15px;
    cursor: pointer;
}

.newslistdate {
  font-size: 11px;
}

.newslisttitle {
  font-family: "ExoBold";
  font-size: 17px;
  margin: -5px 0 0 0;

}

.newsitemhidden {
  display: none;
}

.newslistcontent {
  display: none;
}

 /* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;   
  border: 1px solid #f1f1f1;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 300px;
  height: 200px;

  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: #fff;
  line-height: 200px;  
  color: black;
}

.flip-card-front img {
    vertical-align: middle;
}

/* Style the back side */
.flip-card-back {
  background-color: dodgerblue;
  color: white;
  transform: rotateY(180deg);
} 


footer {
  /* Trivial style to differentiate the footer */
  background-color: #a12444;
  flex-shrink: 0;  
}


.mainbox {

  color: #fff;
  font-weight: bolder;
  width: 30%;
  height: 30%px;
  position: absolute;
  right: 0;
  margin-top: -100px;
  text-align: left;

}

.mainboxtop {
  padding: 20px;
  background: #aaa;  
  color: #000;
  font-family: "ExoBlack";
}

.mainboxbottom {
  padding: 20px;
  background: #153c06;
 
}

.mainbox h4 {
  font-family: "ExoRegular";  
  font-weight: normal;
  line-height: 21px;
  font-size: 19px;

}

.mainboxbottom p {
  font-family: "ExoThin";
  font-weight: normal;
}

.mainboxbottom hr {
  border-top: solid 1px #6d8f66;
}



/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {

  .mainbox {
    position: relative;
    margin-top: 0;
    width: 100%;
  }
  .mainboxtop {
    padding: 3px 20px;
  }

  .mainboxbottom {
    padding: 3px 20px;    
  }


  .servicecontent {
    width: 100%;
  }
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

  h1 {
    /*color: fuchsia;*/
    font-size: 30px;
    line-height: 30px;
    margin-top: 5px !important;
  }


  h2 {
    /*color: fuchsia;*/
    font-size: 20px;
    line-height: 20px;
  }

  h3 {
    /*color: fuchsia;*/
    font-size: 20px;
    line-height: 20px;
  } 

  .mainbox {

  }
} 
