:root {
    --blue: rgb(3,104,128);
    --red: rgb(203,52,39);
    --yellow: rgb(228,172,36);
    --white: rgb(255,255,255);
    --black: rgb(0,0,0);
    --brown: rgb(92,72,71);
}

@font-face {
    font-family: 'Museo';
    src: url(../fonts/Museo-700.otf);
    font-weight: normal;
    font-style: normal;
}

*,
*:after,
*:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
} 

html,
body {
    height: 100%;
    font-size: 16px;
}

body {
    font-family: 'Museo', sans-serif;
    position: relative;
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: #0672b3;
    background-image: url(../images/background.jpg);
    overflow: auto;
}

header{
    margin-bottom: 20px;
    margin-top: -20px;
    width: 80%;
    color: var(--yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

header .icon{
    height: 52px;
    margin-inline-end: 15px;
}

#NavMini{
    text-align: right;
    width: 50%;
}

#NavMini .donate{
    margin-bottom: -6px;
}

#BackgroundVideo{
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
    display: none;
}

.video-icon{
    width: 65px !important;
    height: auto !important;
    margin: 0 auto;
    display: block; 
}

.lpuki-logo{
    height: 45px;
}

header .slogan{
    width: 100%;
}

#Instructions{
    position: absolute;
    display: none;
    font-family: 'Museo', sans-serif;
    color: var(--blue);
    font-size: 2rem;
    top: 10px;
    left: 3%;
    background: rgba(228,172,36, 0.9);
    border: 2px solid var(--blue);
    border-radius: 10px; 
    padding: 10px; 
    width: 175px;
    text-align: center;
    z-index: 9999;
}

.instructions-arrow{
    display: block;
    transform: rotate(180deg);
    margin: 0 auto;
}

.focus{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.focus-content{
    position: relative;
    width: 80%;
    height: 80%;
}

/* Bookshelves */
.bookshelves{
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    flex-direction: column;
    -webkit-box-shadow: 0px 0px 26px -2px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 26px -2px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 26px -2px rgba(0,0,0,0.75);
}

.bookshelf{
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url(../images/bookshelf.jpg);
    background-repeat: repeat-x;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;   /* shelf lip */
}

.bookshelf:nth-child(1){
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    z-index: 900;
}

.bookshelf:nth-child(1) .books-filler{
    height: 340px; 
    margin-bottom: -2px; 
    margin-left: 25px;
    cursor: pointer;
}

.bookshelf:nth-child(2){
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 800;
}

.bookshelf:nth-child(2) .books-filler{
    height: 285px;
    margin-bottom: -15px;
    margin-left: 25px;
    cursor: pointer;
}

.books .main{
}

.bk-content a:any-link{
    color: var(--red);
}

.bk-content li{
    padding-inline-start: 10px;
    margin: 6px 0;
    padding-inline-start: 4px;
    list-style-type: circle;
    list-style-position: inside;
}

.bk-content img{
	width: 100%;
	height: auto;
}

/* Logos */
#Logo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    padding-bottom: 5px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 9990;
}

#Logo img{
    width: 100%;
    height: 100%;
}

/* Menu */
#MenuIcon{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 88890;
}

#MenuIcon img{
    height: 30px;
}

#Menu{
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 88888;
    width: 30%;
    height: 100%;
    background: rgb(203,52,39, 0.97);
    padding: 0px;
    -webkit-box-shadow: -4px 0px 11px -3px rgba(0,0,0,0.75);
    -moz-box-shadow: -4px 0px 11px -3px rgba(0,0,0,0.75);
    box-shadow: -4px 0px 11px -3px rgba(0,0,0,0.75);
    display: none;
}

#Menu .menu-donate{
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    margin: 10px;
}

#Menu .menu-donate img{
    height: 50px;
    padding: 0;
    margin: 0;
    margin-inline-end: 10px;
}

#MenuContent{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90%;
    font-size: 2rem;
    color: var(--white);
    margin: 15px;
}

#Menu .menu-item{
    color: var(--white);
    margin-bottom: 3rem;
    cursor: pointer;
    text-align: center;
}

#Menu img{
    margin-bottom: 10px;
}

#MenuSocials{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

#MenuSocials img{
    height: 50px;
}

#Menu .slogan{
    color: var(--yellow);
    text-align: center;
    margin-top: 20px;
    font-size: 1.5rem;
}

/* Modal */
#ModalBackground{
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99980;
    display: none;
}

#ModalInner{
    position: relative;
    font-size: 2rem;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 99999;
}

