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

:root {
    --darkmode1: #202225;
    --darkmode2: #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: 'Poppins', 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;
  backdrop-filter: blur(5px); /* Efekt rozmycia tła */
  overflow-x: hidden;
  min-height: 100vh; /* Pełna wysokość widoku */
  max-width: auto;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

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

.logo {
    margin: 20px auto 40px;
    display: block;
    width: 300px;
    height: auto;
}

h1 {
    text-align: center;
    font-weight: bolder;
    font-size: 2em;
    color: #000;
    font-family: 'Poppins', sans-serif;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.timer-title {
    font-size: 1.8em;
    font-weight: 600;
    margin: -30px 0;
    color: #000;
}

.timer {
    display: block;
    font-size: 5em;
    font-weight: 900;
    color: #FFD700;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.offer-text {
    font-size: 1.2em;
    color: #000;
    margin: 40px 0 20px 0;
    font-weight: 500;
}

.btn-shop {
    display: inline-block;
    background-color: var(--yellow);
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 173, 47, 0.4);
    border: none;
    cursor: pointer;
    margin: 20px 0;
}

.btn-shop:hover {
    background-color: var(--yellow_hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 173, 47, 0.6);
}

.social-section {
    margin-top: 80px;
}

.social-label {
    font-size: 1em;
    color: #000;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #000;
    font-size: 1.5em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

  #copy-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #8bc34a;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

#copy-alert.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Stan: Timer zakończony */
.timer-completed {
    animation: pulse-complete 0.6s ease-in-out;
    color: #8bc34a !important;
    text-shadow: 2px 2px 8px rgba(139, 195, 74, 0.5) !important;
}

.title-completed {
    color: #000 !important;
    animation: slideDown 0.5s ease-out;
}

@keyframes pulse-complete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stan: Timer wyłączony */
.timer-disabled {
    opacity: 0.7;
    font-style: italic;
    letter-spacing: 0.15em;
}

@media (max-width: 768px) {
    .timer {
        font-size: 3em;
    }
    
    .timer-title {
        font-size: 1.3em;
    }
    
    .logo {
        width: 200px;
    }
    
    .btn-shop {
        padding: 12px 30px;
        font-size: 0.95em;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
}