*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
#maingame{
    background-image: url(backgrounds/bg1.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

#testpet, #phpsavegame, #phplogin{
    display: none;
}

  nav {
    background-color: #343a40;
    color: #fff;
    height: 100vh;
    width:85px;
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  #nav-icons{
    margin-top: 10px;
    display: flex;
    align-items: center; 
    flex-direction: column; 
  }
  .stats {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 0, 0, 0);
    border: none;
    cursor: pointer;
  }

  .stats-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    fill: white;
    color: white;
    margin-bottom: 35px;
  }
#click-space{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    font-size: 50px;
    width: 67%;
}
#sum{
    background-image: url(backgrounds/sign.png);
    width: 350px;
    height: 100px;
    position: absolute;
    top:0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#sums{
    margin-bottom: 8px;
    color: rgba(238, 230, 221, 0.932);
}

#prest{
    background-image: url(backgrounds/sign_pres.png);
    width: 350px;
    height: 100px;
    position: absolute;
    bottom:0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: rgba(238, 230, 221, 0.932);
    font-size: 35px;
}

#prest-p{
    margin-top: 12.5px;
}

#bar{
    accent-color: rgb(177, 214, 235);
    width: 300px;
    height: 20px;
    margin-bottom: 10px;
}

#pres_knapp{
    font-size: 16px;
    padding: 5px 10px;
    background-color: #da0000;
    cursor: pointer;
    user-select: none;
    display: none;
}

#pres_knapp:hover{
    filter: brightness(115%);
}

@keyframes coin {
    0% {margin-bottom: 0px;}
    50% {margin-bottom: 10px;}
    100% {margin-bottom: 0px;}
  }

#coin{
    height: 200px;
    width: 200px;
    background-image: url(icons/coin.png);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    user-select: none;
    position: relative;
    border-radius: 70px;
    /* clip-path: polygon(69% 0%, 69.32% 6%, 81.39% 5.94%, 81.46% 19.02%, 86.73% 18.97%, 86.72% 30.84%, 94% 62px, 94% 68.5%, 87.09% 68.44%, 87.11% 80.9%, 81.39% 80.7%, 81.62% 93.05%, 68.96% 93.22%, 69.00% 99.50%, 31.32% 100%, 31.32% 93%, 37px 93.5%, 18.38% 87.55%, 12.44% 87.53%, 12.34% 74.06%, 6.7% 74.08%, 6.39% 24.56%, 12.36% 24.56%, 12.31% 12.06%, 18.61% 11.92%, 18.79% 6.09%, 31.17% 5.87%, 31.24% 0.02%); */
    animation: coin 3s infinite;
    transition: .2s all ease-in-out;
}

#coin:active{
    transform: scale(0.9);
}

.notSelect{
    user-select: none;
}

#coin > .number{
    z-index: 99;
    font-size: 30px;
    color: white;
    position: absolute;
}

#upgrades{
    height: 90vh;
    width:700px;
    background-image: url(backgrounds/rbanner.png), url(backgrounds/lbanner.png), url(backgrounds/mbanner.png);
    background-position: right, left, center;
    background-size: contain;
    background-repeat: no-repeat, no-repeat, repeat;
    padding: 30px;
    color:rgba(238, 230, 221, 0.932);
    transition: 1s all;
}
#upgrades-upgrades::-webkit-scrollbar {
width: 0.75em;
}

#upgrades-upgrades::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, 0);
}

#upgrades-upgrades::-webkit-scrollbar-thumb {
background: rgb(84, 45, 30);
border-radius: 100vw;
}
#upgrades-upgrades::-webkit-scrollbar-thumb:hover {
background: rgb(94, 51, 20);
border: none;
}

#uppdatewhite::-webkit-scrollbar {
width: 0.5em;
}

#uppdatewhite::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, 0);
}

#uppdatewhite::-webkit-scrollbar-thumb {
background: rgb(62, 69, 83);
}
#uppdatewhite::-webkit-scrollbar-thumb:hover {
background: rgb(76, 84, 102);
border: none;
}
#upgrade-text{
    height: 15%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color:rgba(238, 230, 221, 0.932);
    font-size: 30px;
    margin-bottom: 20px;
}
#upgrades-upgrades{
    height: 76%;
    width: 100%;
    overflow-y: scroll;
}
.upgrade-item{
    margin-block: 9px;
    margin-inline: auto;
    height: 80px;
    width: 97%;
    display: flex;
    background-color: rgb(122, 81, 64);
    justify-content: space-between;
    align-items: center;
}
.upgrade-item-icon{
    height: 70px;
    width: 70px;
    margin-left: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.upgrade-item-amount{
    height: 70px;
    width: 70%;
    font-size: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.upgrade-item-amount p{
    margin-inline: 10px;
    position: relative;
}
.upgrade-item-price{
    padding: .2rem 0rem;
    text-align: center;
    width: 100px;
    background-color:  #da0000;
    box-shadow: 1px 1px 1px black;
    cursor: pointer;
    border-radius: 9px;
    color: #fff;
    margin-right: 7px;
    font-size: 1.8rem;
    font-weight: 400;
    font-family: 'Oswald', sans-serif;
    transition: .1s;
    user-select: none;
}
.upgrade-item-price:hover{
    filter: brightness(85%);
}
.show-lvl{
    font-size: 20px;
    display: block;
    margin-left: 5px;
}

#shopIcon{
    display: none;
}

.active{
    top:2vh!important;
}

@media (max-width:1320px){
    .upgrade-item-amount{
        font-size: 30px;
    }
}
@media (max-width:1123px){
    .show-lvl{
        font-size: 15px;
    }
    .upgrade-item-price{
        width: 70px;
        font-size: 1.4rem;
    }
}
@media (max-width:973px){
    #maingame{
        margin-left: 60px;
    }
    #upgrades{
        position: absolute;
        top: -100vh;
        max-width:80vw;
    }
    nav {
        position: absolute;
        left:0;
        padding-inline: 0;
        width:max-content;
    }
    #shopIcon{
        display: block;
    }
}
@media (max-width:595px){
    .upgrade-item-amount{
        font-size: 23px;
    }
    #upgrades{
        max-width:380px;
    }
    .upgrade-item-icon{
        height: 50px;
        width: 50px;
    }
}

