@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    position: relative;
    overflow-x: hidden;  /* Ukrywa tylko poziomy scroll */
    overflow-y: auto;    /* Pozwala na pionowy scroll */
    padding: 20px 0;     /* Dodaje padding góra/dół */
    padding-bottom: 100px; /* Dodatkowa przestrzeń na dole dla pieska */
}

/* Minecraft-style background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAUSURBVHjaYvz//z8DCFgZGRmJAwAaOwMBJNmJjQAAAABJRU5ErkJggg==');
    background-size: 100px 100px;
    z-index: -2;
    animation: backgroundScroll 20s linear infinite;
}

/* Grass block pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(34, 139, 34, 0.1) 2px,
            rgba(34, 139, 34, 0.1) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(34, 139, 34, 0.1) 2px,
            rgba(34, 139, 34, 0.1) 4px
        );
    z-index: -1;
}

@keyframes backgroundScroll {
    from { transform: translate(0, 0); }
    to { transform: translate(-100px, -100px); }
}

.container {
    text-align: center;
    z-index: 10;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-container {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

/* Minecraft Dog Styles */
.minecraft-dog-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 100;
}

.minecraft-dog {
    position: absolute;
    width: 46px;  /* Powiększone o 15% z 40px */
    height: 46px;  /* Powiększone o 15% z 40px */
    bottom: 0;
    animation: dogWalk 40s infinite linear;
}

@keyframes dogWalk {
    0% {
        left: 10px;  /* Start 10px od lewej krawędzi */
        transform: scaleX(1);
    }
    2% {
        left: 10px;
        transform: scaleX(1);
    }
    48% {
        left: calc(100% - 56px);  /* 46px (szerokość) + 10px (margines) */
        transform: scaleX(1);
    }
    50% {
        left: calc(100% - 56px);
        transform: scaleX(1);
    }
    50.01% {
        left: calc(100% - 56px);
        transform: scaleX(-1);
    }
    52% {
        left: calc(100% - 56px);
        transform: scaleX(-1);
    }
    98% {
        left: 10px;
        transform: scaleX(-1);
    }
    100% {
        left: 10px;
        transform: scaleX(-1);
    }
}

