@font-face {
    font-family: AtkinsonHyperlegible;
    src: url('AtkinsonHyperlegible-Regular.ttf') format('truetype');
  }

body {
    font-family: AtkinsonHyperlegible, sans-serif;
    font-size: 1.8em;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-image:url("img/tactile_noise.png");
    
}
.wrap{
    display: flex;
    flex-direction: column;
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.wrap > div {
   /* margin-left: 20%;
    margin-right: 20%;
    padding: 3%;*/
  }

h1 {
    font-family: AtkinsonHyperlegible, sans-serif;
    text-transform: uppercase;
    color: #E528E1;
    border-bottom: 2px solid #E528E1;
}
p{
    color: #fff;
}
.title {
text-align: center;
}
.game{
   /* margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    padding: 20%;
    background-color: aqua;*/
}
.emscripten {
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;

}
div.emscripten {
    text-align: center;
}
div.emscripten_border {
    border: 0;
}

canvas.emscripten {
    position: absolute !important;
    top: 55px !important;
    left: 0 !important;
    margin: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    display: block;
    min-height: 100%;
    min-width: 250px;
    border: 0 none;
    z-index: 1;
}

.button {
    font-family: AtkinsonHyperlegible, sans-serif;
    font-size: 1em;
    background:  #E528E1;
    border-radius: 2em;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    height: 3em;
    line-height: 3em;
    padding: 0 1em;
    border: 2px solid #E528E1;
    white-space: normal;
    width: 100%;
}
.button-select {
    background:  #E528E1;
    border-radius: 2em;
    font-size: 0.8em;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    height: 2em;
    line-height: 2em;
    padding: 0 1em;
    border: 2px solid #E528E1;
    white-space: normal;
}
.button:hover {
    color:  #E528E1;
    background-color: #fff;
    border: 2px solid  #E528E1;
}
.button:disabled,
.button[disabled] {
    border: 2px solid #999;
    background-color: #ccc;
    color: #666;
}
#textmsgs {
    text-align: center;
    margin: 1em;
    overflow: hidden;
    color:#ffffff;
    z-index: 1000;
}

.gears-cont {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    width: 90%;
   /* position: fixed;*/
    top: 0!important;
    right: 0!important;
    z-index: 1000;
    font-size: 0.7em;
    text-align: center;
    color: #ffffff;
}
.gears {
    background-image: url("img/gear.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    padding-left: 20px;
}
.gears:hover {
    background-image: url("img/gear-fill.svg");
    opacity: 0.9;
}

.bluecup {
    background-image: url("img/load.svg");
    margin: 2em;
    margin-top: 3em;
    width: 60px;
    height: 60px;
    z-index: 1000;
    background-repeat: no-repeat;
    background-position: center;
    
}
.bluecup.rotate {
    -webkit-animation: rotation 1s ease-in-out infinite;
    -moz-animation: rotation 1s ease-in-out infinite;
    -o-animation: rotation 1s ease-in-out infinite;
    animation: rotation 1s ease-in-out infinite;
}
.bluecup.levitate {

    -webkit-animation: levitate 4s ease-in-out infinite;
    -moz-animation: levitate 4s ease-in-out infinite;
    -o-animation: levitate 4s ease-in-out infinite;
    animation: levitate 4s ease-in-out infinite;
}


/*IDs*/

#status{
    visibility:hidden;
}

#controls {
    text-align: center;
    margin: auto;
    overflow: hidden;
    z-index: 100;
}
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;   
    z-index: 2000;
}
.modal-content {
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    margin: auto;
    position: absolute;
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
}
.modal-header {
    padding: 2px 16px;
}
.modal-header-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.modal-body {
    padding: 2px 16px;
}
.modal-close {
    
    font-size: 100%;
    appearance: none;
    background: #E528E1;
    border-radius: 2em;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    padding: 0 0.5em;
    border: 2px solid #E528E1;
    white-space: normal;
}
.modal-close:focus,
.modal-close:hover {
    color:  #E528E1;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
}

/*responsive*/
@media screen and (max-width: 700px) {
    .wrap > div {
       
        padding: 1%;
      }
    .title {
       font-size: 1.2em;
      }
    p {
        font-size: 0.8em;
    }
    .button-select{
        font-size: 0.8em;
    }
    .bluecup{
        width: 100px;
        height: 100px;
        left: 43%;
  }
  .gears{ 
    width: 100px!important;
    height: 100px!important;
  }
  .gears-cont{
    
    width: 20%;
    height: 13%;
    font-size: 1em;
    padding: 1px;
  }
  .modal-content {
    font-size: 0.8em;
    width: 100%;
    height:100%;
    z-index: 2000;
 }
}

@media screen and (max-width: 550px) {

    .wrap > div {
       
        padding: 1%;
      }

    .title{
        font-size: 1.5em;
        padding-left: 10%;
        padding-right: 10%;
    }
    .button-select{
        font-size: 0.8em;
    }
    .bluecup{
        width: 150px;
        height: 150px;
        left: 37%;
    }
    .gears{ 
        width: 100px!important;
        height: 100px!important;
      }
    .gears-cont{
        width: 23%;
        height: 13%;
        font-size: 0.6em;
      }
      .modal-content {
       font-size: 0.6em;
       width: 100%;
       height:100%;
       z-index: 2000
    }
  }


/* Animations */
  
@-webkit-keyframes levitate {
    0% {
        transform: translate(0%, 0);
    }
    50% {
        transform: translate(0%, -50%);
    }
    100% {
        transform: translate(0%, 0);
    }
}
@-moz-keyframes levitate {
    0% {
        transform: translate(0%, 0);
    }
    50% {
        transform: translate(0%, -50%);
    }
    100% {
        transform: translate(0%, 0);
    }
}
@-o-keyframes levitate {
    0% {
        transform: translate(0%, 0);
    }
    50% {
        transform: translate(0%, -50%);
    }
    100% {
        transform: translate(0%, 0);
    }
}
@keyframes levitate {
    0% {
        transform: translate(0%, 0);
    }
    50% {
        transform: translate(0%, -50%);
    }
    100% {
        transform: translate(0%, 0);
    }
}
@-webkit-keyframes rotation {
    0% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}
@-moz-keyframes rotation {
    0% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}
@-o-keyframes rotation {
    0% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}
@keyframes rotation {
    0% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}