/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html,
button,
input,
select,
textrea {
  color: #222;
}
body {
  font-size: 1em;
  line-height: 1.4;
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */
audio,
canvas,
img,
video {
  vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}
/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */
.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  background-color: #f5f5f5;
  color: #333333;
  font-family: 'Nanum Barun Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'NanumGothic', sans-serif;
  line-height: 1.8;
}

a:link {
  text-decoration: underline;
  color: inherit;
}
a:visited {
  color: #aaaaaa;
}

nav a:link,
nav a:visited {
  text-decoration: none;
}

blockquote {
  font-family: serif;
}
blockquote p {
  border-left: 1px solid #333333;
  padding-left: 0.5em;
}
blockquote cite {
  display: block;
  text-align: right;
  padding-right: 4em;
  font-size: 0.8em;
}

ul {
	margin: 0 auto
}

#main ul li {
  list-style: none;
  margin-left: -1em;
  text-indent: -0.4em;
}
#main ul li:before {
  content: "-";
  position: relative;
  left: -0.5em;
}

a img {
  filter: alpha(opacity=65);
  opacity: 0.65;
  -webkit-transition: 0.2s;
  -moz-transition: 0.2s;
  -o-transition: 0.2s;
  -ms-transition: 0.2s;
  transition: 0.2s;
}
a:hover img,
a:focus img {
  filter: alpha(opacity=65);
  opacity: 1;
}

summary {
  pointer: cursor;
}

table {
  margin: 1em auto;
  border: none;
  text-align: center;
  -webkit-box-shadow: 0 0 4px #aaaaaa;
  -moz-box-shadow: 0 0 4px #aaaaaa;
  box-shadow: 0 0 4px #aaaaaa;
  border-radius: 4px;
}
table tr {
  border-bottom: 1px solid #f2f2f2;
}
table tr:last-child {
  border-bottom: none;
}
table tr:last-child td:first-child {
  border-radius: 0 0 0 4px;
}
table tr:last-child td:last-child {
  border-radius: 0 0 4px 0;
}
table tr th,
table tr td {
  border: none;
  padding: 0.5em;
  vertical-align: middle;
}
table tr th {
  background-color: #eeeeee;
  font-weight: 600;
}
table tr th:first-of-type {
  border-radius: 4px 0 0;
}
table tr th:last-of-type {
  border-radius: 0 4px 0 0;
}
table tr td {
  border-right: 1px solid #f2f2f2;
  background-color: #f8f8f8;
}

/* header */

header#navigation {
  width: 100%;
  min-width: 280px;
  background-color: #eeeeee;
  font-family: 'Lato', 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
}
header#navigation a {
  text-decoration: none;
}
header#navigation h1 {
  margin: 0;
  padding: 0.5em 1em 0.5em 0.5em;
  font-weight: 100;
  font-size: 2em;
  text-align: center;
  letter-spacing: -2px;
  word-spacing: 1px;
  color: #333333;
}
header#navigation nav ul li {
  display: inline;
  margin-left: 0;
  font-weight: 400;
}

header#navigation nav ul li:before {
	content: none;
}

header#navigation nav ul li a {
  display: inline-block;
  padding: 0.5em;
}

*:first-child+html header#navigation nav ul li a {
  display: inline;
  zoom: 1;
}

header#navigation nav ul li a:hover,
header#navigation nav ul li a:focus {
  color: #da1818;
}

/* end of header */

body#index header#navigation nav ul li a[href="index.php"],
body#studies header#navigation nav ul li a[href="studies.php"],
body#portfolio header#navigation nav ul li a[href="portfolio.php"] {
  position: relative;
  color: #da1818;
}
body#index header#navigation nav ul li a[href="index.php"]:after,
body#studies header#navigation nav ul li a[href="studies.php"]:after,
body#portfolio header#navigation nav ul li a[href="portfolio.php"]:after {
  content: "";
  position: absolute;
  border-color: transparent transparent #da1818 transparent;
  border-style: solid;
  border-width: 5px;
  height: 0;
  width: 0;
  bottom: 0;
  left: 48%;
}
#main {
  width: 97%;
  max-width: 620px;
  margin: 1em auto;
}
#main > h2 {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  font-weight: 100;
  font-size: 3.5em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  letter-spacing: -1px;
  word-spacing: 2px;
  margin-top: 0.8em;
}

