/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

.conversationTable {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

.conversationTable td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

.conversationTable tr:nth-child(even) {
    background-color: #dddddd;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html, body {
	min-height: 100%;
	height: 100%;
	font-family: 'Montserrat', sans-serif;
	background: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
}

a, a:hover, a:visited {
	color: #973ea3;
}

hr {
	border-color: #eee;
}

.w50 {
	width: 50%;
}

.fl {
	float: left;
}

.page-header {
	line-height: 80px;
}

.MessageRecieved {
    text-align:left;
    margin-right:150px;
    
}

.MessageSent {
    text-align:right;
    margin-left:150px;
}

.messageSentTime{
    font-size:10px;
}

.btn {
	text-align: center;
	padding: 8px 15px;
	text-decoration: none;
	margin-bottom: 10px;
	overflow: hidden;
	-webkit-transition: border-color 0.3s, color 0.3s;
	transition: border-color 0.3s, color 0.3s;
	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	border: none;
	vertical-align: middle;
	position: relative;
	z-index: 1;
	-webkit-backface-visibility: hidden;
	-moz-osx-font-smoothing: grayscale;	
	border-radius: 30px;
	-moz-border-radius: 30px;
	-webkit-border-radius: 30px;
}

.btn-primary {
	background: #973ea3;
	border: 1px solid #973ea3;
    color: #fff !important;
}

.btn-admin {
	background: #973ea3;
	border: 1px solid #973ea3;
    color: #fff !important;
    width:300px;
}

.btn-primary:hover,
.btn-primary:focus {
	background: #fff;
	border: 1px solid #973ea3;
	color: #973ea3 !important;
}

.btn-default {
	background: #fff;
	border: 1px solid #973ea3;
	color: #973ea3;
}

.btn-default:hover,
.btn-default:focus {
	background: #973ea3;
	color: #fff;
	border: 1px solid #973ea3;
}

.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active {
	background: #ddd;
}

.modal-content {
	box-shadow: none;
	-webkit-box-shadow: none;
}

header {
	
}

.navbar-default {
	background: #973ea3;
	position: fixed;
	width: 100%;
	z-index: 1029;
	border: none;
	border-radius: 0;
}

.navbar-brand {
	height: 50px;
	display: block;
	padding: 7px;
}

.navbar-brand img {
	height: 100%;
}

.navbar-default .navbar-nav>li>a {
	color: #fff;
}

.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus {
	background: #D4003C;
	color: #fff;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
	color: #eee;
}

.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:hover, .navbar-default .navbar-nav>.open>a:focus {
	background: #700d7d;
	color: #fff;
}

.navbar-default .navbar-toggle {
	border: none;
}

.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
	background: none;
	outline: none;
}

.navbar-default .navbar-toggle .icon-bar {
	background: #fff;
}

.form-control1{
    border-color: #eee;
	outline: none;
	box-shadow: none;
	-webkit-box-shadow: none;
}

.form-control {
	border-color: #eee;
	outline: none;
	box-shadow: none;
	-webkit-box-shadow: none;
}

.form-control:focus {
	border-color: #ccc;
	outline: none;
	box-shadow: none;
	-webkit-box-shadow: none;
}

.dropdown-menu {
	box-shadow: none;
	-webkit-box-shadow: none;
}

.maincontent {
	height: 100%;
}

main {
	display: table;
	width: 100%;
	height: 100%;
    padding-top: 50px;
}

#footer {
	height: 60px;
    position:fixed;
    display:inline-block;
	line-height: 60px;
	bottom: 0;
}

#footer p.credit {
	margin: 0;
	text-align: center;
	font-size: 0.9em;
}

/* HOME */

.thumbnail h3 {
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.thumbnail .caption {
	text-align: center;
}

.thumbnail p.status {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 20px;
}

/* MANAGE */

.adminpanel {
	background: #fff;
}

.adminpanel .pane {
	float: left;
	width: 50%;
	padding: 20px;
	box-sizing: border-box;
}

.adminpanel .pane select {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}

.adminpanel .pane select:focus {
	border: 1px solid #f00044;
	outline: none;
}

.actionbar {
	width: 100%;
	border-bottom: 1px solid #eee;
	background: #fff;
	margin-bottom: 60px;
	height: 50px;
}

.actionbar ul {
	float: left;
	padding: 0;
	margin: 6px;
	list-style: none;
}

.buttongroup:last-child {
	float: right;
}

.buttongroup:last-child li:last-child {
	margin-right: 0;
}

.buttongroup li {
	float: left;
	margin-right: 5px;
}

.buttongroup .button {
	text-decoration: none;
	border: 1px solid #f00044;
	color: #f00044;
	padding: 5px 8px;
	box-sizing: border-box;
	margin-bottom: 0;
	font-size: 0.9em;
}

.page {
	width: 800px;
	padding: 100px;
	box-sizing: border-box;
	font-size: 0.8em;
	margin: 0 auto 20px auto;
	background: #fff;
}

.page:after {
	height: 1px;
	width: 100%;
	content: "";
	border-bottom: 1px dashed #eee;
}

.sidebar {
	display: table-cell;
	background: #fff;
	border-left: 1px solid #eee;
	width: 280px;
	height: 100%;
	margin-left: 20px;
	box-sizing: border-box;
	vertical-align: top;
}

.sidebar .options {
	position: fixed;
	padding: 20px;
	overflow: scroll;
	height: 100%;
}

.sidebar .options span {
	display: block;
	margin-bottom: 20px;
	float: left;
	width: 100%;
}

.sidebar .options span label {
	display: block;
}

.sidebar .options span > label {
	font-weight: bold;
	font-size: 15px;
}

.sidebar .options #set_allergies h4,
.sidebar .options #set_prices h4 {
	font-weight: bold;
	font-size: 15px;
}

