﻿body {
    overflow-x: hidden;
	background-color: #010714;
	background-image: url(/style/crni2018/img/dark_bg_v2_final.png) !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
	background-position: center top !important;
	background-size: contain !important;
	margin: auto !important;
	margin-top: 540px !important;
	width: 908px !important;
	font-family: 'Didact Gothic', sans-serif !important;
	font-size: 17px !important;
	color: white !important;
}

@media only screen and (max-width: 1400px) {
    body {
		background-color: #010714 !important;
		background-image: url(/style/crni2018/img/dark_bg_v2_final.png) !important;
		background-repeat: no-repeat !important;
		background-attachment: scroll !important;
		background-position: center top !important;
		background-size: 1366px 473px !important;
		margin-top:480px !important;		
    }
}

/* unvisited link */
a:link {
    color: white;
}

/* visited link */
a:visited {
	color: white;
}

/* mouse over link */
a:hover {
    color: hotpink;
}

/* selected link */
a:active {
    color: blue;
}

.hoverlink {
	background: #333;
	color: gray;
	border-bottom: 1px dotted #473b38;
	padding: 4px;
	font-size: 17px;
	transition: all .4s;
}
div.hoverlink:hover {
	background-color: #016d98;
	color: #fafafa;
	cursor: pointer;
	transition: all .6s;
}

.hd1 {
	
}
/* unvisited link */
.hd1 a:link {
    color: red;
}

/* visited link */
.hd1 a:visited {
    color: green;
}

/* mouse over link */
.hd1 a:hover {
    color: hotpink;
}

/* selected link */
.hd1 a:active {
    color: blue;
}

.hd2 {
	line-height: 18px;
	font-size: 18px;
	font-weight: bold;
    border-radius: 20px;
    position: relative;
    padding: 10px 0 10px 1.2em;
    margin-left: 15px;
	margin-right: 15px;
	margin-top: 2px;
    background-color: rgba(255, 51, 0, 0.6);
    font-weight: bold;
}
}
/* unvisited link */
.hd2 a:link {
    color: white;
}

/* visited link */
.hd2 a:visited {
    color: white;
}

/* mouse over link */
.hd2 a:hover {
    color: gray;
}

/* selected link */
.hd2 a:active {
    color: gray;
}


.hd3 {
	background: #151b26;
	text-align: center;
	font-size: 18px;
	color: white;
	padding: 5px;
	border-radius: 4px;
}
/* unvisited link */
.hd3 a:link {
	color: white;
	text-decoration: none;
}

/* visited link */
.hd3 a:visited {
	color: white;
}

/* mouse over link */
.hd3 a:hover {
	color: #ff6600;
}

/* selected link */
.hd3 a:active {
	color: #ff6600;
}

.tx1 {
	background-color: #010714;
	background-image: url(/style/crni2018/img/bar_frame_top900.png), url(/style/crni2018/img/bar_frame_btm900.png), url(/style/crni2018/img/bg_frame900.png);
	background-repeat: no-repeat, no-repeat, repeat;
	background-attachment: scroll, scroll, scroll;
	background-position: center top, center bottom, center;
	background-size: 100%;
	margin-top: 15px;
	margin-bottom: 15px;
	padding: 10px;
}
/* unvisited link */
.tx1 a:link {
    color: gray;
}

/* visited link */
.tx1 a:visited {
    color: gray;
}

/* mouse over link */
.tx1 a:hover {
    color: orange;
}

/* selected link */
.tx1 a:active {
    color: gray;
}

.tx2 {
	background-color: #010714;
	background-image: url(/style/crni2018/img/bar_frame_top900.png), url(/style/crni2018/img/bar_frame_btm900.png), url(/style/crni2018/img/bg_frame900.png);
    background-repeat: no-repeat, no-repeat, repeat;
    background-attachment: scroll, scroll, scroll;
	background-position: center top, center bottom, center;
	background-size: 100%;
	margin-top: 15px;
	margin-bottom: 15px;
	padding: 12px;
}
/* unvisited link */
.tx2 a:link {
    color: gray;
}

/* visited link */
.tx2 a:visited {
    color: gray;
}

/* mouse over link */
.tx2 a:hover {
    color: orange;
}

/* selected link */
.tx2 a:active {
    color: gray;
}

