body {
    font-family: "Mplus 1p";
    color: #333;
    letter-spacing: .1vmin;
}

header {
    background-color: white;
    width: 100%;
    height: 3em;
    position: fixed;
    z-index: 9999;
    top: 0;
    transition: all ease .5s;
    display: none;
}

header h1 {
    margin: 0;
}

header h1 img {
    width: 100%;
    max-width: 80px;
    max-height: 1.2em;
    position: absolute;
    top: 10%;
    left: 3%;
}

header h1 span {
    display: none;
}

.logo-box {
    position: fixed;
    width: 18vmin;
    z-index: 99;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    transition: all ease .5s;
}

.fp-viewing-access .logo-box {
    top: 5%;
}

.fp-viewing-contact .logo-box {
    top: 3%;
}

.fp-viewing-contact header {
    top: -10%;
}

.fp-viewing-philosopy .open span,
.fp-viewing-company .open span,
.fp-viewing-contact .open span {
    background-color: #fff;
}

section {
    overflow: hidden;
}

.inner-box {
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

section h2 {
    font-size: 4vmin;
    text-transform: uppercase;
}

.top-page .inner-box {
    width: 100%;
    height: 60%;
    background-color: rgba(255, 255, 255, .7);
    text-align: center;
    overflow: hidden;
    padding: 1% 5% 0;
}

.top-page h2 {
    padding-top: 5vw;
}

.top-page h2 img {
    width: 100%;
    max-width: 24vmin;
}

.top-page h3 {
    font-size: 4vmin;
    font-weight: 400;
}

.top-page h3:nth-of-type(1) {
    padding-top: 3%;
}

.top-page h3:nth-of-type(2) {
    padding-bottom: 2%;
}

.top-page p {
    font-size: 2vmin;
    font-weight: 300;
    line-height: 4vmin;
}

.company-page .inner-box {
    width: 74%;
    height: 68%;
    padding: 3%;
    margin-top: -3%;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&1+0,0+100 */
    background: -moz-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    color: white;
}

.company-page .company-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-flow: column wrap;
    line-height: 2.7vmin;
    font-size: 1.3vmin;
    width: 80%;
    height: 85%;
    margin-top: 2%;
}

.company-page .company-list li {
    margin-bottom: 2%;
}

.company-page .company-list li span {
    display: block;
    font-weight: 300;
}

.bg-box {
    background: url(../img/bg01.jpg) no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 30%;
    z-index: 1;
    transition: all ease 1s;
}

.access-page {
    z-index: 3;
    background-color: white;
}

.contact-page .inner-box {
    width: 70%;
    height: 80%;
    margin-top: 0;
    color: white;
}

.contact-page form ul {
    list-style: none;
    padding: 3% 0 0;
}

.contact-page form ul li {
    display: flex;
    flex-flow: column;
    font-weight: 200;
    margin-bottom: 3%;
}

.contact-page form ul li:nth-last-child(1) {
    margin-top: -2%;
}

.contact-page form ul li input,
.contact-page form ul li textarea {
    border: none;
    width: 90%;
    background-color: rgba(255, 255, 255, .8);
    resize: none;
    padding: .5%;
}

.contact-page form ul li textarea {
    width: 95%;
}

.button {
    display: inline-block;
    padding: 1.5% 4%;
    margin: 1rem;
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    -moz-transition: 0.7s;
    -o-transition: 0.7s;
    -webkit-transition: 0.7s;
    transition: 0.7s;
    border: none;
}

.button:before {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -50%;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    -moz-transition: 0.7s;
    -o-transition: 0.7s;
    -webkit-transition: 0.7s;
    transition: 0.7s;
}

.button span {
    position: relative;
}

.button:hover,
.button:focus {
    color: white;
}

.button:hover:before,
.button:focus:before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.button {
    background: rgba(250, 200, 0, .9);
    border-radius: 2%/5%;
}

