* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}


/*BODY pozadie a text*/
body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}
/*MENU*/
.menucko, header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10%;
    background-color:   rgba(31, 32, 37, 0.95);
    border-bottom: 2px solid #4f46e5;
    position: sticky;
    top: 0;
    z-index: 100;
}
/*NADPIS Andrej Guniš*/
.nadpis1, header h1, body > h1 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/*BODY text*/
body > h1 {
    text-align: center;
    margin: 35px auto 20px auto;
    font-size: 2.2rem;
}
/*ODKAZY*/
.linky, header ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.linky a, header ul a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
/*HOVER odk.*/
.linky a:hover, header ul a:hover {
    color: #3b82f6;
}
/*centrovanie všeob.*/
article, body > h2, body > p, body > ul, body > audio, body > video, body > img {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}
/*ARTICLE odsadzovanie*/
article {
    margin: 30px auto;
}
/*PROFILOVKA umiestnenie*/
article:has(.profilovka) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

article:has(.profilovka) h2 {
    width: 100%;
}

article:has(.profilovka) p {
    flex: 1;
    min-width: 280px;
    margin-bottom: 0;
    order: 1;
}
/*PROFILOVKA*/
img.profilovka {
    width: 140px;
    height: 185px;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid #3b82f6;
    margin: 0;
    order: 2;
}
/*H2,H3*/
h2, h3 {
    text-align: center;
    color: #453bcc;
    font-size: 1.6rem;
    margin: 35px 0 15px 0;
}

h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
}
/*zoznamy*/
p, li {
    font-weight: 500;
    color: #475569;
    margin-bottom: 12px;
}
/*MÉDIÁ všeob.*/
img, video, audio {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px auto;
}

video { width: 400px; }

/*VIDEOHRY s ALT*/
article:has(img[alt*="Mafia"], img[alt*="Hogwarts"], img[alt*="Witcher"]) {
    text-align: center;
}

article img[alt*="Mafia"], article img[alt*="Hogwarts"], article img[alt*="Witcher"] {
    height: 150px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    margin: 10px;
    vertical-align: top;
}

body > a[href^="#"] {
    display: inline-block;
    background: #fff;
    color: #453bcc;
    text-decoration: none;
    padding: 6px 12px;
    margin: 4px 2px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 35px auto;
    max-width: 800px;
}

body > br { display: none; }
ul { padding-left: 20px; }
ul p { font-weight: 700; color: #453bcc; margin: 10px 0 4px 0; }

/*GALÉRIA port.*/
article:has(.gallery-item) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px;
}

article:has(.gallery-item) h2 {
    width: 100%;
}

/*gal*/
div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

div.gallery-item {
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    width: calc(50% - 10px);
    min-width: 280px;
    max-width: 426px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    
}

div.gallery-item:hover {
    border: 1px solid #4f46e5; 
}

div.gallery-item a iframe, 
div.gallery-item a video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
}

/*GALÉRIA popis*/
div.gallery-item div.desc {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}


/*GALÉRIA subor*/
.galeria img{width: 100px;
    border: solid 1px rgb(99, 9, 110);
    }

.galeria{display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap:10px 20px;
    background-color: rgb(102, 160, 8);
}
    
.galeria img{width: 85px;
height: auto;}


/*PATA*/
footer {
    text-align: center;
    padding: 30px 20px;
    color: #cbd5e1;
    background: #1f2025;
    border-top: 2px solid #4f46e5;
    margin-top: 50px;
}
/*INSTAGRAM*/
footer a img {
    width: 75px;
    background: #fff;
    padding: 3px;
    border-radius: 4px;
    margin-bottom: 12px;
}

footer p { margin-bottom: 4px; color: #94a3b8; }
footer #kontakt { color: #fff; font-weight: bold; }
/*ÚPRAVA pre OBRAZOVKY*/
@media screen and (max-width: 768px) {
    .menucko, header { flex-direction: column; gap: 6px; padding: 10px 5%; }
    .linky, header ul { gap: 12px; flex-wrap: wrap; justify-content: center; }
    article:has(.profilovka) { justify-content: center; text-align: center; }
    img.profilovka { margin: 12px auto; }
    
    table { 
        display: block; 
        overflow-x: auto; 
        white-space: nowrap; 
        width: 100%;
    }
    div.gallery-item {
        width: 100%;
        max-width: 426px;
    }
    .galeria{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap:10px;
        align-items: center;
    }
}