@import url('https://fonts.googleapis.com/css2?family=Minecraft&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Minecraft', monospace;
    background: linear-gradient(180deg, #4AA0D9 0%, #87CEEB 40%, #B5E3FF 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ground layers fixed */
.dirt-layer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #8B5A2B 0%, #7A4221 60%, #5C2D0F 100%);
    border-top: 2px solid #9C6644;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.dirt-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(#6b3f21 2px, transparent 2px),
        radial-gradient(#7c4a2b 1.5px, transparent 1.5px);
    background-size: 10px 10px, 15px 15px;
    opacity: 0.25;
}

.stone-layer {
    position: fixed;
    bottom: 50px;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #a8a8a8 0%, #909090 40%, #787878 100%);
    border-top: 3px solid #bfbfbf;
    box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.stone-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(#6f6f6f 2px, transparent 2px),
        radial-gradient(#8a8a8a 1.5px, transparent 1.5px);
    background-size: 12px 12px, 20px 20px;
    opacity: 0.25;
}

.grass-layer {
    position: fixed;
    bottom: 100px;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #7ED321 0%, #7ED321 60%, #5FA818 60%, #5FA818 100%);
    border-top: 4px solid #9AE837;
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.2);
    z-index: 3;
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
    border: 6px solid #C6C6C6;
    border-radius: 8px;
    box-shadow:
        inset 3px 3px 0 rgba(255, 255, 255, 0.3),
        inset -3px -3px 0 rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 2rem;
    animation: containerAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo */
.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Title & subtitle */
.title {
    font-size: 2.2rem;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 #B8860B, 4px 4px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 3px 3px 0 #B8860B, 4px 4px 8px rgba(0, 0, 0, 0.6);
    }

    50% {
        text-shadow: 3px 3px 0 #B8860B, 4px 4px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

.subtitle {
    font-size: 0.9rem;
    color: #B8B8B8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Server box */
.server-box {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 4px solid #555;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.server-name {
    font-size: 1.3rem;
    color: #5FE5DC;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: serverPulse 2s ease-in-out infinite;
}

@keyframes serverPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #FFA500;
    background: rgba(255, 165, 0, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: 2px solid rgba(255, 165, 0, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #FFA500;
    border-radius: 2px;
    animation: statusBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 40px;
    background: #1a1a1a;
    border: 4px solid #555;
    border-radius: 6px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7ED321 0%, #9AE837 25%, #7ED321 50%, #9AE837 75%, #7ED321 100%);
    background-size: 200% 100%;
    width: 73%;
    position: relative;
    animation: progressShine 2s linear infinite;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 0 15px rgba(126, 211, 33, 0.5);
}

@keyframes progressShine {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 200% 0%;
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
    font-weight: bold;
}

.fun-message {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
}

.copyright {
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: -1.9rem;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.social-icon:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.social-icon.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-icon.discord:hover:not(.disabled) {
    background: #5865F2;
    border-color: #5865F2;
}

.social-icon.youtube:hover:not(.disabled) {
    background: #FF0000;
    border-color: #FF0000;
}

.social-icon.tiktok:hover:not(.disabled) {
    background: #000000;
    border-color: #00F2EA;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .server-name {
        font-size: 1.1rem;
    }

    .footer {
        padding: 0 1.5rem;
        font-size: 0.6rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}