/*
 * codename "Westin" - Wesnoth 1.12 Press Release stylesheet
 * Copyright (C) 2014 by Ignacio Riquelme Morelle <shadowm@wesnoth.org>
 *
 * Based on "Glamdrol" - Wesnoth.org MediaWiki stylesheet
 * Copyright (C) 2005 by Jordà Polo <jorda AT ettin DOT org>
 *
 * This stylesheet is free software; you can redistribute it and/or
 * modify under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This stylesheet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY.
 *
 * See <http://www.gnu.org/copyleft/gpl.html> for more details.
 */

/*
 * 1. Structural
 */

html {
  overflow-y: scroll;
  background: #fffbf0;
  background: -webkit-linear-gradient(left, #e7d9c0, #fffbf0 5%, #fffbf0 95%, #e7d9c0);
  background: -moz-linear-gradient(left, #e7d9c0, #fffbf0 5%, #fffbf0 95%, #e7d9c0);
  background: linear-gradient(to right, #e7d9c0, #fffbf0 5%, #fffbf0 95%, #e7d9c0);
}

body {
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
}

#header {
  position: relative;
  background: #0f1421 url('../images/header-1920.jpg') bottom center no-repeat;
  border-bottom: 1px solid #0f1421;
  min-height: 300px;
  padding: 2em 0;
}

#logo {
  margin: 0;
  padding: 0;
  text-align: center;
}

#logo img {
  margin: 0;
  padding: 0;
}

#logo a {
  margin: 0;
  padding: 0;
  color: #654;
  text-decoration: none;
  font-size: 0.85em;
}

#intro {
  background: #E7D9C0;
  background: rgba(231,217,192,0.8);
  box-shadow: 0px 0px 16px #000;
  border-radius: 6px;

  width: auto;
  max-width: 60em;
  margin: 1.7em auto;
  padding: 0.85em 1.7em;

  text-align: center;
}

#intro h1 {
  margin: 0;
  color: #000;
  text-shadow: 0px 1px 0px #eee;
  font-size: 325%;
  padding: 0.1em 0;
}

#intro p {
  margin: 0.4em 0;
  color: #111;
  text-shadow: 0px 1px 0px #ddd;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 120%;
}

#main,
#languages {
  margin: 0 auto;
  width: auto;
  max-width: 66em;
  padding: 0 10px;
}

#content {
  margin: 10px 22px;
}

.divider,
#footer {
  border-bottom: 1px solid #724f2e;

  background: #0f1421;
  background: -webkit-linear-gradient(left, #0f1421, #161e31, #0f1421);
  background: -moz-linear-gradient(left, #0f1421, #161e31, #0f1421);
  background: linear-gradient(to right, #0f1421, #161e31, #0f1421);
}

.top-shadow,
.bot-shadow {
  padding: 0.4em;
}

.top-shadow {
  margin-bottom: 1em;
  border-top: #0f1421 solid 1px;

  background: -webkit-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  background: -moz-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
}

.bot-shadow {
  margin-top: 1em;
  padding-top: 1em;
  border-bottom: #0f1421 solid 1px;

  background: -webkit-linear-gradient(bottom, rgba(231,217,192,1.0), rgba(231,217,192,0.0));
  background: -moz-linear-gradient(bottom, rgba(231,217,192,1.0), rgba(231,217,192,0.0));
  background: linear-gradient(to top, rgba(231,217,192,1.0), rgba(231,217,192,0.0));
}

#footer {
  margin: 0;
  padding: 1em;
  border-bottom: none;
  border-top: #724f2e solid 1px;
  color: #ddd;
}

#footer p,
#footer ul {
  margin: 0 22px;
  font-size: 0.85em;
}

#footer ul {
  margin-bottom: 1em;
  padding: 0;
  list-style: none;
}

#footer li {
  display: inline-block;
  margin: 0;
  padding: 0 1em 0 0;
  list-style: none;
}

.visualClear {
  clear: both;
}

.center {
  width: 100%;
  text-align: center;
}

*.center * {
  margin-left: auto;
  margin-right: auto;
}

/*
 * 2. Content
 */

#main,
#languages,
p,
ul,
ol,
code {
  line-height: 1.7em;
}

p {
  margin: 0.85em 0;
}

img {
  border: none;
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: #25a;
  text-decoration: none;
}

a:hover,
a:active {
  color: #36f;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0.85em 0;
  padding-top: 0.42em;
  background: none;
  color: #222;
  font-family: Montaga, Junicode, 'Times New Roman', serif;
  font-weight: normal;
  line-height: 1em;
}

