.hidden {
    display: none;
}

h1 {
    text-align: center;
    margin-top: 50px;
}
h2 {
    text-align: center;
}
nav {
    background: transparent;
    padding: 15px 10px;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    margin-bottom: 10px;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 9999;
}
nav button {
    margin-right: 20px;
    padding: 10px 50px;
    color: rgb(0, 0, 0);
    border-radius: 20px;
}



#warning {
    
    color: rgb(2, 2, 2);
    font-size: clamp(1rem, 3vw, 3rem);
    border: 20px;
    position: fixed;
      top: 70%;
    left: 30%;
    box-shadow: inset;
    transition: all;

}

header {
    justify-content: center;
}

#click img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    transform: translateY(3px) scale(0.95);
    
}   
@keyframes clickpulse {
    0% {transform: scale(1);}
    50% {transform: scale(0.9);}
    100% {transform: scale(1);}
}

#click {
    background-color: rgb(255, 251, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    
}
.whale-clicked {
    animation: clickpulse 150ms ease;
}

#click.press {
    transform: translateY(3px) scale(0.95);
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%
}

#clicked {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#points{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: x-large;
}

#upgrade {
    position: absolute;
    top: 0px;
    right: 0px;
    max-height: 400px;
    max-width: 200px;
    background-color: aqua;
    border: 2px solid black;
    border-radius: 5px;

    backdrop-filter: blur(4px);
     box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}


#upgradebtn {
    max-width:200px;
    margin-bottom: 10px;
}

.ppool {
    max-width: 400px;
    border-radius: 15px;
}

body.mainbody{
    background-image :url(rewardsimg/mainbackground.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
}

.policy{
background-color: beige;
font-size: larger;
font-family: "Nunito", sans-serif;
}

.hamburger {
    display: none;
}

#mobile {
    display: none;
}
.desktop {
    display: flex;
    gap: 10px;
}
#mobile {
    position: fixed;
    top: 0;
    left: 100%;
    width: 250px;
    height: 100vh;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    padding: 20px;
    border-right: 2px solid black;
    transition: left 0.3s ease;
    z-index: 9999;
}

#mobile.open {
    left: 0;
}

.upbtn {
    border-radius: 8px;
    color: rgb(0, 0, 0);
    background-color: #ffffff
}

  #leaderboard-table {
    width: 95%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse; 
    font-family: sans-serif;
    background-color: #fff9e6; 
}


#leaderboard-table th {
    background-color: #222;
    color: white;
    padding: 12px;
    text-align: left;
    text-transform: uppercase;
    font-size: 14px;
}
#leaderboard-table tbody tr {
    border-bottom: 1px solid #ddd;
}


#leaderboard-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

#leaderboard-table td {
    padding: 15px 12px;
    color: #333;
}

/* The Score Column (The 3rd <td>) */
#leaderboard-table td:nth-child(3) {
    font-weight: bold;
    color: #d35400;
    text-align: right;
}
















@media (max-width: 600px) {
  nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 5px 5px;
    gap: 3px;
  }

  nav button {
    padding: 10px 20px;
    margin-right: 0;
    width: 80%;
    padding: 6px 12px;
    font-size: 1rem;
  }
  #upgrade { 
    position: static;
     margin: 20px auto;
      width: 90%; 
      max-width: 300px;
    }
    
    #warning {
        top: auto;
        bottom: 10%;
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
        font-size: 3rem;
     }

    .hamburger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        padding: 10px;
    }

    #mobile {
        display: block;
    }

    .desktop {
        display: none;
    }
    .close {
    font-size: 2rem;
    cursor: pointer;
    text-align: right;
    margin-bottom: 20px;
}

  #leaderboard-table {
        width: 100%;
        font-size: 14px;
    }
    
    #leaderboard-table td {
        padding: 10px 5px;
    }

}
