/* workaround for iOS iframe problem, BookWidgets app preview */
body { 
  width: 1px;
  min-width: 100%;
 }

#bottom-container {
/* generated flexbox configuration using http://the-echoplex.net/flexyboxes */

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: start;
    -moz-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-box-align: stretch;
    -moz-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    }

.slotMachine {
    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    }

.buttonBar {
    -webkit-box-ordinal-group: 3;
    -moz-box-ordinal-group: 3;
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    }

.slotMachine {
  text-align: center;
  padding: 20px;

  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box;
  box-sizing:border-box;

  flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;

  -webkit-align-self: auto;
  -ms-flex-item-align: auto;
  align-self: auto;

  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */

  align-items: center;
  -webkit-align-items: center;
  -ms-flex-align: center;

  justify-content: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
}

.wheel {
  height: 300px;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  border: 4px double #584117;
  position: relative;
  margin-left: 4px;
  margin-right: 4px;

  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box;
  box-sizing:content-box;
}

.wheel:after {
  background: url(../img/overlay.png);
  background-size: cover;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 1;
  content: "";
  opacity: 0.75;
  width: 100%;
  height: 100%;
}

.slot {
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */

  justify-content: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;

  align-content: center;
  -webkit-align-content: center;
  -ms-align-content: center;

  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;

  border-bottom: 4px ridge rgba(202, 202, 202, 0.32);
  overflow: hidden;
}

.image-slot {
  background-size: contain;
  margin: 10%;
  background-position: 50% 50%;
  background-repeat: no-repeat no-repeat;
  max-width: 100%;
}

.text-slot-wrapper {
  padding: 10%;
}

#spinButton {
  padding: 10px;
  border-radius: 4px;
  color: black;
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 50px;
  padding-right: 50px;
}

.buttonBar {
  text-align: center;
}

@media only screen and (max-width: 500px)
{
  .slotMachine {
    text-align: center;
    padding: 10px;
  }
}

@media only screen and (max-width: 400px)
{
  .slotMachine {
    text-align: center;
    padding: 4px;
  }
}
