// Place all the styles related to the Www::InstitutionEvents controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

/*
 *= require jquery.ui.datepicker
*/

@import 'layouts/www';
@import "../jquery.share.css";
@import '../fancybox.css';
@import '../gmaps4rails.css';

#top {
  background: image-url('www/bg-body-events.png') #e6e6e6 repeat-x 0 0 ;
  color: #fff;
  h1 {
    font-size: 22px;
    line-height: 150%;
    margin: 0;
  }
  p {
    line-height: 120%;
  }
  .container {
    margin: 0 auto;
  }
}

.right {
  text-align: right;
}

.button {
  background: #fff;
  border-color: #000;
  border-style: solid;
  border-width: 0 0 1px 0;
  color: #000 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 100% !important;
  margin: 0;
  padding: 6px 18px;
}

.button-active, .button:hover {
  background: #cccccc;
  border-color: #bfbfbf;
  border-width: 1px 0 0 0;
}

.button:hover {
  text-decoration: none;
}

body {
  background: #e6e6e6;
}

div.calendar {
  margin: 10px 0 0;
  .header {
    background: #d1131a;
    color: #ffffff;
    font-size: 16px;
    font-weight: bolder;
    padding: 5px 0;
    text-align: center;
  }
  .clearfix {
    background: #fff;
    border-bottom: 1px solid #ccc;
  }
  /* for list view */
  .list {
    background: #fff;
    border-bottom: 2px solid #ccc;
    font-size: 11px;
    .span3, .span6 { padding: 10px 15px; }
    .attend {
      font-size: 12px;
      span { background: #fcee21; }
    }
  }
  /* for week view */
  .week {
    font-size: 11px;
    .day { background: #0a2a38; color: white; font-size: 15px; font-weight: bolder; padding: 3px 0; text-align: center; }
    .current-day { background: #d1131a; }
    .event { background: image-url('www/bg-event-week.png') 0 0 repeat-y white; border-bottom: 1px solid #ccc; padding: 5px; position: relative; }
    .event-empty { background: white; }
    .highlight { position: absolute; right: -4px; top: 3px; }
  }
  /* for day view */
  .day {
    font-size: 11px;
    .body { position: relative; }
    .line {
      border-bottom: 1px solid #ccc; height: 57px;
      .hour { color: #4d4d4d; border-right: 1px solid #b3b3b3; font-weight: bolder; height: 57px; line-height: 57px; text-align: center; width: 54px; }
    }
    .event {
      margin: 10px 0 0;
      position: absolute;
    }
    .event-container {
      background: #e6e6e6;
      border-bottom: 1px solid #b3b3b3;
      border-radius: 6px;
      -moz-border-radius: 6px;
      -o-border-radius: 6px;
      -webkit-border-radius: 6px;
      display: table;
      margin: 3px 0 0;
      overflow: auto;
      padding: 5px;
      position: relative;
      text-align: center;
      width: 136px;
      span {
        vertical-align: middle;
        display: table-cell;
      }
    }
    .relative { position: relative; }
    .highlight { position: absolute; left: 10px; top: -3px; }
  }
}

.center { text-align: center; }
.right { text-align: right; }

/* for month view */
.month table.calendar {
  border-collapse: collapse;
  width: 100%;

  td, th {
    font-family: "Lucida Grande", arial, helvetica, sans-serif;
    font-size: 10px;
    padding: 6px;
    border: 1px solid #999;
  }

  th {
    background: #0a2a38;
    color: white;
    font-weight: bolder;
    text-align: center;
    width: 14.2857142857143%;
  }

  td {
    background: #FFF;
    color: #777;
    height: 80px;
    vertical-align: top;
    font-size: 16px;
  }

  .notmonth, .notmonth a { color: #999999; }
  .today { background-color: #D7F2FF; }
}

.month ul {
  font-size: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.month li {
  background: #0088cc;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  -webkit-border-radius: 3px;
  font-size: 10px;
  padding: 2px 4px;
  margin: 0 0 3px;
}

.month .event-name {
  color: white;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.month .header {
  background: #d1131a;
  color: #ffffff;
  font-size: 16px;
  font-weight: bolder;
  padding: 5px 0;
  text-align: center;
}

.popover {
  color: #333;
  text-align: left;
  width: 300px !important;
}

.popover-title {
  background: #f2f2f2 !important;
  border-bottom: none;
  padding: 8px 14px 0;
}

.popover-content {
  background: #f2f2f2 !important;
  font-size: 11px;
  padding: 0px 14px 9px;
  .attend { background: #fcee21 !important; }
}

.log-out {
  line-height: 120% !important;
  color: #f44 !important;
  margin: 0 !important;
  text-shadow: none !important;
  font-size: 12px !important;
}

.red-button {
  background: #d1131a;
  color: white;
  padding: 10px 15px;
}
.white-button {
  background: white;
  color: #333;
  padding: 3px 0;
  border-bottom: 1px solid #cccccc;
}
.aqua-button {
  background: #00a99d;
  color: white;
  padding: 3px;
}
.red-button, .aqua-button, .white-button {
  border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  -webkit-border-radius: 3px;
  text-align: center;
  display: block;
  line-height: 120%;
}
.red-button:hover, .aqua-button:hover {
  text-decoration: none !important;
}

.blue { color: #0088cc; font-size: 12px; }
.dark-blue { color: #0088cc; font-weight: bolder; font-size: 15px; }

a.remember-password {
  color: #0088cc !important;
  font-size: 11px !important;
  margin: 0 !important;
  text-shadow: none !important;
  line-height: 120% !important;
  padding-top: 10px;
}

button.aqua-button{
  border: medium none;
  padding: 7px 15px;
  display: inline;
}

#top a.red-button {
  display: block;
  line-height: inherit;
  margin: 0;
}

.modal {
  background: #333 !important;
  font-size: 12px;
  text-align: left;
  .attend { background: #fcee21 !important; }
  .blue { font-size: 13px; }
  .notes { background: #fcfade; border: 1px solid #b3b3b3; padding: 10px; }
}

.event-container {
  cursor: pointer;
  padding: 10px 0;
}
