/* OutOfTheBoxStudio - Clean static recreation based on Twenty Eleven */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.625;
  color: #373737;
  background: #e2e2e2 url(images/bg.jpg) no-repeat top center fixed;
  background-size: cover;
  padding: 0 1em;
}

a { color: #7240fc; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Page wrapper */
#page {
  max-width: 1000px;
  margin: 2em auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* Header */
#branding {
  border-top: 2px solid #bbb;
  padding-top: 0;
}

#branding img {
  display: block;
  width: 100%;
  height: auto;
}

/* Navigation */
#access {
  background: #222;
  display: block;
  width: 100%;
}

#access ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 7.6%;
}

#access li {
  position: relative;
}

#access a {
  display: block;
  padding: 0.8em 1.2em;
  color: #eee;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

#access a:hover,
#access li.current > a,
#access li.current_page_item > a {
  background: #7240fc;
  color: #fff;
}

/* Dropdown */
#access ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  min-width: 180px;
  z-index: 100;
  flex-direction: column;
  padding: 0;
}

#access li:hover > ul {
  display: flex;
}

#access ul ul a {
  padding: 0.6em 1.2em;
  border-top: 1px solid #333;
}

/* Layout */
#main {
  display: flex;
  flex-wrap: wrap;
  padding: 2em 0;
}

#primary {
  flex: 1 1 65%;
  max-width: 65%;
  padding: 0 3.8%;
}

#secondary {
  flex: 1 1 25%;
  max-width: 25%;
  padding: 0 3.8%;
}

/* Content */
.entry-header {
  margin-bottom: 1.5em;
}

.entry-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.entry-content {
  margin-bottom: 1.5em;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-bottom: 1em;
}

.entry-content h2 {
  font-size: 20px;
  margin: 1.2em 0 0.6em;
  color: #222;
}

.entry-content blockquote {
  border-left: 4px solid #7240fc;
  padding-left: 1em;
  font-style: italic;
  color: #555;
}

.entry-content ul {
  list-style: disc;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar widgets */
.widget {
  margin-bottom: 2em;
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.8em;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 0.3em 0;
  border-bottom: 1px solid #ddd;
}

/* Contact form */
.contact-form label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.5em;
  border: 1px solid #ccc;
  margin-bottom: 1em;
  font-family: inherit;
  font-size: 14px;
}

.contact-form textarea {
  max-width: 100%;
  resize: vertical;
}

.contact-form input[type="submit"] {
  background: #7240fc;
  color: #fff;
  border: none;
  padding: 0.6em 1.5em;
  font-size: 14px;
  cursor: pointer;
}

.contact-form input[type="submit"]:hover {
  background: #5a2fd4;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1em 0;
  align-items: stretch;
}

.gallery-item {
  flex: 1 1 200px;
  min-width: 150px;
  max-width: 100%;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e0e0e0;
  transition: opacity 0.3s ease;
}

.gallery-item img:hover {
  opacity: 0.85;
}

/* Footer */
#colophon {
  clear: both;
  border-top: 2px solid #bbb;
  background: #f9f9f9;
}

#supplementary {
  display: flex;
  flex-wrap: wrap;
  padding: 1.5em 3.8%;
  gap: 2em;
}

#supplementary .widget-area {
  flex: 1 1 30%;
  min-width: 200px;
}

#site-generator {
  text-align: center;
  padding: 1em;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 800px) {
  #primary, #secondary {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0 7.6%;
  }
  #secondary {
    margin-top: 2em;
  }
  #access ul {
    padding: 0;
    flex-direction: column;
  }
  #access ul ul {
    position: static;
    display: none;
    padding-left: 1em;
  }
  #access li:hover > ul {
    display: flex;
  }
}

/* Assistive text (hidden) */
.assistive-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
}