#main header {
  font-weight: 200;
  border-bottom: 1px solid #eaeaea;
  background-color: #E9E9E9;
  background-image: -webkit-gradient(linear, left center, right center, from(#f5f5f5), to(#eeeeee));
  background-image: -webkit-linear-gradient(left, #f5f5f5, #eeeeee);
  background-image: -moz-linear-gradient(left, #f5f5f5, #eeeeee);
  background-image: -o-linear-gradient(left, #f5f5f5, #eeeeee);
  background-image: -ms-linear-gradient(left, #f5f5f5, #eeeeee);
  background-image: linear-gradient(left, #f5f5f5, #eeeeee);
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#f5f5f5', EndColorStr='#eeeeee');
}
#main header h3,
#main header h4,
#main header h5,
#main header h6 {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  letter-spacing: -1px;
  margin-bottom: 0.5em;
  font-size: 1.2em;
  clear: left;
}
#main #resume dt {
  float: left;
  width: 6em;
  text-align: right;
}
#main #resume dt:after {
  content: ":";
  float: right;
  position: relative;
  right: -0.5em;
}
#main #resume dd {
  margin-left: 7em;
}
#main #resume aside {
  width: 50%;
  margin: 2em auto;
  text-align: center;
}
#main #resume aside img {
  border-radius: 200px;
}
#main #resume aside h4 {
  text-align: center;
}
#main #resume aside dl {
  text-align: left;
}
#main #resume aside dl dt {
  width: 40%;
  padding-right: 0.5em;
  font-weight: normal;
}
#main #resume aside dl dd {
  margin-left: 47%;
}
#main section {
  clear: left;
}
#main .subsection {
  float: left;
  clear: none;
  min-width: 12em;
  max-width: 34em;
  margin-right: 2em;
  margin-bottom: 2em;
}
#main aside {
  font-size: 80%;
  margin-bottom: 1em;
}
#main .thumb li {
  padding: 0;
  margin: 0;
  text-indent: 0;
  float: left;
  overflow: hidden;
  width: 10em;
  height: 10em;
  margin-right: 0.5em;
  margin-bottom: 1em;
  padding: 0.5em;
  border-radius: 8px 0;
  background-color: #eeeeee;
}
#main .thumb {
  margin-top: 0.5em;
}
#main .thumb li:before {
  content: none;
  padding: 0;
  margin: 0;
  text-indent: 0;
}
#main .thumb li h5 {
  padding: 0;
  margin: 0;
  text-indent: 0;
  width: 100%;
  margin: 0 0 0.5em 0;
  border-bottom: 1px solid #aaa;
}

#main #skill {
  display: none;
}

#resume ul{
	padding-left: 0;
}

#resume ul li {
	margin-left: 0;
	text-indent: 0;
}

#resume ul li:before {
	content: none;
	left: 0;
}

details dl dd {
	position: relative;
}

details dl dd:before {
	content: "↳";
	position: absolute;
	left: -1.2em;
	top: -0.4em;
}

/* footer */

footer#information {
  position: relative;
  clear: both;
  width: 100%;
  min-width: 280px;
  margin: 0 auto;
  background-color: #eeeeee;
  text-align: center;
  font-size: 0.8em;
}
footer#information address {
  cursor: pointer;
}
footer#information address:hover {
  text-decoration: underline;
}
footer#information #formmail {
  position: relative;
  padding: 1em;
  border: 1px solid #333333;
  background-color: #eeeeee;
  border-radius: 4px;
  text-align: left;
}
footer#information #formmail fieldset {
  margin: 0.5em;
}
footer#information #formmail fieldset p {
  margin-bottom: 0.5em;
}
footer#information #formmail fieldset input[type="text"],
footer#information #formmail fieldset input[type="email"],
footer#information #formmail fieldset textarea {
  border: 1px solid #333333;
  background-color: white;
  border-radius: 4px;
}
footer#information #formmail fieldset input {
  height: 1.5em;
}
footer#information #formmail fieldset input[type="text"],
footer#information #formmail fieldset input[type="email"] {
  width: 50%;
  min-width: 120px;
}
footer#information #formmail fieldset textarea {
  width: 90%;
  padding: 0.5em;
}
footer#information #formmail.js {
  position: absolute;
  z-index: 500;
  bottom: 0;
  left: 25%;
  width: 70%;
  max-width: 300px;
  border-radius: 4px 4px 0 0;
  -webkit-box-shadow: 1px 1px 2px #aaaaaa;
  -moz-box-shadow: 1px 1px 2px #aaaaaa;
  box-shadow: 1px 1px 2px #aaaaaa;
}
footer#information #formmail.js span {
  position: absolute;
  right: 2em;
  top: 1em;
  cursor: pointer;
}
footer#information p {
  padding: 0;
  margin: 0;
  text-indent: 0;
  margin-top: 0.5em;
}
footer#information a[href="#main"] {
  display: none;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
}

/* end of footer */

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Image replacement
 */
.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */
  *text-indent: -9999px;
}
.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 150%;
}
/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
  display: none !important;
  visibility: hidden;
}
/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
  visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}
.clearfix:after {
  clear: both;
}
/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.clearfix {
  *zoom: 1;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
  body {
    width: 100%;
  }
  header#navigation {
    background-color: #f5f5f5;
    background-image: -webkit-gradient(linear, left center, right center, from(#f5f5f5), to(#eeeeee));
    background-image: -webkit-linear-gradient(left, #f5f5f5, #eeeeee);
    background-image: -moz-linear-gradient(left, #f5f5f5, #eeeeee);
    background-image: -o-linear-gradient(left, #f5f5f5, #eeeeee);
    background-image: -ms-linear-gradient(left, #f5f5f5, #eeeeee);
    background-image: linear-gradient(left, #f5f5f5, #eeeeee);
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#f5f5f5', EndColorStr='#eeeeee');
    max-width: 70em;
    margin: 0 auto;
    width: 100%;
  }
  header#navigation a {
    display: inline;
  }
  header#navigation h1 {
    float: left;
    text-align: left;
  }
  header#navigation nav ul {
    margin: 0;
    background: none;
  }
  header#navigation nav ul li {
    border: none;
    padding: 0 0.5em;
  }
  #main {
    max-width: 70em;
    width: 95%;
    margin: 0 auto;
  }
  #main #resume > dl {
    float: right;
    width: 75%;
  }
  #main #resume #skill {
    display: block;
    width: 20%;
    min-width: 9em;
    margin: 2em 0;
    font-size: 90%;
  }
  
  footer#information a[href="#main"] {
  display: block;
  }
}
@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links for images, or javascript/internal links
     */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group;
    /* h5bp.com/t */
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  @page {
    margin: 0.5cm;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
