/*
  stylesheet for culture.si worldmap
*/

@font-face { font-family: "Raleway"; src: url(/static/fonts/raleway/Raleway-Bold.ttf); }
@font-face { font-family: "Open Sans"; src: url(/static/fonts/opensans/opensans-regular.ttf); }
@font-face {
  font-family: 'Republika';
  src: url(/static/fonts/Republika/ver1.2/republika-regular-webfont.eot?v=4);
  src: url(/static/fonts/Republika/ver1.2/republika-regular-webfont.eot?#iefix) format('embedded-opentype'), url(/static/fonts/Republika/ver1.2/republika-regular-webfont.woff2?v=4) format('woff2'), url(/static/fonts/Republika/ver1.2/republika-regular-webfont.woff?v=4) format('woff'), url(/static/fonts/Republika/ver1.2/republika-regular-webfont.ttf?v=4) format('truetype'), url(/static/fonts/Republika/ver1.2/republika-regular-webfont.svg#Republika) format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Republika';
  src: url(/static/fonts/Republika/ver1.2/republika-bold-webfont.eot?v=4);
  src: url(/static/fonts/Republika/ver1.2/republika-bold-webfont.eot?#iefix) format('embedded-opentype'), url(/static/fonts/Republika/ver1.2/republika-bold-webfont.woff2?v=4) format('woff2'), url(/static/fonts/Republika/ver1.2/republika-bold-webfont.woff?v=4) format('woff'), url(/static/fonts/Republika/ver1.2/republika-bold-webfont.ttf?v=4) format('truetype'), url(/static/fonts/Republika/ver1.2/republika-bold-webfont.svg#Republika) format('svg');
  font-weight: bold;
  font-style: normal;
}

:root {
    --seacolor: #cce4c2;
    --landcolor: #bcd8af;
    --bordercolor: #a9d0a3;
    --borderwidth: 5px;
    --fontfamily:  "Republika","Open Sans",sans-serif;
    --buttoncolor: #898;
}


/* 
   dark gray = #46474b
   gold = #b0a889
   green = #77b262 
*/

* {     font-family: var(--fontfamily);
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	margin:0; padding:0; border:0;
	text-decoration:none;
  }
*:focus { outline: 0; }

i, cite, em, var, address, dfn { font-style: italic; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

.hidden { display: none; }
.error { color:#b22 !important; }
.left { float: left; }
.right {float: right; }

a { color:#1800A3; text-decoration:none; }
a:hover { text-decoration:underline; }
.clearfix:after { content:""; display:block; clear:both; }

/* LAYOUT */

html,body {
 background:#e6eaec;
 color:#333;
 font-family: 'Open Sans', sans-serif;
 font-size:13px;
 line-height:17px;
 line-height:140%;
 margin:0;
}
body {
  position:absolute;
  top:0px; left:0;
  right:0; bottom:0;
  overflow:hidden;
  border-top:3.6rem solid #151515;
}

/**   HEADER    **/

/* common */
#search-form {
/*  position:relative; */
  color:#333;
}
#search-box {
  width:100%;
  color:#333;
  background:white;
	padding:2px;
  border:1px solid #999;
  border-radius: 3px;
}
#search-box[value=""] {
   background:transparent;
}
#search-form .submit-link {
  color: #666666;
  display: block;
  font-size: 20px;
  padding: 0px 6px 0px 10px;
  position: absolute;
  right: 4px;
  top: 31px;
  z-index: 1;
  cursor: pointer;
  background:transparent;
  border-left:1px solid #999;
}
#page-header h1 {
  font-size: 36px;
  color: #4e8542;
  display: inline-block;
  width: 180px;
  height: 32px;
  line-height: 32px;
  border-right: 1px solid silver;
  font-family: 'Raleway', sans-serif;
  padding-left: 14px;
  margin-right:20px;
}
#page-header h1 a {
  display:block;
  color: #4e8542;
}
#page-header h2 a {
  color: #b0a889;
}
#page-header h2 {
font-size: 32px;
font-weight: normal;
color: #151515;
display: inline-block;
position: relative;
font-family: "open sans";
}
#page-header h2:first-letter {
    text-transform: uppercase;
}
#page-header h2 b {
  font-style:italic;
}

