/* Reset i podstawowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --drakmode1: #202225;
    --drakmode2: #292b2f;
    --darkmode3: #2f3136;
    --darkmode4: 	#40444b;
    --darmode5: #40444b;
    --shadow_grey: #6b6b6b; /* Shadow for text */
    --grey: #272626; /* Dark grey for contrast */
    --black_grey: #1a1a1a; /* Background or footer */
    --discord_blue: #6987f5; 
    --discord_hoverblue: #6580e0; 
    --yellow_btn: #fff34d; /* Yellow button color */
    --yellow: #FFD700; /* Bright yellow matching the logo */
    --yellow_hover: #FFC300; /* Slightly darker yellow for hover effects */
    --dark_yellow: #B8860B; /* Golden yellow for accents */
    --light: #f5f6fa;
    --white: #FFFFFF; /* White for text or backgrounds */
    --light_grey: #D3D3D3; /* Light grey for subtle elements */
    --orange: #FFA500; /* Optional orange for highlights */
    --orange_hover: #FF8C00; /* Darker orange for hover effects */
    --green: #8bc34a;
    --green_hover: #7cb342; /* Darker green for hover effects */
    --green_border: #548323; /* Darker green for hover effects */
    --text-dark: #333;
    --gold: #f1c40f;
    --silver: #95a5a6;
    --bronze: #d35400;
    --badge-bg: #ffffe6; /* Jasne tło dla kwoty */
    --badge-text: #e6a122; /* Pomarańczowy tekst kwoty */

}

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&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=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@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&display=swap');

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

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


body {
  font-family: 'Press Start 2P', cursive;
  overflow: hidden;
  background-image: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.85)),url("/img/image.png"); /* Tło strony */
  background-size: cover; /* Dopasowanie obrazka do całego ekranu */
  background-position: center; /* Wyśrodkowanie obrazka */
  background-repeat: no-repeat;
  overflow-y: scroll;
  overflow-x: hidden;
  min-height: 90vh; /* Pełna wysokość widoku */
  max-width: auto;
  margin: 0;
}

/* Ekran ładowania */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
   background: linear-gradient(to bottom, var(--light_grey), var(--white));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-gif {
  width: 450px;
  height: auto;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Klasa ukrywająca loader */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* navbar */

.navbar {
  margin: 0 auto;
  width: 80%;
  background-color: transparent;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-family: 'Press Start 2P', cursive;
  z-index: 100;
}

.logo-container img {
  width: 75px;
  height: 75px;
  object-fit: cover;
}

.logo-wrapper {
    display: flex;
    align-items: center; /* Wyrównanie w linii */
    gap: 12px; /* Odstęp między logo a liczbą */
}

.player-stat {
    display: flex;
    align-items: center;
    gap: 6px; /* Odstęp między kropką a cyfrą */
    background: rgba(255, 255, 255, 0.5); /* Delikatne tło */
    padding: 4px 10px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #777; /* Domyślny szary */
    border-radius: 50%;
    transition: all 0.5s ease;
}

#online-players {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--drakmode1);
    line-height: 1;
}

/* Kiedy serwer jest online, kropka pulsuje */
.dot-online {
    background-color: #00ff00 !important;
    box-shadow: 0 0 10px #167004;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Lista linków */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar ul li a {
  color: var(--drakmode1);
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 0.2s;
}


/* Link SKLEP */
.navbar ul li:nth-child(3) a {
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); /* Subtle shadow */
  background-color: var(--yellow);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-bottom: 4px solid var(--yellow_hover);
  border-right: 4px solid var(--yellow_hover);
  border-top: 4px solid var(--yellow_btn);
  border-left: 4px solid var(--yellow_btn);
}


.navbar ul li:hover {
    transform: rotate(-2deg) scale(1.05);
}


header {
  max-height: 550px;
  width: auto;
}

.header-content{
  position: relative;
  bottom: 10vh;
  text-align: center;
  width: 100%;
}

.header-image{
  position: relative;
  left: 25%;
  top: 0;
  height: auto;
  max-width: 350px;
  filter: drop-shadow(-20px 0px 30px rgb(0, 0, 0, 0.15));
  pointer-events: none;
  object-fit: cover;
  animation: bounce 3.5s infinite;
  z-index: -1;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}


.header-text h1{
  color: var(--drakmode1);
  font-family: 'Poppins';
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); /* Subtle shadow */
  position: relative;
  font-size: 75px;
  top: 30vh;
  line-height: 4.5rem;
  left: 15%;
  text-align: left;
}

.header-text span{
  color: var(--yellow);
  font-weight: bolder;
}


.scroll-down {
    position: relative;
    top: 27vh;
    right: 22%;
    text-align: center;
    margin-top: 20px;
    color: black; /* White text */
    font-size: 24px;
    font-family: poppins, sans-serif; /* Modern font */
    font-weight: bolder;
    text-transform: uppercase;
    animation: fadeIn 2s ease-in-out;
}

