* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;
    font-family: 'Signika', sans-serif;
    color: darkslateblue;
}

h1, h2, h3 {
    font-family: 'Oxygen', sans-serif;
}

#page {
    background-color: cornsilk;
}

/*definiujemy układ naszych elementow w sekcji*/

#page > header {
    height: 19rem;
    background-image: url("img/trening_na_caly_tydzien.png");
    background-size: 35% 75%;
    background-repeat: no-repeat;
}

#page > nav {
    width: 100%;
    height: 7rem;
    background-color: cornflowerblue;
}

#page > main {
    width: 100%;
    float: left;
}

#page > footer {
    clear: both;
    background-color: crimson;
}

/*formatowanie sekcji nagłowkowej*/

#page > header:before {
    content: "";
    display: block;
    height: 1rem;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
}

/*dzielimy baner w headerze*/

#banner {
    width: 70%;
    float: left;
}

#search {
    width: 30%;
    float: left;
}

#banner h1 {
    font-size: 4rem;
    color: crimson;
    font-weight: bold;
    text-align: right;
    margin-top: 5.7rem;
    letter-spacing: 0.3rem;
}

#banner h2 {
    font-family: 'Oxygen', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: darkslateblue;
    margin-top: 1rem;
}

#search {
    background-image: url("img/trening_silowy.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    height: 100%;
    border-left: 1.3rem solid rgba(17, 82, 222, 0.1);
    box-sizing: border-box;
}

/*przycisk szukaj*/

#search a { 
    display: block;
    font-size: 1.3rem;
    text-align: center;
    text-decoration: none;
    color: dodgerblue;
    font-family: 'Oxygen', sans-serif;
    font-weight: bold;
    border: 0.2rem solid rgba(213, 28, 230, 0.1);
    border-radius: 1rem;
    width: 40%;
    margin-top: 4rem;
    margin-left: 3.5rem;
    line-height: 3rem;
    transform: scale(1);
    transition: 0.9s;
}

#search a:hover {
    background-color: rgba(232, 37, 232, 0.5);
    color: antiquewhite;
    transform: scale(1.2);
}

/*formatowanie tresci*/

main > article {
    padding: 2rem 4rem;
    font-size: 1.6rem;
}

article h1 {
    font-size: 2.4rem;
    font-weight: normal;
    text-transform: uppercase;
}

article p {
    margin: 2rem 0;
    line-height: 2.7rem;
}

/*dzielimy tresc*/

#tresc {
    width: 60%;
    float: left;
}

#rozgrzewka {
    width: 40%;
    float: left;
    padding: 0;
    margin-bottom: 4rem;

}
#rozgrzewka > object {
    margin-left: 6rem;
}

/*kolumny treści*/

#lewa {
    padding-top: 2rem;
    float: left;
    width: 30%;
}

#prawa {
    float: left;
    width: 30%;
    padding-left: 6rem;
    padding-bottom: 6rem;
    padding-top: 2rem;
}

#galeria {
    float: right;
    width: 25%;
    padding-right: 2.5rem;
}

#galeria > img {
    opacity: 0.8;
    width: 300px;
    height: 220px;
    transition: width 2s, height 2s, transform 2s;
}

#galeria > img:hover {
    opacity: 1;
    width: 350px;
    height: 270px;
    
}

/*formatowanie sekcji nav*/

#page > nav ul {
    height: 7rem;
    display: block;
    width: 105rem;
    margin: 0 auto;
    background-color: cornflowerblue;
}

#page > nav li {
    list-style-type: none;
    float: left;
    height: 7rem;
    width: 15rem;
    background-color: white;
}

#page > nav a {
    display: block;
    border-left-style: inset; 
    border-left-color: rgba(255, 255, 255, 0.1);
    padding:  2.35rem 0;
    text-align: center;
    text-decoration: none;
    color: bisque;
    background-color: blueviolet;
    letter-spacing: 0.1rem;
    font-size: 1.8rem;
    font-family: 'Signika', sans-serif;
    transition: all 0.4s;
}


/*efekty po najechaniu*/

#page > nav a:visited {
    color: bisque;
}

#page > nav a:hover {
    background-color: crimson;
}

/*stopka*/

#page > footer p {
    font-family: 'Signika', sans-serif;
    font-size: 2rem;
    color: cornsilk;
    text-align: center;
    line-height: 5rem;
    font-weight: bold;
}

#page > footer a {
    text-align: center;
    color: cornsilk;
    text-decoration: none;
}

a.ad > {
    text-align: right;
    margin-right: 100px;
    font-size: 1.8rem;
    text-decoration: none;
}
