/* ----------------------------------------------------------------------------------------------------------
    Projekt: CSS Revue
    URL: http://www.cssrevue.com/

    Výstupní zařízení: screen, projection

    Autor: Vít Dlouhý (vit.dlouhy@nuvio.cz), Nuvio (www.nuvio.cz)
    Poslední revize: 2008-04-24, 09:25 GMT+1

    Struktura:
    display; position; float; z-index; overflow; width; height; margin; padding; border; background; align; font;
---------------------------------------------------------------------------------------------------------- */

* {margin:0; padding:0;}
body, div, span, p, a, img, ul, ol, li, table, caption, tbody, tfoot, tr, th, td, form, fieldset, legend, label, dl, dt, dd, blockquote, applet, object, h1, h2, h3, h4, h5 {border:0;}
body {background:#303030 url("../design/bg.gif") 0 0 repeat-x; font:0.75em/1.5 "tahoma",sans-serif; color:#FFF; text-align:center;}

a {color:#A0A0A0;}
a:hover {color:#FFF;}

h1, h2, h3, h4, h5, h6 {margin:15px 0 10px 0;}
p {margin:15px 0;}

table {margin:15px 0; border-collapse:collapse; border-spacing:0; font-size:100%;}
table.width100 {width:100%;}
th {text-align:center; font-weight:bold;}
th, td {padding:3px 5px;}

ul, ol {display:block; margin:15px 0 15px 30px;}
ul ul, ol ol {margin:0; margin-left:20px;}
ol {list-style-type:decimal;}
li {display:list-item;}

dl {margin:15px 0;}
dt {font-weight:bold;}
dd {margin-left:30px;}

fieldset {position:relative; margin:15px 0; padding:10px; border:1px solid #CCC;}
legend {position:absolute; top:-1em; margin:0; font-size:100%; font-weight:bold; color:#000;}

abbr, acronym, .help {border-bottom:1px dotted #CCC; cursor:help;}
del, .del {text-decoration:line-through;}
strong, .strong {font-weight:bold;}
cite, em, q {font-style:italic;}
code, kbd, samp {font-family:monospace; font-size:110%;}
blockquote {margin:15px 20px; font-style:italic;}

hr {display:block; height:1px; margin:10px 0; border:0 solid #CCC; background:#CCC; color:#CCC;}

/* ----------------------------------------------------------------------------------------------------------
Univerzální styly
---------------------------------------------------------------------------------------------------------- */

.clear {clear:both;}
.f-left {float:left !important;} img.f-left {float:left; margin-right:10px;}
.f-right {float:right !important;} img.f-right {float:right; margin-left:10px;}

.t-left {text-align:left !important;}
.t-center {text-align:center !important;}
.t-right {text-align:right !important;}
.t-justify {text-align:justify !important;}

.va-top {vertical-align:top;}
.va-middle {vertical-align:middle;}
.va-bottom {vertical-align:bottom;}

.bigger {font-size:110%;}
.smaller {font-size:95%;}

.high {color:#FCFA00;}
.high2 {color:#C1FF1A;}
.nonhigh {color:#A0A0A0;}

.box {min-height:1px;}
.box:after {display:block; visibility:hidden; clear:both; line-height:0; font-size:0; content:".";}

.nom {margin:0 !important;}
.nomt {margin-top:0 !important;}
.nomb {margin-bottom:0 !important;}

.noscreen {display:none;}

/* ----------------------------------------------------------------------------------------------------------
HTML styly (tabulka, seznam, definice...)
---------------------------------------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------------------------------------
LAYOUT
---------------------------------------------------------------------------------------------------------- */

#main {width:960px; margin:0 auto; text-align:left;}

	#header {position:relative; height:85px; margin-top:15px; padding-top:20px; background:url("../design/header.gif") 100% 0 no-repeat;}

        #logo {position:relative; width:200px; height:65px; margin:0; padding:0; overflow:hidden; font-size:300%;}
        #logo span {display:block; position:absolute; top:0; left:0; z-index:1; width:100%; height:100%; margin:0; padding:0; background:url("../design/logo.gif") 0 0 no-repeat; cursor:pointer;}
        #logo a {color:#FFF;}
        
        #slogan {position:absolute; top:75px; right:0;}
        #slogan p {position:relative; width:310px; height:15px; margin:0; padding:0; overflow:hidden; font-size:100%; color:#FFF; text-transform:uppercase;}
        #slogan p span {display:block; position:absolute; top:0; left:0; z-index:1; width:100%; height:100%; margin:0; padding:0; background:url("../design/slogan.gif") 0 0 no-repeat;}

    #nav-top {width:960px; height:5px; background:#050505 url("../design/nav-top.gif") 0 100% no-repeat; font-size:0;}
    #nav-bottom {width:960px; height:5px; background:#050505 url("../design/nav-bottom.gif") 0 0 no-repeat; font-size:0;}
    #nav {padding:5px 10px 5px 0; background:#050505 url("../design/nav.gif") 0 0 repeat-y; color:#909090;}
    
        #nav ul {float:left; margin:0; padding:0; list-style:none;}
        #nav ul li {display:block; float:left; margin:0; padding:0;}
        #nav ul li a {display:block; float:left; padding:0 15px 0 10px; background:url("../design/nav-link.gif") 100% 8px no-repeat; color:#909090; font-weight:bold; text-decoration:underline;}
        #nav ul li a:hover {color:#C1FF1A;}

    #page {padding:10px 0;}

    	#content {float:right; width:782px; overflow:hidden;}
    
            #content h3 {color:#C1FF1A; font-size:120%;}
            #content h4 {color:#C1FF1A; font-size:100%;}
            
            #content ul.ul-style01 {margin:15px 0; padding:0; list-style:none;}
            #content ul.ul-style01 ul {margin:0; margin-left:15px; color:#C0C0C0; list-style:none;}
            #content ul.ul-style01 li {margin:0; padding:0; padding-left:10px; background:url("../design/arrow.gif") 0 5px no-repeat;}
    
    	#sidebar {float:left; width:168px; overflow:hidden;}
    	
            #send {position:relative; width:168px; height:35px; margin:0; margin-bottom:10px; padding:0; overflow:hidden; font-size:100%; font-weight:bold; text-transform:uppercase;}
            #send span {display:block; position:absolute; top:0; left:0; z-index:1; width:100%; height:100%; margin:0; padding:0; background:url("../design/send.gif") 0 -35px no-repeat; cursor:pointer;}
            #send a {color:#FFF;}
            #send a:hover span {background-position:0 0;}
        	
            #sidebar-top {width:168px; height:5px; background:url("../design/sidebar-top.gif") 0 100% no-repeat; font-size:0;}
            #sidebar-bottom {width:168px; height:5px; background:url("../design/sidebar-bottom.gif") 0 0 no-repeat; font-size:0;}
            #sidebar-in {width:168px; padding:5px 0; background:#050505;}
    	   
                #sidebar-in h3.title {margin-top:0; margin-bottom:10px; padding:5px 5px 5pxpx 5px; background:#C1FF1A url("../design/sidebar-title.gif") 0 100% repeat-x; font-size:100%; text-transform:uppercase; color:#000 !important;}
    
                #sidebar ul#subnav {margin:10px; padding:0; list-style:none;}
                #sidebar ul#subnav li {display:inline; margin:0; padding:0;}
                #sidebar ul#subnav li a {display:block; margin:0; padding:0; padding-left:17px; background:url("../design/star-02.gif") 0 3px no-repeat; text-decoration:underline;}
                
                ol#top10 {margin:10px 0; padding:0; list-style:none;}
                ol#top10 li {margin:0; padding:0; color:#909090;}
    
                #sidebar .padding {padding:0 10px 10px 10px;}
                
                #search-input {width:108px; padding:3px; border:1px solid #606060; background:#303030; color:#FFF; font:normal 95%/1.2 "tahoma",sans-serif;}
                #search-input:focus {border:1px solid #808080;}
                #search-submit {padding:2px; border:1px solid #606060; background:#303030; color:#FFF; font:bold 95%/1.2 "tahoma",sans-serif;}
    
                .h-02 {font-size:140%;}
                .h-01 {font-size:120%;}
                .l-01 {font-size:95%;}
                .l-02 {font-size:85%;}

	#footer {clear:both; padding:10px 0; border-top:1px solid #202020; color:#707070;}
	#footer p {margin:0;}
	#footer a {color:#707070;}
	#footer a:hover {color:#C1FF1A;}
	
	   #ico-logo {padding:5px 0 5px 20px; background:url("../design/ico-logo.gif") 0 6px no-repeat;}
	   
	   a.ico-rss {margin-left:10px; padding:1px 0 1px 20px; background:url("../design/ico-rss.gif") 0 0 no-repeat; color:#FFF !important;}
	   a:hover.ico-rss {color:#C1FF1A !important;}

#pagination-active {padding:2px 5px; background:#C1FF1A; color:#000;}
ol#top10 strong {display:block; clear:both; float:left; width:45px;}
ol#top10 a {display:block; float:right; width:100px;}

/* ----------------------------------------------------------------------------------------------------------
Stránka: ÚVOD
---------------------------------------------------------------------------------------------------------- */

.ref-boxes {display:grid; grid-template-columns:repeat(3, 254px); gap:10px; margin-bottom:10px;}
.ref-box {width:254px; overflow:hidden; background:#050505;}

.ref-top, .ref-bottom {display:none;}
.ref {box-sizing:border-box; border:2px solid #FFF; border-radius:5px; overflow:hidden;}
.ref img {display:block; margin:0 auto;}

    .ref h2, .ref h3 {margin:0; padding:0 7px 7px 7px; font-size:100% !important;}
    .ref h2 a, .ref h3 a {color:#C1FF1A; text-decoration:underline;}
    .ref h2 a:hover, .ref h3 a:hover {color:#FFF;}
    
    .ref-info {padding-bottom:3px; border-bottom:1px solid #404040; color:#FFF; text-align:center; font-size:95%;}
    .ref-info a {color:#C1FF1A;}
    .ref-info a:hover {color:#FFF;}
    .ref-info span {margin:0; padding-right:10px;}
    
    .ico-comment {padding-left:13px; background:url("../design/ico-comment.gif") 0 2px no-repeat;}
    .ico-views {padding-left:11px; background:url("../design/ico-views.gif") 0 2px no-repeat;}
    .ico-votes {padding-left:13px; background:url("../design/ico-votes.gif") 0 0 no-repeat;}
    .ico-resume {padding-left:11px; background:url("../design/ico-resume.gif") 0 2px no-repeat;}    
    
/* ----------------------------------------------------------------------------------------------------------
Stránka: DETAIL
---------------------------------------------------------------------------------------------------------- */

#detail {padding-bottom:10px;}

    #detail-screen {float:left; width:255px;}

        #detail-screen .ref {padding-top:32px;}

    #detail-info {float:right; width:520px;}
    
        #detail-info .title-top {width:520px; height:5px; background:url("../design/detail-title-top.gif") 0 100% no-repeat; font-size:0;}
        #detail-info .title-bottom {width:520px; height:5px; margin-bottom:7px; background:url("../design/detail-title-bottom.gif") 0 0 no-repeat; font-size:0;}
        #detail-info .title {margin:0; padding:5px 10px; background:url("../design/detail-title.gif") 0 0 repeat-y; font-size:120%; color:#FFF;}
    
        #detail-info table {margin:0; padding:0; width:520px;}
        #detail-info table th {width:100px; text-align:right;}
        #detail-info table th, #detail-info table td {padding:7px 5px;} 
        #detail-info table tr.bg th {background:url("../design/detail-table-th.gif") 0 0 no-repeat;}
        #detail-info table tr.bg td {background:url("../design/detail-table-td.gif") 100% 0 no-repeat;}
        #detail-info table tr.bg2 th, #detail-info table tr.bg2 td {font-size:120%;}
        #detail-info table tr.bg2 td {color:#C1FF1A;}

        .inp-text {box-sizing:border-box; width:310px; height:25px; padding:6px 5px; border:0; background:#FFF url("../design/input-text.gif") 0 0 no-repeat; color:#000; font:normal 95%/1.2 "tahoma",sans-serif;}
        .inp-textarea {width:640px; height:110px; padding:5px; border:0; background:#FFF url("../design/input-textarea.gif") 0 0 no-repeat; color:#000; font:normal 100%/1.2 "tahoma",sans-serif;}
        .inp-submit {padding:4px 6px; padding-right:20px; border:none; background:#C1FF1A url("../design/submit.gif") 95% 50% no-repeat; color:#000; font:bold 95%/1.2 "tahoma",sans-serif;}

/* ----------------------------------------------------------------------------------------------------------
Stránka: KOMENTÁŘE
---------------------------------------------------------------------------------------------------------- */

.comment-top {width:782px; height:4px; background:url("../design/comment-top.gif") 0 100% no-repeat; font-size:0;}
.comment-bottom {width:782px; height:4px; background:url("../design/comment-bottom.gif") 0 0 no-repeat; font-size:0;}
.comment {clear:both; padding:7px;}
.comment.bg {padding:5px 7px; background:#202020;}
.comment.bg .comment-info {border-bottom:1px solid #303030;}
.comment-avatar {float:left; width:70px;}
.comment-avatar img {display:block; border:1px solid #404040;}
.comment-text {float:right; width:695px; color:#C0C0C0;}
.comment-text p {margin:0;}

    .comment-info {margin-bottom:5px !important; padding-bottom:5px; border-bottom:1px solid #404040; color:#FFF; font-size:95%;}
    .comment-info a {color:#82B400;}
    .comment-info a:hover {color:#C1FF1A;}
    
/* ----------------------------------------------------------------------------------------------------------
Nezařaditelné
---------------------------------------------------------------------------------------------------------- */

.title-top {width:782px; height:5px; background:url("../design/title-top.gif") 0 100% no-repeat; font-size:0;}
.title-bottom {width:782px; height:5px; margin-bottom:10px; background:url("../design/title-bottom.gif") 0 0 no-repeat; font-size:0;}
.title {margin:0; padding:5px 10px; background:url("../design/title.gif") 0 0 repeat-y; font-size:120%; color:#FFF !important;}
.title span {color:#FCFA00 !important;}

.pagination {clear:both; margin:30px 0; text-align:center; line-height:2.2;}
.pagination strong {font-weight:bold; color:#C1FF1A;}
.pagination a, .pagination strong {display:inline-block; min-width:24px; padding:4px 8px;}
#sidebar ul#subnav li {padding:4px 0;}
ol#top10 li {padding:3px 0;}
#nav ul li a {padding-top:4px; padding-bottom:4px;}

#nav a {float:left;	padding-left:15px; background:url("nav-tab-l.gif") 0 0 no-repeat;}
#nav a span {float:left; display:block; padding:10px 15px 10px 0; background:url("nav-tab.gif") 100% 0 no-repeat;}

.pagination a {color:#FFF;}
.pagination a:hover {color:#C1FF1A;}

.ico-prev {padding-left:10px; background:url("../design/ico-prev.gif") 0 5px no-repeat;}
.ico-next {padding-right:10px; background:url("../design/ico-next.gif") 100% 5px no-repeat;}
a.ico-prev, a.ico-next {color:#C1FF1A;}
a:hover.ico-prev, a:hover.ico-next {color:#FFF;}

/* ----------------------------------------------------------------------------------------------------------
RESPONZIVITA - tablet a mobil (desktop ≥ 960 px zůstává beze změny)
---------------------------------------------------------------------------------------------------------- */

/* Plynulé zmenšení obalu - zachová desktop, dovolí stránce dýchat pod 960 px */
@media (max-width: 959px) {

    #main {width:auto; max-width:960px; padding:0 10px; box-sizing:border-box;}

    /* Hlavička - schovat dekorativní GIF pozadí (kotví se na pravý okraj 960px boxu) */
    #header {background-position:200% 0;}

    /* Navigace - schovat dekorativní rohy a nav.gif (na úzkém viewportu by jeho levý pás přidával falešnou tlustší čáru), nahradit CSS rámečkem 2px #505050 */
    #nav-top, #nav-bottom {display:none;}
    #nav {width:auto; border-radius:5px; border:2px solid #505050; padding:5px 10px; background-image:none;}
    #nav .f-right {float:none !important; display:block; margin:0 0 5px 0;}

    /* Menu - bez teček mezi položkami (nav-link.gif), jen mezera z paddingu */
    #nav ul li a {background-image:none;}
    #nav ul li:first-child a {padding-left:0;}

    /* Page = content + sidebar pod sebe */
    #content {float:none; width:auto; overflow:visible;}
    #sidebar {float:none; width:auto; margin-top:20px;}

    /* Sidebar - rohy a šířka, 1px #303030 rámeček (jako sidebar-top.gif na desktopu) */
    #sidebar-top, #sidebar-bottom {display:none;}
    #sidebar-in {width:auto; border-radius:5px; border:1px solid #303030;}
    #sidebar ul#subnav {margin:10px 15px;}

    /* Vyhledávací input - roztáhnout na celou šířku boxu, OK tlačítko vpravo */
    #search-form .padding {display:flex; gap:5px;}
    #search-input {flex:1; min-width:0; box-sizing:border-box;}
    #search-submit {flex-shrink:0;}

    /* Boxíky webů - 2 sloupce, obrázek zaplní šířku */
    .ref-boxes {grid-template-columns:repeat(2, 1fr);}
    .ref-box {width:auto;}
    .ref img {width:100%; max-width:100%; height:auto;}

    /* Nadpis náhledu (např. Bata.com) - větší a tappable */
    .ref h2, .ref h3 {font-size:120% !important; padding:8px 10px 10px 10px;}
    .ref h2 a, .ref h3 a {display:inline-block; padding:4px 0;}

    /* Sidebar TOP 10 - bez floatu, číslo a název přirozeně inline */
    ol#top10 strong, ol#top10 a {float:none; display:inline; width:auto; clear:none;}

    /* Tap targets - sidebar a paginace větší klikací plocha (a11y min 24×24) */
    #sidebar ul#subnav li {padding:6px 0;}
    #sidebar ul#subnav li a {padding-top:6px; padding-bottom:6px;}
    ol#top10 li {padding:6px 0;}
    .pagination a, .pagination strong {display:inline-block; min-width:24px; padding:6px 8px;}
    #nav ul li a {padding-top:6px; padding-bottom:6px;}

    /* Nadpisy - 2px #505050 rámeček (jako title.gif na desktopu), suppress gif aby vlevo nezdvojoval.
       Sidebar h3.title má vlastní zelené pozadí - cílíme jen na .title v hlavním obsahu. */
    .title-top, .title-bottom {display:none;}
    #content .title, #detail-info .title {width:auto; border-radius:5px; border:2px solid #505050; background:#050505; background-image:none;}

    /* Komentáře - 1px #303030 rámeček (jako comment-top.gif na desktopu) */
    .comment-top, .comment-bottom {display:none;}
    .comment {width:auto; padding:7px;}
    .comment.bg {border-radius:5px; border:1px solid #303030;}
    .comment-text {float:none; width:auto;}
    .comment-avatar {float:none; width:auto; margin-bottom:5px;}

    /* Detail webu - náhled + info pod sebe */
    #detail-screen {float:none; width:auto; max-width:280px; margin:0 auto;}
    #detail-info {float:none; width:auto; margin-top:15px;}
    #detail-info .title-top, #detail-info .title-bottom {display:none;}
    #detail-info .title {width:auto; border:2px solid #505050; background:#050505; background-image:none;}
    /* Tabulka info - GIF pozadí (detail-table-th/td.gif) má fixní šířku a na rozšířené tabulce vzniknou viditelné mezery; nahradíme čistým CSS pozadím */
    #detail-info table tr.bg th, #detail-info table tr.bg td {background-image:none; background-color:#1a1a1a;}
    #detail-info table {width:100%;}
    #detail-info table th {width:auto; text-align:left; padding-right:10px;}

    /* Formulář komentáře/tipu - input full-width, bez GIF pozadí, jemné zakulacení */
    .inp-text {width:100%; max-width:100%; height:auto; padding:8px; background-image:none; border-radius:5px; box-sizing:border-box;}
    .inp-textarea {width:100%; max-width:100%; height:auto; min-height:150px; padding:8px; background-image:none; border-radius:5px; box-sizing:border-box;}
    #tip-form select, #komentar-form select, #o-webu-form select {width:100% !important; max-width:100%; padding:8px; border-radius:5px;}
    #komentar-form table, #komentar-form tbody, #komentar-form tr, #komentar-form td,
    #tip-form table, #tip-form tbody, #tip-form tr, #tip-form td,
    #o-webu-form table, #o-webu-form tbody, #o-webu-form tr, #o-webu-form td {display:block; width:auto;}
    #komentar-form td, #tip-form td, #o-webu-form td {padding:3px 0;}

    /* Footer */
    #footer p.f-right {float:none !important; text-align:left;}

    /* Pagination - delší seznam stránek se zalomí čitelně */
    .pagination {line-height:2;}
}

/* Mobil - boxíky do jednoho sloupce, hlavička kompaktnější */
@media (max-width: 599px) {

    .ref-boxes {grid-template-columns:1fr;}
    .ref-box {max-width:none; margin:0 !important;}

    /* Hlavička - slogan jako text pod logem (originální GIF se nevejde) */
    #header {height:auto; padding-bottom:10px; background-image:none;}
    #slogan {position:static; margin-top:5px;}
    #slogan p {width:auto; height:auto; overflow:visible;}
    #slogan p span {display:none;}
}
