﻿/* reset all */

html {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a,
img {
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    display: inline-block;
}

/* body set-up */

body {
    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    line-height: 1.3;
    color: #000;
    background: #bdb2a0;
    font-weight: normal;
}

/* main style */

a {
    color: inherit;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

a:hover,
a:focus {
    outline: none;
    text-decoration: none;
}

p {
    margin: 0 0 0.625rem;
}

h1 {
    color: #000;
    display: block;
    font-size: 1.688rem;
    font-weight: bold;
    margin-bottom: 1.563rem;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
}

h1 span {
    font-weight: bold;
    font-size: 1.125rem;
    color: #000;
    text-align: center;
}

h2 {
    text-align: left;
    font-size: 1rem;
    line-height: 1.3;
    color: #000;
    margin: 0 0 1.25rem;
}

h3 {
    margin: 0 0 0.625rem;
    font-size: 0.875rem;
    text-align: center;
}

ul {
    padding: 0;
    margin-bottom: 0.625rem;
    list-style: none;
}

ul li {
    padding-left: 1.875rem;
    margin-bottom: 0.625rem;
}

ul li:before {
    content: "\0025aa";
    float: left;
    margin-left: -25px;
    font-size: 23px;
    line-height: 19px;
    color: #000;
}

/* layout  */

#wrapper {
    display: block;
    max-width: 46.25rem;
    margin: 1.563rem auto;
    padding: 1.563rem;
    background: #f8f7f5;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;

}

header {
    margin: 0 0 1.25rem;
}

header a {
    display: block;
    margin: 0 auto 1.875rem;
    width: 100%;
}

header img {
    display: block;
    max-width: 100%;
}

header p {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

/*--use clearfix when float get's overflowed--*/

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0;
}

/*----------------- footer --------------------*/

footer span {
    white-space: nowrap;
}

h4 {
    padding-top: 2%;
    padding-bottom: 1%;
    font-weight: bold;
    font-size: 120%;
    color: #000;
}


article > a {
    color: #fff;
    background: #8cc37b;
    border: .187rem solid #8cc37b;
    padding: .625rem 20px .625rem 0;
    width: 35%;
    margin: 0 auto;
    display: block;
    position: relative;
    transition: 0.4s;
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: .062rem;
    text-align: center;

}

article > a i {
    position: absolute;
    color: #fff;
    padding-left: 1.25rem;
    font-size: 1.25rem;
    top: 14px;

}

article > a:hover i {
    position: absolute;
    color: #8cc37b;
    padding-left: 1.25rem;
    font-size: 1.25rem;
    top: 14px;

}

article > a:hover {
    color: #8cc37b;
    background: #fff;
}

article p:first-of-type {
    text-align: justify;
}

footer p {
    margin-bottom: 0.625rem;
}

footer a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

footer a:hover {
    color: #000000;
    text-decoration: none;
}

@media only screen and (max-width:46.187rem) {
    #wrapper {
        margin: 0 auto;
        border: 0;
        padding: 0.625rem;
    }

    a {
        font-weight: bold;
    }

    article > a {
        width: 80%;
    }
    
     article > p:first-of-type {
        text-align: left;
    }

    footer {
        margin: 0 -0.625rem -0.625rem;
        padding: 0.625rem;
    }

    header {
        margin: -0.625rem -0.625rem 0.625rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 0.875rem;
    }
}

@media only screen and (max-width:30rem) {
    body {
        font-size: 0.813rem;
    }

    article > a {
        width: 90%;
    }

    h1 {
        font-size: 1.025rem;
    }

    h5 {
        font-size: 15px;
    }

    ul li:before {
        font-size: 16px;
        line-height: 18px;
    }
}