.button:before {
    right: auto;
    bottom: auto;
    left: 90px;
    top: -40px;
}

.button:hover:before,
.button:focus:before {
    left: -50px;
}

.philosopy-page .inner-box {
    text-align: center;
    height: 70%;
}

.philosopy-page h2 {
    color: white;
    padding-top: 6vmin;
    margin-bottom: 3vmin;
}

.philosopy-page p {
    color: white;
    font-size: 1.8vmin;
    font-weight: 100;
    line-height: 4vmin;
}

.medication-page .inner-box {
    text-align: center;
    width: 90%;
    height: 85%;
    overflow: hidden;
    margin-top: 15%;
}

.medication-page .inner-box img {
    width: 100%;
    max-width: 25%;
}

.medication-page h2 {
    margin-bottom: 2vmin;
}

.medication-page ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    width: 56%;
    margin: 0 auto 1%;
    line-height: 3vmin;
    font-size: 1.3vmin;
}

.medication-page ul li {
    text-align: left;
    padding: 0 1%;
}

.medication-page p {
    font-size: 1.5vmin;
    line-height: 3vmin;
}

.active .bg-box {
    top: 0;
}

.philosopy-page .bg-box {
    background: url(../img/bg02.jpg) no-repeat center center;
    background-size: cover;
}

.medication-page .bg-box {
    background: url(../img/bg0.jpg) no-repeat center center;
    background-size: cover;
}

.company-page .bg-box {
    background: url(../img/bg04.jpg) no-repeat center center;
    background-size: cover;
}

.access-page .bg-box {
    background: url(../img/bg05.jpg) no-repeat center center;
    background-size: cover;
}

.contact-page .bg-box {
    background: url(../img/bg06.jpg) no-repeat center center;
    background-size: cover;
}

.access-page .inner-box {
    width: 70%;
    margin-top: 5%;
    height: calc(100% - 5%);
}

.access-page h2 {
    position: absolute;
    left: 15%;
    top: calc(15% - 4%);
    z-index: 2;
    color: white;
}

.access-page p {
    position: absolute;
    bottom: 7%;
    left: 15%;
    font-size: 1.4vmin;
    z-index: 2;
    color: white;
}

.footer {
    width: 100%;
    background-color: #fbe6f5;
    position: absolute;
    bottom: 0;
    z-index: 2;
    text-align: center;
}

.footer p {
    color: #666;
    font-size: .75em;
    line-height: 1em;
    margin-bottom: .8em;
}

.footer-nav {
    background-color: white;
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: center;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #e4bed8;
    padding: 2% 15%;
}

.footer-nav a {
    width: 100%;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: flex-end;
    min-height: 9vmin;
    transition: all ease .5s;
    opacity: 1;
}

.footer-nav img {
    width: 100%;
    max-width: 74px;
    height: auto;
    max-height: 66px;
    align-items: center;
}

.footer-nav a span {
    color: #555;
    font-size: 1.3vmin;
}

.footer-nav a:hover {
    text-decoration: none;
    opacity: .5;
    -webkit-transform: translateY(10px);
    -ms-transform: translateY(10px);
    -o-transform: translateY(10px);
    transform: translateY(10px);
}

.footer-nav li {
    width: calc(100% / 6);
    max-width: 15%;
}

.footer-nav .icon-cp {
    max-width: 20%;
}

.footer-nav .icon-cp a span {
    margin-top: 5%;
}

.footer-nav .icon-ph a span {
    margin-top: 3%;
}

.footer-nav .icon-ac a span {
    margin-top: 3%;
}

.footer-nav .icon-ct a span {
    margin-top: 5%;
}

.footer-nav .icon-ph a img {
    max-width: 68px;
}

.footer-nav .icon-ct a img {
    max-width: 60px;
}

/* google map */

.iframe-rwd {
    position: absolute;
    width: 100%;
    height: 70%;
    overflow: hidden;
    top: 53%;
    transform: translateY(-50%);
    z-index: 2;
}