#ModalClose{
    position: fixed;
    color: var(--white);
    top: 10px;
    right: 10px;
    border-radius: 50%; 
    height: 50px; 
    width: 50px; 
    text-align: center;
    font-size: 3rem;
    z-index: 88888;
    cursor: pointer;
}

#ModalContent{
    padding: 3%;
    z-index: 77777;
    color: var(--white);
    height: 100%;
    padding: 50px;
}

#ModalClose div{
    width: 100%;
}

.modal-image-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-image-container h3{
    font-size: 1.5rem;
    margin: 10px 0;
}

.modal-image-container img{
    max-width: 100%;
    height: auto;
}

.modal-image{
    cursor: pointer;
    max-width: 100%;
  height: auto;
    margin-top: 5px;
}

/* General styles */
.image-yellow{
    filter: brightness(0) saturate(100%) invert(68%) sepia(77%) saturate(472%) hue-rotate(356deg) brightness(93%) contrast(92%);
}

.image-white{
    filter: brightness(0) saturate(100%) invert(99%) sepia(1%) saturate(1690%) hue-rotate(216deg) brightness(118%) contrast(100%);
}

.image-blue{
    filter: brightness(0) saturate(100%) invert(27%) sepia(88%) saturate(920%) hue-rotate(157deg) brightness(92%) contrast(98%);
}

.image-red{
    filter: brightness(0) saturate(100%) invert(16%) sepia(53%) saturate(7460%) hue-rotate(359deg) brightness(91%) contrast(72%);
}

.hover-image-yellow:hover{
    filter: brightness(0) saturate(100%) invert(68%) sepia(77%) saturate(472%) hue-rotate(356deg) brightness(93%) contrast(92%);
}

.hover-image-white:hover{
    filter: brightness(0) saturate(100%) invert(99%) sepia(1%) saturate(1690%) hue-rotate(216deg) brightness(118%) contrast(100%);
}

.hover-image-blue:hover{
    filter: brightness(0) saturate(100%) invert(27%) sepia(88%) saturate(920%) hue-rotate(157deg) brightness(92%) contrast(98%);
}

.hover-image-red:hover{
    filter: brightness(0) saturate(100%) invert(16%) sepia(53%) saturate(7460%) hue-rotate(359deg) brightness(91%) contrast(72%);
}

.center{
    text-align: center;
}

img.center{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.icon-small{
    width: 50px !important;
    height: auto !important;
    padding-bottom: 5px;
    padding-right: 5px;
}

.icon-large{
    width: 100px !important;
    height: auto !important;
    padding-bottom: 5px;
    padding-right: 5px;
}

.icon-small-left{
    float: left; 
}

.icon-small-right{
    float: right; 
}

.bold{
    font-weight: bold;
}

.italic{
    font-style: italic;
}

.quotation{
    font-style: italic;
    margin-top: 10px;
}

.quotation-author{
    font-weight: bold;
    margin-top: 10px;
    text-align: right;
    font-size: 90%;
    color: var(--blue);
}

.highlight{
    background: var(--yellow);
}

/* Screen sizes */
@media (max-width: 1500px) {
    .books-filler{
        display: none;
    }
    
    #Menu{
        width: 50%;
    }
}

@media (max-width: 1200px) {
    .bk-content {
		font-size: 2rem !important;
	}
}

@media (max-width: 900px) {
    #Menu{
        width: 50%;
    }

    #NavMini{
        width: 100%;
    }
}

@media (max-width: 700px) {  
    #Instructions{

    }

    #Menu{
        width: 65%;
    }

    #MenuContent{
        font-size: 1.8rem;
    }

    #Menu .menu-item{
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    #NavMini{
        width: 100%;
    }

    #MenuContent{

    }

    #Menu .menu-item{
        margin-bottom: 2rem;
    }

    .book{
        width: 30px;
    }

    .book:nth-child(n+9){
        left: -90% !important;
    }

    .bk-content {
		font-size: 4rem !important;
	}

    #Menu{
        width: 80%;
    }

    header .slogan{
        display: none;
    }

    #NavMini{
        text-align: center;
    }
}

/* Phone landscape */
@media (max-height: 1000px) {
    #Logo{
        width: 150px;
    }
}

@media (max-height: 949px) {
    .bookshelf:nth-child(1) .books-filler{
        height: 280px; 
    }
    
    .bookshelf:nth-child(2) .books-filler{
        height: 245px;
    }

    .bk-spine h2 {
        width: 215px !important;
    }
}

@media (max-height: 840px) {
    .book{
        height: 85%;
        width: 40px;
    }

    .bookshelf{
        padding-bottom: 13px;   /* shelf lip */
    }
    
}