body {
			background-color: #f3efeb;
			/*background-image: url("../pictures/pexels-karolina-grabowska-4194857.jpg");*/
			/*background-attachment: fixed;*/
			/*background-repeat: no-repeat;*/
			
		}
		li {
  			list-style-type: none; /* skryje tečky */
		}
		.pozadiStranky {
			background-color: white;
			background-repeat: no-repeat;
			background-attachment: fixed;
			/*border-color: gray;
			border-width: 2px;
			border-style: solid;*/
			/*border-left: 2px solid black;*/
			/*border-right: 2px solid black;*/
			box-shadow: 0 0 40px gray;
		}
		.container {
			height: 100vh;
			display: flex;
			justify-content: center;
			align-items: center;
			
		}
	
		.obrazek {
			opacity: 0;
			transition: opacity 1s ease-in-out;
		}
		.spodnipanel {
			background-color: black;
			color: rgb(136, 135, 135);
		}	
		.line {
			position: relative;
			width: 100%;
			height: 2px;
			background-color: black;
		}
		.col-auto {
			margin-right: 10px;
		}
		.navbar-toggler {
			margin-left: 10px;
		}
		.link {
			color: white;
			text-decoration: none;
		
		}
		a:hover {
			text-decoration: underline;
			color:lightslategray;
		}
		.gif {
			border: 2px solid black;
	
		}
		.collapse {
			justify-content: flex-end;
		}	
		.d-flex {
			display: flex;
			justify-content:flex-end;
		}
		.header-social-icons {
			display: flex;
			justify-content: flex-end;
			
		}
		.toggler-icon {
		  	display: block;
		  	width: 25px;
		  	height: 3px;
		  	margin: 5px auto;
			-webkit-transition: all 0.3s;
		  	transition: all 0.3s;
		  	background-color: lightgrey;
		}
	
		.navbar-toggler:not(.collapsed) .top-bar {
		  	transform: translateY(8px) rotate(45deg);
		}
	
		.navbar-toggler:not(.collapsed) .middle-bar {
		  	opacity: 0;
		}
	
		.navbar-toggler:not(.collapsed) .bottom-bar {
		  	transform: translateY(-8px) rotate(-45deg);
		}
		
		.navbar-nav a {
    		line-height: 30px;
    		position: relative;
		}

		/* Základní nastavení pro tlačítka */
		.nav-link {
			color: #fff; /* bílá barva textu */
			/*background-color: rgb(0, 113, 128); /* zelenomodré pozadí */
			border: 1px solid transparent; /* průhledný okraj */
			/*border-radius: .25rem; /* zaoblené rohy */
			text-decoration: none; /* bez podtržení */
			text-transform: uppercase; /* velká písmena */
			border-bottom: black;
			border-bottom-width: 3px;
			border-bottom-style: solid;
			transition: all 0.3s ease-in-out;
		}

		/* Nastavení pro aktivní tlačítko */
		.nav-link:focus, .nav-link:hover {
			color: #fff; /* bílá barva textu zůstává */
			background-color: rgb(65, 64, 64); /* tmavší odstín modré pro pozadí */
			/*border-color: gray; /* tmavší modrá pro okraj */
			text-decoration: none; /* bez podtržení */
			/*background: rgba(0, 0, 0, 0,15);*/
			border-bottom: lightgray;
			border-bottom-width: 3px;
			border-bottom-style: solid;
			transform: scale(1.1);
			transition: all 0.3s ease-in-out;
		}
		.nav-link.active {
			color: #fff; /* bílá barva textu zůstává */
			/*background-color: rgb(65, 64, 64); /* tmavší odstín modré pro pozadí */
			/*border-color: gray; /* tmavší modrá pro okraj */
			text-decoration: none; /* bez podtržení */
			/*background: rgba(0, 0, 0, 0,15);*/
			border-bottom: orange;
			border-bottom-width: 3px;
			border-bottom-style: solid;
		}
		.social {
			transition: all 0.3s ease-in-out;
		}
		.social:hover {
			transform: scale(1.1);
			transition: all 0.3s ease-in-out;
		}
		.kontaktni-formular {
			background-color: lightgray;
			border-radius: 10px;
			padding: 20px;
            box-shadow: 0 0 15px black;
		}	
		.link_kontakt {
			color: black;
			text-decoration: none;
		}
		/*.svg-img {
			width: 50px;
			height: 50px;			
		}*/
		/*.img-fluid {
			float: center;
		}*/
		.posunutyElement {
    		opacity: 0;
    		position: relative;
    		animation: moveIn 1s ease forwards;
		}
		.left {
    		animation-name: moveInLeft;
		}
		.right {
    	animation-name: moveInRight;
		}
		/*nastavení  obrázků*/
        .bojovnik {
            opacity: 1;
            transition: 0.5s;
            border-radius: 5px;
            width: 100%;
            height: auto;
            
        }
        /*nastavení  obrázků*/
        .fixed-height {
            height: 150px;
            object-fit: cover;
        }
        /*nastavení  obrázků*/
        .bojovnik:hover {
            opacity: 0.8;
            transition: 0.5s;
            transform: scale(1.1);
            border-radius: 5px;
            box-shadow: 0 0 25px black;
            width: 100%;
            height: auto;          
        }
        /*nastavení  obrázků*/
        .fixed-height:hover {
            height: 150px;
            object-fit: cover;

        }
        /*nastavení  obrázků*/
        .lightbox {
            display: none;
            position: fixed;
            z-index: 9999;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            top: 0;
            left: 0;
            align-items: center;
            justify-content: center;
        }
        /*nastavení  obrázků*/
        .lightbox img {
            max-width: 90%;
            max-height: 80%;
        }
        /*nastavení  obrázků*/
        .lightbox:target {
            display: flex;
        }
        /*nastavení  obrázků*/
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 30px;
            color: white;
            cursor: pointer;
        }
		/*nastavení  obrázků*/
		.nadpis {
			text-align: center;
			font-size: 20px;
			font-weight: bold;
			padding-left: 50px;
			
		}
		.nadpis2 {
			text-align: center;
			font-size: 20px;
			font-weight: bold;
			padding-left: 25px;
			
		}
		.nadpis3 {
			
			font-size: 20px;
			font-weight: bold;
			
			
		}
		.java {
			font-size: 10px;
		}

        .modal-header {
            color: black;
        }

        .modal-body {
            color: black;
        }
                
	
	@media (min-width: 576px) {
		  .lead {
			line-height: inherit;
		}
		.gif{
			width: 300px;
			height: 300px;
		}	
		.logo {
			width: 110px; 
			height: 85px;
		}
		.padding-left {
			padding-left: 30px;
		}
		
	
	}

