  @font-face { /* Declare the main font that will be used on the website */
font-family: 'Anonymous Pro'; /* Font stored locally */
src: url('./AnonymousPro/Anonymous-Pro.ttf');}
  
  @font-face { /* Declare the main font that will be used on the website */
font-family: 'Vollkorn'; /* Font stored locally */
src: url('./Vollkorn/Vollkorn-Regular.ttf');}
  
   @font-face { /* Declare the main font that will be used on the website */
font-family: 'Unistra'; /* Font stored locally */
src: url('./UnistraB-Regular.ttf');}

   @font-face { /* Declare bold for the font weight */
font-family: 'Unistra'; /* Font stored locally */
src: url('./UnistraB-Bold.ttf'); font-weight: bold;}


   h1.title { /* Center the title */
    display:block;
    font-family: 'Anonymous Pro', monospace, 'Vollkorn', 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
    color:#428bca;
    font-weight: bold;
  }

  body {
    min-height: 100%;
    font-family: 'Anonymous Pro', monospace, 'Vollkorn', 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
  }
  
  body.error-body {
    position:absolute; top:0; bottom:0; right:0; left:0;
    font-family: 'Anonymous Pro', monospace, 'Vollkorn', 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
  }
  
  html {
      height: 100%;
  }

  .flex-container { /* Using the CSS Flexible Box Layout Module */
    display: flex;
    margin-top: 10px;
    margin: 0;
    align-items: center;
    justify-content: center;
    font-family: 'Anonymous Pro', monospace, 'Vollkorn', 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 125%;
  }

  .flex-container>div {
    margin: 10px;
    padding:20px;
  }

  select.my_dropdown { /* Adjust the width of the select list */
    width:200px;
  }

  .form-control {
    font-family: 'Anonymous Pro', monospace, 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 110% !important;
  }

  .btn-primary {
    font-weight:bold !important;
  }

 

  .smallfont {
   color:#ffffff;
   font-size: small;
   font-weight: normal;
 }
 
 /* Custom 404 Error Page */
 
 .errorheader-1 {
     color:#4e5066;
 }
 
 .errorheader-2 {
     color:#42ca81;
 }
 
 .errorheader-3 {
     color:#4e5066;
     font-size: 120%;
 }
 
 .center-aligned {
            display: flex;
            align-items: center;
            text-align: center;
}

.distance {
    padding: 10px 0;
    font-size: 2em;
    font-weight: bold;
}

.distance-pic {
    padding:10px 0;
}

.space-pic { /* Rounded Corners for Main Image */
    border-radius: 25px;
}

.dist-container { /* Adjust padding for bottom container */
    padding-bottom: 20px;
}

.reduced { /* Reduce Picture Size */
    -moz-transform:scale(0.80);
    -webkit-transform:scale(0.80);
    transform:scale(0.80);
}
 
 
 /* Color of the 1st part of the title */
 
 .subtitle-1 {
     color:#4e5066;
 }
 
 /* Color of the 2nd part of the title */
 
 .subtitle-2 {
     color:#42ca81;
     font-size:large;
     padding-right:.25px;
 }
 
 .subtitle-3 {
     color:#42ca81;
     font-size:medium;
     padding-right:.35px;
 }
 
 .subtitle-4 {
     color:#42ca81;
     font-size:small;
     padding-right:.25px;
 }
 
 /* Set Top Margin for the 'Back to search' Button */
 
 .backbtn {
     margin-top:15px;
 }
 
 /*************************************/

 #backbutton { /* 'Back to search' button */
 text-decoration: none;
 display: inline-block;
 padding: 8px 16px;
 border: 0.5px solid #gray;
 border-radius: 10px;
 font-weight: bold;
}

#backbutton:hover {
  background-color: #4285F4;
  color: #f9f9f9 !important;
}

.previous {
  background-color: #428bca;
  color: #f9f9f9;
}

#srclanguage { /* Set color and font weight for language selection headings */
 color:#ffffff; 
 font-weight: bold;
}

#trgtlanguage { /* Set color and font weight for language selection headings */
 color:#ffffff; 
 font-weight: bold;
}

.social-icons{ /* CSS code for social navigation bar in the bottom */
 background: #428bca;
}

.fa {
 color: #fff;
}

.nav > li.about {
 color:#ffffff;
}

.nav > li.about > a:hover { /* Using the '!important' rule to ignore all subsequent rules */
background: #0077b5 !important;
}

.nav > li.about > a:focus { /* Background color for the 'focus' state */
background: #428bca;
border-style: none !important;
}

.nav > li.copyright > a:hover { /* Using the '!important' rule to ignore all subsequent rules */
background: #0077b5 !important;
}

.nav > li.copyright > a:focus { /* Background color for the 'focus' state */
background: #428bca;
border-style: none !important;
}

.nav > li.twitter > a:hover { /* Using the '!important' rule to ignore all subsequent rules */
 background: #0077b5 !important;
}

.nav > li.twitter > a:focus { /* Background color for the 'focus' state */
background: #428bca;
border-style: none !important;
}

.nav > li.linkedin > a:hover { /* Using the '!important' rule to ignore all subsequent rules */
 background: #0077b5 !important;
}

