/* Behnam's Stylesheet
 * (c) Copyright 2013 Behnam Esfahbod <behnam.es>
 *
 * @media: screen;
 */


/***************** Layout *****************/

html {
  background: #333;
  color: #ddd;
  direction: ltr;
}

body {
  background: #111;
  box-shadow: 0 0 4px 4px black;
  font-family: sans-serif;
  font-size: 12pt;
  line-height: 16pt;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  width: 960px;
}


#layout {
  padding: 0 2em;
}

header {
  border-bottom: 1px solid #333;
  margin-bottom: 4em;
  padding: 1em 0;
  text-align: center;
}

footer {
  border-top: 1px solid #333;
  clear: both;
  color: #999;
  margin-top: 4em;
  padding: 1em 0;
  text-align: center;
}

.block {
  clear: both;
}

.block:after {
  clear: both;
  content: " ";
  display: block;
  height: 0;
}

article {
  text-align: center;
}

.column {
  display: inline-block;
  margin: 2em auto;
  text-align: center;
  width: 280px;
}

@media screen and (max-width: 1000px) {
  body {
    width: 100%;
  }
}


@media screen and (max-width: 800px) {
  .column {
    width: 100%;
    display: block !important;
  }

  article {
    width: 100%;
  }

  .photo {
    margin: 0 auto;
    text-align: center;
  }

}

@media screen and (max-width: 480px) {
  body {
    width: 480px;
  }
}


/***************** Content *****************/

header {
}

h1, h2 {
  color: white;
}

h1 {
  font-size: 180%;
  padding: 1em 0;
}

.name {
  white-space: nowrap;
}

.title {
  font-style: italic;
}

h1 a {
  color: white !important;
}

h2 {
  padding: 2em 0 1em;
  text-transform: uppercase;
  font-weight: normal;
}

p, ul {
  margin-bottom: 1em;
}

li {
  list-style-type: square;
  margin-left: 1em;
}

a, a:hover, a:focus, a:visited {
  color: #4a8;
  text-decoration: none;
}

a:visited {
  color: #7a9;
}

a:hover, a:focus {
}

a:focus {
  outline: none;
  text-decoration: underline;
}

.photo {
  display: block;
  line-height: 0;
  margin: 1em auto;
  text-align: center;
}

.photo img {
  border: 1px solid #333;
  border-radius: 1em;
  display: block;
  margin: 1em auto;
}

.photo:hover img {
  border: 1px solid #ccc;
}

hr {
  border: 1px 0 0 0 solid #aaa;
}

b {
  font-weight: normal;
  color: white;
}


/***************** i18n *****************/

*[lang="en"] {
  text-align: left;
  direction: ltr;
  font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
}

.serif, h1, h2 {
  font-family: 'Playfair Display', serif;
}

*[lang="fa"] {
  text-align: right;
  direction: rtl;
  font-family: 'Droid Arabic Naskh', 'DejaVu Sans', Tahoma, sans-serif !important;
  font-size: 90%;
}

