body {
    padding: 0;
    margin: 0;
    font-family: Source Sans Pro, sans-serif;
    font-size: 20px;
    background-color: #121316;
    color: #eee;
    /*overflow: hidden;*/
}

a {
    text-decoration: none;
}

#canvas-container {
    /*width: 100%;*/
    /*height: 100%;*/
}

#topheader {
    user-select: none;
    position: absolute;
    display: grid;
    /*flex-direction: row;*/
    /*justify-content: space-between;*/
    font-family: sans-serif;
}

#topheader > div {
    text-align: center;
    /*align-self: center;*/
}

#topheader.hidden {
    display: none;
}

.topheader-label {
    font-size: 0.5em;
    align-self: end;
    color: #777;
}

.topheader-value {
    font-size: 1.2em;
    align-self: start;
}

#topheader-app-container {
    display: inline-flex;
    justify-content: center;
    align-content: center;
    flex-direction: row;
}

#topheader-app-button {
    width: 1.5em;
    height: 1.5em;
    /*font-size: 0.8em;*/
    /*background-color: #1F2024;*/
    /*border-radius: 0.2em;*/
    /*padding: 0.4em 0.4em;*/
    /*!*margin: 0.4em 0em;*!*/
    /*display: inline;*/
    /*color: #ffae00;*/
}

/*=============================================*/

#gameoverpanel {
    user-select: none;
    position: absolute;
    overflow: hidden;
    color: #eee;
    font-family: sans-serif;
    font-weight: normal;
}

#gameoverpanel > div {
    position: absolute;
    left: 0;
    right: 0;
}

#gameoverpanel.hidden {
    display: none;
}

#gameoverpanel-label {
    text-align: center;
}

.gameoverpanel-scores-value {
    text-align: right;
    color: #F7A900;
}

#gameoverpanel-compare-sending {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2em;
    background-color: #1F2024;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.8em;
    line-height: 2em;
}

#gameoverpanel-compare-sending.hidden {
    display: none;
}

#gameoverpanel-compare-label {
    text-align: center;
}

.gameoverpanel-compare-value {
    text-align: center;
    color: #F7A900;
    height: 1.2em;
    line-height: 1.2em;
    /*padding-top: 0.4em;*/
}

.gameoverpanel-compare-desc {
    font-size: 0.7em;
    text-align: center;
    /*line-height: 1.1em;*/
}

#gameoverpanel-buttons {
    display: flex;
    justify-content: space-around;
}

.gameoverpanel-panel {
    background-color: #1F2024;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 0.2em;
}

.globalstatspanel-panel-header {
    text-align: right;
    font-size: 0.7em;
}

.gameoverpanel-panel-header {
    text-align: right;
    font-size: 0.7em;
    /*line-height: 1.4em;*/
    /*border-bottom: 2px solid #555;*/
    color: #aaa;
}

.gameoverpanel-panel-separator {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    height: 2px;
    background-color: #444;
}

.gameoverpanel-panel-content {
    display: grid;
    grid-gap: 0.2em;
}

.gameoverpanel-button {
    text-align: center;
    filter: brightness(0.8);
}

.gameoverpanel-button.disabled {
    text-align: center;
    filter: brightness(0.25);
}

.gameoverpanel-button > img {
    width: 1.5em;
    height: 1.5em;
}

.gameoverpanel-button > div {
    margin-top: 0.3em;
    font-size: 0.7em;
}

/*=============================================*/

#globalstatspanel {
    background-color: #121316;
    user-select: none;
    position: absolute;
    overflow: hidden;
    color: #eee;
    font-family: sans-serif;
    font-weight: normal;
    display: grid;
    grid-row-gap: 0.4em;
    grid-template-rows: auto 1fr auto;
}

.globalstatspanel-gap {
    height: 0.4em;
}

#globalstatspanel.hidden {
    display: none;
}

.globalstatspanel-panel {
    background-color: #1F2024;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 0.2em;
}

.globalstatspanel-panel-header {
    text-align: right;
    font-size: 0.7em;
    color: #aaa;
}

.globalstatspanel-panel-separator {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    height: 2px;
    background-color: #444;
}

