body {
    min-width: 430px;
    padding: 0;
    margin: 0;
    background-color: #000;
    font-family: Arial, sans-serif;
}

#main-container {
    width: 840px;
    margin-left: auto;
    margin-right: auto;
}

nav {
    padding: 0.5em 1em 0 1em;
    font-weight: bold;
    line-height: 1em;
    color: #FFFFFF;
}

nav a {
    color: #FFFFFF;
}

nav a:visited {
    color: #C0C0C0;
}

nav a:hover {
    color: #FFFF80;
}

.lang-switcher {
    float: right;
}

header {
    margin: 0.3em 0 0.5em 0;
    padding: 0 1em 0 1em;
    border: 2px solid #b6a8a4;
    border-radius: 10px;
    background-color: #253F60;
    color: #FFFFFF;
}

h1 {
    font-size: 1.6em;
    text-shadow: 1px 1px #000000;
}

h2 {
    font-size: 1.1em;
}

h3 {
	margin-top: 1.4em;
	font-size: 1.4em;
	color: #253F60;
	border-bottom: 1px solid #253F60;
}

h4 {
    margin: 1em 0 0 0;
}

ul {
    margin: 0;
}

main {
    display: block; /* IE9+ */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding: 0.5em 1em 0.5em 1em;
    border: 2px solid #b6a8a4;
    border-radius: 10px;
    box-shadow: 0 0 80px #fff8a9;
    background-color: #FFFFFF;
}

#tutorial-links a {
    display: inline-block;
    width: 340px;
    padding: 0.5em;
    margin: 1em;
    border: 1px solid #b6a8a4;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2em;
    color: #253f60;
}

#tutorial-links a:visited {
    color: #8798ad;
}

#tutorial-links a:hover {
    background-color: #fff8a9;
}


/* Img */
picture {
    position: relative;
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
}

picture img {
    border: none;
    display: block;
}

picture svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 800px;
}


@media only screen and (max-width: 840px) {
    #main-container {
        width: 436px;
    }

    picture img {
        width: 400px;
    }

    picture svg {
        width: 400px;
    }
}


/* SVG styles */
path {
    stroke: #ffffff;
    stroke-width: 1px;
}

.svg_good {
    fill: #17709e;
}

.svg_bad {
    fill: #ff4c15;
}

.svg_neutral {
    fill: #303030;
}

text {
    font-family: serif;
}

.svg_light {
    fill: #ffffff;
}

.svg_big {
    font-size: 32px;
}


/* Turn */

.turn {
    position: relative;
    border-top: 1px dashed #000000;
    margin-left: -16px;
    margin-top: 2em;
    margin-bottom: 1.4em;
    overflow: visible;
}

.turn div {
    width: 180px;
    position: absolute;
    left: -192px;
    top: -1px;
    border-top: 1px dashed #FFFFFF;
    padding-right: 8px;
    text-align: right;
    color: #FFFFFF;
    white-space: nowrap;
}

@media only screen and (max-width: 1180px) {
    .turn {
        margin-bottom: 2em;
    }
    
    .turn div {
        border-top: none;
        top: 0;
        left: 0;
        padding-right: 0;
        padding-left: 2px;
        text-align: left;
        background-color: #000000;
    }
}


/* Stickers */

.empty-container {
    position: relative;
}


/* Events */

.civ-event {
    width: 180px;
    position: absolute;
    left: -200px;
    top: 0px;
    margin-bottom: 0.2em;
    padding: 6px;
    text-align: center;
    border-radius: 5px;
}

.event-good {
    border: 1px solid #253F60;
    box-shadow: 0px 0px 6px #253F60;
    background-color: #ead2a2;
    color: #253F60;
}

.event-normal {
    border: 1px solid #b6a8a4;
    box-shadow: 0px 0px 6px #253F60;
    background-color: #253F60;
    color: #FFFFFF;
}

@media only screen and (max-width: 1180px) {
    .civ-event {
        position: inherit;
        left: 0;
        float: left;
        margin-left: -24px;
        margin-right: 0.7em;
    }
}


/* Strategy */

.strategy-container {
    float: right;
    width: 21px;
    margin-left: 0.5em;
    margin-bottom: 0.5em;
    border-left: 1px solid #D0D0D0;
    border-top: 1px solid #D0D0D0;
    border-bottom: 1px solid #D0D0D0;
    overflow: visible;
}

.strategy-new {
    background-color: #ffcccc;
}

.strategy-end {
    background-color: #99ccff;
}

.strategy-stop {
    background-color: #CCCCCC;
}

.sticker {
    position: relative;
    left: 20px;
    width: 190px;
    box-shadow: 3px 0 4px #000000;
    padding: 4px 4px 4px 8px;
}

.sticker-new {
    background-color: #FFEEEE;
}

.sticker-end {
    background-color: #DDEEFF;
}

.sticker-stop {
    background-color: #EEEEEE;
}

@media only screen and (max-width: 1180px) {
    .strategy-container {
        margin-left: 210px;
        margin-right: -20px;
    }
    
    .sticker {
        left: -202px;
        box-shadow: -3px 0 4px #808080;
    }
}


/* Google ads */
.ad-unit {
    width: 840px;  height: 90px;
}

@media (max-width: 840px) {
    .ad-unit {
        width: 436px; height: 90px;
    }
}
