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

:root {
    --shadow_grey: #6b6b6b; /* Shadow for text */
    --grey: #272626; /* Dark grey for contrast */
    --black_grey: #1a1a1a; /* Background or footer */
    --discord_blue: #7289da; 
    --discord_hoverblue: #5869a8; 
    --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 */
    --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');

@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-color: #000;
}

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


.container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
}

/* Wspólne style dla paneli */
.split {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Lewa strona */
.left {
  left: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
  url("../img/tlo_normal.jpg");
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%);
}

/* Biała kreska */
.left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  z-index: -1;
  clip-path: polygon(
  calc(55% - 15px) 0,
  calc(55% + 15px) 0,
  calc(45% + 15px) 100%,
  calc(45% - 15px) 100%
);

}

/* Prawa strona */
.right {
  right: 0;
  z-index: 1;
  background-image:
  linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
  background-size: cover;
  background-position: center;
}

/* Treść */
.content {
  width: 50%;
  padding: 20px;
  color: #ffffff;
  text-align: center;
}

.left .content {
  margin-left: 5vw;
  margin-right: auto;
}

.right .content {
  margin-right: 5vw;
  margin-left: auto;
}

.content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  filter: drop-shadow(4px 5px 0px rgb(0, 0, 0)); /* Subtle shadow */
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 45px;
  margin-bottom: 30px;
}

 button {
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 2px 2px 0 rgb(0, 0, 0);
  background-color: var(--yellow);
  color: #fff;

  padding: 1.0rem 2.8rem;

  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);

  cursor: pointer;
  outline: none;

  transition: transform 0.2s;
}

button:active {
  transform: scale(0.98);
}


button:hover {
  transform: scale(1.05);
}

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

/* Mobile */
@media (max-width: 768px) {
  .left {
    clip-path: polygon(0 0, 100% 0, 100% 55%, 0 45%);
  }

  .left::after {
    clip-path: polygon(0 44.8%, 100% 54.8%, 100% 55.2%, 0 45.2%);
  }

  .content {
    width: 100%;
    margin: 0 !important;
  }

  .left .content {
    align-self: flex-start;
    margin-top: 15vh !important;
  }

  .right .content {
    align-self: flex-end;
    margin-bottom: 15vh !important;
  }
}
