/** boring stuff
**/
@font-face{
    font-family:"msGothic";
    src:url(fonts/MSGOTHIC.TTF) format('truetype');
    font-style:normal;
}

@font-face{
    font-family:"comfortaa";
    src:url(fonts/comfortaa.ttf) format('truetype');
    font-style:normal;
}

body{
    background-image: url("images/swag.png");
    background-size:auto 100%;
    background-position:center;

    margin:0;

    font-family:'comfortaa';
    font-size:14px;

    min-height:670px;
}

html{
    height:100vh;
}

/** return
**/
.back{
    width: 160px;

    margin:0 auto;
    margin-top: 25px;

    align-items:center;
    text-align:center;

    transition: .2s;
    scale: 1;
    rotate: 0deg;

    user-select: none;
}

.back a{
    font-family: 'msGothic';
    letter-spacing:-0.5px;

    transition: background-color 0.25s ease, border-color 0.25s ease;

    padding:7px 12px;
    background-color:#c0c0c0;
    color:#000;
    text-decoration-line: none;
    border: 3px outset #adadad;
}

.back:hover .goodbye span{
    display: none;
}

.back:hover .goodbye:after{
    padding: 0 24px;
    content: "goodbye! :3";
}

.back:hover{
    transition: 0.15s;
    scale: 1.15 1.1;
    rotate: 2.5deg;

    font-weight:bolder;
}

.back a:hover{
    transition: background-color 0.25s ease, border 0.25s ease;

    background-color: #ffd3b6;
    border: 3px outset #e4cdab;
}

/** formatting
**/
.container{
    display:block;
    place-items:center;

    margin: 0px auto;
    max-width: 800px;

    height:100vh;
    min-height:670px;
    width:85%;
}

.container2{
    display: flex;
    gap: 50px;
    height:100%;
}

/** lefts and rights
**/
.left{
    display: block;
    margin:auto 0;
    
    user-select: none;
}

.left h3{
    text-align: center;

    margin: 0;

    font-size:20px;
    font-weight:normal;

    line-height:30px;
}

.right{
    display: block;

    max-height:500px;
    width:400px;
    margin:auto 0;

    align-items: center;
}

#upgradeContainer{
    position: relative;

    padding:3px 28px;
    overflow-y:scroll;

    height: 400px;

    border: 3px solid rgba(75, 66, 17, 0.75);
    border-radius:5px;
    background-color:rgba(68, 59, 42, 0.05);
    backdrop-filter: blur(1px);
}

.rightNavbar{
    display: flex;
    font-weight: bold;

    justify-content:space-between;

    margin-bottom:10px;

    user-select: none;
}

.rightNavbar>div{
    width:120px;
    text-align: center;

    padding:10px;

    background-color: #e7d9bb;
    border:3px solid #634d1d;
    border-radius: 5px;

    margin: 0;

    transition: 0.2s;
    scale: 1;
}

.rightNavbar>div:hover{
    transition: 0.2s;

    scale:1.05;
    filter: brightness(110%);

    user-select: none;
    cursor: pointer;
}

.rightNavbar>:first-child{
    background-color:#b8dcf1;
    border:3px solid #2c4863;
    margin-left: auto;
    margin-right: 15px;
}

.rightNavbar>:nth-child(2){
    background-color:#e7d68b;
    border:3px solid #615616;

    margin-left: 15px;
    margin-right: auto;
}

.rightNavbar>:nth-child(3){
    background-color:#fff;
    border:3px solid #000;

    width:15px;
}

.maxLevel{
    border-color: #256C97; 
    background-color: #bed3e0; 
    filter:brightness(100%); 
    opacity:90%; 
    pointer-events: none;
}

::-webkit-scrollbar{
    width:10px;
    height:10px;
}

::-webkit-scrollbar-track{
    background-color:hsl(32, 61%, 77%);
    border-radius:10px;
}

::-webkit-scrollbar-thumb{
    height:25px;
    background-color:hsl(32, 61%, 67%);
    border-radius:10px;
}

/** clicker settings
**/
.clickImg{
    width:300px;
    transition:0.2s;
    scale:1;

    margin-top:20px;
    user-select: none;
}

.clickImg:hover{
    cursor:pointer;
    
    transition:0.2s;
    scale:1.05;
}

.clickImg:active{
    transition:0.1s;
    scale:0.95;
    filter: brightness(125%);
}

.balance{
    font-weight:bold;
    font-size:32px;
    transition: 0.2s;
}

.balance.scale{
    transition: 0.2s;
    scale: 0.9;
}

.clicker{
    position: relative;
}

.fade-up{
    animation: fade-up 1s;
}

@keyframes fade-up{
    0%{
        transform: translateY(0);
        opacity: 1;
    }
    100%{
        transform: translateY(-40px);
        opacity: 0;
    }
}

/** stats settings
**/
.statsBox{
    position: fixed;
    width:85%;
    max-width:680px;
    z-index:1;

    left:0;
    right:0;
    top:20px;
    margin: 0 auto;

    line-height:18px;

    user-select:none;
}

.statsFlex{
    display: flex;
    justify-content:space-between;
}

