/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

body {
  padding: 10px;
}

body.welcome {
  background: #f9f9f9;
}

ms-logo {
  background: #669966;
  display: inline-block;
  height: 30px;
  width: 30px;
  line-height: 30px;
  text-align: center;
  color: white;
  border: 1px solid #336633;
  border-radius: 30px;
  font-weight: bold;
  cursor: default;
  font-family: 'Roboto', Arial, Verdana, sans-serif;
}

ms-logo.big {
  font-size: 32px;
  font-weight: bold;
  height: 60px;
  width: 60px;
  line-height: 60px;
  border-radius: 60px;
}

a ms-logo {
  cursor: pointer;
}

#welcome {
  margin: 0 auto;
  text-align: center;
  margin-top: 5%;
}

#welcome .title {
  font-size: 32px;
  font-weight: bold;
  color: #669966;
}

#welcome .title .version {
  font-size: 12px;
}

#welcome h1 {
  font-family: 'Roboto', Arial, Verdana, sans-serif;
}

#welcome input {
  /* height: 30px; */
}

#search-results .theater {
  margin: 5px;
}

#search-results .theater .name {
  margin: 0;
}

#search-results .theater .name a {
  color: #669966;
  text-decoration: none;
}

#search-results .theater .movies {
  padding: 0;
  list-style-type: none;
}

#search-results .theater .movies .movie {
  display: inline-block;
  margin: 0 4px 4px 0;
  position: relative;
}

#search-results .theater .movies .movie .thumbnail .image {
  height: 89px;
  width: 60px;
  background-size: 60px 89px;
}

#search-results .theater .movies .movie .thumbnail .three-d {
  position: absolute;
  bottom: 3px;
  right: 3px;
  display: inline-block;
  background: rgba(153,255,153,0.9);
  font-size: 11px;
  padding: 3px;
  border-radius: 2px;
  font-weight: bold;
  color: #333;
}

#search-results .theater .movies .movie .thumbnail .imax {
  position: absolute;
  bottom: 3px;
  left: 3px;
  display: inline-block;
  background: rgba(255,255,255,0.9);
  font-size: 11px;
  padding: 3px;
  border-radius: 2px;
  font-weight: bold;
  color: #333;
}

#search-results .theater .movies .movie .nothumbnail .image {
  display: block;
  height: 87px;
  width: 58px;
  border: 1px solid #666;
  background: #f9f9f9;
}

#search-results .theater .movies .movie .nothumbnail .title {
  font-size: 11px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 3px;
  right: 3px;
  text-align: center;
  padding: 3px;
  overflow: hidden;
  cursor: default;
}

#showtimes {
  font-size: 9px;
}

#search-results ms-form,
#grid ms-form {
  display: inline-block;
  margin-left: 20px;
}

#showtimes .showtimes {
  margin-left: 150px;
  background: url(/img/time.png);
}

#showtimes .screen {
  height: 17px;
  line-height: 17px;
  padding-bottom: 1px;
}

#showtimes .screen .showtime {
  position: absolute;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  /* prevent text select */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#showtimes .screen .showtime {
  height: 17px;
  opacity: 0.3;
  filter: alpha(opacity=30);
  margin-left: 150px; /* matches title */
}

#showtimes .screen .showtime.unavailable {
  opacity: 0.05;
  filter: alpha(opacity=5);
}

#showtimes .screen .showtime.selected {
  opacity: 1;
  filter: alpha(opacity=100);
}

#showtimes .screen .showtime .time {
  background: none repeat scroll 0 0 #FFFFFF;
  margin-left: 2px;
  padding: 0 3px;
}

#showtimes .screen .showtime .time .estimated {
  padding-left: 1px;
}

#showtimes .movie_row .title {
  display: inline-block;
  width: 150px;
  overflow: hidden;
  float: left;
}

