/* General */
html {
  overflow-y: scroll;
}

html *{
  font-family: "Lato";
}

.red {
  color: red;
}

.blue {
  color: #1b246f;
}

body{
  background-color: #f6f9ff;
}

/* Fancy border around photos */
.photo{
  border: 7px solid white;
  border-radius: 4px;
  box-shadow: 0px 4px 5px darkgray;
}

h1{
  text-decoration: none;
  font-weight: bold;
  font-size: 48px;
  color: #ffffff;
  display: inline;
}

h2{
  font-weight: bold;
  font-size: 24px;
  color: #1b246f;
  margin-top: 35px;
  margin-bottom: 10px;
}

h5 {
  font-weight: bold;
  color: #1b246f;
}

p {
  color: #1b246f;
}

.faint {
  opacity: 0.5;
}

/* Popup scrollbox */
.popup-scrollbox {
  overflow-x: hidden;
  overflow-y:auto;
  max-height:500px;
  position:absolute;
  z-index:1;
  border:1px solid lightgray;
  border-radius:5px;
}

.popup-scrollbox img {
  max-width:80px;
  max-height:100%;
  height: auto;
  width:auto;

  margin:0;
  padding: 0;

  border: 1px solid lightgray;
  border-radius: 3px;
}

/* Limit size of component info image */
#componentinfo img {
  max-width:100%;
  max-height:500px;
  height: auto;
  width:auto;
}

#componentinfo h5, #componentinfo p {
  word-wrap: break-word;
}

/* Tooltips */
.tooltip .tooltip-inner {
  background-color: crimson;
}

.tooltip .arrow::before {
  border-top-color: crimson;
  border-bottom-color: crimson;
}

/* Tables */
.table {
  color: #1b246f;
}

.table {
    border-bottom:0px !important;
}
.table th, .table td {
    border: 1px !important;
}

/* Forms */
#search-input {
  padding-left: 33px;
  background-image: url('img/icon_search.png');
  background-position: 7px 7px;
  background-repeat: no-repeat;
}

input[type=file] {
  display: none;
}

#imageremovebutton {
  display: none;
}

#dropZone{
  border: 1px dashed #1b246f;
  height: 0;
  min-height: 300px;
  text-align: center;
  margin-top: 20px;
  margin-left: 2px;
  margin-right: 2px;

  /* Using table-display to make it work in IE11 */
  display:table;
  width:100%;
}

#dropZone img {
  width: 90%;

  border: 7px solid white;
  border-radius: 4px;
  box-shadow: 0px 4px 5px darkgray;
}

#dropZone canvas {
  max-width: 100%;
}

#file-upload-label {
  position: relative;
  top: 4px;
}

.width-50 {
  width: 50%;
}

header{
  background-color: #1b246f;
}

.in-out-button {
  width: 150px;
}

select optgroup {
  background-color: lightgray;
}

.loader {
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* IE11 compatibility */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {

  input[type=text], input[type=number], input[type=search] {
    padding-bottom: 11px;
  }

  td .btn-group .dropdown-toggle {
    padding-top: 10px;
  }

  .ie-picker-width {
    width:400px;
  }

}

/* DEBUG */
._red {
  background-color: red;
}

._blue {
  background-color: blue;
}

._yellow {
  background-color: yellow;
}
