/*

Theme Name: Old literature with modern technologies
Author: Nikola Vujačić, prof. Gimnazija Pula | Croatia
Author URI: https://nikolavujacic.com

*/

* {
    -webkit-overflow-scrolling: touch;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
  counter-reset: section;
}
#ModalWindow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: -20;
}

#MenuBar {
    width: 100%;
    height: 9%;
    position: relative;
    background-color: #4d4f80;
    /* #f5f5f5 */
    user-select: none;
    display: grid;
    grid-template-columns: 80% 20%;
}
#footer {
    width: 100%;
    height: 7%;
    position: relative;
    background-color: #4d4f80;
    display: flex;
    justify-content: center;
    align-items: center;
}
#footer p {
	padding: 0;
	margin: 0;
	cursor: pointer;
}
#footer a {
	color: white;
	padding-bottom: 1px;
}
#MenuBar .textwidget {
    grid-column-start: 1;
    grid-row-start: 1;
}

#OptionLang {
    width: 100%;
    height: 3%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    display: none;
}

#ChangeLang {
    display: none;
}

#OptionLang label {
    color: white;
    font-family: 'IBM Plex Sans';
    height: 100%;
    background-color: #4d4f80;
    box-shadow: 1px 3px 3px 0 rgba(0, 0, 0, .14);
    padding-right: 0.5%;
    padding-left: 0.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#Menu {
    width: 38%;
    height: 100%;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 6px 4px 11px -4px rgba(0, 0, 0, 0.75);
    transform: translateX(-110%);
    transition: 0.6s;
    display: grid;
    grid-template-rows: 7%;
    grid-auto-rows:  minmax(min-content, max-content);
    overflow: auto;
    z-index: 4;
}
.hidden-menu {
    display: none !important;
}
#MoreInfoBox {
    width: 40%;
    height: 100%;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 6px 4px 11px -4px rgba(0, 0, 0, 0.75);
    transform: translateX(-110%);
    transition: 0.6s;
    z-index: 3;
    overflow: auto;
}

#MoreInfoBox img {
    width: 50%;
    height: auto;
    float: left;
}

#MoreInfoBox p {
    padding: 0 0.5em 0 0.5em;
    font-family: 'IBM Plex Sans';
}

#Book {
    font-family: 'IBM Plex Sans';
    font-size: 2em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    /* background-color: rgba(0, 31, 65, 0.95); */
    text-align: center;
    color: white;
    background-color: #4d4f80;
}

.book-title {
    font-family: 'IBM Plex Sans';
}
.main-page-about {
    min-height: calc(100% - 16%);
}
#AppTitle {
    font-size: 2em;
    align-self: center;
    color: white
    /* rgb(117, 117, 117) */
    ;
    font-family: 'Playball';
    padding: 0;
    margin: 0 0 0 1%;
    grid-column-start: 1;
    grid-row-start: 1;
    cursor: pointer;
}

#AppTitle span:nth-child(2) {
    font-family: 'Courier New', Courier, monospace;
}

#ModernTitle {
    font-family: 'Playball';
    margin: 0;
    padding: 0;
}

#TextContainer {
    width: 100%;
    height: auto;
    position: relative;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'IBM Plex Sans';
}

h2, h3, h4 {
    margin: 0.5em 0 0.5em 0;
    text-align: center;
}

h4 {
    font-style: italic;
}
.entry {
	text-align: initial !important;
	cursor: default;
}
#PureText {
    width: 98%;
    /* margin-left: 2%; */
    margin-top: 2%;
    height: auto;
    position: relative;
    text-align: center;
}
#title-page {
	text-transform: uppercase
}
#PureText img {
    width: 37%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 0.5em;
}
.wp-caption {
    display: inline-block;
    width: 95% !important;
}
.wp-caption-text {
    font-weight: 600;
    font-style: italic;
}
#PureText iframe {
    display: block;
    width: 63% !important;
    height: 43em !important;
    margin: 0px auto !important;
}
.wp-video {
	width: 63% !important;
	margin: 0px auto !important;
}
p[data-original] {
    font-style: italic;
    color: darkslategray;
}

p[data-prijevod] {
    display: none;
}

.MoreInfo {
    border-bottom: 1px dashed black;
    padding: 0 0.3em 0 0.3em;
    cursor: pointer;
}

.menu-icon {
    font-size: 3em;
    color: white;
    grid-column-start: 2;
    grid-column-end: 2;
    align-self: center;
    justify-self: center;
    cursor: pointer;
    /* display: none; */
    width: 1em;
    height: 1em;
    position: absolute;
    right: 2%;
}

#MenuButton {
    padding: 0.5em;
    margin: 0;
    text-align: center;
    display: block;
    border-radius: 4px;
    color: white;
    background-color: #EE4C85;
    width: 55%;
    cursor: pointer;
    align-self: center;
    justify-self: self-start;
    font-family: 'IBM Plex Sans';
    grid-column-start: 2;
    grid-row-start: 1;
}

.book-container {
    width: 100%;
    height: 100%;
    display: flex;
    margin-top: 0%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.6s;
    border-bottom: 1px solid #001f413d;
}

