* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HELPERS */
.clearfix {
  clear: both;
}

.flex {
  display: flex;
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}

.glyphicon-download:before {
  content: 'Export';
}

#ajax-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 15px 0 0 15px;
  padding: 13px;
  background: url('../images/spinner.gif') no-repeat 50% 50%;
  font-size: 0;
  z-index: 123456;
  display: none;
}

.inline-spinner {
  background: url('../images/spinner.gif') no-repeat 50% 50%;
  z-index: 123456;
  font-size: 0;
  padding: 13px;
  display: none;
}

.flashes {
  position: absolute;
  left: 50%;
  top: 15px;
}

.flash, .flash.info {
  position: relative;
  left: -50%;
  background: #FFF9D7;
  border: 1px solid #FFF0A5;
  padding: 6px;
  margin: 6px auto;
  width: auto;
  z-index: 9999999;
}

.flash.success {
  border-color: #5db694;
  background: #ccffcc;
}

.flash.error {
  border-color: #CD1818;
  background: #ffa3a3;
}

a[href^="error:"] {
  background: red;
  color: white;
}

html.js .jshidden {
  display: none;
}

#admin-menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border-bottom: 2px solid #666;
}

#admin-menu nav {
  margin: 0;
}

#user-panel {
  padding: 1px 20px;
  font-size: 12px;
}

#user-panel a {
  color: #5bc0de;
}

#search-input-wrapper {
  height: 20px;
}

.gsc-input-box a, .gsc-input-box a:hover {
  padding: 0;
  margin: 0;
  background: none;
}

input.gsc-input {
  background-image: none !important;
}

input.gsc-search-button {
  padding: 6px !important;
}

pre {
  font-size: 11px;
}

/* LAYOUT */
body {
  font-size: 0.9em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-rendering: optimizelegibility;
  color: #181D45;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
}

.page-wrap {
  flex: 1;
}

header {
  background-color: #00135B;
  width: 100%;
 
  padding: 0 20px;
  border-bottom: 5px solid #BD2B22;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  margin-top: 28px;
  margin-right: 20px;
  margin-bottom: 20px;
}

nav {
  min-width:724px;
  margin-top: 13px;
}

nav ul {
  display: flex;
  list-style-type: none;
  margin-right: 20px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  font-size: 14px;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #181D45;
  list-style-type: none;
  padding: 10px 0;
  min-width: 150px;
  z-index: 10;
}

nav ul li ul li {
  display: block;
}

nav ul li ul li a {
  display: block;
  padding: 5px 10px;
  white-space: nowrap;
}

nav ul li:hover ul {
  display: block;
}

nav a, nav a:hover, nav a:active, nav a:visited {
  background: none;
  color: #fff;
  text-decoration: none;
}

nav > ul > li > a, nav > ul > li > a:hover, nav > ul > li > a:active, nav > ul > li > a:visited {
  margin: 0 16px 0 0;
  padding: 0;
}

nav > ul > li:hover > a, nav > ul > li.current > a {
  border-bottom: 2px solid #fff;
  cursor: pointer;
}

nav ul li ul li a:hover {
  text-decoration: underline;
}

.header-content #search-input-wrapper {
  margin-left: auto;
}

main {
  padding: 0 20px;
}