/* ===== Tom Design Games - samostatný vizuální styl ===== */
:root {
    --games-bg: #060811;
    --games-bg-soft: #0b1020;
    --games-panel: rgba(16, 24, 45, 0.82);
    --games-line: rgba(120, 155, 255, 0.20);
    --games-text: #f5f7ff;
    --games-muted: #aab4ca;
    --games-accent: #6d8dff;
    --games-accent-2: #31d6d0;
}

body {
    background: var(--games-bg);
    color: var(--games-text);
}

.games-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% 10%, rgba(109, 141, 255, .15), transparent 30%),
        radial-gradient(circle at 18% 30%, rgba(49, 214, 208, .10), transparent 28%),
        linear-gradient(180deg, #060811 0%, #090d18 52%, #060811 100%);
    overflow: hidden;
}

.games-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--games-line);
    isolation: isolate;
}

.games-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    z-index: -2;
}

.games-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
}

.games-kicker,
.games-section-head > span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--games-accent-2);
}

.games-kicker::before,
.games-section-head > span::before {
    content: "";
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, var(--games-accent-2), var(--games-accent));
}

.games-hero h1 {
    max-width: 850px;
    margin: 18px 0 18px;
    font-size: clamp(48px, 7vw, 92px);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #fff;
    text-shadow: 0 0 38px rgba(109, 141, 255, .12);
}