/** FOOTER **/
#page-footer {
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:auto;
  padding:0 8px 0 0;
  z-index:101;
  color:#151515;
  font-size:14px;
  background:whitesmoke;
  height:3.6rem;
  line-height:3.6rem;
  vertical-align:middle;
  text-align:center;
}

.powered-by {
  vertical-align:middle;
  float:right;
}
.powered-by a  {
  color:#e6eaec;
  font-size:11px;
  border-right:solid 1px #474747;
  padding-right:12px;
}
.powered-by a:last-child {
 border:none;
 padding-right:0;
 margin-right:0;
}


.masterlink {
    color:#e6eaec;
    float:left;
    font-size:16px;
    font-family:Raleway;
    line-height:44px;
}
.masterlink img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    padding-left: 1rem;
}

h1.maintitle {
    font-size: 1.5em;
    line-height: 1.5em;
    vertical-align: middle;
    height: 10px;
    display: inline;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: normal;
}

@media all and (max-width:1117px) {
h1.maintitle {
    font-size: 14px;
}
}
@media all and (max-width:1062px) {
h1.maintitle {
    font-size: 12px;
    margin-left: 5px;
    margin-right: 5px;
}
}

@media all and (max-width:1010px) {
h1.maintitle {
    display:none;
}
}

.site-links {
 text-transform:uppercase;
 font-weight:bold;
 font-size:13px;
 padding-left:50px;
 font-family:Raleway;
}
.site-links a {
border-right:solid 1px #474747;
padding-right:12px;
margin-right:12px;
}
.site-links a:last-child {
border-right:none;
}
.link-novice {
color:#b44a34;
}
.link-dogodki {
  color:#579a43;

}
.link-metaiskalnik {
  color:#d7cbb6;
}

#about {
  margin-left: 50px;
  margin-right: 10px;
}

@media all and (max-width:660px) {
  .slogan3 {font-size:14px !important; }
  .hamburger {
    display:block !important;
    float:right;
    cursor:pointer;
  }
  .powered-by, .site-links {
    position: absolute;
    top: 40px;
    left: 0px;
    right: 0px;
    background: black;
    padding:0;
    width:auto;
    display:none;
  }
  .menu-open .powered-by, .menu-open .site-links {
    display:block;
  } 
  .powered-by {
     top:80px;
  }
  #page-footer {
     transition:height 0.25s ease-out;
     overflow:hidden;
  }
  .menu-open #page-footer {
      height: 145px;
  }  
}

/* front page */
.frontpage #page-header {
    margin: 0;
    position: relative;
    padding-top: 24px;
    min-height: 80px;
    margin-bottom: 10px;
    //height: 250px;
//    border: 1px solid blue;
}

.frontpage #page-header h1 {
}
.frontpage #page-footer {
}

.frontpage #search-form {
    width:32%;
    float:right;
    background: white;
}
.frontpage #search-box {
  font-size: 17px;
  line-height: 30px;
  height: 40px;
	padding-left:10px;
}

.events .day-list {
  column-width:250px;
  -webkit-column-width:250px;
}
.events .day-list .item {
  float:none;
  display:inline-block;
}


.venue_info .timing_html {
  display:block;
  border-bottom:1px solid #666;
  padding-bottom: 3px;
  margin-bottom: 3px;
  font-weight: bold;
}

.venue_info .summary {
  margin-bottom: 1em;
}

#spinner {
    z-index: 200;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -50px;
    margin-top: -50px;
}

#place-map {
    position:absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:var(--seacolor);
    z-index: 99;
}