main:not(.admin-module) {
  background-image: url(/images/Lau-050.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

main .content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  padding: 60px 30px;
  min-height: 100vh;
}

main:not(.admin-module) .content {
  background-color: rgba(255, 255, 255, 0.97);
}

main.admin-module .content {
  width: 100%;
  max-width: 100%;
}

aside {
  width: 25%;
  min-width: 252px;
  margin-left: 20px;
}

footer {
  background-color: black;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer p {
  color: white;
}

/* POSTS */
.posts {
  flex: 1;
  margin-right: 20px;
}

.post {
  margin-bottom: 60px;
  max-width: 815px;
}

.post h2.post-title {
  font-size: 24px;
  color: #BD2B22;
  margin-bottom: 5px;
}

.post-title a, .post-title a:active, .post-title a:hover, .post-title a:visited {
  color: #BD2B22;
  text-decoration: none;
}

.post-title a:hover {
  color: #000;
}

.post-data {
  font-size: 12px;
  color: #777;
  border-top: 1px solid #DDD;
  margin-bottom: 15px;
  padding-top: 4px;
}

.post p {
  margin: 1em 0;
  line-height: 1.5;
}

.post img {
  max-width: 100%;
}

.post p img {
  margin: 4px 4px 0 0;
}

.post p img[style*="float: left"] {
  margin: 4px 15px 0 0;
}

.post p img[style*="float: right"] {
  margin: 4px 0 0 15px;
}

.post-checkbox {
  float: left;
  margin: 7px 7px 0 0;
}

a.button.post-readmore, a.button.post-readmore:active, a.button.post-readmore:hover, a.button.post-readmore:visited {
  display: inline-block;
  margin-top: 16px;
}

.inline-edit-panel {
  float: right;
  margin-top: 13px;
  font-size: 11px;
}

.inline-edit-panel a {
  text-decoration: none;
}

.aside-section {
  background: #fff;
  margin-bottom: 40px;
}

.aside-section > h3 {
  margin: 0;
  padding: 10px 20px;
  background: #BD2B22;
  color: #FFF;
  font-size: 19px;
  font-weight: normal;
}

.aside-section > div {
  padding: 20px;
}

.actual-events ul {
  list-style-type: square;
  margin: 0;
  padding: 0 0 0 20px;
}

.actual-events ul li {
  padding: 10px 0;
  color: #BD2B22;
}

.actual-events ul li a, .actual-events ul li a:active, .actual-events ul li a:visited {
  text-decoration: none;
}

.actual-events h4 {
  font-size: 16px;
  color: #000;
  margin: 0 0 3px;
}

.actual-events p {
  display: block;
  font-size: 11px;
  color: #000;
  margin: 0;
}

.actual-events .past-events li,
.actual-events .past-events li a
{
  color: #777;
}

aside #write-us {
  margin: 20px 0 40px;
  display: block;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
}

aside #write-us a {
  text-decoration: none;
}

.banners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.banners a:hover {
  background: none;
}

.banner {
  width: 252px;
  height: auto;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  background: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") no-repeat 50% 50%;
  background-size: 100% 100%;
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

@media screen and (max-width: 767px) {
  main {
    padding: 0;
  }

  nav {
    min-width: auto;
    width: 100%;
    display: contents;
    position: fixed;
    top: 96px;
    right: 0;
    background: #181D45;
    z-index: 999;
  }

  nav ul {
    display: block;
    margin: 0 40px;
  }

  nav ul li {
    font-size: 1.6em;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #3e4c80;
  }

  nav ul li a {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
  }

  nav > ul > li > a, nav > ul > li.current > a, nav > ul > li:hover > a {
    padding: 10px 0;
    border-bottom: none;
    text-decoration: none;
  }

  nav ul li ul {
    position: relative;
    display: block;
    margin: 5px 15px;
    padding: 0;
  }

  nav ul li ul li {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: none;
  }

  nav ul li ul li:last-child {
    padding-bottom: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-content #search-input-wrapper {
    display: none;
  }

  .content {
    flex-direction: column;
  }

  aside {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }

  .post img {
    width: 100%;
    height: auto;
  }
}

@media screen and (min-width: 768px) {
  .page-wrap {
    min-width: 1200px;
  }

  .logo {
    margin-right: 20px;
    margin-left: 10px;
  }

  main:not(.admin-module) .content {
    min-width: 1110px;
  }
}

/* TYPOGRAPHY */
a, a:active, a:hover, a:visited {
  color: #2c52a9;
  text-decoration: underline;
}

p a:hover, #top-panel a:hover, .edit-panel a:hover, .inline-edit-panel a:hover, aside a:hover, .edit-buttons a:hover {
  background: #2c52a9;
  border-radius: 2px 2px;
  color: #FFF;
  padding: 2px 3px;
  margin: -2px -3px;
}

.edit-panel a, .inline-edit-panel a, #top-panel a {
  text-decoration: none;
  display: inline-block;
}

h1 {
  margin: 3px 0 12px;
  font-size: 32px;
  letter-spacing: -0.7px;
  color: #BD2B22;
}

h2, h3, h4 {
  margin: 12px 0;
}

table th, table td {
  padding: 5px 10px;
}

/* GALLERY */
.gallery {
  margin-top: 20px;
  clear: both;
}

