body {
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: Calibri, sans-serif, 'Times New Roman';
    background-color: #0b0f19;
    overflow-x:hidden;
}

/* =========================================
   ÚVODNÍ TEXT
   ========================================= */

header {
    background:linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)),url("/img/radnice.jpg");
    background-size:cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    position:relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px; 
    background: linear-gradient(to bottom, transparent, #121212);
    pointer-events: none; 
    z-index: 1; 
}

.header-container {
    max-width: 1500px; 
    width: 100%;       
    box-sizing: border-box; 
    margin:0 auto;
    text-align: center;
    color:white;
}

.header-uvod img {
    max-width: 180px;
    margin-bottom:20px;
}

.header-uvod h1 {
    font-size: 3em;
    font-weight: 900;
    margin:0;
    line-height: 1.2;
    letter-spacing: 3px;
    text-shadow: 0px 2px 7px white;
}

.header-uvod p {
    font-size:30px;
    margin-top:15px;
    margin-bottom:40px;
    text-shadow:1px 2px 4px rgba(0,0,0,0.8);
}

/* =========================================
   MŘÍŽKA TLAČÍTEK
   ========================================= */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
    max-width: 1000px; 
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   TLAČÍTKO
   ========================================= */
.btn {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px; 
    padding: 15px 20px;
    border-radius: 8px; 
    color: white; 
    text-decoration: none; 
    font-weight: 700;
    font-size: 1.5em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    height: 50px;
    transition: transform 0.2s, filter 0.2s; 
    z-index: 10;
}

.btn:hover {
    transform: translateY(-4px); 
    filter: brightness(1.15);
}

.btn-discord   { background: linear-gradient(#5865F2, #323ca9); }
.btn-facebook  { background: linear-gradient(#1877F2, #0548b3);}
.btn-dynmap    { background: linear-gradient(#8e24aa, #451b99); }
.btn-instagram { background: linear-gradient(#C13584,#870544); }
.btn-youtube   { background: linear-gradient(#ec1111, #7f0000); }
.btn-wiki      { background: linear-gradient(#00e676, #006c31); }

.btn-hraci { 
    background: linear-gradient(#d88a36, #f12711); 
    grid-column: 1 / -1; 
    font-size: 2em; 
    padding: 20px;
}

/* =========================================
   A-TEAM
   ========================================= */

.ateam-container {
    background:linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)),url("/img/lod.jpg");
    color:white;
    background-size:cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
    position:relative;
}

.ateam-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px; 
    background: linear-gradient(to bottom, #121212, transparent);
    pointer-events: none;
    z-index:1;
}

.ateam-uvod {
    margin-top:150px;
    text-align: center;
    z-index:10;
}

.ateam-uvod h1{
    margin:0;
    font-size:3em;
}

.ateam-uvod p {
    font-size:1.5em;
}

.ateam-sekce {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
    margin-top: 160px;
    margin-left: 10px;
    margin-right:10px;
    padding-bottom: 150px;
}

.ateam-karta {
    position: relative;
    background-color: #d88936; 
    width: 100%;
    max-width: 450px;
    padding: 30px 20px;
    border-radius: 6px;
    text-align: center;
    color: black;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
}

.ateam-text strong {
    font-size: 1.8em;
    font-weight: 900;
    letter-spacing: 1px;
}

.postava {
    position: absolute; 
    z-index: 10; 
    filter: drop-shadow(8px 8px 12px rgba(0,0,0,0.6)); 
    transition: transform 0.3s ease;
}

.postava.vpravo {
    right: -190px;
    top: -150px;   
}

.postava.vlevo {
    left: -200px;
    bottom: -100px;
}

.ateam-karta img {
    width: 400px;
}

/* =========================================
   RESPONZIVITA PRO TABLETY (Přidáno pro plynulý přechod)
   ========================================= */
@media (max-width: 950px) {
    .header-container {
        padding: 50px 20px; 
    }
    
    .header-uvod p {
        font-size: 24px;
    }
    
    .btn {
        font-size: 1.5em; 
    }
}

@media (max-width: 870px) {

    .ateam-karta {
        display: flex;
        flex-direction: column-reverse; 
        align-items: center;
        max-width: 320px; 
        padding-top: 0;
    }

    .postava.vpravo, .postava.vlevo {
        position: relative; 
        right: auto; 
        left: auto;
        top: auto;
        bottom: auto;   
        max-width: 250px;
        margin-top: -110px; 
        margin-bottom: 20px;
    }
}

/* =========================================
   RESPONZIVITA PRO MOBILY
   ========================================= */

@media (max-width: 650px) {
    .buttons-grid {
        grid-template-columns: 1fr; 
    }
    
    .header-uvod h1 {
        font-size: 2.2em; 
    }
    
    .header-uvod img {
        width: 150px;
    }

    .header-container {
        padding: 20px 10px; 
    }

    .header-uvod p {
        font-size: 18px; 
    }

    .btn {
        font-size: 1.2em; 
        height: auto; 
    }

    header {
        background-attachment: scroll !important;
    }

    .ateam-container {
        background-image: none !important; 
        background-color: transparent !important;
        clip-path: inset(0);
    }

    .ateam-container::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        
        background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("/img/lod_mobil.jpg");
        background-size: cover;
        background-position: center;
        
        z-index: -2;
        pointer-events: none;
        
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* AVATAR MAKER: https://mcskins.top/avatar-maker*/

/* Pózy: 
ItsRanzy
{"cam":["2.57","1.00","2.90","0.84","0.00","0.00","0.00"],"leftarm":["-171","47","-82","165"],"rightarm":["10","34","15","41"],"leftleg":["-4","-36","-13","18"],"rightleg":[0,"47",0],"head":["-12","47","14"]}*/

/*
{"cam":["-0.64","-0.34","3.85","0.58","0.21","-0.97","-0.01"],"leftarm":["79","-49","-58","109"],"rightarm":["-112","-32","66","76"],"leftleg":["35","-49","-8","48"],"rightleg":["-39","94","67","19"],"head":["53","-8","-38"],"skin":["-65","-28","16"],"rightitem":[0,0],"leftitem":[0,0],"floor":[1,16777215],"rbg":[1,4850178,13801110],"light_pos":["0.760","0.620"],"light":[40,54,3933445]}*/

/*
{"cam":["2.14","-0.04","3.38","1.00","0.00","0.00","0.00"],"head":[0,"53",0],"rightleg":["15",0,"2"],"leftleg":["-10",0,"-5"],"rightarm":["14","0","14"],"leftarm":["-20","0","-21"],"leftitem":[678,0]}
*/