.stats{
    display:block;

    width: 95px;
    padding:0px 15px;
    background-color:#e8c7a1;
    border: 4px solid #976225;
    border-radius: 20px;
    height:60px;

    margin:auto 5px;

    text-align:center;
}

.stats p{
    line-height:15px;
    margin-bottom: 0;
}

.catsPer{
    font-weight:bold;
    font-size:16px;

    line-height:25px;
}

/** upgrade settings
**/
.upgrade{
    display: flex;
    position: relative;
    align-items: center;
    user-select: none;

    width:300px;
    height:60px;
    margin:20px auto;

    border:3px solid #976225;
    border-radius:12px;
    background-color:#e8c7a1;

    justify-content: space-between;
    padding:5px 10px;

    transition:0.2s;
    scale:1;

    user-select:none;
}

.upgrade:hover{
    transition:0.2s;
    scale:1.05;
    filter:brightness(105%);
    
    cursor:pointer;
}

.upgrade:hover .nextLevelInfo{
    transition:0.2s;
    opacity:100%;
}

.upgrade.typeStats:hover{
    scale: 1;
    cursor: default;
    filter:brightness(100%);
}

.upgrade.typeStats{
    display:none;
}

.upgrade.typeStats.credits{
    flex-direction: column;
    height: auto;

    margin-bottom: 2px;
}

.upgrade.typeStats.credits p{
    width: 100%;
    text-align: left;
    margin: 0;
}

.upgrade.typeStats.credits h2{
    width: 100%;
    text-align: center;
}

.upgrade.typeStats.credits ul{
    width: 260px;
    text-align: left;

    margin-top: 5px;
}

.upgrade:first-child{
    margin-top:20px;
}

.upgrade.typeStats.alien{
    border:3px solid #329725;
    border-radius:12px;
    background-color:#b5e8a1;
    
    width: 75%;
    margin: 0 auto;
    margin-right: 0;
}

.upgrade:last-child{
    margin-bottom:20px;
}

.upgradeImg{
    height:80px;
    margin-bottom:-7px;
}

.midSection{
    text-align:center;
}

.midSection h4{
    font-weight:bold;
    font-size:16px;

    text-transform: capitalize;
}

.midSection.typeSkill h4{
    text-transform:none;
}

.costInfo{
    font-weight:normal;
    font-size:13px;
}

.rightSection{
    align-items:center;
}

.titleSection{
    width: 40%;
}

.statSection{
    width: 20%;
    text-align: center;
    margin-bottom: 15px;
}

.statSection:nth-child(3){
    margin-bottom: 0;
}

.statSection p{
    margin-left: 10px;
}

.statSection h1{
    font-weight: normal;
}

.statSection.alien{
    margin-right: 7px;
}

.statTitle{
    font-size:11px;
    margin-bottom: 2px;
    margin-top: 10px;
}

.statTitle.two{
    margin-bottom:1px;
}

.catStats{
    font-weight: bold;
    flex-direction: column;
}

.catStats.one{
    margin-right: 26px;
}

.catStats.two{
    font-size:10px;
}

.catStats.alien{
    margin-left:-7px;
}

.nextLevelInfo{
    position: absolute;
    opacity:0%;

    padding: 0 5px;
    background-color:#f3dabb;

    margin-top:-80px;
    margin-left:-30px;

    transition:0.1s;

    font-size:13px;
}

.nextLevelInfo p{
    margin:8px auto;

    text-align:center;
}

/** save and load buttons
**/
.utility{
    position:relative;
    display:flex;

    height:50px;
    width: 286px;
    
    margin:auto 15px;
    margin-right:0;

    justify-content:center;
}

.uButton{
    width:100%;
    max-width:100px;

    margin: auto 8px;
    padding:10px 15px;

    user-select: none;
    cursor: pointer;

    border:2px solid #634d1d;
    border-radius:12px;
    background-color:#e7dec4;

    font-weight: bold;
    font-family: inherit;

    transition:0.2s;
    scale:1;
    filter:brightness(100%);
}

.uButton:last-child{
    margin-right:0;
}

.uButton:hover{
    transition:0.2s;
    scale:1.025;
    filter:brightness(105%);
    
    cursor:pointer;
}

.uButton:active{
    transition:0.2s;
    scale:0.90;
}

.uButton.prestigeButton{
    background-color:#ba9df1;
}

/* smaller screen interface */
@media only screen and (max-width: 800px) {
    .container2{
        display: flex;
        flex-direction: column;

        gap: 20px;
        place-items:center;

        margin:0 auto;
    }

    .left{
        margin:auto;
        margin-top:110px;
    }

    .right{
        padding-bottom:60px;
        margin:50px 0;
    }

    .rightNavbar>:first-child{
        background-color:#b8dcf1;
        border:3px solid #2c4863;
        margin-left:36px;
    }
    
    .rightNavbar>:last-child{
        background-color:#e7d68b;
        border:3px solid #615616;
        margin-right:32px;
    }

    .upgrade.typeStats.credits{ margin-bottom: 20px; }

    #upgradeContainer{ height: 305px; }

}

@media only screen and (max-width: 550px){
    .statsBox{
        padding-bottom:10px;
        overflow-x:scroll;

        scrollbar-width:10px;

        mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), #000 2.5% 97.5%, rgba(0, 0, 0, 0));
    }
}