/*! HTML5 it.danka.pl */

html {
    color: #222;
    font-size: 62.5%;
    line-height: 1.4;
}


::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}
 
/* ============ Definiowanie kolorów linków =========== */
a {
    color: #fff;
}
a:hover, #lincol {
    color: #00f;
}

#lincol-bl {
    color: #000;
}

/* ========== koniec kolorów linków ================== */

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



#end-line {
    display: block;
    height: 1px;
    border: 0;
    border-top: 20px solid #A900C3;
    margin: 4em 0;
    padding: 0;
}



audio,
canvas,
iframe,
img,

#img-gal {
    margin: 2rem 2rem;
    border-radius: 30px;

}

svg,

video {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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

/*  =========================================================
    Stopka adresowa strony
    ========================================================= */

.ramka {
    font-weight: bold;
    display: block;
    text-align: center;
    color: #fff;
    background: #A900C3;
    border-radius: 10px;
    padding: .5em;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
*{
    box-sizing: border-box;
    
}

body {
    font-size: 1.6rem;
}

#banner, #main {
    margin-top: 1rem;
    float: left;
    width: 100%;
}

#navtop, .navtop {
    margin-top: 3rem;
    border-radius: 20px;
    float: left; 
    width: 100%;
}


#foto {
    margin: 0 2rem 2rem 2rem;
    float: right;
}

marquee {
    font-size: 4rem;
    font-weight: bold;
    color: #cc0000;
}

/*iframe {
    display: block;
    float: none;
    width: 750px;
    height: 200px;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
}*/

/*#logo {
    margin: auto;
    display: block;
}*/

#navtop ul{
    padding-left: 0;
    margin-left: 0;
}

#navtop li {
    list-style: none;
    display: block;
    border-bottom: .2rem solid #fff;
}

#navtop a:link, #navtop a:visited{
    text-decoration: none;
    /*text-transform: uppercase;*/
    font-weight: bold;
    display: block;
    text-align: center;
    background: #A900C3;    /*#882d61;*/
    color: #fff;
    padding: 1.1rem 0;
    border-radius: 15px;

}

#navtop a:hover, #navtop a:active, #navtop a:focus {
    background: #3c009b;/* #2d882d;*/
}


#text {
    padding: 0 1.7rem;
    text-align: justify;
    hyphens: auto;

}
#text-date {
    padding: 10 1.7rem;
    text-align: justify;
    font-size: 30px;
}

#text-center {
     text-align: center;
     width: 100%;
}

#banner img {
    max-width: 100%;
    height: auto;
}

#banner img {
    display: block;
    margin: auto;
/*    box_shadow 
    -webkit-box-shadow: 2rem 2rem 4rem 0rem rgba(0,0,0,.4); 
          box-shadow: 2rem 2rem 4rem 0rem rgba(0,0,0,.4);
    border-radius: 50%;*/
    background-clip: padding-box;
    /*border: 1rem solid black;*/
}
#banner img:hover {
    /*cursor: crosshair;*/
    /*opacity: .2;*/
/*    -webkit-transform: scale(1.1) scale(.6);
      -ms-transform: scale(1.1) rotate(-80deg);
          transform: scale(1.1) scale(.1);*/

  -webkit-animation: myanim 3s infinite;
          animation: myanim 3s infinite;

}





#links {
    list-style: none;
    padding: 0;
}



#links a:link, #links a:visited{
    text-decoration: none;
   /* text-transform: uppercase;*/
    font-weight: bold;
    display: block;
    text-align: center;
    background: #aa7939; /*#882d61;*/
    color: #ccc;
    padding: 1.1rem 2rem;
    margin-bottom: .1rem;
    border-left: 0rem solid yellow;

}

#links a:hover, #links a:active, #links a:focus {
    background: #2d882d;
   /* padding-left: 3rem*/
    border-left: 1rem solid yellow;
}


#sidebar ul{
    padding: .8em 0;
    /*margin-left: 0;*/
}

#sidebar li {
    list-style: none;
    display: block;
   
}







/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 30em) {

    #navtop li {
        width: 50%;
        float: left; 
    }

    #navtop li:nth-child(odd) {
        border-right: .1rem solid #fff;
    }
}

@media only screen and (min-width: 60em) {

    #navtop li {
        width: 33.3%;
        float: left; 
        }
    #navtop li:nth-child(even) {
        border-right: .1rem solid #fff;
    }
    #navtop li:nth-last-child(1) {
        border-right: none;
    }
}

@media only screen and (min-width: 71.25em) {
    #page {
        width: 71.25em;
        margin: auto;
    }
}

@media only screen and (min-width: 71.25em) {

    * {
        -webkit-transition: all 0.3s ease-out; 
    transition: all 0.3s ease-out;
    }

    #text {
        float: left;
        width: 100%;

    }



    #sidebar {
        float: left;
        width: 35%;
    }
}


@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}


@-webkit-keyframes myanim {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0; }
}
@keyframes myanim {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0; }
}



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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

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

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

    thead {
        display: table-header-group;
    }

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

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

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

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