@font-face {
    font-family: Museo;
    src: url(fonts/museo300.woff);
  }

  @font-face {
    font-family: 'Open Sans';
    src: url(fonts/open-sans-v34-latin-regular.woff);
  }

body {
    font-family: Museo;
    --window-height: 480px;
    --window-width: 800px;
    --avatar-height: 200px;
    --avatar-width: 200px;
    box-sizing: border-box;
    margin: 0px;
    padding:0px;
}

h1 {
    text-align: center;
    font-size: 48px;
    margin-top: 15px;
    margin-bottom: 20px;
}

#game {
    visibility: hidden;
    overflow: hidden;
}

#welcome-screen {
    visibility: hidden;
}

.screen-base-settings {
    background-image: url(../img/landschaft.svg);
    background-size: 1300px;
    width: var(--window-width);
    height: var(--window-height);    
    position:absolute;
    overflow: hidden;
}

#avatar {
    width: var(--avatar-width);
    height: var(--avatar-height);
    position: absolute;
    background-size: var(--avatar-width) var(--avatar-height);
    top: calc(var(--window-height) - var(--avatar-height));
}

#avatar-chooser {
    visibility: hidden;
}

.avatar-container {
    bottom: 0px;
    display: flex;
    position: absolute;
    width:100%;
}

#congratulations {
    visibility: hidden;
}

#congratulations .spotlight h2{
    /* margin-top:180px; */
    font-family: 'Open Sans';
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 0px;
}

#congratulations .spotlight p{
    font-family: 'Open Sans', sans-serif;
    font-size:larger;
    margin-top:0px;
    margin-bottom:0px;
}

#congratulations .spotlight .beer {
    margin: auto;
    margin-top: 120px;
    position:relative;
    width:120px;
    height:120px;
    background-repeat: no-repeat;
    background-image: url(../img/beer_half.png);
}

#congratulations .spotlight .full {
    background-image: url(../img/beer_full.png);
}

#sorry {
    visibility: hidden;
}

.spotlight {
    position: relative;
    margin: auto;
    overflow: auto;
    display: block;
    width:480px;
    height:480px;
    background-image: url(../img/spotlight.png);
}

.spotlight * {
    text-align: center;
}

#new-highscore {
    visibility: hidden;
}

#new-highscore .spotlight h2{
    margin-top:180px;
    font-family: 'Open Sans';
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 0px;
}

#new-highscore .spotlight p{
    font-family: 'Open Sans', sans-serif;
    font-size:larger;
    margin-top:10px;
    margin-bottom:10px;
}

#beerstructions {
    visibility: hidden;
    background-color: black;
    background-image: none;
}
#beerstructions h1 {
    color:white;
}

#beerstructions h2 {
    color:white;
    position: absolute;
}

#beerstructions button {
    visibility: hidden;
}

#beerstructions img {
    margin: auto;
    display: block;
}

#beerstructions .instruction-one {
    position: absolute;
    top: 30px;
    left: 50px;
}

#beerstructions .instruction-one h2 {
    width: 300px;
}

#beerstructions .instruction-one img {
    margin-top: 100px;
    left: 50px;
}

#beerstructions .instruction-two {
    position: absolute;
    top: 30px;
    right: 50px;
}

#beerstructions .instruction-two h2 {
    width: 300px;
}
#beerstructions .instruction-two img {
    margin-top: 100px;

}


#beerstructions .instruction-three {
    position: absolute;
    top: 300px;
    left: 250px;
    width:350px;
}

#beerstructions .instruction-three h2 {
    width: 350px;
    text-align: center;
}
#beerstructions .instruction-three button {
    left: 50px;
    top: 60px;
    width: 250px;
    position:absolute;
    margin-bottom: 10px;
}

.avatar {
    --avatar-chooser-width: 88px;
    --avatar-chooser-height: 120px;
    width:var(--avatar-chooser-width);
    height: var(--avatar-chooser-height);
    position: relative;
    background-size: var(--avatar-chooser-width) var(--avatar-chooser-height);
}

.avatar-big{
    width:90px;
    height:90px;
    margin:auto;
    display: block;
    background-size: 90px 90px;
    background-color: #BAD8D1;
    border-radius: 50%;

}


.green-border {
    border-radius: 20px;
    border: 5px #B0BF3F solid;
    box-sizing: content-box;
    width: 350px;
    margin:auto;
}

.green-border.wide {
    width: 600px;
}

.grey-box{
    background-color: #0C1B1D;
    color: #EEEEEE;
    width: 350px;
    padding: 20px;
    position: relative;
    border-radius: 20px;
    border: 3px white solid;
    box-sizing: border-box;
}

#player-description{
    width: 600px;
    display: box;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

#display-player {
    visibility: hidden;
}


#descriptions {
    visibility: hidden;
}

