
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Silkscreen:wght@400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}
body{
    background: url("/Images/background2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

}
.wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110vh;
    background: rgba(255, 133, 45, 0.1);
}
.nav{
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100px;
    background: linear-gradient(rgba(39, 39, 39, 0.2));
    z-index: 100;
}

/* CSS makes me wanna jump off of F4 -Joseph */

.nav-logo{
    display: flex;
    align-items: center;
 
}

.linklmao{
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img{
    width: 80px;
    height: 80px;
}

.nav-logo p{
    color: White;
    font-size: 40px;
    font-weight: 600;
}

.nav-menu ul{
    display: flex;
}

.nav-menu ul li{
    list-style-type: none; 
}
.nav-menu ul li .link{
    text-decoration: none;
    font-weight: 500;
    color: white;
    padding-bottom: 15px;
    margin: 0 25px;
}
.link:hover, .active{
    border-bottom: 2px solid white;
}

/* Nav button parts!!!!!!!!!!!!!! */

.nav-button{
     display: flex;
    align-items: center;
}
.nav-button .btn{
    width: 120px;
    height: 40px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s ease;
}

.btn:hover{
    background: rgba(112, 110, 110, 0.3);
}
 
#registerBtn{
    margin-left: 15px;
}

.btn.white-btn{
    background: rgba(223, 218, 218, 0.7);
}

.btn.btn.white-btn:hover{
    background:rgba(112, 110, 110, 0.5)
}

.nav-menu-btn{
    display: none;
}
/* End of Nav button parts  */

.form-box{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 520px;
    height: 420px;
    border: 1px solid #fff;
    overflow: hidden;
    z-index: 2;
}

.login-container{
    position: absolute;
    left: 4px;
    width: 500px;
    display: flex;
    flex-direction: column;
    transition: .5s ease-in-out;
}

.register-container{
    position: absolute;
    right: -520px;
    width: 500px;
    display: flex;
    flex-direction: column;
    transition: .5s ease-in-out;
}

.top span{
    color: white;
    margin-left: 5px;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.top span a{
    font-weight: 500;
    color: white;
    margin-left: 5px;
}

header{
    color:white;
    font-size: 30px;
    text-align: center;
    padding: 10px 0 30px 0;
}

.two-forms{
    gap: 10px;

}

.input-field{
    font-size: 15px;
    background: rgba(80, 74, 83, 0.4);
    color: white;
    height: 50px;
    width: 100%;
    padding: 0 10px 0 45px;
    border: none;
    border-radius: 30px;
    outline: none;
    transition: .2s ease;
}

.input-field:hover, .input-field:focus{
    background: rgba(255, 255, 255, 0.25);
}
::-webkit-input-placeholder{
    color: #fff;
}

.input-box i{
    position: relative;
    top: -35px;
    left: 8px;
    color: #fff;
}

.submit{
    font-size: 15px;
    font-weight: 500;
    color: black;
    height: 45px;
    width: 100%;
    border: none;
    border-radius: 35px;
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: .3x ease-in-out;
}

.submit:hover{
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 1px 5px 7px 1px rgba(255, 255, 255, 0.1);
}

.two-col{
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: small;
    margin-top: 10px;
}

.two label a{
    text-decoration: none;
    color: #fff;

}

.two label a:hover{
    text-decoration: underline;
}



/* Credits styling  */

.credits-content {
    margin: 50px auto;       
    text-align: center;
    color: white;
    width: 80%;               
    max-width: 600px;           
    padding: 20px 40px;         
    border: 2px solid white;    
    border-radius: 15px;       
}

.credits-line {
    border: none;                 /* remove default hr style */
    border-top: 1px solid white;  /* white line */
    width: 90%;                   /* shorter than the box */
    margin: 10px auto;            /* space above/below and centers it */
}


.credits-content h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.credits-content ul {
    list-style-type: none;
    font-size: 20px;
    padding: 0;
}

.credits-content li {
    margin: 10px 0;
}

/* Game styling  */

.g-section {
    position: relative; /* for absolute positioning inside */
    display: flex;
    justify-content: center; /* centers .gleft in the page */
    width: 100%;
}


.game {
    display: flex;
    justify-content: center; /* optional: centers content horizontally */
    align-items: flex-start; /* aligns items at the top */
    gap: 50px; /* optional: space between left and right */
}



.gleft h3{
    text-align: center;
    font-size: 30px;
    color: #fff;
    margin-bottom: 50px;
    user-select: none;
}

.goon-cost{
    font-size: 30px;
    color: rgb(193, 128, 255);
    font-weight: 300px;
    text-shadow: 2px 2px 3px rgb(63, 35, 79);
}

.goon-img {
    width: 300px;
    animation: floatAnimation 6s ease-in-out infinite;
    transition: transform 0.12s ease-out, opacity 0.12s ease-out;
}

/* Smooth continuous floating + micro squish */
@keyframes floatAnimation {
    0%   { transform: translate(0px, 0px) scale(1); }
    15%  { transform: translate(6px, -8px) scale(1.01, 0.99); }
    35%  { transform: translate(-4px, -16px) scale(0.99, 1.01); }
    55%  { transform: translate(-10px, -10px) scale(1.012, 0.988); }
    75%  { transform: translate(5px, -14px) scale(0.995, 1.005); }
    100% { transform: translate(0px, 0px) scale(1); }
}




.goon-img:hover{
    opacity: 0.85;
    cursor: pointer;
}

.goon-img:active{
    opacity: 1;
    transform: scale(1.12) translateY(-6px);
    transition: transform 0.08s ease-out, opacity 0.08s ease-out;
}


.gright {
    position: absolute;
    max-height: 420px;
    top: 0;
    left: 50%;
    transform: translateX(calc(150px + 150px));
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;

    overflow-y: scroll;
    overflow-x: hidden;    /* remove horizontal scrollbar */

    padding-right: 115px;
}

.gright::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

/* Make it invisible by default */
.gright::-webkit-scrollbar-thumb {
    background: transparent;
}

/* On hover → show scrollbar */
.gright:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);  /* subtle, not ugly */
    border-radius: 6px;
}