@media (max-width:522px){
    #upgrades-upgrades::-webkit-scrollbar {
        width: 0;
        }
    #maingame{
        margin-left: 0px;
        overflow: hidden;
    }
    #prest{
        bottom: 60px;
    }
    #upgrades{
        padding: 0px;
        overflow: hidden;
    }
    #upgradeAmount{
        justify-content: center!important;
        margin-top: 0!important;
    }
    #upgrade-text{
        font-size: 1.25em;
    }
    #upgradeAmountNr1{
        padding:5px 10px;
    }
    #upgrades-upgrades{
        margin-inline: auto;
        max-width: 320px;
        height: 68%;
    }
    #clickpersec{
        text-align: center;
    }
    .upgrade-item-price{
        width: 60px;
        font-size: 1.2rem;
    }
    .upgrade-item-amount{
        font-size: 18px;
    }
    .upgrade-item-icon{
        height: 40px;
        width: 40px;
    }
    nav {
        height: 6vh;
        width:100%;
        display: flex;
        align-items: left;
        flex-direction: row;
        z-index: 10;
        bottom: 0;
      }
      #nav-icons{
          flex-direction: row;
          margin-top: 0;
      }
      #nav-icons a{
        margin-left: 10px;
        margin-right: 10px;
      }
      #nav-icons p{
        position: absolute;
        bottom:10px;
        right: 20px;
      }
      .stats-icon{
          margin-bottom: 0;
      }
}

#clickpersec, #coinpersec{
    margin-left: 10px;
}
#upgradeAmount{
    display: flex;
    justify-content: right;
    margin-top: -30px;
    margin-bottom: 10px;
}
#upgradeAmount div{
    text-align: center;
    background-color: rgb(97, 172, 97);
    border-radius: 5px;
    margin-inline: 10px;
    padding: 5px 20px;
    cursor: pointer;
}

#designed{
    position: fixed;
    bottom: 15px;
    right: 15px;
    color: white;
    font-size: 16px;
    text-align: center;
    z-index: 9999999999;
}
#login{
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.704);
    display: none;
    align-items: center;
    justify-content: center;
}


#login #white{
    background-color: white;
    color: black;
    height: 400px;
    width:300px;
    padding: 20px;
    font-size: 23px;
    position: relative;
}
#login #white h1{
    text-align: center;
    margin-bottom: 20px;
}
#x-btn{
    position: absolute;
    top:10px;
    right:15px;
    cursor: pointer;
    font-size: 40px;
}

.active{
    display: block;
}

#uppdateDiv{
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.704);
    display: none;
    align-items: center;
    justify-content: center;
}

#uppdatewhite{
    background-color: rgb(38, 43, 53);
    color: rgb(240, 240, 240);
    height: 80vh;
    max-width:600px;
    min-width: 290px;
    margin: 9px;
    padding: 20px;
    font-size: 23px;
    position: relative;
    border: 5px solid rgb(82, 82, 82);
    box-shadow: 0px 5px 5px black;
    overflow-y: scroll;
}

#uppdate-header{
    text-align: center;
    margin-bottom: 30px;
}

#update-list-item{
    display: list-item;
    margin-left: 25px;
    margin-top: 7px;
    font-size: 20px;
}

#uppdatewhite h2{
    margin-top: 30px;
}


/* 1322px */

/* LEADERBOARD */

#leaderboard {
    background-image: url(backgrounds/leaderboardbg.jpg);
    background-size: cover;
    height: 100vh;
    width: 100%;
    font-family: myFirstFont;
    display: flex;
    flex-direction: column;
}

#leaderboard .center {
    /* margin-right: auto;
    margin-left: auto; */
    /* margin-top: 25vh; */
    display: flex;
    justify-content: center;
    align-items: center;
}

#leaderboard h1 {
    text-align: center;
    font-size: 72px;
    color: rgb(255, 1, 221);
    text-shadow: 5px 5px black;
    margin-bottom: 30px;
    z-index: 10;
}

#leaderboard .konteiner {
    width: 500px;
    height: 500px;
    padding: 10px 10px;
    background-color: black;
    align-items: center;
    box-shadow: 10px 10px 15px 10px rgb(255, 1, 221), -5px -10px 15px 10px rgb(0, 224, 253), 5px 30px 100px 10px rgba(0, 0, 0, 0.42), -10px -15px 50px 10px rgb(0, 224, 253), 15px 15px 100px 10px rgb(255, 1, 221);
    display: grid;
    grid-template-columns: 80px 1fr 60px 130px;
    
}

#leaderboard h3 {
    font-size: 2rem;
    margin-right: 20px;
    color: #fff;
}

#leaderboard.number {
    margin-left: 25px;
}

@font-face {
    font-family: myFirstFont;
    src: url(fonts/ARCADECLASSIC.TTF);
}

#leaderboard span {
    font-size: 2rem;
    margin-right: 20px;
    color: #fff;
}

#leaderboard .img {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    color: #fff;
}