/* Prevent text selection on mobile for error reporting elements */
#events-log,
#current-text,
#rc-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* Disable callout on iOS */
}

/*  */
.dn-wrapper {
    padding-bottom: 40px !important;
}

.grid-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: top;
}

.grid-container>div {
    margin: 10px;
}

.left {
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    top: 0px;
    left: 0px;
    width: 30%;
}

.right {
    position: relative;
    width: 70%;
}

#calendar {
    margin-top: 40px;
    margin-bottom: 20px;
}



/* dnevna razmatranja */
#events-log {
    background-color: #fafafa;
    padding: 10px;
    color: #232323;
    border: 1px solid #DDDDDD;
    margin-bottom: 70px;
    position: relative;
    font-size: 16px;
    margin-right: 20px;
    /* line-height: 30px; */
}

.viber-share-btn {
    position: absolute;
    bottom: -20px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #26AEF2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 8px rgba(38, 174, 242, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.viber-share-btn:hover {
    background-color: #1E9BD8;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(38, 174, 242, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.viber-share-btn:active {
    transform: scale(0.95);
}

.dn-date {
    font-family: "Crete Round";
    text-align: right;
    padding-right: 20px;
    padding-top: 10px;
    font-size: 1em;
    line-height: 1.618em;
}

.dn-title {
    font-family: "Roboto";
    text-align: center;
    font-weight: 700;
    font-size: 1.6em;
    line-height: 1.618em;
}

.dn-header {
    padding-top: 20px;
    padding-left: 15px;
    font-family: "Roboto";
    font-style: italic;
    font-weight: 500;
    font-size: 1.1em;
    line-height: 1.4em;
}

.dn-source {
    font-family: "Crete Round";
    text-align: right;
    font-style: italic;
    font-weight: 500;
    padding-right: 20px;
    font-size: 1em;
    line-height: 1.618em;
}

.dn-text {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    font-family: "Roboto";
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.5em;
}

.dn-note {
    font-family: "Crete Round";
    text-align: right;
    font-style: italic;
    padding-right: 24px;
    font-size: .8em;
    line-height: 1.618em;
}

/* dnevna razmatranja */

.choicesHolder {
    color: Black !important;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 500;
    float: left;
    width: auto !important;
    margin-top: 9.6px;
    /* margin-left: 20px; */
    width: 100% !important;
    padding-right: 10px;
}

.choices {
    /* border-radius: 50px; */
    outline: none;
    z-index: 3;
}

.form-control {
    /* border-radius: 50px !important; */
    outline: none;
}
#events-log{
    border-radius: 5px;
}
.events-log-container {
    padding-bottom: 0 !important;
}

.mbr-choices {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: auto !important;
}

.choices__heading {
    color: #FAFAFA !important;
    letter-spacing: 2px;
    background-color: #093959;
}

.font-size {
    display: flex;
    justify-content: right;
}

.fontSizer {
    border: 1px solid #166891;
    border-radius: 20px;
    color: #166891;
    padding-left: 13px;
    padding-right: 13px;
    margin-bottom: 5px;

}

.leftSizer {
    margin-right: 10px;
    padding-bottom: 3px;
}

.rightSizer {
    margin-right: 10px;
}

.dnevna-razmatranja-naslov {
    padding-bottom: 40px !important;
}

/* RANGE SLIDER */

input[type=range] {
    appearance: none;
	-webkit-appearance: none;
	margin: 20px 0;
	width: 100%;
}
input[type=range]:focus {
	outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 4px;
	cursor: pointer;
	animation-duration: 0.2s;
	background: rgba(44, 133, 155, 0.1);
	/* border-radius: 25px; */
}
input[type=range]::-webkit-slider-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #acbab7;
	box-shadow: 0 0 4px 0 rgba(0,0,0, 1);
	cursor: pointer;
	-webkit-appearance: none;
	margin-top: -8px;
}
input[type=range]::-moz-range-thumb {
    height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #acbab7;
	box-shadow: 0 0 4px 0 rgba(0,0,0, 1);
	cursor: pointer;
	margin-top: -8px;
}
input[type=range]::-ms-thumb {
    height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #acbab7;
	box-shadow: 0 0 4px 0 rgba(0,0,0, 1);
	cursor: pointer;
	margin-top: -8px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
	background: rgba(44, 133, 155, 0.3);
}

/* RC */
.rc-buttons {
    display: none;
    border-top: 1px solid rgb(232, 234, 235)
}

.rc-section {
    display: none;
    background-color: #FAFAFA;
}

.range-wrap {
    display: none;
    width: 100%;
    position: relative;
    z-index: 100;
}

#current-text {
    font-size: 16px;
}

.rcTitle {
    text-align: center;
    font-size: 1.6em;
    margin-top: 10px;
    margin-bottom: 30px;
}

.rcSubtitle {
    font-size: 1.1em;
    line-height: 1.4em;
    font-style: oblique;
    font-weight: normal;
    margin-bottom: 0;
    margin-top: 0px;
}

.rcSubtitleBold {
    font-size: 1.1em;
    line-height: 1.4em;
    /* font-style: oblique; */
    color: #555555;
    font-weight: bolder;
    margin-bottom: 0;
    margin-top: 20px;
}

