body,
html,
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

* img{
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none; 
}

#game-container {
    width: 1000px;
    height: 600px;
    background: aliceblue;
    overflow: hidden;
    position: relative;
}

:root {
    --color-black: #2F2F2F;
    --color-white: #FFFFFF;
}

/* Main */
input[type="radio"] {
    display: none;
}

#main, #game {
    width: 100%;
    height: 100%;
    display: flex;
}
#main{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
#main div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.radioSelector img {
    width: 75px;
    height: 75px;
}

.radioSelector {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.5rem;
    border-radius: 8px;
    transition: border 0.2s ease;

  
}

.radioSelector input[type="radio"]:checked~img {
    border: 3px solid dodgerblue;
    border-radius: 8px;
}

.form-input {
    background: #D8D8D8;
    border: solid 3px gray;
    border-radius: 5px;
    padding: 0.5rem;
    width: 15rem;
    outline: none;
}

.btn {
    padding: 1rem;
    width: 10rem;
    outline: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-white);
    border-radius: 8px;
}

.btn-1 {
    background: green;
}

.btn-2 {
    background: brown;
}

.btn-3 {
    background: yellow;
    color: var(--color-black);
    width: 100%;
}

/* Modal */
.btn-close {
    background: red;
    padding: .5rem;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    border: none;
    font-weight: bold;
    color: var(--color-white);
}
.hidden {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}

#modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgb(128, 128, 128, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;

}

.modal-box {
    background: var(--color-black);
    padding: 2rem;
    border-radius: 10px;
    width: max-content;
    min-width: 50%;
    height: max-content;
    color: var(--color-white);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

#modal-content {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

ol, ul {
    list-style-position: inside;
}

li {
    margin-bottom: 0.5rem;
    
}
/* Table */
table tr td{
    padding: 1.5rem 0;
}
table tr td:nth-child(1) {
    width: 25%;
    font-weight: bold;
}
table tr td:nth-child(2) {
    width: 5%;
    text-align: center;
}
table tr td:nth-child(3) {
    width: 70%;
}

/* Game Over */
.overView {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}
.overView button{
    width: 100%;
}
.overView button:nth-child(1){
    background: yellow;
    color: var(--color-black);
}
.overView button:nth-child(2){
    background: aqua;
    color: var(--color-black);
}
/* Game Preview */
#game{
    flex-direction: row;
    position: relative;
}
#game-preview{
    background: url("./Sprites/background.jpg");
    position: relative;
    width: 75%;
}
#loading{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(47, 47, 47, 0.5);
    z-index: 200;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
#loading .loading-time{
    color: var(--color-white);
    font-size: 25rem;
    font-weight: bold;
}
/* Cursor */
#game-preview, .game-target{
    cursor: url('./Sprites/pointer.png') 27 27, auto;
}

/* Weapon */
#weapon-element {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-30%, 30%);
    width: 350px;
    height: 273px;
}

/* Target */
.game-target{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
}

.hitEffect {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('./Sprites/boom.png') no-repeat center center / contain;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: pop 0.5s ease-out forwards;
}

@keyframes pop {
    0%   { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}
.game-target input[type="checkbox"]{
    display: none;
}

/* Navbar */
#navbar{
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: .5rem 2rem;
    width: 100%;
    top: 0;
    background: rgb(47, 47, 47, 0.5);
    color: var(--color-white);
    font-weight: bold;
    cursor: default;
}

/* Sidebar */
#sidebar{
    background: var(--color-black);
    color: var(--color-white);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 25%;
    cursor: default;
    z-index: 100;
}
#sidebar #filters{
    width: 100%;
}
#sidebar h1{
    font-weight: bolder;
}
#sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    width: 100%;
}
#sidebar ul li{
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid white;
}
#sidebar ul li .leaderboard-name{
    font-weight: bold;
}
#sidebar ul li div{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
#sidebar ul li button{
    padding: 0.25rem !important;
    width: 4rem !important;
    color: var(--color-black);
    background: yellow;
}