#showtimes .screens_1 { height: 18px; }
#showtimes .screens_1 .title { height: 17px; line-height: 17px; }
#showtimes .screens_2 { height: 36px; }
#showtimes .screens_2 .title { height: 35px; line-height: 35px; }
#showtimes .screens_3 { height: 54px; }
#showtimes .screens_3 .title { height: 53px; line-height: 53px; }
#showtimes .screens_4 { height: 72px; }
#showtimes .screens_4 .title { height: 71px; line-height: 71px; }
#showtimes .screens_5 { height: 90px; }
#showtimes .screens_5 .title { height: 89px; line-height: 89px; }
#showtimes .screens_6 { height: 108px; }
#showtimes .screens_6 .title { height: 107px; line-height: 107px; }
#showtimes .screens_7 { height: 126px; }
#showtimes .screens_7 .title { height: 125px; line-height: 125px; }
#showtimes .screens_8 { height: 144px; }
#showtimes .screens_8 .title { height: 143px; line-height: 143px; }
#showtimes .screens_9 { height: 162px; }
#showtimes .screens_9 .title { height: 161px; line-height: 161px; }


/* *************** Movie Title *************** */
.movie .title {
  cursor: default;
}
.movie .title.unrated.hover {
  background-color: #F0F0F0;
}
.movie .title.fresh.hover {
  background-color: #FFBBBB;
}
.movie .title.rotten.hover {
  background-color: #C6F2BF;
}

/* *************** InfoMenu *************** */
div.im_content {
  overflow:hidden;
  position: absolute;
  left: -1000px;
  top: -1000px;
  width: 429px;
  cursor:default;
  border: 0 solid #AAA;
  padding: 0;
  margin: 0;
  filter: Alpha(Opacity=90);
  filter: alpha(opacity='90');
  -moz-opacity:0.9;
  opacity: 0.9;
  background-color:#FCFCFC;
  z-index: 10;
}
div.im_content .btns {
  position: relative;
  background-color: #F9F9F9;
  display: block;
  margin: 0px;
  height: 25px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #CCC;
  text-align:center;
  line-height:0px;
  font-size: 0%;
  white-space: nowrap;
  padding: 1px 10px;

}
div.im_content .btns ul {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}
div.im_content .btns ul li {
  display: inline;
  padding: 0;
  margin: 0;
  background-color: #00FF00;
  float: left;
}
div.im_content .btns ul li img {
  height: 25px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
div.im_content .movie_image img {
  width: 125px;
  height: 185px;
}

div.im_content.unrated {
  background-color: #F0F0F0;
}
div.im_content.fresh {
  background-color: #FFBBBB;
}
div.im_content.rotten {
  background-color: #C6F2BF;
}
div.im_content .tomato {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  height: 300px;
  position: absolute;
  display: block;
  right: 0;
  top: 0;
  padding-top: 25px;
  color: #ff0000;
  font-size: 40px;
  text-align: right;
  filter: Alpha(Opacity=60);
  filter: alpha(opacity='60');
  -moz-opacity:0.6;
  opacity: 0.6;
}
div.im_content .movie_image {
  position: absolute;
  margin: 0;
  padding: 10px;
  right: 0;
  height: 185px;
}
div.im_content .movie_close_button {
  position:absolute;
  margin: 0;
  right: 2px;
  top: 1px;
  height: 25px;
  background-color: #FF0000;
}
div.im_content .txt {
  position: relative;
  /*top:27px;*/

  width: 274px;

  min-height: 190px;
  height: auto !important;
  height: 190px;

  padding: 5px 10px 10px;/* 5px 10px 10px;*/

  color: #000000;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}
div.im_content .txt h1 {
  font-size: 12px;
  display: block;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  text-align: center;
  padding-bottom: 5px;
}
div.im_content .txt h4{
  font-size: 10px;
  display: block;
  margin: 3px 0;
  padding: 1px;
  font-weight: bold;
  font-style: italic;
  background-color: #FFFFFF;
  text-align: center;
}
div.im_content .txt .key {
  font-weight: bold;
}

/* *************** Banner *************** */
.banner {
  padding-top: 20px;
  text-align: center;
}


/* *************** Movie List *************** */
.options .movie_list {
  position: absolute;
  background-color: white;
  display: none;
  z-index: 100;
  padding: 4px 8px;
  border: 1px solid #999;
  border-radius: 5px;
  opacity: 0.9;
  filter: alpha(opacity=90);
}
.options .movie_list label {
  display: block;
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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