h2,
h3,
h4 {
  text-shadow: 0px 1px 0px #fff;
  color: #000;
}

h2 {
  font-size: 240%;
  padding-top: 0;
}

h3 {
  font-size: 200%;
}

h4 {
  font-size: 150%;
}

h5 {
  font-size: 140%;
}

h6 {
  font-size: 125%;
}

hr {
  height: 1px;
  margin: 1.7em 0 0.85em;
  border: none;

  background-color: #E7D9C0;
  background: -webkit-linear-gradient(left, #FFFBF0, #E7D9C0 30%, #E7D9C0 70%, #FFFBF0);
  background: -moz-linear-gradient(left, #FFFBF0, #E7D9C0 30%, #E7D9C0 70%, #FFFBF0);
  background: linear-gradient(to right, #FFFBF0, #E7D9C0 30%, #E7D9C0 70%, #FFFBF0);
}

ul {
  margin: 0.85em 0 0 1.5em;
  padding: 0;
  list-style-type: square;
  list-style-image: url('../images/bullet.gif');
  /* inline version */
  list-style-image: url('data:image/gif;base64,R0lGODlhBQANAIAAAGOMnP///yH5BAEAAAEALAAAAAAFAA0AAAIJjI+pu+APo4SpADs=');
}

ol {
  margin: 0.85em 0 0 3.2em;
  padding: 0;
  list-style-image: none;
}

li {
  margin-bottom: 0.1em;
}

code {
  font-family: Consolas, Inconsolata, Monaco, 'Courier New', monospace;
}

abbr {
  cursor:         help;
  font-variant:   normal;
  letter-spacing: normal;
  border-bottom:  1px dotted #333;
}

abbr:hover {
  background: #E7D9C0;
}

ins {
  text-decoration: underline;
  color: #080;
}

del, s {
  text-decoration: line-through;
  color: #666;
}

del {
  color: #800;
}

#footer a {
  color: #a27f44;
}

#footer a:hover {
  color: #e7d9c0;
}

/*
 * 3. Thumbnails (including MW compatibility)
 */

.thumb {
  width: auto;
  margin: 0.5em auto 1em;
  padding: 0.8em;
  font-size: 0.9em;
  text-align: center;
}

.thumb p {
  margin: 0;
}

.thumbcaption {
  margin-top: 0.8em;
  line-height: 0.8em;
}

div.tleft,
div.tright {
  border: #e7d9c0 solid 1px;
  background: #ebe5da;
}

div.tleft {
  clear: left; float: left;
  margin-left: 0;
  margin-right: 1.4em;
}

div.tright {
  clear: right; float: right;
  margin-right: 0;
  margin-left: 1.4em;
}

/*
 * 4. Bling
 */

#download-button {
  display: inline-block;

  margin: 0.85em 0;
  min-width: 216px;
  height: 42px;

  font-family: 'Lucida Grande', 'Trebuchet MS', 'DejaVu Sans Condensed', Arial, sans-serif;
  font-size: 20px;
  line-height: 42px;

  color: #bcb088;
  text-shadow: 0px -1px 0px #000;
  text-decoration: none;
  text-align: center;

  background: url('../images/download.png') center 0 no-repeat;
  background-size: 100% 132px;

  -webkit-transition: text-shadow 120ms;
  -moz-transition:    text-shadow 120ms;
  -o-transition:      text-shadow 120ms;
  transition:         text-shadow 120ms;
}

#download-button:hover {
  text-shadow: 0px -1px 0px #000, 0px 0px 8px #8ef;
  color:       #ddd;
  background-position: center -44px;
}

#download-button:active {
  background-position: center -88px;
}

/*
 * 5. Media queries
 */

@media only screen and (max-width: 699px) {
  #header {
    padding-bottom: 0;
    background-size: 1280px 439px;
    background-position: center top;
  }

  #intro {
    border-radius: 0;
    margin-bottom: 0;
  }

  #main {
    margin: 0;
  }
}

@media only screen and (max-width: 599px) {
  div.tleft,
  div.tright {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: none;
  }
}

@media only screen and (min-width: 1921px) {
  #header {
    background-image: /* no legacy fallback intended */
      linear-gradient(to right, rgba(15,20,33,1) calc((100% - 1920px)/2), rgba(15,20,33,0) calc((100% - 1920px)/2 + 3em)),
      linear-gradient(to left, rgba(15,20,33,1) calc((100% - 1920px)/2), rgba(15,20,33,0) calc((100% - 1920px)/2 + 3em)),
      url('../images/header-1920.jpg');
  }
}

/* kate: indent-mode normal; indent-width 2; space-indent on; */