.sidebar .options #set_allergies label,
.sidebar .options #set_prices label {
	font-size: 13px;
	font-weight: 100;
}

.sidebar .options span input,
.sidebar .options span textarea {
	width: 100%;
	resize: none;
	padding: 5px;
	box-sizing: border-box;
	font-size: 13px;
}

.sidebar .options textarea,
.sidebar .options input {
	border: 1px solid #eee;
}

.sidebar #set_allergies {
	margin-bottom: 200px;
}
.sidebar #set_allergies span {
	margin-bottom: 5px;
}

.sidebar #set_allergies div span input {
	float: left;
	width: auto;
	margin-right: 5px;
}

.sidebar #sidebarbuttons {
	position: fixed;
	bottom: 0;
	box-sizing: border-box;
	width: 240px;
	background: #fff;
	margin: 0;
	border-top: 1px solid #eee;
	padding: 15px 0;
}

/* MENU */

ul.section {
	padding: 0;
	margin: 0 0 20px 0;
	list-style: none;
	width: 100%;
}

ul.section li {
	border: 1px solid #eee;
	box-sizing: border-box;
	background: #fff;
	padding: 10px;
	height: 100px;
	-webkit-column-break-inside: avoid;
	display: table;
	width: 100%;
}

ul.section li.Selected,
ul.section li:focus {
	border: 1px solid #f00044;
}

ul.section li:hover {
	background: #f9f9f9;
}

ul.section li h3.dish_title {
	font-size: 16px;
	font-weight: bold;
}

ul.section li p.dish_descr {
	font-size: 15px;
}

ul.section li p.dish_price {
	font-size: 15px;
}

ul.section li .dish_image {
	width: 60px;
	height: 60px;
	float: left;
	display: block;
	margin: 0 10px 0 0;
	border-radius: 100%;
	-moz-border-radius: 100%;
	-webkit-border-radius: 100%;
	column-width: 300px;
}

ul.section li .dish_textcontainer {
	
}

ul.section li .dish_textcontainer > * {
	display: block;
	width: 100%;
}

ul.section * {
	margin: 0;
	padding: 0;
}

li.sectionheader {
	height: 50px !important;
	line-height: 30px;
}

li.sectionheader h2 {
	float: left;
	font-size: 20px;
	font-weight: bold;
}

li.sectionheader a {
	float: right;
	width: auto;
    padding: 0 8px;
    font-size: 13px;
    height: 26px;
    line-height: 26px;
}

/* LOGIN PAGE */

.loginpage {
	display: table;
	height: 100%;
}

.loginwrapper {
	display: table-cell;
	vertical-align: middle;
}

.logincontainer {
	margin: 0 auto;
	width: 500px;
	padding: 80px;
	background: #fff;
}

.logincontainer h4 {
	color: #f00044;
	text-align: center;
	margin: 0 auto 60px auto;
	background: url('../img/MRA_Logo.png') no-repeat left top;
	text-indent: -99999px;
	width: 220px;
	height: 150px;
	background-size: 100%;
}

.loginpage .input-group {
	width: 100%;
}

.loginpage .form-control {
	box-shadow: none;
	-webkit-box-shadow: none;
	height: 44px;
	border: none;
	border-bottom: 1px solid #eee;
	border-radius: 0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	margin-bottom: 10px;
}

.loginpage .form-control:focus {
	border-color: #ccc;
}

.loginpage .btn {
	margin-top: 40px;
	width: 100%;
}

.loginpage .incorrectLogin
{
    text-align: center;
}

.loginpage .registerText {
	margin-top: 40px;
	text-align: center;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-device-width: 480px) {
	.logincontainer {
		width: 100%;
		padding: 40px;
	}
	.rightlist {
		margin-top: -1px !important;
	}
}

@media (max-width: 767px) {
	.navbar-default .navbar-nav .open .dropdown-menu>li>a {
	    color: #ggg;
	}
	.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover {
	    color: #eee;
	}		
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