#place-map .leaflet-popup-scrolled {
    margin: 44px 5px 10px 10px;
    margin-top: 44px;
    max-height:calc(90vh - 40px);
}
#place-map .leaflet-popup-scrolled h1 {
    position:absolute;
    top:0;
    line-height:38px;
}
#place-map  .leaflet-pane .leaflet-overlay-pane path.leaflet-interactive {
    fill: var(--landcolor);
    stroke: rgba(0,0,0,0.1);
}
#place-map  .leaflet-pane .leaflet-overlay-pane path.leaflet-interactive.selected {
    fill: var(--landcolor);
    stroke: yellow;
}
body[data-zoomrange="farmap"] .leaflet-pane .leaflet-overlay-pane path.leaflet-interactive {
    stroke-width: 2px;
}
body[data-zoomrange="midmap"] .leaflet-pane .leaflet-overlay-pane path.leaflet-interactive {
    stroke-width: 5px;
}
body[data-zoomrange="nearmap"] .leaflet-pane .leaflet-overlay-pane path.leaflet-interactive {
    stroke-width: 10px;
}


.leaflet-clickable[fill="#ddd"]:hover  {
  fill: black
}

.city-marker dfn,
.city-marker div {
 display:block;
 position:relative;
}
.city-marker dfn span,
.city-marker div span {
    display:block;
    white-space: nowrap;
    color: white !important;
    text-transform: uppercase;
    font-size:12px;
//    line-height:1em;
//    height:1em;
    font-weight:bold;
    text-decoration:none;
    background: white;    
    background: transparent;
    position: absolute;
    padding: 0 5px;
    z-index:2;
    margin-top:-3px;
    text-shadow: 1px 1px 4px black, 0 0 1px grey, 0 0 0.2px grey;
    border-radius: 4px;
    
}
.city-marker dfn:hover span,
.city-marker div:hover span {
  background: #444;
}
.city-marker dfn i,
.city-marker div i {
    display:block;
    border-radius:50%;
    position:absolute;
    z-index:300;
    background:white;
    width:6px;
    height:6px;
    margin: 0;
    xmargin:-0.5em 0 0 -0.5em;
    font-size: 6px !important;
    top: 3px;
    left: 3px;
}


.inactive dfn span,
.inactive div span {
   display:none;
}
.human_date {
    font-weight: bold;
    margin-top: 5px;
}

.venue-marker div {
    position:absolute;
    display:block;
    white-space: nowrap;
    color: #151515 !important;
    text-transform: uppercase;
    font-size:11px;
    font-weight:bold;
    line-height:1em;
    text-decoration:none;
      background:white;
}
.venue-marker div:hover {
  background:white;
  padding:0px 5px 0px 0;
}
.venue-marker div:before {
  content:"";
  display:inline-block;
  vertical-align:middle;
  background:white;
  border:2px solid red;
  font-size:11px;
  width:calc(1em - 4px);
  height:calc(1em - 4px);
  margin-right:0.5em;
  border-radius:1em;
  margin-left:-1.3em;
}

/* filters */
#page-filters {
    display:inline-block;
    vertical-align:middle;
}
#page-filters select,
#page-filters button {
  margin-right: 5px;
  background: white;
  font-size: 18px;
  max-width: 12em;
  height: 32px;
  vertical-align: middle;
  font-family: var(--fontfamily);
}
#page-filters option {
    font-family: var(--fontfamily);
}
#page-filters li {
    list-style: none;
    padding-left: 20px;