.globalstatspanel-panel-content {
    display: grid;
    grid-gap: 0.2em;
}

.globalstatspanel-label {
    /*font-size: 0.8em;*/
    text-align: center;
}

#globalstatspanel-period {
    display: grid;
    font-size: 0.5em;
    grid-column-gap: 1em;
}

.globalstatspanel-period-option {
    text-align: center;
    background-color: #00254d;
    color: #aaaaaa;
    line-height: 1.7em;
    border-radius: 1.4em;
    font-size: 1.4em;
}

.globalstatspanel-period-option-active {
    background-color: #0069d9;
    color: #eee;
}

.globalstatspanel-compare-value {
    text-align: center;
    color: #F7A900;
    /*height: 1.2em;*/
    /*line-height: 1.2em;*/
}

.globalstatspanel-compare-value2 {
    text-align: center;
    color: #F7A900;
    /*height: 1.0em;*/
    /*line-height: 1.0em;*/
    font-size: 0.8em;
}

.globalstatspanel-compare-desc {
    text-align: center;
    font-size: 0.7em;
    /*line-height: 1.0em;*/
}

.globalstatspanel-distribution-label {
    text-align: center;
    font-size: 0.7em;
    /*line-height: 1.2em;*/
}

.globalstatspanel-distribution-value {
    text-align: center;
    color: #F7A900;
    /*font-size: 0.8em;*/
    /*margin-bottom: 0.4em;*/
}

.globalstatspanel-distribution-separator {
    height: 0.1em;
}

#globalstatspanel-score {
    /*font-size: 0.6em;*/
}

.globalstatspanel-score-value {
    text-align: right;
    color: #F7A900;
}

#globalstatspanel-compare {
    /*font-size: 0.6em;*/
}

#globalstatspanel-score-distribution {
    /*font-size: 0.6em;*/
}

#globalstatspanel-number-distribution {
    /*font-size: 0.6em;*/
}

#globalstatspanel-bottom {
    display: flex;
    flex-direction: row;
    /*font-size: 0.5em;*/
    justify-self: center;
}

/*#globalstatspanel-bottom-close {*/
/*    width: 6em;*/
/*    text-align: center;*/
/*    background-color: #0069d9;*/
/*    color: #ffffff;*/
/*    line-height: 2.5em;*/
/*    border-radius: 2em;*/
/*}*/

/*=============================================*/

#tutorialpanel {
    position: absolute;
    background-color: rgba(18, 19, 22, 0.8);
    border-radius: 0.2em;
    box-sizing: border-box;
    border: 0.1em solid #333;
    /*padding: 0.5em;*/
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-direction: column;
}

#tutorialpanel.hidden {
    display: none;
}

#tutorialpanel-play-button {
    text-align: center;
    margin-top: 1em;
}

#tutorialpanel-play-button.hidden {
    display: none;
}

#tutorialpanel-play-button > img {
    width: 2em;
    height: 2em;
}

#tutorialpanel-play-button > div {
    margin-top: 0.3em;
    font-size: 0.8em;
}

/*=============================================*/

#apppanel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 19, 22, 1);
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-direction: row;
}

#apppanel.hidden {
    display: none;
}

/*=============================================*/

#menupanel {
    background-color: #121316;
    user-select: none;
    position: absolute;
    overflow: hidden;
    color: #eee;
    font-family: sans-serif;
    font-weight: normal;
    display: grid;
    align-items: center;
    justify-items: center;
}

#menupanel.hidden {
    display: none;
}

#menupanel-gamename {
    font-size: 3em;
    text-align: center;
    font-weight: 800;
}

#menupanel-play {
    text-align: center;
}

#menupanel-play > img {
    width: 7em;
    height: 7em;
    max-width: 200px;
    max-height: 200px;
}

#menupanel-play > div {
    margin-top: 1em;
    font-size: 2em;
}

#menupanel-store {
    display: grid;
    grid-gap: 0.5em;
}

#menupanel-goal {
    text-align: center;
}

/*=============================================*/

#bottomheader {
    position: absolute;
    bottom: 0;
}

#bottomheader.hidden {
    display: none;
}

