﻿/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

body {
	margin: 0;
	padding: 0;
	background: #FFFFFF;
	font: normal medium "Trebuchet MS", Arial, Helvetica, sans-serif;
	color: #666666;
}

h1, h2, h3, h4, h5, h6, form {
	margin: 0;
	padding: 0;
}

h1, h2, h3 {
}

h4, h5, h6 {
}

p, ul, ol, blockquote {
	margin-top: 0;
}

a {
	color: #268ED4;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	border: none;
}

/* Header */

#header {
	height: 40px;
	background: #5A5A5A url(images/img01.gif) repeat-x;
}

#header h1 {
	width: 960px;
	margin: 0 auto;
	padding: 12px 0 0 0;
	font-size: 1em;
}

#header h2 {
	width: 960px;
	margin: -18px auto 0 auto;
	text-align: right;
	font-size: 1em;
}

#header a {
	text-decoration: none;
	color: #FFFFFF;
}

/* Pages */

#pages {
	height: 110px;
	padding-top: 10px;
	
}

#pages h2 {
	display: none;
}

#pages ul {
	display: block;
	width: 1170px;
	height: 100px;
	margin: 0 auto;
	padding: 0;
}

#pages li {
	display: inline;
}

#pages a {
	display: block;
	float: left;
	width: 192px;
	height: 75px;
	padding: 35px 0 0 0;
	text-align: center;
	text-decoration: none;
	text-transform: lowercase;
	letter-spacing: -1px;
	font-size: 1.6em;
	font-weight: normal;
	color: #fff;
}

/*#pages a:hover {
	color: #000000;
}
*/

#page1 { background: url(images/menu.jpg) no-repeat; background-size: contain;}
#page2 { background: url(images/menu.jpg) no-repeat; background-size: contain;}
#page3 { background: url(images/menu.jpg) no-repeat; background-size: contain;}
#page4 { background: url(images/menu.jpg) no-repeat; background-size: contain;}
#page5 { background: url(images/menu.jpg) no-repeat; background-size: contain;}

/*#page1:hover, #pages .active #page1 { background-image: url(images/img08.gif); }
#page2:hover, #pages .active #page2 { background-image: url(images/img09.gif); }
#page3:hover, #pages .active #page3 { background-image: url(images/img10.gif); }
#page4:hover, #pages .active #page4 { background-image: url(images/img11.gif); }
#page5:hover, #pages .active #page5 { background-image: url(images/img12.gif); }
*/
/* Content */

#content {
	width: 960px;
	margin: 0 auto;
	padding: 20px 0 0 0;
}

/* Latest Post Box */

#latest-post {
	float: left;
	width: 470px;
}

#latest-post .title {
	letter-spacing: -1px;
	font-size: 2.2em;
}

#latest-post .posted {
	margin-bottom: 2em;
	font-size: .8em;
	font-weight: normal;
}

#latest-post .image {
	float: left;
	margin: .3em 1em 0 0;
}

#latest-post p, #latest-post blockquote, #latest-post ul, #latest-post ol {
	line-height: 155%;
}

/* Recent Posts Box */

#recent-posts {
	float: right;
	width: 470px;
}

#recent-posts h3 {
	width: 460px;
	height: 32px;
	padding: 12px 0 0 10px;
	background: #5A5A5A url(images/img13.gif);
	font-size: 1em;
	color: #FFFFFF;
}

#recent-posts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#recent-posts li {
	padding: 5px 10px;
	border-bottom: 1px solid #5A5A5A;
}

#recent-posts li:hover {
	background: #EFEFEF;
}

/* Column One */

#colOne {
	padding-bottom: 20px;
}

/* Column Two */

#colTwo {
	padding: 20px;
	background: url(images/img02.gif) repeat-x;
}

#colTwo ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#colTwo li, #colTwo form {
	padding: 10px;
}

#colTwo li {
	display: block;
	float: left;
	width: 220px;
}

#colTwo li ul {
}

#colTwo li li {
	display: list-item;
	float: none;
	padding: 0 0 0 10px;
}

#colTwo h2 {
	margin: 0 0 .5em 0;
	padding: 0 0 0 10px;
	background: url(images/img15.gif) no-repeat left center;
	font-size: 1em;
}

/* Footer */

#footer {
	width: 920px;
	height: 100px;
	margin: 0 auto;
	padding: 20px;
	background: url(images/img02.gif) repeat-x;
}

#footer p {
	text-align: center;
	font-size: small;
}


#gallery { 
    margin: 10px 0;
    border: #b08c1e 4px solid;
}
#gallery img {
    height: 80px;
}

.zoom:hover {
  transform: scale(1.5); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.fogging {background: url(images/rainbow.jpg); background-size: cover;
    background-repeat: no-repeat; height: 480px; padding: 10px;}
    
.gold-frame {
    display: inline-block;
    border: 2px solid #d0a900;
}
.pink-bg {
    background: #cf00c2;
    color: #fff;
    font-weight: 600;
    height: 275px;
    overflow: hidden;
}

.header, .homepage, .content {
    max-width: 1350px;
    margin: auto;
}
.header, .homepage {
    text-align: center;
    font-weight: bold;
}
.header {
    display: flex;
    justify-content: center;
}
.header .left, .header .right {
    height: 10vh;
}
.header .mid {
    max-width: 70%;
    height: 10vh;
}
.header img {
    max-width: 100%;
    max-height: 100%;
}
.pink {
    background: #cf00c2;
}
.pink h2 {
    color: #fff;
}
.pinksparkles {
    background: #cf00c2;
    background-image: url(http://www.terracedhouses.co.uk//images/sparkles.gif);
}
.pinksparkles h2 {
    color: #fff;
}
.homepage h1 {
    font-size: 4vw;
    line-height: 3.2vw;
    margin: 0;
    color: #000;
    padding: 0 1vw;
}
.homepage h2 {
    font-size: 1.5vw;
    margin: 0;
    line-height: 6  vw;
    color: #000;
}
.homepage h3 {
    font-size: 4vw;
    margin: 0;
    line-height: 3.2vw;
    color: #fff;
}
.homepage h4 {
    font-size: 2.5vw;
    line-height: 2.3vw;
    margin: 0;
    color: #000;
}

.homepage h5 {
    font-size: 2.5vw;
    line-height: 2.3vw;
    margin: 0;
    color: #fff;
}
.homepage h4 a, .homepage h4 a:visited {
    color: #000;
    text-decoration: none;
}
.homepage h5 a, .homepage h5 a:visited {
    color: #fff;
    text-decoration: none;
}
.homepage img {
    font-size: 0;
}
.thickframe {
    border-image: url(http://terracedhouses.co.uk/images/frame2.png) 93 92 92 94 stretch stretch;
    border-color: #f4be52;
    border-style: inset;
    border-width: 50px;
    margin: 0 auto 10px;
}

/* Flex container for the rows */
        .container {
            display: flex;
            flex-wrap: wrap;
            width: 90%;
            margin: auto;
        }

        /* Flex item for the individual divs */
        .box {
            flex: 1 1 10%; /* Default width is 15% */
            /*height: 100px; /* Height of each box */
 
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
        }

        /* Make the third column three times as wide */
        .container > .box:nth-child(3),
        .container > .box:nth-child(4),
        .container > .box:nth-child(9),
        .container > .box:nth-child(10) {
            flex: 3 1 30%; /* 3 times the width of the other boxes */
        }
}