.new-book {
    text-decoration: none;
    color: #4d4f80;
    padding: 1% 3% 1% 3%;
    border: 1px solid;
}

.new-book:hover {
    background-color: #4d4f80;
    color: white;
}

/*
.book-container:hover {
    background-color: #EE4C85;
    transition: 0.6s;
}

.book-container:hover p {
    color: white;
}
*/

/* */

.book-container img {
    width: 50%;
    height: auto;
    /* min-width: 10em; */
    /* min-height: 63%; */
    /* background-size: cover; */
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
    border: 1px solid rgba(0, 0, 0, .12);
    cursor: pointer;
}

.book-container p {
    font-family: 'IBM Plex Sans';
    font-size: 1em;
    padding: 0.3em;
    text-align: center;
}

.blinking {
    font-weight: 100;
    font-size: 1em;
    color: #2E3D48;
    animation: blink 1s infinite;
}

@keyframes blink {
    from, to {
        color: transparent;
    }
    50% {
        color: white;
    }
}

#PureText p:hover {
    cursor: pointer;
}

sup[data-napomena] {
    font-family: Helvetica;
    font-weight: 500;
    margin: auto;
    color: green;
    cursor: pointer;
    font-size: 1rem;
	font-style: cursive;
	display: block;
}
sup[data-napomena]::before {
  content: "[Digitalni dodatak - klikni za više]";
}
.pagination {
    display: flex;
    justify-content: center;
    font-size: 1.3em;
    font-family: 'IBM Plex Sans';
    height: 8%;
    align-items: center;
}
.footer-text .textwidget {
	display: flex;
	color: white;
	font-family: 'IBM Plex Sans';
	flex-direction: column;
	justify-content: center;
} 
.page-numbers {
    margin: 0 0.5% 0 0.5%;
    color: #4d4f80;
}

.current {
    background-color: #EE4C85;
    color: white;
    padding: 0.2% 1% 0.2% 1%;
}

@media screen and (orientation: portrait) {
	/*
	* {
		user-select: none;
	}
	*/
    #AppTitle {
        font-size: 1.4em;
        text-align: left;
    }
    #AppTitle span:nth-child(2) {
        display: inline-block;
    }
    #MenuBar {
        box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.65);
        height: 10%;
        /* grid-template-columns: 100%; */
		grid-template-rows: 100% 50%;
		grid-template-columns: 70% auto;

    }

    #MenuButton {
        grid-row-start: 2;
		grid-row-end: 2;
		align-self: self-start;
    	justify-self: self-end;
		border-radius: 0;
		box-shadow: 1px 1px 4px rgb(0 0 0 / 65%);
		width: fit-content;
		z-index: 2;
    }
	
    .menu-icon {
        display: block;
        font-size: 2em;
    }
    #PureText img {
        width: 99%;
        height: auto;
    }
    .wp-caption {
        display: inline-block;
        width: 100% !important;
    }
    #PureText iframe, .wp-video {
        width: 99% !important;
		min-height: auto !important;
		height: 15em !important;
    }
	 .wp-video {
        width: 99% !important;
		height: unset !important
    }
    #TextContainer p {
        font-size: 1em;
    }
    #Menu {
        width: 90%;
		grid-auto-columns: 100%;
		word-break: break-word;
        /* grid-auto-rows: 50%; */
    }
    #MoreInfoBox {
        width: 90%;
    }
    #Book {
        font-size: 1.3em;
    }
    .book-container img {
        min-width: 45%;
        min-height: 31%;
		width: 80%;
    }
    .book-container p {
        font-family: 'IBM Plex Sans';
        font-size: 0.95em;
    }
    #TextContainer {
        height: auto;
		z-index: 1;
		margin-top: 1.3em;
    }
	.main-page-about {
    min-height: calc(100% - 16% - 1.4em - 1.1%);
}
    #OptionLang {
        position: absolute;
        bottom: 1%;
        height: 7%;
        justify-content: center;
    }
    #OptionLang label {
        padding-left: 1.5%;
        padding-right: 1.5%;
        box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.65);
    }
    .pagination {
        height: 9%;
		margin: 3% 0 3% 0;
    }
    .page-numbers {
        margin: 0 2% 0 2%;
        color: #4d4f80;
    }
    .current {
        padding: 1% 3% 1% 3%;
        color: white;
    }
	.entry {
		padding: 0 1.3% 0 1.3%;
	}
}

@media screen and (orientation: landscape) and (max-width: 812px) {
    #AppTitle {
        font-size: 1.35em;
    }
    #MenuButton {
        font-size: 0.8em;
    }
    #TextContainer {
        height: 74%;
    }
    #MenuBar {
        height: 20%;
    }
    #OptionLang {
        height: 6%;
    }
    #OptionLang label {
        font-size: 0.8em;
    }
    #Menu {
        width: 50%;
        grid-template-rows: 20%;
        grid-auto-rows: 70%;
    }
    #MoreInfoBox {
        width: 50%;
    }
    #Book {
        font-size: 1.3em;
    }
    .book-container p {
        font-size: 0.7em;
    }
    .book-container img {
        width: 7em;
        height: 63%;
        min-width: 7em;
    }
}
