.code-widget .panel-body {padding: 0;}

.flying-game-wrapper {
    position:relative;
    padding: 30px 0 60px 0;
    background-color: #062147;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 -8px;
    display:flex;
    flex-direction: column;
    align-items: center;
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    font-family: 'roboto slab';
}

@media screen and (min-width:992px) {
    .flying-game-wrapper {
        margin: 0 -24px;
        border-radius: 6px;
    }
}

.flying-game-wrapper * {box-sizing: border-box;}

.flying-game-header {
    display:flex;
    justify-content: center;
    padding: 0 0 40px 0;
    width:100%;
}

.flying-game-header > .game-logo {
    width: 50%;
    max-width: 400px;
}

.flying-game-mobile-message {
    background-color: #21487F;
    width: 100%;
    max-width: 600px;
    padding: 24px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
}

.flying-game-mobile-message > .icon {
    width: 80px;
    height: 80px;
}


.flying-game-container {
    position:relative;
    width:100%;
    max-width:600px;
    margin:auto;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-game {
    position:relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    overflow: hidden;
    background-size: cover;
    border-radius: 14px;
    border:10px solid #21487F;
    user-select: none;
}

#block{
    width: 50px;
    height: 500px;
    position: relative;
    left: 120%;
    background-size: 50px auto;
    background-position-y: -400px;
    user-select: none;
}

#space{
    width: 50px;
    height: 230px;
    background-color: transparent;
    position: relative;
    left: 120%;
    top: -400px;
    user-select: none;
}

@keyframes block{
    0%{left:120%}
    100%{left:-50px}
}

#reindeer{
    width: 49px;
    height: 70px;
    position: absolute;
    left:30px;
    top: 120px;
    background-size:cover;
    user-select: none;
}

#game.not-started > #reindeer {
    top: 120px !important;
} 

#game.active > #block,
#game.active > #space {
    animation: block 3s infinite linear;
}

@media screen and (min-width:992px) {
    #game.active > #block,
    #game.active > #space {
        animation: block 4s infinite linear;
    }
}

#controls {
    margin: auto;
    margin-top:20px;
    width: 100%; 
    display:flex;
    justify-content: center;
    align-items: center;
}

.button {
    padding: 8px 24px;
    border-radius: 2em;
    color: #fff !important;
    text-decoration: none !important;
    line-height:24px;
    font-weight: bold;
    cursor: pointer;
    display:inline-block;
    background: rgb(234,27,10);
    background: linear-gradient(180deg, rgba(234,27,10,1) 0%, rgba(149,17,6,1) 100%);
}

.button:hover {
    background: rgb(149,17,6);
    background: linear-gradient(180deg, rgba(149,17,6,1) 0%, rgba(234,27,10,1) 100%);
}

.button.xl {
    font-family: 'luckiest guy';
    font-size: 40px;
    line-height:40px;
    padding: 14px 48px 6px;
    user-select: none;
}

.button.sm {
    font-size: 12px;
    line-height: 18px;
    padding: 8px 16px;
}

.countdown {
    font-size: 120px;
    padding: 20px 0;
    font-weight:bold;
    color: #ffffff;
    text-shadow: 4px 4px #21487F;
    display:none;
    font-family: 'luckiest guy';
    position: absolute;
    margin: auto;
    text-align: center;
    width: 240px;
}

.countdown.visible {display:block}

.game-score {
    position:absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    font-family: 'luckiest guy';
    color: #ffffff;
    text-shadow: 2px 2px #21487F;
    text-align: right;
    width: 150px;
}

.game-score.winner {
    color: #FFD700;
    text-shadow: 2px 2px #d4af37;
}

.game-popup {
    position: absolute;
    width:90%;
    max-width: 360px;
    padding: 24px;
    border-radius: 16px;
    border: 3px solid #BDECFE;
    background-color: rgba(255,255,255,0.6);
    box-shadow: 5px 5px 15px 5px rgba(33,72,127,0.5);
    font-size: 16px;
    font-weight:bold;
    color: #062147;
    text-align: center;
    display:none;
}

.game-popup.visible {display:block;}

.game-popup h3 {
    font-family: 'luckiest guy';
    font-size: 48px;
    margin: 0 0 8px 0;
    color: #5F9EC9;
    text-shadow: 2px 2px #21487F;
    text-transform: uppercase;
}

.game-popup p {
    margin: 0 0 12px 0;
}

.game-popup.winner {
    background-image: url('images/bg-lights.png');
    background-size: 100%;
    background-repeat:no-repeat;
    background-position: top center;
    padding-top: 60px;
}

.game-popup.winner h3 {
    color: #FFD700;
    text-shadow: 2px 2px #d4af37;
}

.game-input-password {
    padding: 8px 8px;
    border: 3px solid #5F9EC9;
    border-radius:6px;
    background-color: transparent;
    color: #062147;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    width:100%;
    max-width: 260px;
    text-align:center;
}
.flying-game-wrapper {background-image: url('images/wrapper-bg.png');}
.main-game {background-image: url('images/bg.png');}
#block{background-image:url('images/northpole.png');}
#reindeer{background-image:url('images/reindeer.png');}
.game-popup.winner {background-image: url('images/bg-lights.png');}