.scroll-down:hover {
    cursor: pointer;
}
.scroll-down p {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.arrow-icon {
    filter: hue-rotate(180deg) invert(1); /* Flip the arrow and make white to black */
    width: 30px;
    height: 30px;
    margin-top: 5px;
    animation: bounce 2s infinite; /* Bouncing animation */
}


/* SEKCJA TRYBÓW - Styl nowoczesny */
.shop-sec {
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--light), #eef0f5);
    text-align: center;
    font-family: 'Poppins';
}

.votes-text {
    margin-bottom: 60px;
}

.votes-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}

.votes-text p {
    font-size: 1.2rem;
    color: #666;
}

/* Kontener na banery - używamy Flexbox zamiast sztywnych pozycji */
.votes-container {
    display: flex;
     justify-content: center;
    align-items: column;
    flex-wrap: wrap; /* Dzięki temu na telefonach banery będą jeden pod drugim */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;

}

.banner {
    width: 400px;
    height: 200px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.banner-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    
}

.banner:hover .banner-bg {
    transform: scale(1.1);
}

.banner-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: var(--white);
    text-align: left;
    border-radius: 20px;
}

.banner-overlay h3 {
    color: black;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.banner-overlay p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Przycisk pasujący do stylu "Primary" z Twojego kodu */
.btn-mode {
    padding: 12px 30px;
    background: var(--yellow);
    font-family: 'Press Start 2P', sans-serif; /* Styl czcionki */
    color: white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    border: none;
    border-bottom: 4px solid var(--yellow_hover);
    border-right: 4px solid var(--yellow_hover);
    border-top: 4px solid var(--yellow_btn);
    border-left: 4px solid var(--yellow_btn);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-mode:hover {
    background: var(--yellow);
    box-shadow: 0 5px 15px rgba(251, 255, 0, 0.4);
}

/* Stan dla trybów niedostępnych */
.banner.off {
    filter: grayscale(1);
    opacity: 0.8;
}

.banner.off:hover {
    cursor: not-allowed;
    transform: none; /* Wyłączamy animację dla niedostępnych */
}


.discord-promo {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    border-radius: var(--radius);
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow:hidden;
    border-radius: 30px;
    max-width: 1400px;
    margin: 80px auto;
    min-height: 220px;
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.3);
    transition: transform 0.3s ease;
}

.discord-promo:hover {
    transform: translateY(-5px);
}

.discord-content {
   text-align: right;
    z-index: 2;
    padding: 40px 0;
    max-width: 55%;
    font-family: 'Poppins', sans-serif;
}

.discord-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
       position: absolute;
    right: 30px;
    bottom: 115px;
}

.discord-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    position: absolute;
    right: 30px;
    bottom: 65px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #5865F2;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: absolute;
    right: 30px;
    bottom: 20px;
}

.discord-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: var(--light);
}

.btn-icon {
    height: 24px;
    width: auto;
}

.discord-img {
    position: absolute;
    left: 30px;
    bottom: -45px;
    height: 320px;
    width: auto;
    z-index: 1;
    transform: rotate(-5deg);
    transition: 0.5s ease;
    animation: discordFloat 4s ease-in-out infinite;
}

@keyframes discordFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

.discord-promo:hover .discord-img {
    transform: scale(1.05) rotate(0deg);
}

/* Responsywność dla Discorda */
@media (max-width: 900px) {
    .discord-promo {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 0 20px;
    }
    .discord-content {
        max-width: 100%;
    }
    .discord-content h2 {
        font-size: 1.8rem;
    }
    .discord-img {
        position: relative;
        right: 0;
        bottom: 0;
        height: 200px;
        margin-top: 20px;
    }
}


/* TOPKA */

.stats-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 450px;
    font-family: 'Poppins', sans-serif;
    left: 36%;
    position: relative;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.stats-header h3 {
    margin: 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.fa-trophy {
    color: var(--yellow);
    font-size: 1.4rem;
}

.top-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.top-player {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-rank {
    font-weight: 900;
    font-size: 1.3rem;
    width: 30px;
}

/* Kolory miejsc */
.rank-1 { color: var(--gold); }
.rank-2 { color: var(--silver); }
.rank-3 { color: var(--bronze); }

.top-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

/* Styl "pastylki" dla kwoty */
.top-amount {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
}


/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.line {
  width: 3em;
  height: .4em;
  background-color: #2e2e2e;
  margin: .5em;
}



@media screen and (max-width: 1024px) {
    .burger {
        display: block;
        transition: .3s ease-in-out;
        position: absolute;
        left: 90%;
    }

      ul.active {
        transform: translate(0%) ;
    }

    .burger.active .line:first-child {
        transform: translateY(-300px);
    }

    .burger.burger.active .line:nth-child(2){
        transform: rotate(-405deg) translateY(8px);
    }
    .burger.burger.active .line:nth-child(3){
        transform: rotate(405deg) translateY(-10px);
    }

    .navbar ul {
        z-index: -1;
        position: absolute;
        right: 0;
        top: 0.3vh;
        list-style: none;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center ;
        height: 35vh;
        width: 100%;
        background-color: var(--white);
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        gap: 20px; /* Space between links */
        margin: 0;
        padding: 0;
        transform: translateY(-100%);
        transition: .3s ease-in-out;
    }


    .navbar {
        width: 100%;
    }
    
    
    
      .navbar ul.active {
        transform: translateY(0%) ;

    }

    .votes-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap; /* Dzięki temu na telefonach banery będą jeden pod drugim */
        gap: 20px;
        max-width: 800px;
        margin: 0 auto;
    }
}



.pixel-shadow {
    filter: drop-shadow(2px 3px 0px rgba(0, 0, 0, 0.5)); /* Subtle shadow */
}

.pixel-shadow-shop {
    filter: drop-shadow(5px 10px 0px rgba(0, 0, 0, 0.5)); /* Subtle shadow */
}


.pixel-corners {
  clip-path: polygon(
    0px calc(100% - 12px),
    6px calc(100% - 12px),
    6px calc(100% - 6px),
    12px calc(100% - 6px),
    12px 100%,
    calc(100% - 12px) 100%,
    calc(100% - 12px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 12px),
    100% calc(100% - 12px),
    100% 12px,
    calc(100% - 6px) 12px,
    calc(100% - 6px) 6px,
    calc(100% - 12px) 6px,
    calc(100% - 12px) 0px,
    12px 0px,
    12px 6px,
    6px 6px,
    6px 12px,
    0px 12px
  );
}


/* Footer section */
.footer {
    background-color: var(--white);
    color: var(--white); 
    text-align: center;
    padding: 20px; /* Added top padding to clear the clip-path */
    position: relative;
    width: 100%;
    z-index: 1;
}


.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Odstępy między elementami */
}

