@font-face {
    font-family: ProximaBold;
    src: url('../ASSETS/ProximaNovaBold.otf');
}

@font-face {
    font-family: PixulBrush;
    src: url('../ASSETS/PixulBrush.ttf');
}

@keyframes wave{
    from {margin-top: 0;}
    to {margin-top: -80px;}
}


*{
    /* font-family: 'ProximaBold'; */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    background-image: url(../ASSETS/bg.png);
    background-color: #131913;
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
}

/* MENU */
.menu{
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 230px;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;

    font-family: 'PixulBrush';
    font-size: 12px;

    /* Unselectable */
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.title{
    /* background: orange; */
    height: 1em;
    transform-origin: center;
    transform: rotate(-5deg);
    font-family: PixulBrush;
    font-size: 80px;
    display: flex;
    color: #2BD600;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}
.title .space{
    width: 60px;
}
.title p{
    margin-left: 3px;
    margin-right: 3px;
    height: max-content;
    animation: wave 1s  ease-in-out infinite alternate;
}
.title p:nth-child(2){
    animation-delay: .1s;
}
.title p:nth-child(3){
    animation-delay: .2s;
}
.title p:nth-child(4){
    animation-delay: .3s;
}
.title p:nth-child(5){
    animation-delay: .4s;
}
.title p:nth-child(6){
    animation-delay: .5s;
}
.title p:nth-child(7){
    animation-delay: .6s;
}
.title p:nth-child(8){
    animation-delay: .7s;
}
.title p:nth-child(9){
    animation-delay: .8s;
}
.title .white{
    color: #ffffff;
}

.menu-btns{
    display: flex;
    align-items: center;
    /* justify-content: space-be; */

    color: white;
    column-gap: 80px;
}

.btn{
    display: flex;
    column-gap: 0px;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;
    width: max-content;
    color: white;

    /* Animation */
    transition: padding .2s, color .2s, column-gap .2s;

    /* Unselectable */
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.btn p{
    display: none;
    font-size: 16px;
}
.btn:hover{
    padding: 0px 20px;
    color: #2BD600;
    column-gap: 10px;
}
.btn:hover p{
    display: block;
}
.btn:active {
    column-gap: 0px;
}

/* Tutorial */
#tutorial{
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid white;
    position: absolute;
}
#closetutorial{
    color:white;
    position: absolute;
    top:-25px;
    right:-25px;
    cursor: pointer;
    transition: color .2s;
}
#closetutorial:hover{
    color:#22AA00;
}

/* GAME */
/* Container for the game */
.main{
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    font-family: 'ProximaBold';
}

/* Container for Health, Timer, Score */
.topinfo{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
    font-family: 'ProximaBold';
}

/* Pellet despawn timer */
#pellettimer{
    width: 24px;
    height: 24px;
    background: conic-gradient(#131913 0deg, #2BD600 0);
    border-radius: 50%;
}

/* Score */
.score{
    font-size: 21px;
    text-align: right;
    line-height: 1em;
}
#highscore{
    margin-bottom: 5px;
    color: #0E4800;
}
#currentscore{
    color: #22AA00;
}

/* Game window */
#room{
    border: 1px solid #2BD600;
    background: #131913;
}

/* Bottom Container for extra controls */
.bottominfo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
/* Left half options - Help, Share */
.left{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #22AA00;
    font-size: 24px;
    column-gap: 20px;
}
#share, #help{
    cursor: pointer;
}

/* Right Half options - Volume */
.right{
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
}
/* Slider itself */
#volume {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 70px; /* Set a specific slider handle width */
    height: 2px; /* Slider handle height */
    background: #22AA00; /* Green background */
    cursor: pointer; /* Cursor on hover */
    outline:none;
}

/* Slider Handle */
/* Chorme */
#volume::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 10px; /* Set a specific slider handle width */
    height: 10px; /* Slider handle height */
    background: #22AA00; /* Green background */
    border-radius: 50%;
    cursor: pointer; /* Cursor on hover */
}
/* Mozilla */
#volume::-moz-range-thumb {
    width: 10px; /* Set a specific slider handle width */
    height: 10px; /* Slider handle height */
    border-radius: 50%;
    background: #22AA00; /* Green background */
    cursor: pointer; /* Cursor on hover */
}


/* LEADERBOARD */
/* Container for the leaderboard */
.leaderboard{
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    width: max-content;
    font-family: 'ProximaBold';
}

/* Container for input forms */
.inputpage{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}
/* Input Field */
.inputpage p{
    color: #22AA00;
    font-size: 25px;
}
.initials, #score{
    font-family: 'ProximaBold';
    color: #FF8DDF;
}
.initials{
    outline: none;
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 4px solid #FF8DDF;
    text-align: center;
    width: 30px;
    font-size: 25px;
}

/* style prompt */
.prompt{
    color: #575757 !important;
    font-size: 20px !important;
}
.alert{
    color: #b92e2e !important;
    font-size: 20px !important;
}

/* Results Page */
.resultspage{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#rank1{
    color: #FFD336;
}
#rank2{
    color: #E3E3E3;
}
#rank3{
    color: #CB5500;
}
.rank{
    width: max-content;
}
.name{
    width: max-content;
}
.scr{
    width: 40px;
}
.sep{
    padding: 20px 0;
}
.sep div{
    height: 1px;
    width: 100%;
    background: white;
}
#rankx{
    color: #575757;
}
#lb{
    font-size: 25px;
    width: 300px;
}
#alrt2{
    display: none;
}