* {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

body {
  background:  #434343;
  color:       #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size:   0.9em;
}

ul {
  list-style: none;
}

/**
 * top header
 */
.top-header {
  align-items: center;
  background:  #DF574B;
  box-shadow:  0px 2px 10px #333333;
  display:     flex;
  height:      60px;
  position:    fixed;
  top:         0;
  width:       100%;
  z-index:     1;
}

#avatar {
  display: none;
}

.avatar {
  background:    #FFFFFF;
  border-radius: 50%;
  color:         #333C4D;
  height:        40px;
  margin-right:  20px;
  padding-left:  9px;
  padding-top:   5px;
  width:         40px;
}

/**
 * top navigation
 */
.top-nav {
  flex: 1;
}

.top-nav a {
  color:           #F9F9F9;
  font-weight:     400;
  margin-left:     20px;
  text-decoration: none;
}

#logout-link {
  color:           #F9F9F9;
  display:         none;
  font-weight:     400;
  padding:         0 10px;
  text-decoration: none;
}

#welcome-msg {
  border-right:  1px solid #FFFFFF;
  display:       none;
  padding-right: 10px;
}

/**
 * main container
 */
.container {
  margin:    60px auto;
  max-width: 1000px;
  min-width: 600px;
}

/**
 * main header
 */
.container > header {
  align-items:     center;
  background:      url('http://prophoto.com.cy/wp-content/galleries/food/food-restaurant-photographer-cyprus-10.jpg') no-repeat 50% 50%;
  background-size: 100%;
  display:         flex;
  height:          250px;
}

.container > header p {
  border-left:  1px solid #FFFFFF;
  font-weight:  400;
  font-size:    2em;
  line-height:  1em;
  margin-left:  220px;
  padding-left: 5px;
}

.container > header span {
  color: #FBAF41;
}

/**
 * login form
 */
#login-form {
  color: #624630;
  margin: 0px auto;
  overflow: auto;
  padding: 40px;
  width: 300px;
}

#login-form label {
  display: block;
}

#login-form input {
  border: none;
  display: block;
  margin-bottom: 10px;
  padding: 8px;
  width: 100%;
}

#login-form button {
  cursor: pointer;
  float: right;
  padding: 8px 20px;
  text-align: right;
}

#login-error {
  clear: both;
  color: #990000;
  padding-top: 10px;
}

/**
 * main section
 */
.main-section {
  background: #F3BB43;
}

/**
 * aside
 */
#restaurant-nav {
  display: none;
  float: left;
  width: 180px;
}

.nav-icon {
  color:      #624630;
  padding:    20px;
  text-align: center;
}

/**
 * main navigation
 */
.main-nav-btn {
  background:      none;
  border-top:      1px solid #FFFFFF;
  color:           #FFFFFF;
  display:         block;
  padding:         20px;
  text-align:      left;
  text-decoration: none;
}

.main-nav-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color:      #624630;
}

.main-nav-btn.active {
  background: #F2EBD9;
  color:      #624630;
}

.main-nav-btn i {
  width: 20px;
}

/**
 * restaurant list
 */
#restaurant-list {
  background:  #F2EBD9;
  color:       #624630;
  display:     none;
  list-style:  none;
  margin-left: 180px;
  min-height:  250px;
  padding:     10px;
}

#restaurant-list .notice {
  font-size:  16px;
  padding:    60px;
  text-align: center;
}

/**
 * restaurant
 */
.restaurant {
  align-items:   center;
  border-bottom: 1px solid #FFFFFF;
  
  display:       flex;
  margin:        10px;
  padding:       15px;
  transition:    background-color 100ms linear;
}

.restaurant:last-child {
  border: none;
}

.restaurant:hover {
  background: rgba(255, 255, 255, 0.8);
  transition: background-color 100ms linear;
}

.restaurant img {
  border: 1px solid #FFFFFF;
  height: 80px;
  width:  80px;
}

.restaurant > div:first-of-type {
  flex:         1;
  margin-left:  10px;
  margin-right: 10px;
}

.restaurant-name {
  color:           #624630;
  font-weight:     400;
  text-decoration: none;
}

.restaurant-name:hover {
  text-decoration: underline;
}

.restaurant-address {
  line-height:   20px;
  padding-right: 20px;
  text-align:    right;
}

.stars {
  align-items: center;
  display:     flex;
  padding-top: 10px;
}

.fav-link {
  border-left: 1px solid #FFFFFF;
  cursor:      pointer;
  line-height: 60px;
  text-align:  center;
  width:       60px;
}

.fav-link:hover {
  color: #F13F3F;
}

/**
 * footer section
 */
footer {
  background: #434343;
  font-size:  0.8em;
  height:     200px;
  position:   relative;
}

footer p {
  text-align: center;
}

footer p.title {
  font-size: 1.2em;
  padding:   15px;
}

footer ul {
  align-items: center;
  display:     flex;
  padding:     20px;
}

footer ul li {
  flex: 1;
}