.nav > li.linkedin > a:focus { /* Background color for the 'focus' state */
background: #428bca;
border-style: none !important;
}

.nav > li.youtube > a:hover { /* Using the '!important' rule to ignore all subsequent rules */
 background: #0077b5 !important;
}

.nav > li.youtube > a:focus { /* Background color for the 'focus' state */
background: #428bca;
border-style: none !important;
}


.navbar-nav > li > a {
 padding-top: 10px;
 padding-bottom: 10px;
}

.social-icons {
 overflow: hidden;
 position: fixed;
 bottom: 0;
 width: 100%;
}

.displayed {
 position: relative;
 display: block;
 margin-top:10px;
 margin-left: auto;
 margin-right: auto;
}

.instruction-frame { 
 position: relative; background: #428bca; border-radius: .4em; padding: 10px; margin-bottom: 25px; color:#ffffff;
}

.instruction-frame:after { 
 content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 0; border: 22px solid transparent; border-top-color: #428bca; border-bottom: 0; border-left: 0; margin-left: -11px; margin-bottom: -22px; 
}

.warning {
 text-align: center;
 font-weight: bold;
}

/* Style for results message */

.result {
 text-align: center;
 color: #2d2d2d;
 font-family: 'Anonymous Pro', monospace, 'Vollkorn', 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
 font-weight: bold;
 margin: auto;
 font-size: 1.4em;
 padding: 10px 5px;
}

/* Style for table */

.table-container {
  display: flex;
  height: 100%;
  width:80%;
  margin: auto;
  align-items: center;
  justify-content: center;
}

table {  
  color: #2d2d2d;
  font-family: 'Anonymous Pro', monospace, 'Vollkorn', 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
  width: 100%;
  table-layout: fixed;
  overflow-wrap: break-word;
  border-spacing: 1em .5em;  
  border-collapse: collapse; 
}

/* Vertical Display for small devices */

@media (max-width: 767px){
  table,tr,th,td{
    display: block;
  }
  .special{
    font-size:1.2em;
  }
  .table-container{
     margin-bottom:15px;
  }
  .distance-pic {
    padding:5px 0 10px 0;
    text-align: center;
    display: block;
  }
  .distance {
    padding: 15px 0 5px 0;
    font-size: 1.5em;
    font-weight: bold;
  }
  .minified {
    margin-top: 15px;
  }
  
  h1.title {
    padding-right: 10px;
    padding-left: 10px;
  }
}

tbody {
    display: table;
    width:100%;
}

/**************************************/

td, th {  
  border: 0.5px solid transparent; /* Make borders invisible */
  transition: all 0.2s ease-in-out 0s;
}

th {  
  background: #c8c8c8;  
  font-weight: bold;
  font-size: 1.5em;
  text-align: center !important; /* Place headers at the center */
  word-wrap: break-word;
}

td {  
  background: #D5DDE5;
  padding-right: 5px;  /* Space between context and border */
  padding-left: 5px;
  font-size: 1.5em;
/* Wrap long text within a cell */
  white-space: normal !important;
  word-wrap: break-word;
/********************************/
  min-width: 0;
  overflow: auto;
}

.special {
  word-wrap: break-word;  
}

tr:nth-child(even) td { background: #EBEBEB; }  /* nth-child Selector for even rows  */ 

tr:nth-child(odd) td { background: #f5f7f9; }   /* nth-child Selector for odd rows  */

tr td:hover { background: #4E5066; color: #FFFFFF; }  /* Create hover effect */ 
    ul {
    list-style-type: none;
    margin-right: 25.6%;
    margin-left: 10px;
    padding: 0;
} 
  

li {
  display:inline;
  margin: 2px;  
}

li > a {
  font-size: 0.85em;
  padding:3px;
  display: table-cell;
    vertical-align: middle;
    font-family: 'Anonymous Pro', monospace, 'Vollkorn', 'Unistra', 'Roboto', 'Open Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.2em;
    color:#383838;
    font-weight: bold;
}

.lang {
  padding-top: 8px;
  padding-bottom:2px;
}

.title, .lang {
  display: block;
}

/* Move title to top */

h1 {
    padding-bottom: 5px;
}

/* Settings for navbar */

@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Prevent overlapping navbar */

body { padding-bottom: 50px; }
@media screen and (max-width: 768px) {
    body { padding-bottom: 0px; }
}

/* Settings for dictionary icon */

img.displayed {
    display: block;
    padding-bottom: 5px;
}
div.image {
    margin-right:5px;
}

/* Position the submit button at the bottom */

.row {
    font-size: 0;
}
.row > * {
    float: none;
    display: inline-block;
    font-size: 1.8rem; /* if using LESS it's quicker to just use @font-size-base */
}
.row > *:last-child {
    vertical-align: bottom;
}
.row p:last-child {
    margin-bottom: 0; /* optional */
}

/* Test */
@media (max-width: 767px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        overflow: hidden !important;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .navbar-collapse *[class*='navbar-'] {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav > li {
        float: none;
    }
    .navbar-nav > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}  

@media (max-width: 767px) { 
    .navbar{
        display:none;
    }
}