* {
 margin: 0;
 padding: 0;
 -webkit-box-sizing: border-box;
         box-sizing: border-box;
 border-radius: 5px;
}

:root {
 font-family: Arial, Helvetica, sans-serif;
 font-size: 10px;
 background-color: darkcyan;
 background-image: url('images/spade-3081114_640.jpg');
}

.casino__image img {
 width: 100%;
}

.casino__image {
 position: fixed;
 width: 200px;
 z-index: -1;
}

.casino__image--cards {
 left: 20px;
 bottom: 250px;
 width: 300px;
 z-index: -1;
}

.casino__image--chip {
 right: 20px;
 bottom: 10px;
 -webkit-transform: rotateX(-30deg);
         transform: rotateX(-30deg);
 z-index: -1;
}

.casino__image--dice {
 right: 50px;
 top: 20px;
}

.casino {
 width: 100%;
 max-width: 1300px;
 margin: 0 auto;
 text-align: center;
}

.casino__title {
 width: 90%;
 max-width: 600px;
 text-align: center;
 margin: 10px auto;
 padding: 8px;
 border: 2px solid white;
 background-color: rgba(165, 42, 42, 0.6);
 color: white;
 border-radius: 10px;
 text-transform: uppercase;
}

.casino__smallTitle {
 display: none;
}

.machine {
 border: 2px solid darkgray;
 background-color: rgba(0, 0, 0, 0.8);
 margin: 0 auto;
 width: 90%;
 max-width: 1000px;
}

.machine__lights {
 display: -webkit-box;
 display: -ms-flexbox;
 display: flex;
 -webkit-box-pack: space-evenly;
     -ms-flex-pack: space-evenly;
         justify-content: space-evenly;
 -webkit-box-align: center;
     -ms-flex-align: center;
         align-items: center;
 height: 30px;
 margin: 10px;
}

.machine__light {
 height: 20px;
 width: 20px;
 -webkit-transform: scale(0.6);
     -ms-transform: scale(0.6);
         transform: scale(0.6);
 background-color: rgb(247, 247, 242);
 border-radius: 50%;
 -webkit-box-shadow: 0 0 2px 2px yellow, 0 0 4px 4px rgb(247, 247, 242);
         box-shadow: 0 0 2px 2px yellow, 0 0 4px 4px rgb(247, 247, 242);
}

@-webkit-keyframes lightning {
 0% {
  -webkit-box-shadow: 0 0 2px 2px yellow, 0 0 4px 4px rgb(247, 247, 242);
          box-shadow: 0 0 2px 2px yellow, 0 0 4px 4px rgb(247, 247, 242);
 }

 100% {
  -webkit-box-shadow: 0 0 8px 8px yellow, 0 0 16px 16px rgb(247, 247, 242);
          box-shadow: 0 0 8px 8px yellow, 0 0 16px 16px rgb(247, 247, 242);
 }
}

@keyframes lightning {
 0% {
  -webkit-box-shadow: 0 0 2px 2px yellow, 0 0 4px 4px rgb(247, 247, 242);
          box-shadow: 0 0 2px 2px yellow, 0 0 4px 4px rgb(247, 247, 242);
 }

 100% {
  -webkit-box-shadow: 0 0 8px 8px yellow, 0 0 16px 16px rgb(247, 247, 242);
          box-shadow: 0 0 8px 8px yellow, 0 0 16px 16px rgb(247, 247, 242);
 }
}

.machine__light:nth-child(odd) {
 -webkit-animation: lightning 0.5s alternate infinite linear;
         animation: lightning 0.5s alternate infinite linear;
}

.machine__light:nth-child(even) {
 -webkit-animation: lightning 0.5s 0.5s alternate infinite linear;
         animation: lightning 0.5s 0.5s alternate infinite linear;
}

.machine__light--more {
 display: none;
}

.machine__name {
 font-size: 20px;
 border: 2px solid white;
 background-color: cornflowerblue;
 -webkit-box-shadow: 0 0 4px 4px black;
         box-shadow: 0 0 4px 4px black;
 width: 80%;
 max-width: 400px;
 margin: 20px auto;
 padding: 5px;
}

.machine__boards {
 display: -webkit-box;
 display: -ms-flexbox;
 display: flex;
 width: 90%;
 max-width: 900px;
 height: 150px;
 margin: 30px auto;
 padding: 10px;
 -webkit-box-shadow: 0 2px 4px 4px rgb(209, 3, 3);
         box-shadow: 0 2px 4px 4px rgb(209, 3, 3);
 -ms-flex-pack: distribute;
     justify-content: space-around;
 background-color: rgb(85, 83, 83);
 border: 2px solid black;
}

.machine__board {
 width: 22%;
 border: 2px solid white;
 -webkit-box-shadow: 0 0 3px 3px yellow, 0 0 6px 6px red;
         box-shadow: 0 0 3px 3px yellow, 0 0 6px 6px red;
 background-color: black;
 background-size: 90%;
 background-repeat: no-repeat;
 background-position: center;
}

.machine__controlPanel {
 position: relative;
 display: inline-block;
 margin: 5px auto;
 -webkit-box-shadow: 0 0 3px 3px yellow, 0 0 4px 4px red;
         box-shadow: 0 0 3px 3px yellow, 0 0 4px 4px red;
 background-color: rgba(128, 102, 38, 0.5);
}

.machine__controlPanel label {
 display: block;
 margin: 10px auto;
 color: white;
 font-size: 1.2rem;
 font-weight: 600;
 letter-spacing: 1px;
 text-transform: uppercase;
}

.machine__input {
 display: block;
 float: left;
 height: 30px;
 width: 100px;
 margin: 30px 20px;
 text-align: center;
 border: 2px solid brown;
 color: brown;
}

.machine__input:focus {
 caret-color: brown;
 outline: none;
 outline-color: brown;
}

.machine__button,
.machine__buttonClear {
 display: block;
 float: left;
 position: relative;
 height: 75px;
 width: 110px;
 margin: 10px;
 BORDER-RADIUS: 20PX;
 font-size: 1.8rem;
 letter-spacing: 2px;
 line-height: 150%;
 cursor: pointer;
}

.machine__button i,
.machine__buttonClear i {
 color: brown;
 font-Size: 2.1rem;
}

.machine__button img {
 position: absolute;
 left: 50%;
 top: 50%;
 -webkit-transform: translate(-50%, -50%) rotate(0deg);
     -ms-transform: translate(-50%, -50%) rotate(0deg);
         transform: translate(-50%, -50%) rotate(0deg);
 width: 90%;
 -webkit-transition: 2s;
 -o-transition: 2s;
 transition: 2s;
 cursor: pointer;
}

.machine__button #wheel {
 top: 52%;
 -webkit-transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
     -ms-transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
         transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
}


.machine__button #wheel:hover {
 -webkit-transform: translate(-50%, -50%) rotate(260deg) scale(0.8);
     -ms-transform: translate(-50%, -50%) rotate(260deg) scale(0.8);
         transform: translate(-50%, -50%) rotate(260deg) scale(0.8);
}

.info__panel {
 display: inline-block;
 font-size: 20px;
 text-align: left;
 width: 90%;
 margin: 20px 10px;
 max-width: 400px;
 padding: 10px;
 color: white;
 background-color: rgba(40, 85, 50, 0.8);
}

.info__panel h5 {
 margin: 5px;
}

.info__amount {
 margin-left: 10px;
}

@media(min-width:1024px) {
 .machine__boards {
  height: 250px;
  margin: 30px auto;
  padding: 10px;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  border: 2px solid black;
 }

 .machine__light--more {
  display: block;
 }
}