.ft3 {
	line-height: 30px;
	font-size: 30px;
	font-weight: bold;
    border-radius: 20px 20px 20px 20px;
    position: relative;
    padding: 10px;
    margin-left: 15px;
	margin-right: 15px;
    background-color: rgba(255, 51, 0, 0.6);
    font-weight: bold;
	text-align: center;
}
/* unvisited link */
.ft3 a:link {
    color: white;
}

/* visited link */
.ft3 a:visited {
    color: white;
}

/* mouse over link */
.ft3 a:hover {
    color: black;
}

/* selected link */
.ft3 a:active {
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
}
 
/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 10px;
    border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(255,0,0,0.8); 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}
::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(255,0,0,0.4); 
}

img.middle {
	vertical-align: middle;
}

.menu {
	position: fixed;
	width: 900px;
	text-align: center;
}

.footer {
	text-align: center;
}

img.slika {
	width: 150px;
	height: 220px;
	border: 1px solid black;
	border-radius: 4px;
}

.ep1 {text-shadow: 0px 0px; color: #8c8c8c; border-bottom: 1px dotted #8f7670; border-radius: 0px 6px 0px 6px; padding: 4px; font-size: 19px; transition: all .4s;}
div.ep1:hover {background-color: gray; color: white; cursor: pointer; transition: all .6s;}
.ep2 {background: url(/slike/zks_slike/goku_bog.png); background-size: 270px 450px; background-repeat: no-repeat; background-position: right;}
.ep3 {background: url(/slike/zks_slike/zlatni_friz.png); background-size: 320px 400px; background-repeat: no-repeat; background-position: right;}
.ep4 {background: url(/slike/zks_slike/monaka.png); background-size: 200px 400px; background-repeat: no-repeat; background-position: right;}
.ep5 {background: url(/slike/zks_slike/crni.png); background-size: 300px 500px; background-repeat: no-repeat; background-position: right;}
.ep6 {background: url(/slike/zks_slike/arale2.png); background-size: 250px 200px; background-repeat: no-repeat; background-position: right;}
.ep7 {background: url(/slike/zks_slike/dbs_saga4_float.png); background-size: 350px 1165px; background-repeat: no-repeat; background-position: right;}
.ep8 {background: url(/img/panzy.png); background-size: 300px 320px; background-repeat: no-repeat; background-position: right;}


/* LIGHT THEME OVERRIDES */
html[data-theme="light"] body {
    background-color: #f8f8f8 !important;
    background-image: url(/style/crni2018/img/light_bg_v4_final.png) !important;
    background-size: contain !important;
    color: #111;
}
html[data-theme="light"] a:link,
html[data-theme="light"] a:visited {
    color: #111;
}
html[data-theme="light"] a:hover {
    color: #cc0000;
}
html[data-theme="light"] a:active {
    color: blue;
}
html[data-theme="light"] .hoverlink {
    background: #eaeaea;
    color: #333;
    border-bottom: 1px dotted #aaa;
}
html[data-theme="light"] div.hoverlink:hover {
    background-color: #8dd0f1;
    color: #000;
}
html[data-theme="light"] .hd2,
html[data-theme="light"] .ft3 {
    background-color: rgba(255, 160, 122, 0.5);
    color: #111;
}
html[data-theme="light"] .hd2 a,
html[data-theme="light"] .ft3 a {
    color: #111;
}
html[data-theme="light"] .ft3 a:hover {
    color: white;
}
html[data-theme="light"] .hd3 {
    background: #f0f0f0;
    color: #111;
}
html[data-theme="light"] .hd3 a,
html[data-theme="light"] .hd3 a:visited {
    color: #111;
}
html[data-theme="light"] .hd3 a:hover,
html[data-theme="light"] .hd3 a:active {
    color: #cc0000;
}
html[data-theme="light"] .tx1,
html[data-theme="light"] .tx2 {
    background-color: #f5f5f5;
    background-image: none;
    color: #111;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    padding-left: 4px;
    padding-right: 4px;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 4px;
}
html[data-theme="light"] .tx1 a,
html[data-theme="light"] .tx2 a {
    color: #444;
}
html[data-theme="light"] .tx1 a:hover,
html[data-theme="light"] .tx2 a:hover {
    color: darkorange;
}
html[data-theme="light"] .ep1 {
    color: #555;
    border-bottom: 1px dotted #aaa;
}
html[data-theme="light"] div.ep1:hover {
    background-color: #ddd;
    color: #000;
}
html[data-theme="light"] ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0,0,0,0.1); 
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(255,100,100,0.6); 
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
}
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 30px;
  background: #444;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 999;
}

