* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Jersey 10", sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, black, blue);
}

.header {
    position: relative;
    text-align: center;
    margin-top: 30px;
}

.header-img {
    width: 50%;
    max-width: 500px;
}

.header-text,
.bemutatkozo_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.header-text {
    font-size: 40px;
}

.bemutatkozo_text {
    font-size: clamp(20px, 2vw, 20px);
}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 60px;
    justify-items: center;
}

.popup {
    position: relative;
    width: 300px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
}

.popup-bg {
    width: 100%;
}

.popup:hover .popup-bg {
    animation: xpShake 0.4s;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.popup-content img {
    width: 50px;
}

.popup-content p {
    margin-top: 10px;
    font-size: 28px;
}

.xp-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.xp-animate.show {
    animation: xpPopup 0.8s ease-out forwards;
}

@keyframes xpPopup {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    70% {
        opacity: 1;
        transform: translateY(-6px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes xpShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.popup-five {
    grid-column: 1 / -1;
}

.xp-taskbar {
    position: fixed;
    right: 20px;
    bottom: -120px;
    width: 260px;
    padding: 12px 16px 14px;
    background: linear-gradient(#3a6ea5, #1f3b63);
    color: white;
    border: 2px solid #0a246a;
    font-size: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    z-index: 999;
    transition: bottom 0.6s ease;
}

.xp-taskbar.show {
    bottom: 20px;
}

.xp-close {
    position: absolute;
    top: 4px;
    right: 6px;
    cursor: pointer;
    font-size: 14px;
    background: #c0392b;
    color: white;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border: 1px solid #7f1d1d;
}

.xp-close:hover {
    background: #e74c3c;
}

@media (max-width: 768px) {
    .header-img {
        width: 90%;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .popup {
        width: 90%;
    }
}

@media (max-width: 550px) {
    .bemutatkozo_text {
        font-size: 13.5px;
    }
}

@media (max-width: 400px) {
    .bemutatkozo_text {
        font-size: 13px;
    }
}


#footer {
    position: absolute;
    font-size: x-large;
    color: rgb(184, 180, 180);
    margin-top: 510px;
}