.dog-body {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Dog head */
.dog-head {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #D4A76A;
    top: 5px;
    left: 25px;
    border: 1px solid #B8956A;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2);
}

/* Dog ears */
.dog-ear {
    position: absolute;
    width: 6px;
    height: 8px;
    background: #B8956A;
    top: -5px;
}

.dog-ear.left {
    left: 2px;
}

.dog-ear.right {
    right: 2px;
}

/* Dog face features */
.dog-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.dog-eye {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #000;
    top: 6px;
}

.dog-eye.left {
    left: 4px;
}

.dog-eye.right {
    right: 4px;
}

.dog-nose {
    position: absolute;
    width: 4px;
    height: 3px;
    background: #000;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* Dog torso */
.dog-torso {
    position: absolute;
    width: 30px;
    height: 18px;
    background: #D4A76A;
    top: 12px;
    left: 5px;
    border: 1px solid #B8956A;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2);
}

/* Dog legs */
.dog-leg {
    position: absolute;
    width: 6px;
    height: 15px;
    background: #D4A76A;
    bottom: 0;
    border: 1px solid #B8956A;
    animation: legWalk 1s infinite;
}

.dog-leg.front-left {
    left: 24px;
    animation-delay: 0s;
}

.dog-leg.front-right {
    left: 32px;
    animation-delay: 0.5s;
}

.dog-leg.back-left {
    left: 6px;
    animation-delay: 0.5s;
}

.dog-leg.back-right {
    left: 14px;
    animation-delay: 0s;
}

/* Leg walking animation */
@keyframes legWalk {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Dog tail */
.dog-tail {
    position: absolute;
    width: 15px;
    height: 15px;
    top: 10px;
    left: -5px;
    z-index: 1;  /* Najniższa warstwa razem z łapami */
}

.tail-segment {
    position: absolute;
    width: 10px;
    height: 8px;
    background: #D4A76A;
    border: 1px solid #B8956A;
    transform-origin: right center;
}

/* Tail wagging when sitting */
.minecraft-dog[data-sitting="true"] .tail-segment {
    animation: tailWag 0.3s infinite alternate;
}

@keyframes tailWag {
    from {
        transform: rotate(-20deg);
    }
    to {
        transform: rotate(20deg);
    }
}

/* Sitting position adjustments */
.minecraft-dog[data-sitting="true"] .dog-leg {
    animation: none;
}

.minecraft-dog[data-sitting="true"] .dog-leg.front-left,
.minecraft-dog[data-sitting="true"] .dog-leg.front-right {
    height: 12px;
    transform: rotate(-30deg);
}

.minecraft-dog[data-sitting="true"] .dog-torso {
    transform: rotate(-10deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .minecraft-dog-container {
        bottom: 10px;
    }

    .minecraft-dog {
        width: 40px;  /* Powiększone o 15% */
        height: 40px;  /* Powiększone o 15% */
    }
}

.logo {
    max-width: 600px;  /* Maksymalna szerokość na dużych ekranach */
    width: 100%;       /* Zajmuje całą dostępną szerokość */
    height: auto;      /* Zachowuje proporcje */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
    transition: all 0.3s ease;
}

/* Responsywność dla różnych rozmiarów ekranu */
@media (max-width: 1200px) {
    .logo {
        max-width: 500px;
    }
}

@media (max-width: 992px) {
    .logo {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 250px;
    }
}

.logo:hover {
    transform: scale(1.05);
    filter:
        drop-shadow(0 15px 30px rgba(255,215,0,0.6))
        brightness(1.2)
        saturate(1.5);
}

.golden-text {
    display: inline-block;
    font-size: clamp(24px, 5vw, 48px);
    color: #FFD700;
    text-decoration: none;
    text-shadow:
        3px 3px 0px #B8860B,
        6px 6px 0px rgba(0,0,0,0.5),
        0 0 30px rgba(255,215,0,0.5);
    transition: all 0.3s ease;
    margin-top: 30px;
    letter-spacing: 2px;
}

.golden-text:hover {
    color: #FFF;
    text-shadow:
        3px 3px 0px #FFD700,
        6px 6px 0px #B8860B,
        9px 9px 0px rgba(0,0,0,0.5),
        0 0 50px rgba(255,215,0,0.8);
    transform: translateY(-5px) scale(1.1);
}

/* Discord variant of golden-text */
.golden-text.discord {
    color: #5865F2 !important;  /* Discord Blue */
    text-shadow:
        3px 3px 0px #4752C4,
        6px 6px 0px rgba(0,0,0,0.5),
        0 0 30px rgba(88,101,242,0.5) !important;
    margin-top: 20px;
}

.golden-text.discord:hover {
    color: #FFF !important;
    text-shadow:
        3px 3px 0px #5865F2,
        6px 6px 0px #4752C4,
        9px 9px 0px rgba(0,0,0,0.5),
        0 0 50px rgba(88,101,242,0.8) !important;
    transform: translateY(-5px) scale(1.1);
}

/* Minecraft particles effect */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat 4s linear;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-200px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-250px) scale(0);
    }
}

/* Dog with gold */
.dog-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.server-ip {
    margin-top: 50px;
    color: #7a7a7a;
    font-size: 12px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .golden-text {
        font-size: 24px;
    }

    .dog-logo {
        width: 150px;
    }

    .server-ip {
        font-size: 10px;
    }
}
/* Server status */
.server-status {
    margin-top: 15px;
    color: #7a7a7a;
    font-size: 12px;
    text-shadow:
        1px 1px 0px #000,
        0 0 10px rgba(255,215,0,0.3);
}
.server-status.online {
    color: #FFD700;   /* Złoty dla online */
}
.server-status.offline {
    color: #7a7a7a;   /* Szary dla offline */
}
