* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #201507, #2b1e0f, #3a2e14, #4b3a1c);
    margin: 0;
    color: #e8e3cf;
    font-family: 'Poppins', sans-serif;
    padding-top: 200px;
    overflow-x: hidden;
}

/* 🟩 Container */
.container {
    width: 70%;
    margin: 20px auto 0 auto;
    display: flex;
    flex-direction: column;
    flex-flow: row wrap;
}

/* 🟩 Header */
.container header {
    animation: zobrazeni1 1s ease-out forwards;
    width: 70%;
    background: rgba(28, 20, 5, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    box-shadow: 0 0 25px rgba(67, 160, 71, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(87, 69, 33, 0.6);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.container header img {
    height: 100px;
    transition: transform 0.3s ease;
}
.container header img:hover {
    transform: rotate(6deg) scale(1.05);
}

/* 🔗 Navigace */
.container header nav a {
    display: inline-block;
    border-radius: 10px;
    background: linear-gradient(90deg, #3fa93f, #8fcf4f);
    color: #fff3c2;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(63, 169, 63, 0.3);
}
.container header nav a:hover {
    background: linear-gradient(90deg, #ffcc66, #6fbf3a);
    color: #2c1900;
    transform: scale(1.07);
    box-shadow: 0 0 20px rgba(255, 204, 102, 0.5);
}

/* 📦 Obsah */
.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* 💎 IP box */
.server-box-ip {
    transform: translateX(0);
    opacity: 0;
    text-align: center;
    background: rgba(35, 25, 10, 0.85);
    border: 1px solid rgba(100, 80, 40, 0.5);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 25px rgba(63, 169, 63, 0.25);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    width: 30%;
}

.server-box-ip.animate {
    animation: prijedizeniZleva 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.server-box-ip h1 {
    font-size: 1.8rem;
    color: #ffcc66;
}

.server-box-ip h1 span {
    color: #7bff7b;
}

.server-box-ip .ip {
    font-size: 1.3rem;
    color: #c3ffb2;
    margin: 10px 0 15px;
    user-select: all;
}

.server-box-ip .version {
    font-size: 1rem;
    color: #a89974;
    margin-bottom: 10px;
}

#copyBtn {
    background: linear-gradient(90deg, #7bff7b, #b2ff59);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #1e1a0f;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(123, 255, 123, 0.4);
}

#copyBtn:hover {
    background: linear-gradient(90deg, #ffcc66, #7bff7b);
    color: #2c1900;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 204, 102, 0.6);
}

#copyMsg {
    color: #9bff91;
    margin-top: 10px;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* 🟤 Info box */
.server-box-info {
    margin-top: 50px;
    transform: translateX(0);
    opacity: 0;
    text-align: center;
    background: rgba(35, 25, 10, 0.85);
    border: 1px solid rgba(100, 80, 40, 0.5);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 25px rgba(63, 169, 63, 0.25);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    width: 30%;
}

.server-box-info.animate {
    animation: prijedizeniZprava 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* 🧍‍♂️ Team Cards */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 20px;
}

.flip-card {
    width: 280px;
    height: 350px;
    perspective: 1000px;
    margin: 0;
    border-radius: 15px;
    transform: translateY(0);
    opacity: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(63, 169, 63, 0.4);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.flip-card-front {
    background: rgba(50, 35, 15, 0.9);
    color: #ffebc1;
}

.flip-card-back {
    background: rgba(70, 100, 50, 0.7);
    color: #fff;
    transform: rotateY(180deg);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    align-items: center;
}

.back-name {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffcc66;
}

.flip-card-back img {
    width: 100px;
    transition: transform 0.3s ease;
}

.flip-card-back img:hover {
    transform: scale(1.2);
}

/* 👥 Member */
.member {
    background: rgba(50, 35, 15, 0.9);
    border-radius: 15px;
    text-align: center;
    width: 280px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.member img {
    width: 150px;
    border-radius: 10px;
}

.role {
    color: #9bff91;
    font-weight: bold;
    margin-top: 5px;
}

.role.owner {
    color: red; /* barva pro Owner */
}

.role.speaker {
    color: green; /* barva pro Owner */
}

.role.builder {
    color: blue; /* barva pro Owner */
}

.flip-card-front::after {
    content: "↖"; /* šipka doleva nahoru */
    position: absolute;
    bottom: 10px; /* dole na kartě */
    right: 10px;  /* vpravo */
    font-size: 1.5rem;
    color: #ffcc66;
    opacity: 0.8;
    animation: pulse 5s infinite;
    pointer-events: none; /* aby šipka nezasahovala do hover efektu */
}

.flip-card.animate {
    animation: prijedizeniZespoda 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* 🟤 Footer */
footer {
    background: rgba(28, 20, 5, 0.85);
    backdrop-filter: blur(6px);
    color: #ffebc1;
    text-align: center;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(63, 169, 63, 0.3);
    margin-top: 90px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    transition: all 0.3s ease;
}

footer a img {
    width: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
}
footer a img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #9bff91);
}

/* 📱 Tablety */
@media all and (max-width: 1024px) {
    .container { width: 85%; }
    .container header { width: 85%; padding: 15px 20px; }
    .server-box-ip, .server-box-info { width: 60%; }
    .server-box-ip.animate, .server-box-info.animate {
        animation: prijedizeniZespoda 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }
    .flip-card { width: 250px; height: 320px; }
    .member { width: 250px; }
}

/* 📱 Mobily */
@media all and (max-width: 768px) {
    .container { width: 90%; }
    .container header {
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding: 15px;
        top: 10px;
    }
    .container header img { height: 70px; margin-bottom: 10px; }
    .container header nav {
        display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    }
    .container header nav a {
        font-size: 1rem; padding: 8px 15px; margin: 5px;
    }
    body { padding-top: 180px; }
    .content { justify-content: center; flex-direction: column; align-items: center; }
    .server-box-ip, .server-box-info { width: 80%; padding: 20px; }
    .server-box-ip.animate, .server-box-info.animate {
        animation: prijedizeniZespoda 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }
    .flip-card { width: 220px; height: 300px; }
    .member { width: 220px; }
    footer { padding: 8px 15px; border-radius: 10px; gap: 4px; }
    footer a img { width: 25px; }
}

/* 📱 Extra malé telefony */
@media all and (max-width: 480px) {
    .server-box-ip, .server-box-info { width: 95%; padding: 15px; }
    .flip-card { width: 200px; height: 280px; }
    .member { width: 200px; }
    footer { padding: 6px 10px; border-radius: 8px; gap: 3px; }
    footer a img { width: 20px; }
}

/* 💫 Animace */
@keyframes zobrazeni1 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes prijedizeniZleva {
    from { transform: translateX(-180%); opacity: 0; }
    to { transform: translateX(-80%); opacity: 1; }
}

@keyframes prijedizeniZprava {
    from { transform: translateX(180%); opacity: 0; }
    to { transform: translateX(80%); opacity: 1; }
}

@keyframes prijedizeniZespoda {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}