.rcParagraph {
    font-size: 1.1em;
    line-height: 1.4em;
    text-indent: 2em;
    margin-bottom: 0;
}

.rcLetter {
    font-size: 1.1em;
    line-height: 1.4em;
    text-indent: 2em;
    margin-bottom: 0;
    font-style: oblique;
}

.rcList {
    padding-top: 20px;
    font-size: 1.1em;
    line-height: 1.4em;
    /* text-indent: 2em; */
    font-style: oblique;
    margin-bottom: 0;
}

.container-rc {
    background-color: #FAFAFA;
}

#rc-text {
    background-color: #FAFAFA;
}

#range {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin-bottom: 30px;
}

#rc-range {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin-bottom: 30px;
}

.rc-opis {
    margin-bottom: 5px !important;
}

#range::-moz-range-track {
    background: #e0e4e7;
    opacity: 0.1;
}

#rc-range::-webkit-slider-runnable-track {
    background: #e0e4e7;
    opacity: 0.5;
}

#rc-range::-moz-range-track {
    background: #e0e4e7;
    opacity: 0.5;
}

#range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    /* background: #d8dde0; */
    background-image: url("../images/left-right-2.png");
    background-size: 20px 20px;
}

#range::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    /* background: #d8dde0; */
    background-image: url("../images/left-right-2.png");
    background-size: 20px 20px;
}

#rc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #d8dde0;
    background-image: url("../images/left-right-1.png");
    background-size: 20px 20px;
}

#rc-range::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #d8dde0;
    background-image: url("../images/left-right-1.png");
    background-size: 20px 20px;
}

/* END RC */

@media only screen and (max-width: 1000px) {
    .grid-container {
        flex-direction: column;
    }
    
    #events-log{
        margin-bottom: 40px;
    }

    .viber-share-btn {
        width: 45px;
        height: 45px;
        bottom: -22px;
        right: 15px;
    }

    .left {
        display:none;
        width: 100%;
    }

    .right {
        width: 100%;
        /* margin-bottom: 20px; */
    }

    .dn-wrapper {
        padding-bottom: 20px !important;
    }

    #calendar {
        margin-top: 0px;
        margin-right: 10px;
    }

    .pitanja-i-odgovori {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .font-size {
        padding-right: 20px;
    }
    .range-wrap{
        width: calc(100% - 20px);
        z-index: 100;
    }
}

.switch {
    margin-top: 10px;
    position: relative;
    display: inline-block;
    width: 70px;
    height: 46px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider::before {
    position: absolute;
    content: "";
    height: 44px;
    width: 44px;
    left: 0px;
    bottom: 1px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    background-image: url("../images/search1.svg");
    background-size: 44px 44px;
    background-repeat: no-repeat;
}

input:checked+.slider {
    background-color: #2fa062;
}

input:focus+.slider {
    box-shadow: 0 0 1px #9ea379;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

th {
    border-left: 1px solid gainsboro;
    border-right: 1px solid gainsboro;
    border-top: 1px solid gainsboro;
    padding-right: 7px;
    padding-left: 7px;
}

td {
    border: 1px solid gainsboro;
    padding-right: 7px;
    padding-left: 7px;
}

table {
    margin-top: 20px;
    margin-bottom: 20px;
}

.citaonica-title {
    padding-bottom: 30px;
}

.choices__inner {
    word-wrap: break-word !important;      /* IE*/
    white-space: -moz-pre-wrap !important; /* Firefox */
    white-space: pre-wrap !important;      /* other browsers */
} 
.choices__item--selectable {
    word-wrap: break-word !important;      /* IE*/
    white-space: -moz-pre-wrap !important; /* Firefox */
    white-space: pre-wrap !important;      /* other browsers */
}    

.rc-image{
    border-radius: 10px;
}

.item-img, .rc-image{
    display:flex !important;
    position: relative;
}
.knjige-overlay{
    z-index: 1;
    position: absolute;
    top:0px; 
    left:0px; 
    width:100%; 
    height:100%;
    background-color: rgba(38, 174, 242,.5);
    border-radius: 10px;
}
.knjige-text p{
    width: 100%;
    margin-bottom: 0px !important;
}
.knjige-text{
    padding: 20px;
    overflow: hidden;
    font-size: 8px;
    float: left;
    display: flex;
    align-items: center;
    text-wrap: nowrap;
    position: absolute;
    z-index: 2;
    top:0px; 
    left:0px; 
    width:100px; 
    height:100px;
    color:rgb(255, 255, 255);
    font-weight: bold;
}

.native-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    
    /* Custom dropdown arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.native-dropdown:focus {
    outline: none;
    border-color: #26AEF2;
    box-shadow: 0 0 0 3px rgba(38, 174, 242, 0.1);
}

.native-dropdown:hover {
    border-color: #bbb;
}

.native-dropdown optgroup {
    font-weight: bold;
    color: #26AEF2;
    font-size: 14px;
    padding: 8px 0 4px 0;
}

.native-dropdown option {
    padding: 8px 16px;
    font-weight: normal;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .native-dropdown {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 40px 14px 16px;
    }
}

.bookmark-modal-header{
    padding-bottom: 10px !important;
}