.iframe-rwd iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* menu */

.open {
    position: fixed;
    top: 0;
    right: 1%;
    width: 60px;
    height: 60px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s linear;
    z-index: 9999;
}

.open:hover {
    opacity: 0.8;
}

.open span {
    display: block;
    float: left;
    clear: both;
    height: 4px;
    width: 34px;
    border-radius: 40px;
    background-color: #999;
    position: absolute;
    right: 12px;
    top: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.open span:nth-child(1) {
    margin-top: 8px;
    z-index: 9;
}

.open span:nth-child(2) {
    margin-top: 18px;
}

.open span:nth-child(3) {
    margin-top: 29px;
}

.open.oppenned span:nth-child(1) {
    margin-top: -1px;
}

.sub-menu {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 0;
    width: 0;
    right: 0;
    top: 0;
    position: absolute;
    background-color: rgba(199, 193, 223, 0.54);
    border-radius: 50%;
    z-index: 18;
    overflow: hidden;
}

.sub-menu li {
    display: block;
    float: right;
    clear: both;
    height: auto;
    margin-right: -160px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sub-menu li:first-child {
    margin-top: 180px;
}

.sub-menu li:nth-child(1) {
    -webkit-transition-delay: 0.05s;
}

.sub-menu li:nth-child(2) {
    -webkit-transition-delay: 0.10s;
}

.sub-menu li:nth-child(3) {
    -webkit-transition-delay: 0.15s;
}

.sub-menu li:nth-child(4) {
    -webkit-transition-delay: 0.20s;
}

.sub-menu li:nth-child(5) {
    -webkit-transition-delay: 0.25s;
}

.sub-menu li a {
    color: #fff;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 16px;
    width: 100%;
    display: block;
    float: left;
    line-height: 40px;
}

.oppenned .sub-menu {
    opacity: 1;
    height: 450px;
    width: 450px;
    margin: 3% 1% 0 0;
    text-transform: uppercase;
}

.oppenned span:nth-child(2) {
    overflow: visible;
}

.oppenned span:nth-child(1),
.oppenned span:nth-child(3) {
    z-index: 100;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.oppenned span:nth-child(1) {
    -webkit-transform: rotate(45deg) translateY(12px) translateX(12px);
    transform: rotate(45deg) translateY(12px) translateX(12px);
}

.oppenned span:nth-child(2) {
    height: 450px;
    width: 450px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background-color: rgba(38, 84, 133, 0.54);
}

.oppenned span:nth-child(3) {
    -webkit-transform: rotate(-45deg) translateY(-10px) translateX(10px);
    transform: rotate(-45deg) translateY(-10px) translateX(10px);
}

.oppenned li {
    margin-right: 168px;
}

/* arrow */

@-moz-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        -moz-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -moz-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -moz-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

@-webkit-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -moz-transform: translateY(-30px);
        -ms-transform: translateY(-30px);
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -moz-transform: translateY(-15px);
        -ms-transform: translateY(-15px);
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

i {
    display: block;
    color: rgba(0, 0, 0, 0.45);
}

.arrow {
    position: absolute;
    bottom: 5%;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 60px;
    z-index: 9;
    /*change with size of arrow to make sit on bottom */
    /*   background-image: url(); */
    /*   background-size: contain; */
}

.bounce {
    -moz-animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

@media(max-width: 768px) {
    .inner-box {
        margin-top: 5%;
    }
    .top-page h2 img {
        padding: 5% 0;
        max-width: 30vmin;
    }
    .top-page h3 {
        font-size: 5vmin;
    }
    .top-page p {
        padding: 0 5%;
        font-size: 2.4vmin;
        line-height: 5vmin;
    }
    .company-page h2,
    .access-page h2,
    .contact-page h2,
    .philosopy-page h2 {
        font-size: 5vmin;
    }
    .philosopy-page h2 {
        padding-top: 7vmin;
        margin-bottom: 5vmin;
    }
    .company-page .company-list {
        font-size: 2vmin;
        height: 90%;
        line-height: 3vmin;
    }
    .company-page .company-list li {
        margin-bottom: 4%;
    }
    .top-page .inner-box {
        padding: 2% 0
    }
    .company-page .inner-box {
        width: 70%;
        height: 80%;
        margin-top: 0;
    }
    .philosopy-page p {
        font-size: 2.2vmin;
        line-height: 5vmin;
    }
    .footer {
        padding-bottom: 3%;
    }
    .footer-nav .icon-ph a img {
        max-width: 48%;
    }
    .footer-nav .icon-cp a img {
        max-width: 54%;
    }
    .footer-nav .icon-ac a img {
        max-width: 40%;
    }
    .footer-nav .icon-ct a img {
        max-width: 50%;
    }
    .logo-box {
        width: 22vmin;
        top: 10%;
    }
    .fp-viewing-medication .logo-box {
        top: 7%;
    }
    .fp-viewing-company .logo-box {
        top: 2%;
    }
    .medication-page .inner-box {
        height: 80%;
    }
    .medication-page .inner-box img {
        max-width: 40%;
    }
    .medication-page ul,
    .medication-page p {
        font-size: 1.8vmin;
        line-height: 4vmin;
    }
}

@media(max-width: 425px) {
    .inner-box {
        margin-top: 10%;
    }
    .top-page h2 {
        padding-top: 3vmin;
    }
    .company-page h2 {
        font-size: 6vmin;
    }
    .company-page .company-list li {
        margin-bottom: 3%;
    }
    .access-page h2 {
        top: 18%;
    }
    .philosopy-page h2 {
        font-size: 7vmin;
    }
    .top-page h2 img {
        max-width: 40vmin;
        padding: 5% 0 0;
    }
    .top-page h3 {
        font-size: 6vmin;
    }
    .top-page p {
        font-size: 3vmin;
        line-height: 6vmin;
        font-weight: 400;
        margin-bottom: .5em;
    }
    .company-page .company-list {
        font-size: 3vmin;
        height: 100%;
        line-height: 4vmin;
    }
    section:nth-of-type(1) .inner-box {
        width: 80%;
    }
    .company-page .inner-box {
        width: 80%;
        height: 85%;
        margin-top: 10%;
    }
    .access-page .inner-box {
        width: 70%;
        margin-top: 25%;
        height: calc(100% - 5%);
    }
    .access-page p {
        bottom: 6%;
        font-size: 3vmin;
        padding-right: 10%;
    }
    .contact-page form ul li input,
    .contact-page form ul li textarea {
        width: 78%;
    }
    .contact-page form ul li textarea {
        width: 100%;
    }
    .contact-page form ul li {
        margin-bottom: 5%;
        font-weight: 300;
        font-size: 4vmin;
    }
    .philosopy-page p {
        font-size: 3.2vmin;
        padding: 0 6%;
        line-height: 5vmin;
        font-weight: 400;
    }
    .footer p {
        font-size: 2vmin;
    }
    .footer-nav {
        padding: 2% 0;
    }
    .iframe-rwd {
        height: 60%;
    }
    .company-page .company-list li:nth-last-child(1) span,
    .company-page .company-list li:nth-last-child(2) span,
    .company-page .company-list li:nth-last-child(3) span {
        display: inline;
    }
    .medication-page p {
        margin-bottom: 2vmin;
    }
    .footer-nav li {
        max-width: 100%;
    }
    .footer-nav a {
        min-height: 13vmin;
    }
    .medication-page ul,
    .medication-page p {
        font-size: 2.5vmin;
        line-height: 5vmin;
    }
    .medication-page .inner-box img {
        max-width: 45%;
    }
    .fp-viewing-medication .logo-box {
        top: 3%;
    }
}