.button {
    background-color: #80AB2B;
    border: 0px;
    padding: 20px;
    border-radius: 40px;
    color: white;
    font-size: larger;
    margin:auto;
    /*margin-bottom: 30px;*/
    display: block;
    width: 200px;
    text-align: center;
}

.inline-block {
    display: block;
    width:200px;
}

.description .lead {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

/* Hiscores */

#highscores {
    margin-top: 50px;
}

.highscore {
    display: flex;
    margin-top: 10px;
}


#highscore-title {
    width: 212px;
    height: 46px;
    margin:auto;
    margin-top: -45px;;
    background-image: url(../img/highscores.png);
}

.highscore .avatar-small{
    width:30px;
    height:30px;
    margin-right: 20px;
    border-radius: 50%;
    background-color: #BAD8D1;
    background-repeat: no-repeat;
    background-size: 30px 30px;
}

.highscore .name {
    /*height: 30px;*/
    display:flex; 
    flex-direction: column;
    justify-content: center;
    width: 200px;
    margin-right: 20px;
}

.highscore .score {
    display:flex; 
    flex-direction: column;
    justify-content: center;
}

.berti {
    background-image: url(../img/avatar_adrian_berteletti.svg);
}

.simu {
    background-image: url(../img/avatar_simon_hirsbrunner.svg);
}

.annemarie {
    background-image: url(../img/avatar_annemarie_gugelmann.svg);
}

.flavio {
    background-image: url(../img/avatar_flavio_loetscher.svg);
}

.juergen {
    background-image: url(../img/avatar_juergen_baumgarten.svg);
}

.mayra {
    background-image: url(../img/avatar_mayra_overney.svg);
}

.julia {
    background-image: url(../img/avatar_julia_grass.svg);
}

.tobi {
    background-image: url(../img/avatar_tobias_hinderling.svg);
}

.phippu {
    background-image: url(../img/avatar_philipp_murkowsky.svg);
}

.player {
    top: calc(var(--window-height) - var(--avatar-height));
}

#obstacle {
    height: 30px;
    width: 42px;
    position: absolute;
    top: calc(var(--window-height) - 30px);
    left: var(--window-width);
    background-image: url(../img/wac-cube-logo3.svg);
    background-size: 42px 30px;
}

#obstacle-info {
    visibility: hidden;
    position: absolute;
    top: 107px;
    font-size: 24pt;
    left: 100px;
}

#obstacle-info #obstacle-countdown {
    font-size: 48pt;
}

#obstacle-info .obstacle-arrow {
    background-image: url(/static/img/arrow_black.png);
    width: 379px;
    height: 265px;
    margin-left: 270px;
}

#hold-my-beer {
    width:100px;
    height:100px;
    background-size: 100px 100px;
    right: 0px;
    position: absolute;
    margin: 25px;
}

#actual-score {
    position: absolute;
    margin: 25px;
    font-size: 40px;
}

#hold-my-beer {
    width:100px;
    height:100px;
    background-size: 100px 100px;
    right: 0px;
    position: absolute;
}

.beer-empty {
    background-image: url(../img/beer_empty.png);
}
.beer-half {
    background-image: url(../img/beer_half.png);
}
.beer-full {
    background-image: url(../img/beer_full.png);
}

#game-over {
    margin-top:120px;
    visibility: hidden;
    position: relative;
}

.tap-to-continue {
    margin:auto;
    margin-top:15px;
    width: 221px;
    height: 41px;
    position: relative;
    background-image: url(../img/tap-to-continue.png);
}

.tap-to-continue.right-bottom {
    margin:0px;
    right:20px;
    bottom: 20px;
    position: absolute;
}

#tap-to-jump {
    margin:auto;
    margin-top:-30px;
    width: 186px;
    visibility: hidden;
    position: relative;
}


#game-over img {
    margin: auto;
    display: block;
}



#game-over span {
    font-size:12px;
}

.visible {
    visibility: visible !important;
}


.run_slow {    
    animation: run 1.5s linear;
}

.run_normal {    
    animation: run 1.2s linear;
}

.run_fast {    
    animation: run 1s linear;
}

.run_veryfast{
    animation: run 0.8s linear;
}

.run_superfast {    
    animation: run 0.5s linear;
}


.jump {
    animation: jump 0.7s linear;
}

@keyframes jump {
    0% {
        /* top: 180px; */
        top: calc(var(--window-height) - var(--avatar-height));
    }

    30% {
        /* top: 100px; */
        top: calc(var(--window-height) - var(--avatar-height) - 80px);
    }

    50% {
        /* top: 80px; */
        top: calc(var(--window-height) - var(--avatar-height) - 100px);    }

    80% {
        /* top: 100px; */
        top: calc(var(--window-height) - var(--avatar-height) - 80px);
    }

    100% {
        /* top: 180px; */
        top: calc(var(--window-height) - var(--avatar-height));
    }
}

@keyframes run {
    0% {
        left: var(--window-width);
    }

    100% {
        left: -30px;
    }
}
