html {
	position: relative;
	height: 100%;
}

body {
	background-image: url("http://uppfinnare.se/accounts/11848/modules/design/system/background/image.jpg");
	background-position: left top;
	background-repeat: repeat;
	background-attachment: scroll;
	font-family: 'Open Sans', sans-serif;
	position: relative;
	min-height: 100%;
	padding-bottom: 100px; /* making room for footer */
}

#search-bar {
	margin-top: 10px;
}

div.container {
	max-width: 850px;
}

div.main {
	border: 1px solid #ddd;
	background-color: #fff;
	padding: 0 30px 30px;
}

a {
	color: #21377d;
}

a:hover {
	color: #babeee;
	text-decoration: none;
}

a:focus {
	color: #21377d;
	text-decoration: none;
}

/* splash for login page */
div.splash-topper {
	text-align: center;
	padding: 20px;
	background-color: white;
}

img.splash-logo {
	max-height: 100px;
	max-width: 100%;
}

div.splash-image {
	margin: 0 0 10px;
	height: 260px;
	background-image: url("/img/splash.png");
	background-position: center; /* fallback for ie? */
	background-position-y: 0;
	background-position-x: 50%;
}

div.splash-image-small {
	margin: 0 0 10px;
	height: 125px;
	background-image: url("/img/splash.png");
	background-position: center; /* fallback for ie? */
	background-position-y: 0;
	background-position-x: 50%;
}

.log-in-container {
	padding: 30px 30px 0;
	text-align: center;
}

/* ==== FOOTER ==== */

div.footer {
	position: absolute;
	width: 100%;
	bottom: 0;
	padding: 10px;
}

div.footer img {
	height: 60px;
}

/* ==== NAVBAR ==== */

div.top-nav {
	width: 100%;
	background-color: #fff;
	border-bottom: 1px solid #ddd;
	margin-bottom: 10px;
	text-align: center;
	padding: 15px 0;
}

div.top-nav-with-splash {
	margin: 0;
	border: none;
}

div.nav-container {
	max-width: 850px;
	position: relative;
	width: 100%;
	margin: 0 auto;
	display: table;
	font-size: 2.2rem;
}

button.no-style {
	border: none;
	padding: 0;
	background: none;
	color: #21377d;
}

button.no-style:hover {
	color: #babeee;
}

button.no-style:focus {
	outline: none;
}

div#right-nav {
	position: absolute;
	right: 15px;
	bottom: 0;
}

div#right-nav > * {
	margin-left: 3rem;
}

div#right-nav > :first-child {
	/* make sure the mobile nav is centered */
	margin: 0;
}

/* ==== /navbar ==== */

@media (max-width: 752px) {
	div.splash-image {
		display: none;
	}

	div.main {
		border: none;
	}

	body {
		background-color: #fff;
		background-image: none;
		padding-bottom: 150px;
	}

	div#right-nav {
		position: initial;
		margin-top: 15px;
	}

	div.footer img {
		height: 40px;
	}
}

div.media p {
	margin: 0;
	text-align: left;
}

.pad-me-top {
	padding-top: 20px;
}

.pad-me-bottom {
	padding-bottom: 20px;
}

td.text-right {
	text-align: right;
}

td.centered {
	text-align: center;
}

textarea {
	max-width: 100%;
}

div.stars span.glyphicon {
	font-size: 200%;
	padding: 0 3px;
}

div.stars span.glyphicon-star-empty {
	color: #ccc;
}

div.short-input {
	max-width: 250px;
}

input.short-input {
	max-width: 250px;
}

select.centered {
	display: inline;
}

input.date-hour {
	padding:0 0 0 6px;
} 
input.date-minute {
	padding: 0 6px 0 0;
}

div.date-time {
	display: inline;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 6px 0 7px;
	box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
}

div.date-time input {
	height: 30px;
	background: none;
	display: inline;
	border: none;
	outline: none;
	box-shadow: none;
	width: 2em;
}

input.date-picker {
	width: 181px;
	display: inline;
}

span.date {
	color: #666;
	font-size: 11px;
}

span.dark-green {
	color: #070;
}

form.inline {
	display: inline;
}

button.no-button {
	border: none;
	padding: 0 0 0 30px;
	background: none;
	color: #a00;
}

@media (max-width: 752px) {
	button.no-button {
		padding: 10px 0 0;
		display: block;
	}
	span.date {
		display: block;
	}
}

span.clickable {
	cursor: pointer;
}

span.error {
	color: #a00;
}

span.right {
	text-align: right;
}

span.green {
	color: #3c3;
}

