/* reset all */

html {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    font: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a,
img {
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    display: inline-block;
}


/* body set-up */

body {
    font-family: 'Arial', sans-serif;
    font-size: .875rem;
    line-height: 1.4;
    color: #3F3F3E;
    background: #fff;
    font-weight: normal;
}


/* main style */

a {
    color: inherit;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

u {
    text-decoration: underline;
}

a:hover,
a:focus {
    outline: none;
    text-decoration: underline;
}

p {
    margin: 0 0 .625rem;
}

h1 {
    display: block;
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1;
    margin: 10px 0 0;
}

h1 span {
    font-size: 0.7em;
    font-weight: normal;
}

h2 {
    text-align: left;
    font-size: 1rem;
    line-height: 1;
    margin: 0 0 .625rem;
}

h3 {
    font-size: 2.4rem;
    color: #3f2874;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: 'Raleway', sans-serif;
    text-align: center;
}

h4 {
    font-size: 1.390rem;
    line-height: 1;
    margin: 0;
font-weight: normal;
}

ul {
    padding: 0;
    margin-bottom: .625rem;
    list-style: none;
}

ul li {
    padding-left: .937rem;
}

ul li:before {
    content: "\2022";
    float: left;
    margin-left: -.937rem;
    font-size: 1.125rem;
    line-height: 1;
    color: #3F3F3E;
}


/* layout  */

#wrapper {
    display: block;
    max-width: 700px;
    margin: .625rem auto;
    border: 1px solid #000;
    position: relative;
}

header {
    background: #4F256F;
    padding: .937rem;
}

header a {
    display: block;
    margin: 0 auto .625rem;
    width: 13.437rem;
}

header img {
    display: block;
    max-width: 100%;
}

header p {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}


article {
    padding: .937rem;
    background: #FCF9E7;
    position: relative;
}

article > p:nth-of-type(1),
article > p:nth-of-type(2) {
    text-align: center;
}

element {
    display: block;
    margin: 0 -.937rem .937rem;
    ;
    background: #76C1A2;
    color: #fff;
    padding: .937rem .937rem 1.25rem;
}

article section:nth-of-type(1) {
    width: 50%;
    float: left;
}

article section:nth-of-type(2) {
    width: 50%;
    float: right;
}

/*--use clearfix when float get's overflowed--*/

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}


/*----------------- footer --------------------*/

/*aside {
    background: #FCF9E7;
    padding: 0;
    width: 50%;
    float: left;
    position: relative;
    top: -90px;
    margin-bottom: -80px;
}

aside > a img {
    max-width: 270px;
}

aside p img {
    width: .875rem;
    margin: 0 .312rem;
}

aside p {
    margin: 0;
}*/

aside{
    margin: .625rem 0 0;
}
aside p img{
   width: 14px;
}
aside>a{
    float: right;
}
aside p{
    float: left;
    margin: 4.375rem 0 0;
}
/*--use when you have phone number--*/

footer span {
    white-space: nowrap;
}


/**** Slider layout *****/

@-webkit-keyframes slidy {
    0% {
        left: 0%;
    }
    7% {
        left: 0%;
    }

    10% {
        left: -100%;
    }
    17% {
        left: -100%;
    }

    20% {
        left: -200%;
    }
    27% {
        left: -200%;
    }

    30% {
        left: -300%;
    }
    37% {
        left: -300%;
    }

    40% {
        left: -400%;
    }
    47% {
        left: -400%;
    }

    50% {
        left: -500%;
    }
    57% {
        left: -500%;
    }

    60% {
        left: -600%;
    }
    67% {
        left: -600%;
    }

    70% {
        left: -700%;
    }
    77% {
        left: -700%;
    }

    80% {
        left: -800%;
    }
    87% {
        left: -800%;
    }

    90% {
        left: -900%;
    }
    97% {
        left: -900%;
    }

    100% {
        left: -1000%;
    }
}

@keyframes slidy {
    0% {
        left: 0%;
    }
    7% {
        left: 0%;
    }

    10% {
        left: -100%;
    }
    17% {
        left: -100%;
    }

    20% {
        left: -200%;
    }
    27% {
        left: -200%;
    }

    30% {
        left: -300%;
    }
    37% {
        left: -300%;
    }

    40% {
        left: -400%;
    }
    47% {
        left: -400%;
    }

    50% {
        left: -500%;
    }
    57% {
        left: -500%;
    }

    60% {
        left: -600%;
    }
    67% {
        left: -600%;
    }

    70% {
        left: -700%;
    }
    77% {
        left: -700%;
    }

    80% {
        left: -800%;
    }
    87% {
        left: -800%;
    }

    90% {
        left: -900%;
    }
    97% {
        left: -900%;
    }

    100% {
        left: -1000%;
    }
}

#wrapper > section {
    overflow: hidden;
    position: relative;
    z-index: 6;
}

figure img {
    width: 9.091%;
    float: left;
}

figure {
    position: relative;
    width: 1100%;
    margin: 0;
    left: 0;
    text-align: left;
    font-size: 0;
    -webkit-animation-name: slidy;
    -webkit-animation-duration: 75s;
    -webkit-animation-delay: 5s;
    -webkit-animation-iteration-count: infinite;
    animation: 75s slidy infinite;
}
/****** End Slider********/

@media only screen and (max-width:699px) {
    #wrapper {
        margin: 0 auto;
        border: 0;
        padding: 0;
    }
    a {
        font-weight: bold;
    }
    h1 {
        font-size: 1.75rem;
        
    }
    
    h2 {
        font-size: .875rem;
    }
    h3{
        margin: 0 0 .625rem;
        font-size: 1.5rem;
    }
    
    h4{
        font-size: 1rem;
    }
   
    
    article{
        padding: 10px;
    }
    element{
        margin: 0 -.625rem .625rem;
        padding: .625rem;
    }
    article section:nth-of-type(1),
    article section:nth-of-type(2){
        width: auto;
        float: none;
    }
    
    aside{
        width: auto;
    }
    aside>p{
        float: none;
        margin: 0 0 10px;
    }
    aside>a{
        float: none;
    }
}

@media only screen and (max-width:479px) {
    body {
        font-size: .812rem;
    }
    h1 {
        font-size: 1.125rem;
    }
    ul li:before {
        font-size: 1rem;
        line-height: 1.1;
    }
}
