@font-face {
    font-family: 'th_k2d_july8';
    src: url('../fonts/webfonts/th_k2d_july8-webfont.eot');
    src: url('../fonts/webfonts/th_k2d_july8-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/webfonts/th_k2d_july8-webfont.woff') format('woff'),
        url('../fonts/webfonts/th_k2d_july8-webfont.ttf') format('truetype'),
        url('../fonts/webfonts/th_k2d_july8-webfont.svg#th_k2d_july8') format('svg');
    font-weight: normal;
    font-style: normal;
}


body {
    width: 100%;
    height: 100%;
    line-height: 1.5;
    font-family: 'th_k2d_july8', sans-serif;
    font-weight: 300;
    font-size: 16px;
    background-color: #eee;
}

ul {
    list-style-type: none
}

header {
    /*background-color: rgba(0,0,0,0.2);*/
    background-color: #2980b9;
    opacity:0.7; // โปร่งใส[/code]
    line-height: 35px;
    padding: 0 30px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
}

header a {
    text-decoration: none;
    color: inherit;
    font-size: 1.7em;
}

.demo-wrapper {
    margin: 0 auto;
    margin-top: 20px;
    padding: 2em 0em;
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 970px;
}

.dashboard {
    margin: 0 auto;
    width: 100%;
}

.tile {
    float: left;
    margin: 0 auto 1%;
    color: white;
    font-size: 1.3em;
    text-align: center;
    height: 8em;
    font-weight: 300;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    color: #333;
    position: relative;
    -webkit-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out
}

.tile-big {
    width: 100%
}

.tile div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: table;
    padding: 0;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease
}

.tile div p {
    display: table-cell;
    vertical-align: middle
}

.title a:link{
    color: #fff;
}

/*styling the individual tiles*/

.tile-1 {
    background-color: #e67e22;
    color: white
}
.tile-1:hover {
    background-color: white;
    color: #e67e22;
}

.tile-2 {
    background-color: #9b59b6;
    color: white
}

.tile-2:hover {
    background-color: white;
    color: #9b59b6
}

.tile-3 {
    background-color: #95a5a6;
    color: white
}

.tile-3:hover {
    background-color: white;
    color: #95a5a6
}

.tile-4 {
    background-color: #2980b9;
    color: white
}

.tile-4:hover {
    background-color: white;
    color: #2980b9
}

.tile-5 {
    background-color: #27ae60;
    color: white
}

.tile-5:hover {
    background-color: #fff;
    color: #27ae60
}

.tile-6 {
    background-color: #FCC120;
    color: white
}

.tile-6:hover {
    background-color: #fff;
    color: #FCC120
}

.tile-7 {
    background-color: #34495e;
    color: white
}

.tile-7:hover {
    background-color: #fff;
    color: #34495e
}

.tile-8 {
    background-color: #e74c3c;
    color: white
}

.tile-8:hover {
    background-color: #fff;
    color: #e74c3c
}

.tile-1 p,
.tile-2 p,
.tile-3 p,
.tile-4 p,
.tile-5 p,
.tile-6 p,
.tile-7 p,
.tile-8 p {
    font-size: 1.5em
}

.tile-1 p span,
.tile-2 p span,
.tile-3 p span,
.tile-4 p span,
.tile-5 p span,
.tile-6 p span,
.tile-7 p span,
.tile-8 p span {
    font-size: 1.3em;
    margin-right: .2em;
    position: relative;
    top: .15em
}

.galleryItem {
	width: 32%;
	margin:  1% 1% 0% 0%;
	float: left;
	-webkit-transition: color 0.5s ease;
}

/* MEDIA QUERIES*/
@media only screen and (max-width : 940px),
only screen and (max-device-width : 940px){
	.galleryItem {width: 47.5%;}
}

@media only screen and (max-width : 720px),
only screen and (max-device-width : 720px){
	.galleryItem {width: 47.5%;}
}

@media only screen and (max-width : 530px),
only screen and (max-device-width : 530px){
	.galleryItem {width: 95%;}
	.header h1 {font-size: 28px;}
}

@media only screen and (max-width : 320px),
only screen and (max-device-width : 320px){
	.galleryItem {width: 95%;}
}