/* 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 */
}

@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(2) 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 200px;
    background: linear-gradient(to bottom, var(--light), #eef0f5);
    font-family: 'Poppins';
    text-align: left;
}

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

.modes-text h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}
.modes-text a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--yellow_hover);
    text-decoration: none;
    top: 15px;
}





#tabela-wrapper {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    background-color: var(--yellow_hover);
    border-radius: 40px; /* Mocne zaokrąglenie zewnętrzne */
    display: flex;
    overflow: hidden;
    min-height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* LEWA STRONA - SKIN */
#skin-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#player-skin {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.3));
}

/* PRAWA STRONA - FORMULARZ */
#tabela {
    flex: 2;
    background-color: white;
    margin: 15px; /* Margines tworzący "ramkę" czerwonego tła */
    border-radius: 35px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#tabela h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

#tabela p.subtitle {
    color: #b1b1b1;
    margin-bottom: 25px;
    font-size: 14px;
}

/* FORMULARZ */
#voucher-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#voucher-form input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 12px;
    border: none;
    background-color: var(--light);
    font-size: 15px;
    color: #333;
    outline: none;
}

#voucher-form input::placeholder {
    color: #999;
}

#use-voucher-button {
    margin-top: 10px;
    padding: 18px;
    border-radius: 20px;
    border: none;
    background-color: var(--orange);
    color: white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}

#use-voucher-button:hover {
    background-color: var(--orange_hover);
    transform: translateY(-2px);
}

/* MAŁY PRZYCISK W ROGU (Opcjonalny) */
.top-status {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--orange);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* 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: rgb(255, 255, 255);
    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;
    }
}


/* 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%) ;

    }

    .products-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; }
}

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

    
    .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;
    }


}

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

    .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 */
    .products-container {
        gap: 20px;
    }

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

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


    .shop-sec {
        padding: 50px 20px;
    }

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