span.bold {
	font-weight: 700;
}

span.box {
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 5px 10px;
	margin: 0 0 5px;
	display: inline-block;
}

img.profilePic {
	display: block;
	max-width: 100%;
	margin: 20px 0;
}

input.centered {
	margin: 0 auto;
}

span.close {
	font-size: inherit;
}

/*
 *	==== SLIDER ====
 */

input[type=range]::-ms-tooltip {
	display: none;
}

input[type=range]::-ms-track {
  width: 100%;
  background-color: #ccc;
  height: 2px;
  margin: 5px 0;
  cursor: pointer;
}

input[type="range"] {
	-webkit-appearance: none;
	padding: 10px 0 0;
	outline: none;
}

input[type=range]::-moz-range-track {
	height: 2px;
	margin: 5px 0;
	cursor: pointer;
	background: #ccc;
}

input[type=range]::-moz-range-thumb {
	cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	margin: 5px 0;
	height: 2px;
	cursor: pointer;
	background: #ccc;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	position: relative;
	top: -5px;
	z-index: 10;
	width: 12px;
	height: 12px;
	cursor: pointer;
	border: 1px solid #333;
	-webkit-border-radius: 40px;
	-moz-border-radius: 40px;
	border-radius: 40px;
	background-color: #f0f0f0;
}

/*
 *	==== TOOLTIP ====
 */

label.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #ccc;
}


label.tooltip .tooltiptext {
    visibility: hidden;
    width: 450px;
    background-color: #fafada;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    font-weight: 400;
    text-align: left;

    /* Position the tooltip */
    position: absolute;
    left: 15px;
    z-index: 2;
}

label.tooltip:hover .tooltiptext {
    visibility: visible;
}

div#hiddenAdds {
	display: none;
}

div.short-inline {
	width: 300px;
}

img.full-width{
	width:100%;
}

hr.minus-margin-top {
	margin-top: -10px;
	border-bottom: 2px;
}

h3.minus-margin-bottom {
	padding-bottom: 0px;
}

h3.no-margin-top {
	margin-top: 0;
}

table.centered-thead th {
	text-align: center;
}

ul.big-list {
	font-size: 150%;
}

p {
	text-align: justify;
}

.trophy-box {
	position: fixed;
	bottom: 0;
	right: calc(50% - 210px);
	z-index: 15;

	width: 400px;
	max-width: calc(100% - 20px);
}

.trophy-box div {
	transition: opacity 0.5s linear;
}

/* nice naming conventions :^) */
#infoBox {
	margin-top: 10px;
}

#infoBox h3 {
	margin: 0 0 5px;
}

.project-box {
	border-radius: 10px;
	cursor: pointer;
	padding: 15px;
	height: 150px;
}

.btn-primary {
	background-color: #4861a0;
	border: 1px solid #163173;
}

.btn-primary:hover {
	background-color: #6a81bb;
	border-color: #516cb1;
}

.btn-primary[disabled]:hover {
	background-color: #4861a0;
	border: 1px solid #163173;
}

.btn-primary:focus {
	background-color: #4861a0;
	border: 1px solid #163173;
}

.progress-bar {
	background-color: #4861a0;
}

.project-box .dropbtn.glyphicon:hover {
	color: #ef9c73;
}

.project-box:hover {
	box-shadow: inset 0px 0px 1px 0px #fff;
}

.project-box-empty {
	padding: 13px;
	background-color: #fafafa;
	border: 3px dashed #ccc;
	color: #777;
}

.project-box-empty:hover {
	background-color: #f0f0f0;	
	box-shadow: inset 0px 0px 5px 0px #fff;

	border-color: #bbb;
}

.project-box .dropdown {
	padding-top: 8px;
	padding-left: 8px;
	font-size: 120%;
}

/* Dropdowns on home screen */

.dropdown {
	position: relative;
}

.dropdown-content {
	z-index: 1;
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	width: 210px;
	right: 0;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* Links inside the dropdown */
.dropdown-content button {
	padding: 3px 6px;
	background: none;
	text-align: left;
	width: 100%;
	white-space: normal;
	outline: none;
	border: none;
	color: #4861A0;
	font-size: 16px;
	display: block;
}

.dropdown-content .glyphicon {
	padding-right: 5px;
}

.dropdown-content button:hover {
	background-color: #f1f1f1;
	color: #babeee;
}

.show {display:block;}

span.dropbtn {
	padding-right: 0.5rem;
	color: #fff;
}

.dropbtn:hover span.dropbtn {
	color: inherit;
}