/* Optional: scrollbar track on hover */
.gright:hover::-webkit-scrollbar {
    background: rgba(255,255,255,0.1);
}

.upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background-color: rgba(112, 110, 110, 0.2);
    width: 360px;
    height: 90px;
    border: 3px solid white;
    padding: 4px 20px;
    padding-top: 5px;
    border-radius: 5px;
    margin-bottom: 2px;
    cursor: pointer;

    position: relative; /* necessary for next-level-info */
}

.goon-image-container{
    position: relative;
    z-index: 1; /* lower than .gright */
}

.umid-section h4{
    margin: 0;
    margin-bottom: 20px;
    font-size: 20px;

}

.upgrade-image{
    width: 50px;
    filter: invert(100%);
}

.next-level-info {
    position: absolute;
    right: -105px;
    height: 70px;
    width: 100px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.upgrade:hover{
    opacity: 0.7;
    cursor: pointer;
}

.upgrade:hover .next-level-info {
    opacity: 1;
}

.statistics{
    position:absolute;
    bottom: -180px;
    color: white;
    width: 450px;
    padding: 30px;
    border: 2px white solid;
    background-color: rgba(112, 110, 110, 0.2);
    
}



.fade-up {
  animation: fade-up 1s ease forwards;
  z-index: 9999;
    font-weight: bold;
}

@keyframes fade-up {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 1;
  }

  10% {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.95;
  }

  20% {
    transform: translateY(-5px) scale(1.1);
    opacity: 0.90;
  }

  30% {
    transform: translateY(-9px) scale(1.08);
    opacity: 0.82;
  }

  40% {
    transform: translateY(-13px) scale(1.05);
    opacity: 0.75;
  }

  50% {
    transform: translateY(-19px) scale(1.02);
    opacity: 0.65;
  }

  60% {
    transform: translateY(-25px) scale(1.0);
    opacity: 0.55;
  }

  70% {
    transform: translateY(-33px) scale(0.97);
    opacity: 0.45;
  }

  80% {
    transform: translateY(-42px) scale(0.94);
    opacity: 0.30;
  }

  90% {
    transform: translateY(-54px) scale(0.92);
    opacity: 0.15;
  }

  100% {
    transform: translateY(-65px) scale(0.9);
    opacity: 0;
  }
}

.upgrade-gnav {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.gnav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.gnav-btn:hover {
    background: rgba(255,255,255,0.35);
}

.gnav-btn.active {
    background: white;
    color: black;
}

.gnav-tab {
    display: none;
}

.active-gnav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.leaderboard-container {
    text-align: center;
    width: 100%;
    margin-top: -10px; 
}

/* Header styling */
.lead-header {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 25px;
}

/* Table layout */
.leaderboard {
    width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 12px;
    text-align: center;
}

.leaderboard th,
.leaderboard td {
    padding: 14px 40px;
    border: none;
    color: white;
}

/* Row background */
.leaderboard tr {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
}

/* Rounded corners fix */
.leaderboard tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.leaderboard tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

#music-btn, #skip-btn {
    position: fixed;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    z-index: 9999;

    transition: transform 0.15s ease, background 0.15s ease;
}

/* Mute / volume button (TOP BUTTON) */
#music-btn {
    bottom: 76px;   /* 50px + 6px gap + 20px base */
}

/* Skip button (BOTTOM BUTTON) */
#skip-btn {
    bottom: 20px;
}

/* Hover */
#music-btn:hover,
#skip-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transform: scale(1.12);
}

#now-playing-popup {
    position: fixed;
    bottom: 10px;
    right: 5px;
    padding: 10px 16px;
    color: white;
    font-size: 20px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}
