html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: #999999;
  background-repeat: repeat-x;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.5;
}

a {
  color: default;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: 'Palatino Linotype', Georgia, serif;
}

/* Wrapper and gradient (to add patterned background) */

#gradient {
  position: absolute;
  width: 100%;
  height: 800px;
  max-height: 100%;
  background-image: linear-gradient(#eeeeee, #999999);
  z-index: 0;
}

#wrapper {
  position: relative;
  background-image: url('/layout/sayagata.png');
  z-index: 1;
}

/* Define the max-width for site contents */
.container {
  max-width: 1000px;
  margin: 0 auto;
}


/* Banner */
#banner {
  background-color: #ffffff;
  padding: 1.25rem 0 .25rem 0;
  overflow: auto;
}

#banner h1 {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
}

#banner img {
  margin: 0 0 0 1rem;
}


/* Main */
#main {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem auto 0 auto;
  box-shadow: 0px 0px 4px #ccc;
}

#main h2 {
  font-size: 1.5rem;
  margin: 0 0 .5rem 0;
}

/* Left navigation (tags) */
#left-nav {
  background-color: #ececec;
  background-image: url('/layout/extra_clean_paper.png');
  padding: 1rem;
  flex: 1 0 200px;
}

#left-nav h2 {
  margin-bottom: 1rem;
}

#left-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#left-nav ul li {
  margin: 0 0 .5rem 0;
}

#left-nav .menu-icon {
  display: none;
}

#left-nav .menu-checkbox {
  display: none;
}


/* Contents */

#contents {
  background-color: #ffffff;
  padding: 1rem;
  flex: 1 1 720px;
}


/* Gallery */

.gallery {
  text-align: center;
}

.gallery a.work {
  display: inline-block;
  color: #333;
  text-decoration: none;
  text-align: center;
  border: 1px solid #ccc;
  margin: .5rem .25rem;
}

.gallery a.work:hover {
  background-color: #eee;
}

.gallery .work .title {
  display: block;
  padding: .25rem .5rem 0 .5rem;
}

.gallery a.work:hover .title {
  text-decoration: underline;
}

.gallery .work .date {
  display: block;
  font-size: .9rem;
  font-style: italic;
  padding: .25rem 0;
}


/* Page Navigation */

#page-nav {
  margin: .5rem 0;
  padding: .5rem;
  background-color: #ececec;
  background-image: url('/layout/extra_clean_paper.png');
}

#page-nav a {
  margin: 0 .5rem;
}

#page-nav a.current-page {
  pointer-events: none;
  cursor: default;
  color: #333;
  font-weight: bold;
}

/* Details pages */

.details .date {
  font-style: italic;
}

.details .image {
  text-align: center;
}

.details .image img {
  max-width: 100%;
}

.back {
  margin-top: 0;
  font-size: .9rem;
}

.work-tags {
  margin: 1rem 0 0 0;
  font-style: italic;
}

.work-tags ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline;
  font-style: normal;
}

.work-tags ul li {
  display: inline-block;
  margin: 0 .25rem;
}

.work-tags ul li a {
  display: block;
  padding: .25rem .5rem;
  background-color: #eeeeee;
  border: 1px solid #cccccc;
}

/* Footer */

#footer {
  background-color: #cccccc;
  padding: 1rem;
  text-align: center;
  font-size: .9rem;
  margin-top: 1rem;
}


/* Responsive Styles */

@media screen and (max-width: 1000px) {
  
  #main {
    box-shadow: none;
  }
  
  #left-nav {
    padding: .5rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0px 0px 4px #ccc;
  }
  
  #left-nav h2 {
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
  }
   
  #left-nav .menu-icon {
    display: inline-block;
    cursor: pointer;
    padding: 8px 8px 8px 28px;
    background-image: url('/layout/menu-icon.png');
    background-repeat: no-repeat;
    background-position: 2px;
  }
  
  #left-nav ul {
    display: none;
    z-index: 3;
  }
  
  
  #tag-checkbox:checked ~ ul {
    display: block;
    margin: 8px 0 0 28px;
  }
  
  #contents {
    box-shadow: 0px 0px 4px #ccc;
  }
  
}