/*    display: inline-block; */
}
#page-filters li:first-child {
    padding-left: 10px;
}
#page-filters ul { 
    margin: 4px 0px; 
    padding: 4px 8px; 
    border-top: 1px solid silver;
    width: 100%;
}
#page-filters li a {
    color: #46474b;
}
#page-filters li.selected a {
    color: #46474b;
    font-weight: bold;
    background: #d8d9d4;
}
header nav {
    display:inline-block;
    margin-right: 5px;
    font-size: 18px;
    line-height: 29px;
    height: 32px;
    vertical-align: middle;
    padding: 0 8px;
    cursor: pointer;
}
header .button {
    display:inline-block;
    margin-right: 5px;
    margin-top: 11px;
    font-size: 18px;
    height: 32px;
    vertical-align: middle;
    font-family: var(--fontfamily);
    background: var(--buttoncolor);
    border-radius: 8px;
    padding: 8px 1em;
    text-decoration: none;
}
header .button,
#page-filters button {
  background: var(--buttoncolor);
  color: white;
  border-radius: 5px;
  line-height: 29px;
  padding: 3px 8px;
  cursor: pointer;
}
#page-filters button.filter-changed {
  background:orange;
}

.location-about {
margin: 10px 0 20px;
}
#place-info {
font-size: 15px;
}

.location-links {
    list-style: none;
    line-height: 32px;
    margin: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-links img {
  vertical-align:middle;
  display:inline-block;
  margin-right:10px;
}
#place-info .fa {
    font-size:27px;
  vertical-align:middle;
  margin-right:10px;
}
#place-info a {
  color:#333;
}

.rightCol,
.leftCol {
  width:49%;
}
.rightCol {
  float:right;
}
.leftCol {
  float:left;
}

.breadcrumbs, 
.breadcrumbs .fa {
    font-size: 12px !important;
    line-height: 20px;
    vertical-align:top;
}
.breadcrumbs .fa {
    margin:0 5px;
}
#place-info .logo {
    float: right;
    margin-right:10px;
    margin-top:3px;
}
#place-info address {
    margin: 0px 0 20px;
    font-style: normal;
    line-height: 1.5;

    }
.breadcrumbs {
    margin-top:-10px;
    margin-bottom:10px;
}

address b {
  font-size:18px;
}

.city {
    background: white;
    display: block;
    border-radius:50%;
    xborder:1px solid white;
}
.city.rank-1 {
    width: 4px;
    height: 4px;
    margin: -2px;
    background: white;
}
.farmap .city.rank-2,
.farmap .city.rank-1
{
    display:none;
}

.city.rank-2 {
    width: 6px; height: 6px;
    margin: -3px;
    xborder-radius:0;
    background: white;
}
.city.rank-3 {
    width: 6px; height: 6px;
    margin: -3px;
    background: black;
    border:solid 1px white;
}
.farmap .city.rank-3 {
    width: 4px;
    height: 4px;
}
.city.rank-4 {
    width: 10px; height: 10px;
    margin: -5px;
    background: black;
    border:solid 1px white;
    xborder-radius:0;
}

.farmap .city.rank-4 {
    width: 6px; height: 6px;
    margin: -3px;
}

.city.rank-5 {
    width: 12px; height: 12px;
    margin: -6px;
    xbackground: white;
    border:solid 4px black;
    box-shadow:0 0 0 2px white;
}

.farmap .city.rank-5 {
    width: 8px;
    height: 8px;
    margin: -4px;
}


span.country {
    font-size:10px;
    background: #0000B4;
    background: rgba(0,0,180,0.25);
    display: block;
    border-radius:50%;
    border:1px solid #0000B4;
    border:1px solid rgba(0,0,180,1);
    width:2em;
    height:2em;
    margin-left:-1em;
    margin-top:-1em;
}

article > a { display: block; }

.enabled-.class-PRIVATE .datasource-header h1 {
    background:red;
    color:white;
}
.enabled-.class-PUBLIC .datasource-header h1 {
    background:yellow;
    color:#444;
}
.enabled-true.class-PUBLIC .datasource-header h1 {
    background:green;
    color:white;
}
.enabled-true.class-PRIVATE .datasource-header h1 {
    background:orange;
    color:white;
}
.datasource-header.loading h1 {
    background:black !important;
}
.datasource-header h1 a {
    color:white
}    
.datasource-header h1 small {
    float:none;
}
.datasource-header h1 small a {
   padding-right:10px;
   font-weight:bold;
   display:none;
}
.datasource-header h1 small .fetch-link,
.enabled- h1 small .enable-link,
.enabled-true h1 small .disable-link {
  display:inline;
}