a.picture, a.picture:active, a.picture:hover, a.picture:visited {
  display: inline-block;
  font-size: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

a.picture img {
  margin: 0;
  padding: 0;
  border: none;
}

.gallery .picture-wrapper, .gallery .gallery-wrapper {
  float: left;
  margin: 0 2px 2px 0;
  padding: 0;
}

.gallery .picture-wrapper {
  width: 200px;
}

.gallery .gallery-wrapper {
  width: 200px;
  height: 252px;
}

.gallery .picture-wrapper a.picture {
  float: left;
  width: 100%;
}

.gallery .picture-wrapper a.picture img {
  width: 100%;
}

.gallery-wrapper {
  border: 1px solid #ddd;
}

.gallery-wrapper a.picture {
  width: 100%;
}

.gallery-wrapper a.picture img {
  margin: -1px;
  width: 100%;
}

.gallery-info {
  width: 100%;
  line-height: 1;
}

.gallery-info h3 {
  margin: 2px 4px;
  font-size: 12px;
  font-weight: bold;
}

.gallery-info h3 a {
  text-decoration: none;
}

.gallery-info p {
  margin: 4px;
  font-size: 10px;
}

.gallery-edit .picture-wrapper {
  margin: 0 18px 25px 0;
  width: 170px;
}

.gallery-edit .picture-wrapper a {
  display: block;
}

.gallery-edit .picture-wrapper.deleted a,
.gallery-edit .picture-wrapper.deleted .gallery-picture-controls input {
  opacity: 0.3;
  filter: alpha(opacity=30);
}

.gallery-picture-controls {
  font-size: 12px;
}

.gallery-picture-controls input[type=text] {
  margin-top: 2px;
  width: 162px;
}

.gallery-edit .picture-delete {
  font-size: 10px;
  float: right;
}

.picture-wrapper.float-left {
  float: left;
  margin-right: 15px;
}

.picture-wrapper.float-right {
  float: right;
  margin-left: 15px;
}

.picture-wrapper.float-none {
  clear: both;
}

.fileupload-button {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 40px;
}

.fileupload-button input {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  filter: alpha(opacity=0);
  font-size: 23px;
  direction: ltr;
  cursor: pointer;
}

/* EVENTS */
#events-filter {
  background: #F2EEE1;
  width: 100%;
  margin-top: 25px;
  margin-bottom: 25px;
}

#events-filter .filter-item {
  height: 30px;
  margin: 4px 8px;
}

#events-table {
  width: 100%;
  border-collapse: collapse;
}

#events-table th {
  text-align: left;
  border-bottom: 1px solid #000;
}

#events-table .event-date {
  width: 90px;
}

#events-table .event-actions {
  width: 40px;
}

.event-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 20px;
}

.event-detail-table th, .event-detail-table td {
  padding: 12px 12px;
  border: 1px solid #ccc;
}

.event-detail-table th {
  text-align: left;
  padding-right: 25px;
}

.event-detail-table td {
  min-width: 300px;
}

.past-event {
  /*opacity: 0.5;*/
  /*filter:alpha(opacity=50);*/
}

.events-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.events-list-table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}

.events-list-table tr.past-event {
  /*opacity: 0.55;*/
  /*filter:alpha(opacity=55);*/
}

.events-list-table tr td.events-list-block-header {
  background: #e5e5e5;
  font-weight: bold;
}

.events-list-table tbody tr:hover {
  background: #F8F8F8;
}

.events-list-table th {
  text-align: left;
  padding: 12px 6px;
  border-bottom: 1px solid #000;
  font-weight: bold;
}

.events-list-table td {
  border-top: 1px solid #ddd;
  padding: 12px 6px;
}

.events-list-table td.event-date {
  width: 180px;
}

.events-list-table td.event-name {
  width: auto;
}

td.event-links ul {
  padding: 0 6px 0 20px;
}

td.event-links ul li a {
  font-size: 14px;
  margin: 4px 0 4px -5px;
}

.events-list-table td.event-actions a {
  font-size: 14px;
}

.events-list-table td.event-actions a:not(:last-child) {
  margin-right: 10px;
}

.events-list-table a {
  text-decoration: none;
}

.events-list-table a:hover {
  text-decoration: underline;
}

/* PAGINATOR */
#content div.paginator {
  width: 100%;
  text-align: center;
  margin: 1em 0;
  padding-top: 20px;
  font-size: 90%;
  border-top: 3px solid #BD2B22;
}

#content div.paginator a, #content div.paginator span {
  margin-right: 0.1em;
  padding: 0.2em 0.5em;
  color: #999;
}

#content div.paginator a {
  background: #BD2B22;
  border: 1px solid #BD2B22;
  color: #FFF;
  text-decoration: none;
}

