/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 95%;
    line-height: 1;
    color:#555;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #757575;
    color:#fff;
    text-shadow: none;
}

::selection {
    background: #757575;
    color:#fff;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */






#wrapper{
    width: 980px;
    margin: 0 auto;
    background-image: url(../img/anna-godlewska-siciarek.jpg); background-position: 0 35px; background-repeat: no-repeat;
}

#topmenu {width:100%; height:34px; border-bottom: 1px solid #ccc; color:red;}

.topmenulist {float:right;}
.topmenulist {margin: 0; padding: 12px 0 0 0 ;}
.topmenulist li{float:left;}

#top {height:235px;margin-left:45%; padding-top:70px;}

#rehabText {display:block; width:495px; height: 103px; background: url(../img/text-rehabilitacja-ruchowa.png) no-repeat;}
#cytat {width:431px; height: 84px; margin-top:30px; background: url(../img/text-wiktor-dega.png) no-repeat;}

.turnusy {margin:20px 0 20px 0; padding:10px 20px;}

h1, h2, h3, h4 {margin:0; padding:0; font-weight:normal;}

h1 {font-size:1.6em; background:#d41442; color:#fff; text-align:right; padding: 10px 10px 5px 10px;}
h2 {font-size:1.3em; padding: 10px 0;}
h3 {font-size:1.45em;}
h3 {font-family: "Arial Narrow", Arial;}

a, a:focus, a:visited {color:#d41442;}
a:hover {text-decoration:none;}

#spec a, #spec a:focus, #spec a:visited {color:#555; text-decoration:none;}


#top p {margin:0;padding:0;}

p,ul {line-height:1.2em;}

/* top menu */ 
.topmenulist a{display:block; margin-right:20px; font-size:1.15em; text-transform:lowercase; text-decoration:none; color:#808080;}


/* 3 middle links */ 
#paths {width:100%;}
#paths ul {float: right;}
#paths li {float: left; width:185px; margin-left:10px; background:#d41442;}

a.labelPath {line-height:1.5em;}
a.labelPath {border:1px solid #d41442;}
a.labelPath {display:block; padding: 14px 12px 8px 12px; background:#f7f7f7; color:#d41442; text-decoration:none;}
a.labelPath:active, a.labelPath:focus, a.labelPath:hover, a.on {background:#ff1442; color:#fff;}
a.on {background:#d41442; color:#fff;}

.labelPath {display:block; font-size:1em;}
.labelPath span.labelDesc {display:block; font-size:2em;}

/* transitions */
a, a h3, .turnusy {
    -webkit-transition: background 1s ease;
    -moz-transition: background 1s ease;
    -ms-transition: background 1s ease;
    -o-transition: background 1s ease;
    transition: background 1s ease;
}


/* breadcrumbs */

.breadcrumbs {text-align:right; font-size:.8em;
    margin:5px 0;
    padding-right: 10px;
}
.breadcrumbs a {color:#808080; text-decoration:none;}


/* 4 specjalizacje */ 

div#spec {padding-bottom:10px;

background-image: linear-gradient(left , #FFFFFF 0%, #F2F2F2 99%, #FFFFFF 99%);
background-image: -o-linear-gradient(left , #FFFFFF 0%, #F2F2F2 99%, #FFFFFF 99%);
background-image: -moz-linear-gradient(left , #FFFFFF 0%, #F2F2F2 99%, #FFFFFF 99%);
background-image: -webkit-linear-gradient(left , #FFFFFF 0%, #F2F2F2 98%, #FFFFFF 98%);
background-image: -ms-linear-gradient(left , #FFFFFF 0%, #F2F2F2 99%, #FFFFFF 99%);

background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    color-stop(0, #FFFFFF),
    color-stop(0.99, #F2F2F2)
    color-stop(0, #FFFFFF),
    );    
}

div.specjalizacja {position:relative; width:49.4%;margin-top:10px;}
div.spec-even {float:left;}
div.spec-odd {clear:both;float:right;}

div#spec a:hover h3 {background:#ff1442;}
div.specjalizacja h3 {width:96%; height:32px; background:#d41442; padding:4px 4% 0 0;}
div.specjalizacja h3 {font-size:1.8em; text-align:right; color: #fff; vertical-align:bottom;}
div.specjalizacja .imgMini {float:left;}
div.specjalizacja .imgMini {position:relative; top:-28px; left:10px;}

div.specjalizacja div.opis {  width:66%; margin-left:30%; margin-top:10px; font-size: .85em;}

#blog .imgMini {float:left;}
#blog .imgMini {position:relative; top:-28px; left:10px;}
#blog div.opis {width:70%; margin-left:27%; margin-top:10px;}


/* turnusy */ 

.turnusy {background:#d41442; color:#fff; }
.turnusy h3 { padding-bottom:10px; font-size:2em; color: #fff;}
.turnusy a {color: #fff; text-decoration:none;}
.turnusy:hover {background:#f41442;}


/* terapie */
#terapia {}
#terapia .entry {width:50%; margin:20px auto;}


/* turnus */
#turnus {}
#turnus .entry {width:50%; margin:20px auto;}


/* wpisy */
#invitation {clear:both;margin-left:45%;margin-bottom:20px; padding:0 10px 0 0;}

#blog {clear:both;margin-left:45%;margin-bottom:20px; padding:0 ;}

#article{
    padding: 0 10px 10px 10px;
    float: left;
}

.sidebar{
    display:none;
	margin-top:10px;
	margin-bottom:10px;
	padding:10px;
    font-size: 14px;
    list-style: none;
    background: #e4e4e4;
}

/* footer */

footer{
    width:100%;
    border-top: 1px solid #ccc;
    padding: 10px 0;
    background: url(../img/ags-logo.jpg) 50% 8px no-repeat #fff;
}

.block {width:37%; height:115px; margin-top:10px; overflow: none; font-size:.8em;}
.blockleft {float:left; margin-left:4%;}
.blockright {float:right; margin-right:4%;}

div.block ul{ 
    margin:10px 0 0 0; padding:0; padding-bottom: 10px;
    list-style-type: square;
}

footer p {margin:0;}
footer p.topic {font-weight: bold;}

#ags-punkty {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-align:center;
font-size: 24px;
    padding: 5px 0;
}


/* tabele */

table {width:100%;}
table th {padding:7px 10px;border:2px solid #fff;background:#d41442; color: #fff; text-align:left;}
table td {padding:7px 10px;border:2px solid #fff;background:#e6e6e6; color: #4d4d4d;}
table td+td {width:22%;text-align:right;}
table td+td+td {width:22%;text-align:right;}

table th+th {width:22%;text-align:right;}
table th+th+th {width:22%;text-align:right;}


.cb {clear:both;}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