.sources-admin #content-wrapper > section,
.sources-admin .list {
  display:none;
}

.sources-admin.events-show .list {
  display:block;
}

.sources-admin.state-all #content-wrapper > section,
.sources-admin.state-enabled #content-wrapper > section.enabled-true,
.sources-admin.state-disabled #content-wrapper > section.enabled- {
  display:block;
}

/* filters */
.events-show #events-show,
.events-hide #events-hide {
  display:none;
}

.state-all #state-all,
.state-enabled #state-enabled,
.state-disabled #state-disabled {
	color: #46474b;
	font-weight: bold;
	background: #d8d9d4;
}

body.sources-admin {
  counter-reset: section;           /* Set the section counter to 0 */
}
.sources-admin section {
	padding-bottom:6px;
}
.sources-admin section header h1:before {
  counter-increment: section;      /* Increment the section counter */
  content: "#" counter(section); /* Display the counter */
  background:black;
  margin-left:-10px;
  margin-right:10px;
  padding: 2px 5px 4px;
}

/*

body path:hover {
    fill-opacity:0.2 !important;
}

/*
body[data-zoomrange="farmap"] path {
  fill-opacity:1;
}
*/
.countryLabel {
  background:white;
  padding:2px 4px;
  white-space:nowrap;
  position:absolute;
}

.city-marker div span {
  margin-left:-4px;
  padding-left: 20px;
}
body[data-zoomrange="farmap"] .city-marker div span {
  display:none;
}
body[data-zoomrange="midmap"] .city-marker div span {
  display:none;
}
body .city-marker:hover div span,
body .city-marker.active div span {
  display:block !important;
}
body[data-zoomrange="farmap"] .city-marker div i {
  width:6px;
  height:6px;
  margin: 0;
  font-size: 6px !important;
  top: 3px;
  left: 3px;
}

body[data-zoomrange="midmap"] .city-marker div i {
  width:12px;
  height:12px;
  margin: 0;
  font-size: 12px !important;
  top: 0px;
  left: 0px;
  background:white;
}
body .city-marker.active div i,
body[data-zoomrange="nearmap"] .city-marker div i {
  width:16px;
  height:16px;
  margin: 0;
  font-size: 16px !important;
  top: -2px;
  left: -2px;
  background:white;
}

#panel {
  position:absolute;
  z-index:1000;
  background:white;
  top:0;
  right:-320px;
  bottom:0;
  width:320px;
  opacity:0;
  transition:all 0.5s;
  padding:1em;
  max-width: 100%;
  font-size: 16px;
  line-height: 20px;
}
#panel .content {
  overflow-y:auto;
  position: absolute;
  margin-top: 3.6rem;
  top: 0;
  left: 0;
  right: 8;
  bottom: 0;
  padding: 0 1em 1em 1em;   
}

#panel.active {
  right:0;
  opacity:1;
}
#panel nav { float: right; cursor: pointer; }
#panel h1 {
//    line-height: 100%;
    font-size: 24px;
    margin-top: -4px;
}
#panel div.link {
    text-align: right;
    margin-top: -0.2em;
    margin-bottom: 0.5em;
}
#panel a.link {
  font-weight: bold;
//  float: right;
}

#disclaimer {
    background: rgba(255,255,255,0.8);
    position: absolute;
    left: 8px;
    bottom: 8px;
    border: 1px solid black;
    padding: 8px;
    font-size: 12px;
    z-index: 100;
    border-radius: 4px;
    max-width: 210px;
}

#tooltip {
    position: fixed;
    width: 160px;
    margin-left: -80px;
    margin-top: 40px;
    padding: 8px;
    z-index: 1000;
    border: none;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