.games-hero p {
    max-width: 700px;
    margin: 0;
    font-size: 19px;
    line-height: 1.7;
    color: var(--games-muted);
}

.games-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.game-btn--primary {
    color: #fff;
    border: 1px solid rgba(141, 166, 255, .45);
    background: linear-gradient(135deg, #526ee8, #7055e8);
    box-shadow: 0 12px 30px rgba(82, 110, 232, .25);
}

.game-btn--ghost,
.game-btn--secondary {
    color: #eaf0ff;
    border: 1px solid var(--games-line);
    background: rgba(255,255,255,.035);
}

.game-btn--ghost:hover,
.game-btn--secondary:hover {
    border-color: rgba(109,141,255,.55);
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.games-projects {
    padding: 90px 0 110px;
}

.games-section-head {
    margin-bottom: 34px;
}

.games-section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}

.featured-game {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    overflow: hidden;
    border: 1px solid var(--games-line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(19, 28, 54, .92), rgba(9, 14, 29, .94));
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.featured-game__media,
.game-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #02040a;
}

.featured-game__media {
    min-height: 430px;
}

.featured-game__media img,
.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease, filter .55s ease;
}

.featured-game:hover .featured-game__media img,
.game-card:hover .game-card__media img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.03);
}

.featured-game__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 44px;
}

.featured-game__content h3,
.game-card__body h3 {
    margin: 14px 0 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -.02em;
}

.featured-game__content h3 {
    font-size: 38px;
}

.featured-game__content p,
.game-card__body p {
    color: var(--games-muted);
    line-height: 1.7;
}

.featured-game__content p {
    margin-bottom: 24px;
    font-size: 17px;
}

.game-image-label {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    background: rgba(6, 8, 17, .72);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(109,141,255,.23);
    border-radius: 999px;
    background: rgba(109,141,255,.08);
    color: #c7d3ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.game-card {
    overflow: hidden;
    border: 1px solid var(--games-line);
    border-radius: 18px;
    background: var(--games-panel);
    box-shadow: 0 18px 50px rgba(0,0,0,.24);
}

.game-card__media {
    height: 260px;
}

.game-card__body {
    padding: 28px;
}

.game-card__body h3 {
    font-size: 27px;
}

.game-card__body p {
    min-height: 54px;
    margin-bottom: 22px;
}

.games-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .28;
    z-index: -1;
}

.games-hero__glow--one {
    width: 340px;
    height: 340px;
    right: 12%;
    top: 12%;
    background: #6d8dff;
}

.games-hero__glow--two {
    width: 260px;
    height: 260px;
    right: 34%;
    bottom: -4%;
    background: #31d6d0;
}

/* Na herní stránce ruší původní světlý papírový vzhled */
.pozadiStranky {
    background: transparent;
    box-shadow: none;
}

/* Footer ponechá strukturu Tom Design, ale vizuálně naváže na Games */
.spodnipanel {
    border-top: 1px solid var(--games-line);
    background: #03050a;
}

.home-section {
  padding: 62px 54px;
  border-top: 1px solid #edf1f4;
}

/* ===== Video ===== */
.video-section {
  background: #fff;
}

.video-stack {
  max-width: 700px;
  margin: 0 auto;
}

.video-stack > .ratio {
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid #dce3ea;
  border-radius: 20px;
  background: #111827;
  box-shadow: var(--td-shadow);
}

.video-stack iframe {
  display: block;
}

