* {
    box-sizing: border-box;
  }
body{
    margin: 0;
    padding: 0;
    background-color: #ed6a5a;
    color: #555555;
    font-family: 'Maven Pro', sans-serif;
}
h1,h2,h3,h4,h5,h6,p{
    padding: 0;
    margin: 0;
}
input[type="number"]{
    width: 50px;
    height: 30px;
    padding: 0;
    margin-right: 2px;
    border: 1px dotted #aeaeae;
    border-radius: 3px;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}
input[type="number"]:focus{
    outline: none;
    border: 2px dotted #aeaeae;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
.hide{
    display: none !important;
}
.mb-5{
    margin-bottom: 5px;
}
.mb-10{
    margin-bottom: 10px;
}
.mb-15{
    margin-bottom: 15px;
}
.play-button{
    background: #0bbb62;
    color: #ffffff;
    border: 0;
    border-radius: 3px;
    box-shadow: 1px 1px 0 #999999;
    padding: 3px 8px;
    font-size: 16px;
    text-align: center;
    outline: none;
    cursor: pointer;
}
.play-button:hover{
    background: #10683c;
}
.play-button:focus{
    border: 1px solid #e67c25;
}
#goButton{
    width: 30px;
    height: 28px;
    border-radius: 50%;
    opacity: 0;
}
.app-wrapper{
    position: relative;
    width: 768px;
    margin: 0 auto;
    padding: 30px;
    min-height: 100vh;
    background-color: #e6ebe0;
}
.app-header{
    margin-bottom: 30px;
}
.app-header .logo{
    font-family: 'Fredoka One', cursive;
    color: #5ca4a9;
    font-size: 30px;
}
.find-wrapper{
    position: relative;
    margin-bottom: 15px;
}
.input-wrapper{
    margin-bottom: 30px;
}
.find-wrapper .cow-bull-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 30px;
}
.find-wrapper .cow-bull-icon-wrapper .icon-cow {
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    color: #5ca4a9;
    position: absolute;
    top: -18px;
    left: 5px;
}
.find-wrapper .cow-bull-icon-wrapper .icon-bull {
    display: inline-block;
    font-size: 40px;
    font-weight: bold;
    color: #ed6a5a;
    position: absolute;
    top: -22px;
    left: 48px;
}
.history-header{
    padding-left: 270px;
}
.history-header span{
    display: inline-block;
}
.history-header span.cow-header{
    font-size: 30px;
}
.history-header span.bull-header{
    font-size: 36px;
}
.history-container .state-row{
    margin-bottom: 10px;
}
.history-container .state-row .user-number{
    display: inline-block;
    width: 50px;
    height: 30px;
    padding: 4px;
    margin-right: 2px;
    text-align: center;
    border-radius: 3px;
    border: 1px solid #999999;
}
.match-count-wrapper{
    display: inline-block;
    margin-left: 30px;
}
.match-count{
    display: inline-block;
    width: 30px;
    height: 30px;
    padding: 4px;
    border-radius: 50%;
    background-color: #999999;
    color: #ffffff;
    text-align: center;
    margin: 0 5px;
}
.cows{
    background-color: #5ca4a9;
}
.bulls{
    background-color: #ed6a5a;
}
.success-message-container{
    font-size: 18px;
    font-weight: bold;
    color:#10683c;
}
.aside-wrapper{
    position: absolute;
    top: 100px;
    right: 0;
}
.aside-wrapper ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.aside-wrapper ul li{
    display: block;
    margin-bottom: 5px;
}
.aside-wrapper ul li button{
    width: 50px;
    height: 50px;
    background-color: #ed6a5a;
    border: 0;
    box-shadow: 0px 1px 0px #aaaaaa;
    cursor: pointer;
}.aside-wrapper ul li button:hover{
    text-shadow: 2px 2px #5ca4a9;
}
.aside-wrapper ul li button span{
    color: #ffffff;
    font-size: 24px;
}
.intro-wrapper{
    background-color: #ed6a5a;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.intro-container p{
    margin-bottom: 15px;
    font-size: 20px;
    color: #ffffff;
}
.intro-wrapper .action-container a{
    display: inline-block;
    padding: 10px;
    background-color: #10683c;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
}
.intro-wrapper .action-container a:hover{
    background-color: #0bbb62;
    color: #555555;
}
.intro-wrapper .app-header .logo {
    width: 322px;
    color: #ffffff;
}
.modal{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal .modal-overlay{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
}
.modal .modal-content{
    margin: 0 auto;
    width: 80%;
    height: 80%;
    overflow: scroll;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 3px;
    z-index: 2;
    box-shadow: 1px 2px 2px #777777;
}
#introModal .modal-content{
    text-align: center;
}
#introModal .modal-content p{
    margin-bottom: 15px;
    font-size: 18px;
}
#rulesTable{
    width: 480px;
    margin: 0 auto;
}
#rulesTable td{
    padding: 5px;
    border: 1px solid #cccccc;
    text-align: center;
    vertical-align: middle;
}
#rulesTable td .match-count-wrapper{
    margin-left: 0;
}
.illustration img {
    width: 100%;
    max-width: 480px;
}
@media (max-width: 481px){
    .app-wrapper{
        width: 100%;
        padding: 15px;
    }
    input[type="number"]{
        width: 30px;
    }
    .find-wrapper .cow-bull-icon-wrapper {
        margin-left: 10px;
    }
    .history-container .state-row .user-number{
        width: 30px;
    }
    .match-count-wrapper{
        margin-left: 10px;
    }
    .aside-wrapper ul li button{
        width: 30px;
        height: 30px;
    }
    .aside-wrapper ul li button span{
        font-size: 18px;
    }
    #introModal .modal-content p{
        margin-bottom: 10px;
        font-size: 14px;
    }
    #rulesTable{
        width: 280px;
    }
    #rulesTable tr td{
        font-size: 14px;
    }
}