.footer-content a {
    color: var(--black_grey); /* Biały tekst */
    text-decoration: none;
    font-family: 'Press Start 2P', cursive; /* Pixelated font */
    font-size: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--yellow); /* Zmiana koloru na żółty po najechaniu */
}
.footer-content img {
    width: auto; /* Ikony o stałej szerokości */
    height: 30px; /* Ikony o stałej wysokości */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.footer-content img:hover {
    transform: scale(1.2); /* Powiększenie ikon po najechaniu */
}

.footer-credits {
    font-size: 14px;
    margin-top: 10px;
    color: var(--black_grey); /* Jaśniejszy tekst */
    font-family: 'MinecraftRegular', sans-serif; /* Pixelated font */
}

.footer-socials img {
    filter: brightness(0);
}


.footer-logo img {
    width: auto; /* Ikony o stałej szerokości */
    height: 50px; /* Ikony o stałej wysokości */
    object-fit: cover;
}

.footer-credits span {
    color: var(--yellow); /* Żółty tekst */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    font-weight: bold;
}



/* ============================================================
   RESPONSYWNOŚĆ (DODAJ NA KOŃCU PLIKU)
   ============================================================ */

@media (max-width: 1200px) {
    .navbar { width: 95%; }
    .header-text h1 { font-size: 55px; left: 5%; }
    .header-image { left: 15%; max-width: 300px; }
    .stats-box {left: 30%; position: relative; }
}

@media (max-width: 992px) {
    /* Układ Headera na tabletach */
    .header-content {
        bottom: 5vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .stats-box {left: 25%; position: relative; }

    .header-text h1 {
        position: static;
        text-align: center;
        font-size: 75px;
        line-height: 1.2;
        margin-top: 20vh;
    }

    .header-image {
      display: none;
    }

    .scroll-down {
        position: static;
        margin-top: 35px;
    }

    /* Sekcja Discord - poprawka układu */
    .discord-promo {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        min-height: auto;
    }

    .discord-content {
        max-height: 250px;
        max-width: 100%;
        text-align: center;
        position: static;
    }

    .discord-content h2, 
    .discord-content p, 
    .discord-btn {
        position: relative;
        margin: 10px auto;
        bottom: 100px;
        left: 0;
    }

    .discord-img {
        position: relative;
        left: 0;
        bottom: 00px;
        height: 230px;
        margin-bottom: 20px;
        order: -1; /* Obrazek nad tekstem na mobile */
    }
}

@media (max-width: 768px) {
    /* Navbar i Logo */
    .navbar {
        width: 100%;
        padding: 10px 15px;
    }
    .stats-box {left: 20%; position: relative; }

    .logo-container img {
        width: 50px;
        height: 50px;
    }

    .player-stat {
        padding: 2px 8px;
    }

    #online-players {
        font-size: 0.9rem;
    }

    /* Menu mobilne (Burger już masz, ale upewnijmy się, że linki są czytelne) */
    .navbar ul {
        background-color: var(--white);
        z-index: -1;
    }

    .burger {
        left: 80%;
    }

    /* Header na telefony */
    .header-text h1 {
        font-size: 64px;
        padding: 0 15px;
    }

    /* Banery trybów */
    .votes-container {
        gap: 20px;
    }

    .banner {
        width: 90%; /* Banery zajmują prawie całą szerokość ekranu */
        height: 400px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 28px;
    }

    .discord-content h2 {
        font-size: 1.5rem;
    }

    .stats-box {left: 0%; position: relative; }
    .btn-mode {
        font-size: 10px;
        padding: 10px 20px;
    }
}