#nextlevelbottom {
    width: 100%;
    text-align: center;
    text-decoration: none;
    line-height: 10vh;
    font-size: 9vh;
    /*color: #555555;*/
}

#nextlevelbottombutton {
    margin: 0 4vh;
}

#nextlevelbottom.hidden {
    display: none;
}

#end-screen {
    text-align: center;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}

#end-screen-text {
    padding: 2vh 2vw 0;
    text-align: center;
    font-size: 7vmin;
    font-family: Roboto, serif;
    font-weight: 500;
}

#end-screen-text2 {
    padding: 2vh 2vw 4vh;
    text-align: center;
    font-size: 5vmin;
    font-family: Roboto, serif;
    font-weight: 500;
}

#end-screen-image {
    height: 50%;
    width: 100%;
    text-align: center;
    padding: 2vh 0;
}

.description {
    font-weight: bold;
    font-size: 0.7em;
    color: white;
    display: inline-block;
    padding: .25em .4em;
    line-height: 1;
    vertical-align: baseline;
    border-radius: .25rem;
    /*background-color: #7E7872;*/
    background-color: #FF6600;
    margin: .1em;
}

/*.storelinkcontainer {*/
/*    height: 6vh;*/
/*    line-height: 5vh;*/
/*    border-radius: 1vh;*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    padding: 1vh;*/

/*    color: #ffffff;*/
/*    background-color: #FF6D00;*/
/*    border-color: #FF6D00;*/
/*}*/

#storebadgesgame {
    text-align: center;
}

#storebadgesgame.hidden {
    display: none;
}

#storelinkgame {
    width: 100%;
    text-align: center;
}

#storelinkgame.hidden {
    display: none;
}

.storelinkicon {
    height: 6vh;
}

.storelinktext {
    margin-left: 1vh;
    margin-right: 1vh;
    font-size: 6vmin;
    white-space: nowrap;
}

.storelink {
    text-decoration: none;

    height: 6vh;
    line-height: 5vh;
    border-radius: 1vh;
    display: inline-flex;
    align-items: center;
    padding: 1vh;

    color: #ffffff;
    background-color: #319c5b;
}

span.storelink:hover {
    cursor: pointer;
}

.badgeappstore {
    margin-right: 10px;
}

/*#next-level-container {*/
/*    height: 10vh;*/
/*    text-align: center;*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    width: 100%;*/
/*}*/

.score-sending-animation {
    display: inline-block;
    font-size: 2em;
}
.score-sending-animation:after {
    content: " ";
    display: block;
    width: 0.8em;
    height: 0.8em;
    margin: 0.1em;
    border-radius: 50%;
    border: 0.1em solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: score-sending-animation 2.0s linear infinite;
}
@keyframes score-sending-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading.hidden {
    display: none;
}

/***********************/
.resp-sharing-button__link,
.resp-sharing-button__icon {
    display: inline-block
}

.resp-sharing-button__link {
    text-decoration: none;
    color: #fff;
    padding: 1vh;
}

.resp-sharing-button {
    border-radius: 1vh;
    transition: 25ms ease-out;
    padding: 1.5vh;
    font-family: Helvetica Neue,Helvetica,Arial,sans-serif
}

.resp-sharing-button__icon svg {
    width: 3vh;
    height: 3vh;
    /*margin-right: 0.4em;*/
    vertical-align: top
}

.resp-sharing-button--small svg {
    margin: 0;
    vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
    stroke: #fff;
    fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
    fill: #fff;
    stroke: none
}

.resp-sharing-button--twitter {
    background-color: #55acee
}

.resp-sharing-button--twitter:hover {
    background-color: #2795e9
}

.resp-sharing-button--facebook {
    background-color: #3b5998
}

.resp-sharing-button--facebook:hover {
    background-color: #2d4373
}

.resp-sharing-button--facebook {
    background-color: #3b5998;
    border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
    background-color: #2d4373;
    border-color: #2d4373;
}

.resp-sharing-button--twitter {
    background-color: #55acee;
    border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
    background-color: #2795e9;
    border-color: #2795e9;
}

#share-fb {
    position: absolute;
    top: 0.5vh;
    left: 0;
}

#share-twitter {
    position: absolute;
    top: 0.5vh;
    right: 0;
}