html {
    font-family: Helvetica;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0px;
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    background-image: url(img/Wiki-background2.jpg);
    background-position: top;
    overflow: hidden;
}

#stats {
    width: 100%;
    min-height: 100px;
    position: absolute;
    top: 0px;

    border-bottom: 4px solid steelblue;
    background-image: url(img/Wiki-background.jpg);

    padding-top: 10px;
}

#buttons {
    position: fixed;
    margin: 25px auto auto 50px;
    width: 200px;
    height: 100px;
}

#buttons a {
    position: absolute;
    height: 80px;
    width: 80px;
    border-radius: 50px;
    border: 1px solid lightblue;
}

#buttons a:hover {
    background-color: lightblue;
    border-radius: 50px;
}

#buttons a:nth-child(2) {
    margin-left: 100px;
}

#buttons img {
    height: 60%;
    margin: 20%;
}

.stat {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 30px;
    margin: 5px;
}

#moneyps {
    font-size: 15px;
    color: whitesmoke;
}

#clicksps {
    font-size: 13px;
    color: whitesmoke;
}

.stat:nth-child(3) {
    font-size: 25px;
    margin: 5px;
    color: whitesmoke;
}

.stat:nth-child(4) {
    font-size: 25px;
    margin: 5px;
    color: whitesmoke;
}

#cookiecenter {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;
}

#cookiecenter img {
    margin: 12.5%;
    width: 75%;
    height: 75%;
}

#cookiecenter img:active {
    margin: 5%;
    width: 90%;
    height: 90%;
}

#cookiediv {
    width: 400px;
    height: 400px;
    margin-top: -5%;
}

#upgrades {
    width: 100%;
    min-height: 150px;
    height: 280px;

    padding-top: 10px;
    position: absolute;
    bottom: 0px;

    border-top: 4px solid steelblue;
    background-image: url(img/Wiki-background.jpg);



    z-index: 9927151235;
}

#upgradestop {
    display: none;
}

.upgradescroll {
    position: fixed;
    width: 100%;
    height: 100px;

}

.upgrade {
    width: 150px;
    height: 150px;

    float: left;
    margin: 0px 25px 75px 25px;
}

.upgrade:hover {
    height: 180px;
    width: 180px;
    margin: -10px 10px 75px 10px;
}

.upgrade:active {
    height: 170px;
    width: 170px;
    margin: -5px 15px auto 15px;
}

.upgrade p {
    text-align: center;
    margin: 2%;
    font-weight: 600;
    color: white;
}

.upgrade p:nth-child(1) {
    margin-top: 0px;
}

.upgradeimg {
    background-color: white;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    position: relative;
    width: 100%;
    height: 100%;

    border: 1px solid black;
}

.mult1 {
    background-image: url(img/finger.png);
}

.mult2 {
    background-image: url(img/staebchen.png);
}

.mult3 {
    background-image: url(img/robot_hand.png);
}

.cps1 {
    background-image: url(img/Cartoon_Robot.png);
}

.cps2 {
    background-image: url(img/oma.png);
}

.cps3 {
    background-image: url(img/factory.png);
}

#canvas1 {
    width: 100%;
    height: 100%;
    float: left;
    position: fixed;
}

@media only screen and (max-width: 1000px) {
    #stats {
        height: 20%;
    }

    .stat:nth-child(2) {
        font-size: 400%;
    }

    .stat:nth-child(4) {
        font-size: 340%;
    }

    #money {
        font-size: 200%;
    }

    #moneyps {
        font-size: 120%;
    }

    #clicks {
        font-size: 130%;
    }

    #clicksps {
        font-size: 70%;
    }

    #cookiediv {
        width: 800px;
        height: 800px;
    }

    #upgradestop {
        text-align: center;
        display: block;
        width: 100%;
        height: 100%;
    }

    .upgrade {
        width: 48%;
        height: 30%;
        float: left;
        margin: 0% 1% 20% 1%;
    }

    .upgrade:hover {
        width: 48%;
        height: 30%;

        float: left;
        margin: 0% 1% 20% 1%;
    }

    #upgradestop img {
        height: 90%;

    }

    #upgrades {
        height: 10%;
        z-index: 129741964;
        -webkit-overflow-scrolling: touch;
    }

    .upgrade p {
        font-size: 200%;
    }

    html {
        touch-action: manipulation;
    }

    body {
        top: 0px;
    }
}
