html,
body {
    height: 100%;
}

.wrap {
    background-image: url(/img/background_tile.jpg);
    padding: 0 0 1.5rem;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

/*
.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}
*/

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\f0de";
}

a.desc:after {
    content: "\f0dd";
}

.sort-numerical a.asc:after {
    content: "\f162";
}

.sort-numerical a.desc:after {
    content: "\f886";
}

.sort-ordinal a.asc:after {
    content: "\f884";
}

.sort-ordinal a.desc:after {
    content: "\f160";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.flex-grid {
	align-items: flex-start;
    display: flex;
}

.main {
    flex: 7;
}

#clock {
    background: rgba(0,0,0,0.85);
    color: gold;
    font-size: 0.8rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

@media screen and (max-width: 639px) {
	#sidebar {
	    width: 250px;
	    height: 100vh;
	    overflow-y: scroll;
	    position: fixed;
	    top: 0;
	    left: -250px;
	    z-index: 999;
	}

	#sidebar.active {
		left: 0;
	}

	#sidebarCollapse {
		top: 50vh;
	    left: 0;
	    position: fixed;
	    direction: rtl;
	}

	#slipCollapse {
		top: 50vh;
	    right: 0;
	    position: fixed;
	}

	#betslipSidebar {
		top: 0;
		overflow-y: scroll;
	    position: fixed;
	    right: -75vw;
	    z-index: 999;
	    height:100vh;
	    width: auto;
	}

	#dismiss {
	    position: absolute;
   		top: 0;
	    right: 0.25rem;
	    width: 1rem;
	    height: 1rem;
	    cursor: pointer;
	    transition: all 0.3s;
	}

	#sidebarCollapse,
	#slipCollapse,
	#dismiss {
		display: block;
	}

	#betslipSidebar.active {
	    right: 0;
	}
}

#sidebar,
#betslipSidebar {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    flex: 2;
    padding: 1rem;
}

#sidebar ul p {
    padding: 10px;
}

#sidebar ul li {
	line-height: 2rem;
}

#sidebar ul li a {
    padding: 0;
}

@media screen and (min-width:640px) {
	#dismiss,
	#sidebarCollapse,
	#slipCollapse {
		display: none;
	}
}

#content {
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	margin: 0 0.5rem;
	overflow-x: scroll;
	padding: 2rem;
	width: 87vw;
}

ul ul a {
    font-size: 0.9em;
}

a[data-toggle="collapse"] {
    position: relative;
}

.overlay {
    display: none;
    position: fixed;
    /* full screen */
    width: 100vw;
    height: 100vh;
    /* transparent black */
    background: rgba(0, 0, 0, 0.7);
    /* middle layer, i.e. appears below the sidebar */
    z-index: 998;
    opacity: 0;
    /* animate the transition */
    transition: all 0.5s ease-in-out;
}

/* display .overlay when it has the .active class */
.overlay.active {
    display: block;
    opacity: 1;
}

#goalsPriceList {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    -o-column-count: 2;
    column-count: 2;
}

.move-up {
    bottom: 50px;
    right: 0;
    position: fixed;
    z-index: 1000;
    display: none;
}

.move-up button {
    background: transparent;
    border: none;
}

.move-up button:active:hover {
    margin-right: 2px;
    padding-right: 4px !important;
}

.move-up i {
    color: #bababa;
    font-size: 60px;
    opacity: 0.5;
}

#ui-link {
    right: 1rem;
    top: 0;
    position: fixed;
}

/* flag icons https://github.com/lipis/flag-icons */
.fib {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}
.fi {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  width: 1.33333333em;
  line-height: 2em;
}
.fi:before {
  content: '\00a0';
}
.fi.fis {
  width: 1em;
}
.fi-zm {
  background-image: url(../flags/4x3/zm.svg);
}

.spinner {
	font-size: 3rem;
	text-align: center;
}