html, body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: black;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bree Serif', serif;
    margin: 0 10px;
    font-size: 18px;
}

h1 {
    font-size: 30px;
}

p {
    margin: 10px;
    font-size: 0.9em;
}

a {
    font-size: 0.9em;
	color: black;
}

td {
    font-size: 0.9em;
    padding: 10px;
    border: none;
}

body div {
    padding: 80px 0;
}







#header {
    background-image: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url("media/header.jpg");
    background-size: cover;
    background-position: center;
    padding: 0;
    background-clip: padding-box;
    position: relative;
}
#header div * {
    opacity: 0;
}
#header div {
    padding: 0;
}
#header h1 {
    color: white;
    padding-top: 30vh;
    margin: 0 10px;
}
#header #line {
    padding: 0;
    background-color: white;
    height: 2px;
    width: 200px;
    margin: 10px;
}
#header p {
    color: white;
    margin: 10px;
}
#header #navtext {
    text-align: center;
    padding: 0;
    padding-top: 20vh;
}
#header img {
    width: 30px;
}






#nav {
    padding: 0;
}
nav ul {
    padding: 0;
}
nav a {
    color: black;
    margin: 10px;
    line-height: 30px;
}
nav li:active {
    background-color: #d6d6d6;
}






#head p{
    color: black;
    text-align: justify;
}
#head div {
    padding: 0;
}
#head .imgwrap {
    width: 150px;
    height: 150px;
    border-radius: 100px;
    overflow: hidden;
    padding: 0;
    margin: 60px auto 0 auto;
}
#head img {
    width: 150px;
}







#quote {
    background-image: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url("media/quote.jpg");
    background-position: center;
    background-size: cover;
    color: white;
}
#quote .content {
    font-family: 'Bree Serif', serif;
    text-align: center;
    margin-left: 50px;
}
#quote .content:first-child {
    margin-left: -50px;
}
#quote #name {
    text-align: right;
}







#offer {
    text-align: justify;
}






.ref {
    background-image: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5) ), url("media/ref.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}
.ref div {
    padding: 0;
}
.ref p {
    text-align: justify;
}
.ref .date {
    text-align: center;
}
.ref h2 {
    text-align: center;
}
.ref .imgwrap {
    width: 150px;
    height: 150px;
    border-radius: 100px;
    overflow: hidden;
    padding: 0;
    margin: 20px auto;
}
.ref img {
    width: 150px;
}
.ref #link {
    text-align: center;
}
.ref #link a {
    color: white;
}
.ref #arrows {
    text-align: center;
    padding: 15px;
}
.ref #next, .ref #prev {
    background-color: transparent;
    border: none;
    margin: 0 30px;
    padding: 10px 20px;
    border-radius: 5px;
}
.ref #next img, .ref #prev img {
    width: 15px;
}
.slick-dots {
	display: none !important;
}





footer {
    background-color: rgb(210, 210, 210);
    color: white;
    padding: 3px 0;
}





#subhead {
    background-image: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url("media/quote.jpg");
    background-position: center;
    background-size: cover;
    color: white;
    padding: 20px 0;
}
#subtext {
    padding: 10px 0;
}
ul {
    list-style-type: none;
}
#subtext h2, h3 {
    padding-top: 40px;
}
#subtext h3 {
    font-size: 14px;
}
#back {
    margin: 10px;
    padding-top: 10px;
}
#back a {
    background-color: #e6e6e6;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    border-radius: 100px;
    line-height: 20px;
}
#back img {
    width: 15px;
    margin-bottom: -3px;
    margin-right: 3px;
}




.subref {
    padding: 0;
}
.subref img { 
	border-radius: 100px;
	width: 200px;
	height: auto;
	margin: 0 auto;
    display: block
}
.subref div {
    padding: 0;
}
.subref div:last-child {
}
.subref p {
    text-align: justify;
}





table#pricing {
    margin: 10px;
    width: calc(100% - 20px);
}
tr {
   border: none;
}
table#pricing .price {
    text-align: right;
}
table#pricing tr:nth-child(odd) {
    background-color: #efefef;
}




@media screen and (min-width: 960px) {
    h1, h2, h3, h4, h5, h6 {
        font-size: 22px;
    }
    
    p, a, td {
        font-size: 16px;
    }

    td {
        margin: 20px;
    }

    
    
    
    
    
    
    #header div, #head, #quote, #offer, .ref, #contacts, #subhead, #nav {
        width: 960px;
        padding: 100px calc((100% - 960px) / 2);
    }
    
    
    
    
    
    
    #header h1 {
        font-size: 100px;
    }
    #header #line {
        width: 500px;
    }
    #header p {
        margin: 25px 10px;
        font-size: 30px;
    }
    #header #navtext p{
        font-size: 15px;
    }
    
    
    
    
    
    #head {
        display: flex;
    }
    #head div {
        width: 600px;
    }
    #head .imgwrap {
        width: 300px;
        height: 300px;
        border-radius: 150px;
        margin: 0 0 0 auto;
    }
    #head img {
        width: 300px;
    }
    
    
    
    
    
    #quote .content {
        text-align: center;
        margin-left: 150px;
        font-size: 22px;
    }
    #quote .content:first-child {
        margin-left: -150px;
    }
    
    
    
    
    
    .ref .slide{
        display: flex;
    }
    .ref .slide .imgwrap {
        width: 300px;
        height: 300px;
        border-radius: 150px;
    }
    .ref .slide .imgwrap img {
        width: 300px;
    }
    .ref .slide .content {
        width: 550px;
    }
    .ref .slide .content h2, .ref .slide .content .date{
        text-align: left;
    }
    .ref #next:hover, .ref #prev:hover {
        background-color: rgba(0, 0, 0, 0.3);
    }
	.slick-dots {
		display: block !important;
	}



	.subref {
  		display: flex;
		margin: 10px 0;
	}
	.subref img { 
    	width: 300px;
    	border-radius: 150px;
    	display: block;
		margin: auto;
	}
	.subref div {
		margin-right: 40px;
	}

    
    
    
    #back, #subtext {
        width: 960px;
        padding: 10px calc((100% - 980px) / 2);
    }
    #back img {
        margin-bottom: -3px;
        margin-right: 10px;
    }
    #subtext h3 {
        font-size: 16px;
    } 
    #subhead h2 {
        font-size: 30px;
    }
    #subhead h1 {
        font-size: 40px;
    }
    #subtext p {
        text-align: justify;
    }




    #nav li {
        display: inline-block;
    }
}