/* --- All elements --- */
* {
  box-sizing: border-box;
}

/* --dark-color: #2a3443; */
/* --shade-color: #5e6673; */
/* --shade-color: #b9cffc; */

html {
  font-size: 100%; /* --- Browserdependent,  usually 16px -- */
  --base-color: #fff;
  --dark-color: #002266;
  --shade-color: #b9cffc;
  /* --success-color: #f0f8f1; */
  --warning-color: #fbeeec;
  /* --light-background: #f4f5f7; */
  /* --light-blue: #b9cffc; */
  /* --shadow: #aab3c0; */
  --spacing: 1rem;
  --spacing-heading: 0px;
  margin: 0;
  padding: 0;  
}

/* --- ||| Write variables for all sizes, paddings etc --- */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI',
    Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol';
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  /* font-size: 18px; */
  /* line-height: 1.5rem; */
}

/* --- Make hidden elements not take up any space -- */
[hidden] {
  display: none;
}

header {
  background: var(--dark-color);
  color: var(--base-color);
  padding: var(--spacing-heading) var(--spacing);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;  
  justify-content: flex-start;
  align-items: center;
  box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 2px 9px 1px rgba(0, 0, 0, 0.12),
    0 4px 2px -2px rgba(0, 0, 0, 0.2);
  /* font-size: 20px; */
  /* position: fixed; */
  /* transition: transform 0.233s cubic-bezier(0, 0, 0.21, 1) 0.1s; */
  /* width: 100%; */
  /* will-change: transform; */
  z-index: 1000;
}

/* header.fixed {
  margin-bottom: 3em;
} */

header h1 {  
  /* flex: 1; */
  font-weight: 400;
  margin: 8px 0px;
  font-size: 1.5em;
  /* line-height: 1.75em; */
}

header div {
  flex: 1;
}

header button {
  border: none;        
  height: 1.5rem;
  width: 1.5rem;
  margin: 0.5rem 0 0.5rem 1rem;
  padding: 0px;
  background-color: transparent;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.333s cubic-bezier(0, 0, 0.21, 1);          
  cursor: pointer;
  outline: none;
}

.alert {
  background: var(--warning-color);
  padding: var(--spacing);
}

main {
  /* max-width: 1000px; */
  /* margin: 0; */ 
  padding: var(--spacing);
  padding-bottom: 0;
}

main button {
  border: none;        
  height: 1.5rem;
  width: 1.5rem;
  margin: 0.5rem 0.25rem 0.5rem 0.25rem;
  padding: 0px;
  background-color: transparent;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.333s cubic-bezier(0, 0, 0.21, 1);          
  cursor: pointer;
  outline: none;
}

.btnVessel {
  border: none;        
  height: 1.5rem;
  width: 1.5rem;
  margin: 0.5rem 0.5rem 0.5rem 0rem;
  padding: 0px;
  background-color: transparent;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.333s cubic-bezier(0, 0, 0.21, 1);          
  cursor: pointer;
  outline: none;
}

main h1 {  
  /* flex: 1; */
  font-weight: 400;
  margin: 8px 0px;
  font-size: 1.5em;
  /* line-height: 1.75em; */
}

button.butBig {        
  height: 5rem;
  width: 5rem;
  margin: 1rem 4rem;
}

#divMenu p {
  margin: 1rem;
}

/* --- ||| Switch to flex-box layout intead of tables? */

select {
  font-size: 1rem;
  color: var(--dark-color);
  background-color: var(--shade-color);
  border: 0;
  padding: 0.5rem 0.25rem;
  margin: 0; 
  box-shadow: 0.25rem 0.25rem 0.5rem #aab3c0;
}

td {
  padding: 0.5rem 0rem;
  margin: 0 0 0.5rem 0;
  vertical-align: middle;
}

input[type=number] {
  width: 5rem;
  font-size: 1rem;
  text-align: right;
  padding: 0.5rem 0.25rem;
  margin: 0; 
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=text] {
  /* width: 8rem; */
  width: 100%;
  font-size: 1rem;
  text-align: left;
  padding: 0.5rem 0.25rem;
  margin: 0; 
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=checkbox] {
  width: 2rem;
  height: 2rem;
  margin: 0; 
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#divMenu input {
  width: 5rem;
  font-size: 1rem;
  text-align: left;
  padding: 0.5rem 0.25rem;
  margin: 0 0 1rem 0; 
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


#loading {
    background: url('./img/loading.gif') no-repeat center center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9999999;
    display: none;
}




/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}



#vesselInput {
  background-image: url('./img/icons/searchicon.png'); /* Add a search icon to input */
  background-position: 0.5rem 0.5rem; /* Position the search icon */
  background-repeat: no-repeat; /* Do not repeat the icon image */
  background-size: 1rem;
  width: 100%; /* Full-width */
  font-size: 1rem; /* Increase font-size */
  color: var(--dark-color);
  padding: 0.5rem 0.25rem 0.5rem 2rem; /* Add some padding */
  border: 1px solid #ccc; /* Add a grey border */  
  border-radius: 4px;
  margin-bottom: 12px; /* Add some space below the input */
}

#vesselUL {
  /* Remove default list styling */
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* #myUL li a { */

#vesselUL li a {
  border: 1px solid #ddd; /* Add a border to all links */
  margin-top: -1px; /* Prevent double borders */
  background-color: #f6f6f6; /* Grey background color */
  padding: 0.5rem 0.25rem; /* Add some padding */
  text-decoration: none; /* Remove default text underline */
  font-size: 1rem; /* Increase the font-size */
  color: var(--dark-color); /* Add a black text color */
  display: block; /* Make it into a block element to fill the whole list */
  white-space: nowrap;
}


#vesselUL li a:hover:not(.header) {
  background-color: #eee; /* Add a hover effect to all links, except for headers */
}

div.absolute {
  position: absolute;
  top: 4rem;
  left: 1rem;
  /* width: 200px;
  height: 100px; */
  border: 0px solid #FFFFFF;
}

div.weights {
  position: absolute;
  border: 0px solid #FFFFFF;
  font-weight: bold;
}

/* nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
} */