.theme-toggle input {
  display: none;
}

.theme-toggle .icon {
  width: 22px;
  height: 22px;
  background: #222;
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translateX(0);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3a7 7 0 1 0 9.79 9.79z'/%3E%3C/svg%3E"); /* mesec */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

#theme-toggle:checked + .icon {
  transform: translateX(30px);
  background: yellow;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='orange' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4.354a7.646 7.646 0 1 0 0 15.292 7.646 7.646 0 0 0 0-15.292zM12 2v2m0 16v2m10-10h-2M4 12H2m15.536-7.536l-1.414 1.414M6.879 17.121l-1.414 1.414m0-13.657l1.414 1.414m11.313 11.313l1.414 1.414'/%3E%3C/svg%3E"); /* sunce */
}

/* Responsive */
@media (max-width: 600px) {
  .theme-toggle {
    width: 50px;
    height: 26px;
    bottom: 15px;
    right: 15px;
    padding: 3px;
  }

  .theme-toggle .icon {
    width: 20px;
    height: 20px;
    background-size: 16px 16px;
  }

  #theme-toggle:checked + .icon {
    transform: translateX(24px);
  }
}

html[data-theme="light"] #cssmenu {
  background: #f5f5f5;
  background: linear-gradient(to bottom, #ffffff 0%, #eeeeee 100%);
  border: 1px solid #ccc;
}

html[data-theme="light"] #cssmenu ul li a {
  color: #333333;
}

html[data-theme="light"] #cssmenu ul li a:hover {
  color: #cc3300;
}

html[data-theme="light"] #cssmenu ul li a:before {
  background: #cc3300;
}

html[data-theme="light"] #cssmenu ul li a:after {
  background: #666;
}

html[data-theme="light"] #cssmenu ul li.active a {
  color: #000;
}

html, body, #cssmenu, .tx1, .tx2, .hoverlink, .hd3, .ft3 {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

.theme-notice {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Kad je aktivno prikazano */
.theme-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-notice {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #f0f0f0;
  color: #111;
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  font-size: 14px;
  max-width: 260px;
  transition: opacity 0.4s ease;
}

html[data-theme="dark"] .theme-notice {
  background: #1c1c1c;
  color: #eee;
  border-color: #444;
}

.notice-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.notice-buttons button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}

#acknowledgeNotice {
  background: #4caf50;
  color: white;
}

#dismissNotice {
  background: #999;
  color: white;
}

html[data-theme="light"] div.example {
  color: #222222; /* tamna siva za dobar kontrast */
  background: #f3f3f3; /* svetlosiva podloga */
  padding: 4px 15px;
  margin: 15px 50px 0 50px;
  border-radius: 5px;
}

html::before {
  content: "";
  display: block;
  width: 100vw;
  height: 0;
  visibility: hidden;
  overflow-y: scroll;
}

/* POPUP */
.store-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #1c1c1c;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  z-index: 2000;
  max-width: 350px;
  width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.store-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.store-popup.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.store-popup h2 {
  margin-top: 0;
  font-size: 20px;
}

.store-popup .popup-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.store-popup .popup-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.store-popup .popup-buttons button:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.store-popup .popup-buttons .open-btn {
  background: #ff3300;
  color: #fff;
}

.store-popup .popup-buttons .later-btn {
  background: #666;
  color: #fff;
}

/* Light theme override */
html[data-theme="light"] .store-popup {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}
html[data-theme="light"] .store-popup .popup-buttons .open-btn {
  background: #cc3300;
}
html[data-theme="light"] .store-popup .popup-buttons .later-btn {
  background: #aaa;
}

/* Mobile bottom sheet style */
@media (max-width: 600px) {
  .store-popup {
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .store-popup.show {
    transform: translateX(-50%) translateY(0);
  }

  .store-popup.hide {
    transform: translateX(-50%) translateY(100%);
  }
}

