html {
  height: 100%;
  padding: 0px;
}

body {
  margin: 0px;
  padding: 0px;
  height: 100%;
  width: 100%;
  background: #333;
  overflow: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

body.map {
    overflow: hidden;
}

.main {
    background-image: url('/img/mapsplash.png');
    background-size: cover;
    width: 90%;
    margin: 1rem auto;
    border-radius: 5px;
    box-shadow: 0px 0px 4px #000;
    font-family: 'Averia Serif Libre', cursive;
}
.main::after {
    clear: both;
    content: "";
    display: block;
}
nav {
    padding: .5rem;
    background: rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.2);
    position: relative;
}
nav h1 {
    font-size: 2rem;
    margin: 30px 0 0 0;
    line-height: 3rem
}
nav img {
    width: 100px;
    margin: 17px 5px 0px 0px;
    padding: 0px;
    float: left;
}
nav h2 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: normal;
}
nav .button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 0 2px #000;
    text-decoration: none;
    color: inherit;
}

.content {
    padding: 10px;
    display: flex;
    justify-content: space-around;
    flex: 1 100%;
    flex-flow: row wrap;
}
.content article {
    background-color: rgba(255,255,255,.2);
    margin: 5px;
    border-radius: 3px;
    position: relative;
    border: 1px solid rgba(0,0,0,.3);
}
.content article.full {
    flex: 2 auto;
}
.content article.half {
    flex: 2 auto;
}
@media all and (min-width: 700px) {
    nav h1 {
        font-size: 4rem;
        margin: 10px 0 0 0;
        line-height: 3rem
    }
    nav img {
        width: 90px;
        margin: 0px 10px 0px 0px;
        padding: 0px;
        float: left;
    }

    .content article.half {
        flex: 1 0px;
    }
}

.content article h3 {
    margin: 0px;
    background-color: rgba(0,0,0,.2);
    padding: 10px;
}
.content article p {
    margin: 0px;
    padding: 10px;
}

.dragonfont {
    font-family: 'Amatic SC',cursive;
    font-weight: 700;
}

#map-container {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    display: none;
    background: none;
}
#map-container.add-mode {
    cursor: crosshair;
}

.ui-dialog {
    z-index: 1000 !important;
    width: auto !important;
}
.ui-widget {
    font-family: 'Averia Serif Libre', cursive !important;
}
.ui-widget-overlay {
    background: #000 !important;
    opacity: .5 !important;
}

.login-form {
    display: none;
}

.maplist-form > a {
    display: inline-block;
    text-decoration: none;
    height: 20px;
    width: 100px;
    white-space: pre-wrap;
    text-align: center;
    padding: 50px 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #eee;
    float: left;
}
.maplist-form > a:hover {
    background: #ddd;
}
.modal-form {
    margin: 0px auto;
    z-index: 999;
    border-radius: 5px;
    background-color: #ccc;
    font-weight: bold;
    font-size: .9rem;
}
.modal-form input,
.modal-form textarea {
    margin: 3px 0px;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 5px;
    font-size: .9rem !important;
    width: 250px;
}
.modal-form input,
.modal-form textarea,
.modal-form select {
    margin-bottom: 5px;
}
.modal-action {
    float: right;
    margin-top: .5rem;
    display: block;
    background-color: #3AB257;
    border: 1px solid #444;
    padding: 5px 8px;
    border-radius: 5px;
    width: 100px !important;
    font-size: 1rem !important;
    font-family: 'Averia Serif Libre', cursive !important;
    color: #fff;
    cursor: pointer;
}
.modal-action:hover {
    background-color: darkgreen;
}
.modal-form .modal-error {
    color: #B24E55;
    border: 1px solid #B24E55;
    border-radius: 5px;
    padding: 5px;
    margin: 5px 0px;
    display: none;
}
.embed-modal textarea {
    min-width: 300px;
    width: 400px;
    height: 180px;
    border: 1px solid #ccc;
    font-size: 1.75rem !important;
}
.embed-modal p i {
    font-weight: bold;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #eee;
}

.leaflet-bar .button {
    width: auto !important;
    height: auto !important;
    padding: 0px 6px !important;
    font-weight: bold;
    font-size: .9rem;
}
.leaflet-bar .editor-button {
    padding: 6px !important;
    height: 36px !important;
}
.leaflet-bar .editor-button img {
    padding: 0px;
    margin: 0px;
    width: 36px;
    display: inline-block;
}
.leaflet-bar .add-point.selected {
    background-color: #66ff66;
}

.leaflet-popup-content-wrapper {
    padding: 0px !important;
    border-radius: 3px !important;
    overflow: hidden;
    background: rgba(0,0,0,.8) !important;
    color: white !important;
    width: 250px;
}
.leaflet-popup-content {
    margin: 0px !important;
    min-width: 200px;
}
.leaflet-popup-content > b {
    margin: 0px 0px 5px 0px;
    display: relative;
    top: 0px;
    right: 0px;
    display: block;
    background: rgba(0,0,0,.9);
    padding: 5px 10px;
}
.leaflet-popup-content p {
    padding: 0px 10px !important;
    margin: 0px !important;
}
.leaflet-container {
    font-family: 'Averia Serif Libre', cursive !important;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #fff !important;
    padding-top: 6px !important;
}
.leaflet-popup-tip-container {
    display: none !important;
}

.productTitleBar {
    width: 100%;
    display: block;
    background-color: rgba(0,0,0,.6);
    padding: 3px 0 3px 5px;
    padding-left: 5px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.2);
}
.productLink {
    text-decoration: none;
    width: 100%;
    height: 70px;
    display: table-row;
    background-color: rgba(0,0,0,.6);
}
.productLink > img {
    max-height: 60px;
    margin: 5px;
    vertical-align: middle;
    display: table-cell;
    border-radius: 3px;
}
.productLink > b {
    margin: 5px 0px;
    color: #1E9DFF;
    width: 100%;
    vertical-align: middle;
    font-size: .75rem;
    font-weight: 200;
    display: table-cell;
}

.leaflet-tooltip {
    background: none !important;
    border: 0px !important;
    box-shadow: none !important;
    color: #000 !important;
    font-weight: bold;
    font-size: .9rem !important;
    letter-spacing: 1px;
    padding: 0px !important;
    text-shadow:
       -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
         1px 1px 0 #fff;
}
.leaflet-tooltip:before {
    display: none;
}

.popup-actions {
    float: right;
}
.popup-action {
    margin: 5px;
    display: inline-block;
    background-color: #3AB257;
    border: 1px solid #444;
    padding: 5px 8px;
    border-radius: 5px;
    font-weight: bold;
    font-size: .75rem !important;
    color: #fff;
    cursor: pointer;
}
.popup-action.embed {
    background-color: #5253B2;
}
.popup-action.delete {
    background-color: #B24E55;
}
