/* Styles for Ghost Towns of the American West */
@font-face {
    font-family:'2-Questa_Sans_Regular';
    src: url(../fonts/2-Questa_Sans_Regular-webfont.woff2) format('woff2'),
         url(../fonts/2-Questa_Sans_Regular-webfont.woff) format('woff');
    font-weight:normal;
    font-style:normal;
}

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

body {
    font-size:100%;
    background-image:url(../images/background.jpg);
    background-attachment:fixed;
    font-family:'2-Questa_Sans_Regular';
}

body a {
    color:#2c618b;
}


/* Navigation */
nav {
    width:180px;
    height:100%;
    top:0;
    left:0;
    z-index:1;
    background:#f0e6da;
    overflow:auto;
    position:fixed;
    box-shadow:2px 2px 2px #2c3429;
}

nav img {
    display:block;
    margin-left:auto;
    margin-right:auto;
    width:90%;
    margin-top:15px;
    margin-bottom:15px;
}

nav ul {
    list-style-type:none;
}

nav a {
    text-decoration:none;
    display:block;
    color:#000;
    padding:8px 16px;
}

nav a:hover {
    color:#fff;
    background:#2c3429;
}

#home nav li:nth-child(1) a,
#history nav li:nth-child(2) a,
#towns nav li:nth-child(3) a,
#tips nav li:nth-child(4) a,
#submit nav li:nth-child(5) a,
#about nav li:nth-child(6) a {
    background:#2c3429;
    color:white; 
}


/* Content */
#wrapper {
    width:1120px;
    margin-top:40px;
}

main {
    width:540px;
    margin-left:220px;
    margin-bottom:80px;
    padding:20px;
    background:white;
    opacity:.93;
    float:left;
}

.wide main {
    width:900px;
    margin-left:220px;
    margin-bottom:40px;
    padding:20px;
    background:white;
    opacity:.93;
    float:none;
}

aside {
    width:330px;
    background:white;
    opacity:.93;
    padding:20px;
    margin-bottom:80px;
    float:right;
}

aside ul {
    list-style-type: none;
}

aside li {
    margin-bottom:10px;
    font-size:.833em;
}

.wide aside {
    width:900px;
    margin-left:220px;
    margin-bottom:80px;
    padding:20px;
    float:none;
    overflow:hidden;
}

.img-aside-home {
    display:block;
    width:100%;
    padding-top:10px;
    border-top:1px solid dimgray;
    margin-bottom:10px;
}

.img-profile {
    float:right;
    margin:5px 0 15px 15px;
}

figure {
    margin-bottom:20px;
}

figcaption {
    color:black;
    text-align:center;
    font-size:.7em;
    font-style:italic;
}


/* Nested containers on home page */
.container {
    clear:both;
    margin-bottom:20px;
    overflow:hidden;
    border-top: 1px solid dimgray;
}

.container img {
    float:right;
    margin-left:10px;
}

.third {
    width:100%;
    float:none;
    padding:10px 10px 0 10px;
}

.third:nth-child(1),
.third:nth-child(2) {
    margin-bottom:20px;
}


/* Grid layout for town index */
.grid-container {
  display:grid;
  grid-template-columns:auto auto auto auto;
  grid-gap:10px;
  padding:10px;
}

.grid-container > div {
  text-align:center;
  font-size:1.2em;    
}

.grid-container a {
    color:black;
}

.grid-container img {
    border:1px solid dimgrey;
}


/* Responsize embedded map */
.embed-container { 
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe, .embed-container object, .embed-container embed { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
}


/* Footer */
footer {
    height:55px;
    width:100%;
    left:0;
    bottom:0;
    position:fixed;
    background:#2c3429;
    line-height:55px;
    box-shadow: 3px 3px 3px 4px dimgray;
}

footer ul {
    list-style-type:none;
    float:right;
    margin-right:20px;
}

footer li {
    float:left;
    margin-left:20px;
    color:white;
}

footer a {
    color:white;
}

footer img {
    vertical-align:middle;
    margin-bottom:7px;
    width:35px;
    height:35px;
}


/* General typography */
h1,h2,h3,h4,h5 {
    margin-bottom:10px;
    line-height:1.1;
}

h1 {
    font-size:2.488em;
    color:#2c618b;
}

h2 {
    font-size:2.074em;
    color:#2c618b;
}

h3 {
    font-size:1.728em;
    color:dimgray;
}

aside h3 {
    text-align:right;
}

h4 {
    font-size:1.44em;
    color:dimgray;
}
    
h5 {
    font-size:1.2em;
    color:black;
    padding:8px 16px;
}

p {
    font-size:1em;
    margin-bottom:20px;
    line-height:1.4;
}

aside p {
    font-size:.833em;
}

.wide aside p {
    font-size:1em;
}


/* Submit a town form */
form {
    max-width:100%;
}

fieldset {
    padding:10px;
    border:1px solid dimgray;
    
}

label {
    display:block;
    margin-bottom:5px;
    font-size:1em;
    font-style:italic;
}

input {
    width:100%;
    height:25px;
    margin-bottom:10px;
}

input[type=radio],
input[type=checkbox] {
    width:auto;
    height:auto;
    margin-right:5px;
}

input[type=submit] {
    width:auto;
    height:auto;
    padding:10px;
    background-color:#2c3429;
    font-size:.875em;
    color:white;
}

select {
    margin-bottom:10px;
}

textarea {
    width:100%;
    height:75px;
    margin-bottom:10px;
}

form ul {
    margin-left:10px;
    margin-bottom:10px;
}

form li {
    list-style:none;
}


/* The Modal/Lightbox, adapted from W3 Schools:
https://www.w3schools.com/howto/howto_js_lightbox.asp */
.column {
    float: left;
    width: 33.333%;
}

/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #2c3429;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
}

/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    bottom: 60px;
}

/* Caption text */
.caption-container {
    text-align: center;
    background-color: #2c3429;
    padding: 2px 16px;
    color: white;
}

img.demo {
    opacity: 0.6;
    display: block;
    margin:0 auto 50px auto;
}

.active,
.demo:hover {
    opacity: 1;
}

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}