* {
}

body {
  margin: 0;
  padding: 0;
  background-color: #a5a5a5;
  background-image: url("images/background.png");
  color: #4d4d4f;
  font-size: 12px;
  font-family: Arial, Helvetica, Tahoma, sans-serif;
  text-align: center;
}  

#wrapper {
  margin-top: 60px;
  width: 100%;
  margin-left: auto;
  margin-right:auto;
}

h1, h2, h3, h4, h5, h6 {
}

p {
}

a {
  color: #4d4d4f;
  text-decoration: none;
}

a:hover, a:focus, a:active {
  color: #4d4d4f;
  text-decoration: none;
}

a:focus, a:active {
  color: #4d4d4f;
  text-decoration: none;
}

img, a img {
  border: 0;
}

small {
}

abbr, acronym {
}

blockquote {
}

cite {
}

em {
}

strong {
}

form {
}

fieldset {
}

legend {
}

label {
}

input {
}

select {
}

option {
}

textarea {
}

input:focus, select:focus, option:focus, textarea:focus {
}

#header {
}

#content {
}

#sidebar {
}

#navigation {
}

#footer {
}

.bold {
}

.italic {
}

.hidden {
}

.offset {
}

.highlight {
}

.tiny {
}

.error {
}

.abbr {
}

/* CUSTOM ELEMENTS */

.colwrapper {
  overflow: visible;
}

.colwrapper a {
  display: block;
}

.colwrapper a img {
  border: 4px solid #fff;
}

.colwrapper a:hover img {
  border: 4px solid #52da6b;
}

.colwrapper h2 {
  display: block;
  margin: 0.5em 0 0.5em 0;
  padding: 0;
  font-weight: normal;
  font-size: 2em;
}

.colwrapper p {
  font-size: 1em;
  margin: 0;
  padding: 0;
}

.buttons {
  float: left;
  width: 30px;
  margin-right: 40px;
  margin-top: 40px;
}

.buttons img {
  display: block;
  margin-bottom: 10px;
}

/* OVERRIDES FOR 2nd index */
#index2 .col1 {
  width: 265px;
  float: left;
  margin-right: 25px;
}

#index2 .col2 {
  width: 200px;
  float: left;
  margin-right: 25px;
}

#index2 .col3 {
  width: 265px;
  float: left;
}

/*
.phone {
  display:block;
  position:absolute;
  top:100px;
  left:20px;
}

.mail {
  display:block;
  
  position:absolute;
  top:140px;
  left:20px;
}
*/

/* OVERLAYS */
#blackout {
  background-image:url("images/shade1x1.png");
  position:absolute;
  left:0;
  top:0;
  width:100%;
  z-index:100;
  display: none;
}

.overlay {
	/* must be initially hidden */
	display:none;
	
	/* place overlay on top of other elements */
	z-index:10000;
	
	/* styling */
	background-color:#ffffff;
	color: #333;
	
	width:400px;	
	min-height:200px;
	border:1px solid #666;
	padding-top: 30px;
	
	/* CSS3 styling for latest browsers */
	-moz-box-shadow:0 0 90px 5px #000;
	-webkit-box-shadow: 0 0 90px #000;	
}

/* close button positioned on upper right corner */
.overlay .close {
	background-image:url(images/close.png);
	position:absolute;
	right:-10px;
	top:-10px;
	cursor:pointer;
	height:28px;
	width:28px;
}

.hover:hover {
  cursor: pointer;
}

.overlay a:hover, .overlay a:focus, .overlay a:active {
  color: #ff8a00;
}

#overlay_phone {
  font-size: 1.5em;
}

img {
  max-width: 100%;
}

.col {
  margin-top: 40px;
}

.col img {
  width: 100%;
  height: 100%;
}

.col2 a img {
  border-color: #67676a;
}

.col1 {
  float: left;
}

.col2 {
  float: left;
}

.col3 {
  float: left;
}
    
.layout3col .col1 {
  width: 30.53414%;
}

.layout3col .col2 {
  width: 30.53414%;
  margin-left: 2.442%;
}

.layout3col .col3 {
  width: 23.05864%;
  margin-left: 2.442%;
}

.layout2col .col1 {
  width: 48.85878%;
}

.layout2col .col2 {
  display: none;
}

.layout2col .col3 {
  width: 36.89695%;
  margin-left: 3.255186%;
}

.colwrapper.layoutWork {
  margin-left: 5%;
  width: 95%;
  position:absolute;
  clear: both;
  padding-bottom: 60px;
}

.layoutWork .col1 {
  width: 45%;
  margin-right: 5%
}

.layoutWork .col2 {
  width: 45%;
}

.layoutWork .resume {
  width: 75.5%;
  margin-left: auto;
  margin-right:auto;
}

.buttons {
  float: left;
  width: 3%;
  margin-right: 3%;
  margin-top: 40px;
}

.buttons img {
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

@media only screen
  and (orientation: portrait)
  and (max-width: 1080px)
{

    #wrapper {
      margin-top: 8%;
      margin-bottom: 8%;
    }
    
    .buttons {
      float: left;
      width: 6%;
      margin-right: 0px;
      margin-top: 0px;
    }

    .buttons img {
      display: block;
      width: 100%;
      margin-bottom: 10px;
    }
    
    .layout2col .col1,
    .layout3col .col1,
    .layoutWork .col1 {
      float: none;
      width: 80%;
      margin-left: 0px;
      margin: 30px auto;
    }

    .layout3col .col2 {
      float: none;
      width: 80%;
      margin: 30px auto;
    }
    
    .layout2col .col2 {
      display: none;
    }

    .layout2col .col3,
    .layout3col .col3,
    .layoutWork .col2 {
      float: none;
      width: 80%;
      margin: 30px auto;
    }

    .colwrapper.layoutWork {
      margin-left: 0;
      width: auto;
      position: static;
      clear: none;
      padding-bottom: 0;
    }
}
