@import (inline) "normalize.css";
@import (inline) "bootstrap.min.css";
@import (inline) "bootstrap-datepicker.min.css";
@import (inline) "font-awesome.min.css";
@import (inline) "calendar.css";


@color_white: #fff;
@color_black: #000;
@color_grey: #cecdd2;
@color_orange: #f49a34;

@radius_border_default: 3px;


html,
body {
  height: 100%;
}

body {
  font: 1em "Lucida Grande", Helvetica, Arial, sans-serif;
  
  @media (min-width: 768px) {
    > * {
      width: 600px;
      margin: auto;
    }
  }
}

a {
  color: @color_orange;
  text-decoration: none;

  &:hover {
    text-decoration: none;
    color: @color_grey;
    background-color: fade(@color_white, 50%);
  }

  &#back {
    display: block;
    position: absolute;
    left: 5px;
    top: 5px;
    line-height: 1.2em;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    background-color: fade(@color_white, 10%);
    border: 1px solid @color_grey;
    border-radius: 3px;
    width: 1.5em;
    height: 1.5em;
    z-index: 2;
  }
}

.btn {
  border-radius: @radius_border_default;
  
  &:hover {
    background-color: @color_grey;
    border-color: @color_grey;
  }
  
  &.btn-primary {
    background-color: @color_orange;
    border-color: @color_orange;
    
    &:active {
      background-color: @color_orange;
      border-color: @color_orange;
      
      &:hover {
        background-color: @color_grey;
        border-color: @color_grey;
      }
    }
  }
}

#stage {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('/images/stage-camping-001.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  .welcome,
  .location {
    position: relative;
    width: 100%;
    top: 15%;
    color: fade(@color_grey, 85%);
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    background-color: fade(@color_white, 20%);
    border-top: 1px solid @color_orange;
    border-bottom: 1px solid @color_orange;
    padding: 10px 0;
    
    span {
      &.sub {
        display: block;
        font-size: 0.8em;
      }

      &:nth-child(2) {
        margin-top: 20px;
      }
      
      &.colored {
        color: @color_orange;
      }
    }    
  }
  
  .location {
    font-size: 1.8em;
    border-top: 0 none;
  }
  
  .startLink {
    display: block;
    width: 70%;
    margin: auto;
    position: relative;
    top: 40%;
    border: 1px solid @color_grey;
    color: @color_grey;
    font-size: 1.3em;
    text-align: center;
    padding: 0.6em;
    
    &:hover {
      background-color: fade(@color_white, 50%);
      text-decoration: none;
      color: @color_white;
    }
  }
}

#items {
  background-color: @color_grey;
  
  .item {
    display: block;
    position: relative;
    border-bottom: 10px solid @color_white;
    
    &:last-child {
      border-bottom: 0 none;
    }
    
    &:hover {
      text-decoration: none;
      
      title {
        background-color: fade(@color_white, 50%);
        color: @color_grey;
      }
      
      intro {
        background-color: fade(@color_white, 50%);
      }
    }
    
    .preview {
      height: auto;
      width: 100%;
    }
    
    title {
      display: block;
      position: relative;
      top: 0px;
      width: 100%;
      background-color: fade(@color_grey, 50%);
      border-bottom: 1px solid @color_white;
      padding: 0.2em 0;
      color: @color_white;
      text-align: center;
      font-weight: bold;
      font-size: 1.1em;
    }
    
    intro {
      display: none;
      position: absolute;
      bottom: 0px;
      width: 100%;
      text-align: center;
      font-size: 1em;
      font-weight: normal;
      color: @color_white;
      background-color: fade(@color_grey, 50%);
      border-top: 1px solid @color_white;
    }
  }
}

#itemPage {
  #stage {
    height: auto;
    border-bottom: 1px solid @color_orange;
    margin-bottom: 10px;
  }
  
  #details {
    text-align: justify;
    padding: 0 5px;
    
    p {
      @item_details_margin: 25px;
      margin-left: @item_details_margin;
      margin-right: @item_details_margin;
    }
    
    .price {
      text-align: center;
      
      .value {
        color: @color_orange;
        font-size: 2em;
      }
      
      .deposit {
        font-size: 1em;
        color: @color_grey;
      }
    }
  }
}

footer {
  margin-top: 10px;
  border-top: 1px solid @color_orange;
  background-color: fade(@color_grey, 50%);
  text-align: center;
  
  a {    
    &:hover {
      background-color: inherit;
    }
  }
}

section {
  &.cookie {
    padding: 0 3px;
    overflow: hidden;
    
    height: 0;
    margin-top: 0;
    -webkit-animation: slide 0.5s forwards;
    -webkit-animation-delay: 2s;
    animation: slide 0.5s forwards;
    animation-delay: 2s;
    
    @-webkit-keyframes slide {
      100% { height: auto; margin-top: 5px; }
    }
    
    @keyframes slide {
      100% { height: auto; margin-top: 5px; }
    }
    
    .infotext {
      font-size: 14px;
      font-weight: bold;
      line-height: 14px;
    }
  }
}

.lawthings {
  h2 {
    text-align: center;
    margin-bottom: 30px;
  }
}

.input-daterange {
  flex-direction: column;
  
  &.input-group {
    .form-control,
    .input-group-addon {
      width: 100%;
      display: block;
      border: 1px solid @color_grey;
    }
    
    .input-group-addon {
      text-align: center;
      
      &.intro {
        
      }
    }
    
    .form-control {
      border-radius: @radius_border_default;
    }
  }
}

.request {
  margin-top: 20px;
  
  h5 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .datepicker {
    table {
      tr {
        td {
          &.today,
          &.highlighted {
            background-image: none;
            background-color: fade(@color_orange, 50%);
          }
        }
      }
    }
  }
}