#content div.paginator a:hover {
  text-decoration: underline;
}

#content div.paginator span.button {
  border: 1px solid #DDD;
  background: #DDD;
}

#content div.paginator .current {
  border: 1px solid #BD2B22;
  background: #DDD;
  text-decoration: none;
  color: #BD2B22;
  font-weight: bold;
}

/* TABS */
div.tab-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 32px; /*--Set height of tabs--*/
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  width: 100%;

}

div.tab-panel ul li {
  float: left;
  margin: 0;
  padding: 0;
  height: 31px; /*--Subtract 1px from the height of the unordered list--*/
  line-height: 31px; /*--Vertically aligns the text within the tab--*/
  border: 1px solid #ccc;
  border-left: none;
  margin-bottom: -1px; /*--Pull the list item down 1px--*/
  overflow: hidden;
  position: relative;
  background: #ededed;
}

div.tab-panel ul li a {
  text-decoration: none;
  color: #000;
  display: block;
  font-size: 11pt;
  padding: 0 14px;
  border: 1px solid #fff;
}

div.tab-panel ul li a:hover {
  background: #ccc;
}

html div.tab-panel ul li.active, html div.tab-panel ul li.active a:hover  { /*--Makes sure that the active tab does not listen to the hover properties--*/
  background: #fff;
  border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}

.tab-container {
  border: 1px solid #ccc;
  border-top: none;
  overflow: hidden;
  width: 100%;
}

.tab-container div.buttons {
  height: 30px;
  padding: 10px 20px;
  border-top: 1px dotted #ccc;
}

.tab {
  padding: 20px;
}

/* MEDIA & GALLERY MANAGER */
table#filesGrid thead th,
table#editorImagesGrid thead th,
table#editorGalleriesGrid thead th {
  width: auto;
}

th.grid-header-thumb {
  width: 60px;
}

td.grid-cell-thumb {
  text-align: center;
  font-size: 10px;
}

td.grid-cell-thumb a {
  display: inline-block;
  width: 48px;
  height: 48px;
}

table#filesGrid td.grid-cell-thumb a.download-icon {
  background: url(../images/download-icon.png) top left no-repeat;
}

div.media-manager-wrapper, div.gallery-manager-wrapper {
  margin: 25px;
}

#media-dialog {
  overflow: hidden;
  padding: 0;
}

#media-dialog iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#add-media-dialog-button {
  display: inline-block;
  margin: 14px;
  font-weight: bold;
}

#event-form-links .links-item {
  margin-bottom: 10px;
  min-width: 1100px;
}

#event-form-links input {
  margin-right: 30px;
  min-width: 350px;
}

#event-form-links .links-item input[name$="[url]"] {
  width: 400px;
}

#event-form-links a {
  margin-right: 10px;
}

.ui-dialog * {
  box-sizing: content-box;
}

.ui-dialog .ui-dialog-content {
  font-size: 0.9em;
}

.ui-dialog .ui-dialog-titlebar {
  height: 20px;
  font-size: 0.9em;
}

a.picture.single-picture {
  display: inline;
}

.application-form {
  margin-top: 20px;
}

.social-wrapper {
  clear: both;
  height: 22px;
}

/* FORMS, BUTTONS */
form:not(.gsc-search-box) tr, form:not(.gsc-search-box) td {
  vertical-align: top;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 0;
}

form th {
  white-space: nowrap;
  text-align: right;
  padding-top: 6px;
}

form:not(.gsc-search-box) td {
  text-align: left;
}

form td small {
  display: block;
}

form label.required:before {
  content: '* ';
  color: #BD2B22;
}

form .error {
  color: #D00;
  font-weight: bold;
}

input[type=text], input[type=password], textarea, select {
  border-width: 1px;
  padding: 3px;
}

input[type="checkbox"] {
  margin-right: 3px;
}

input.button, button.button {
  margin-top: 6px;
  padding: 4px 12px;
  background: #BD2B22;
  color: #FFF;
  font-size: 15px;
  border-width: 2px;
}

a.button, a.button:active, a.button:visited, a.button:hover {
  margin: 0;
  padding: 4px 12px;
  background: #BD2B22;
  color: #FFF;
  font-size: 16px;
  text-decoration: none;
}

fieldset {
  padding: 10px;
}

legend {
  margin-left: 5px;
  padding: 2px;
}