@media (max-width: 991px) {
    .games-hero {
        min-height: 460px;
    }

    .featured-game {
        grid-template-columns: 1fr;
    }

    .featured-game__media {
        min-height: 320px;
    }

    .featured-game__content {
        padding: 32px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .games-hero__inner {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .games-hero h1 {
        font-size: 48px;
    }

    .games-hero p {
        font-size: 16px;
    }

    .games-projects {
        padding: 62px 0 80px;
    }

    .featured-game__media {
        min-height: 240px;
    }

    .featured-game__content,
    .game-card__body {
        padding: 24px;
    }

    .featured-game__content h3 {
        font-size: 31px;
    }

    .home-section {
    padding: 46px 20px;
  }
}

/* ===== Sjednocený navbar Tom Design / Tom Design Games ===== */
:root {
    --td-blue: #0071bc;
    --td-cyan: #0ea5e9;
}

.navbar {
    min-height: 92px;
    padding: 6px 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .logo {
    width: 74px;
    height: 60px;
    object-fit: contain;
}

.navbar .navbar-collapse {
    justify-content: flex-end;
}

.navbar .col-auto {
    margin-right: 7px;
}

.navbar .navbar-toggler {
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.navbar .toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #d9dde2;
    transition: all 0.3s ease;
}

.navbar .navbar-toggler:not(.collapsed) .top-bar {
    transform: translateY(8px) rotate(45deg);
}

.navbar .navbar-toggler:not(.collapsed) .middle-bar {
    opacity: 0;
}

.navbar .navbar-toggler:not(.collapsed) .bottom-bar {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar .navbar-nav a {
    position: relative;
    line-height: 30px;
}

.navbar .nav-link {
    padding: 10px 12px !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    background: transparent;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.015em;
    transform: none !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--td-blue), var(--td-cyan));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    text-decoration: none !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link.active {
    color: #fff !important;
}

.navbar .nav-link img {
    margin-right: 4px;
    vertical-align: middle;
}

.navbar .dropdown-menu {
    overflow: hidden;
    border: 1px solid #e7ebef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 36px rgba(15, 23, 42, 0.16);
}

.navbar .dropdown-item {
    padding: 9px 15px;
    color: #111827;
    text-decoration: none;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #075d98;
    background: #f4f8fc;
    text-decoration: none;
}

.navbar .header-social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0;
    padding-left: 0;
}

.navbar .header-social-icons li {
    margin-right: 7px;
}

.navbar .header-social-icons br {
    display: none;
}

.navbar .social {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar .social:hover {
    transform: translateY(-2px) scale(1.06);
    opacity: 0.9;
}

@media (min-width: 576px) {
    .navbar .logo {
        width: 110px;
        height: 85px;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 76px;
    }

    .navbar .navbar-collapse {
        padding: 12px 0 8px;
    }

    .navbar .header-social-icons {
        justify-content: center;
        padding-top: 8px;
    }
}



/* ===== Cookies - sjednoceno s hlavni stranou Tom Design ===== */
:root {
    --td-blue-dark: #075d98;
    --td-ink: #111827;
    --td-slate: #5f6f82;
    --td-line: #dfe6ee;
}

#cookieModal .btn {
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#cookieModal .btn:hover,
#cookieModal .btn:focus {
    transform: translateY(-2px);
}

#cookieModal .btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--td-blue), var(--td-cyan));
    box-shadow: 0 12px 28px rgba(0, 113, 188, 0.25);
}

#cookieModal .btn-primary:hover,
#cookieModal .btn-primary:focus {
    background: linear-gradient(135deg, var(--td-blue-dark), #0284c7);
    box-shadow: 0 16px 34px rgba(0, 113, 188, 0.32);
}

#cookieModal .modal-content {
    overflow: hidden;
    border: 1px solid var(--td-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

#cookieModal .modal-header {
    border-bottom-color: #edf1f4;
}

#cookieModal .modal-title {
    color: var(--td-ink);
    font-weight: 800;
    letter-spacing: -0.015em;
}

#cookieModal .modal-body {
    color: var(--td-slate);
    line-height: 1.65;
}

#cookieModal .modal-footer {
    border-top-color: #edf1f4;
}

/* ===== Úvodní animace Tom Design Games ===== */
body.games-intro-active {
    overflow: hidden;
}

.games-intro {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility .35s ease;
}

.games-intro--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.games-intro__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

@media (prefers-reduced-motion: reduce) {
    .games-intro {
        display: none;
    }
}

