@charset "UTF-8";       /* Set the encoding of the style sheet to Unicode UTF-8 */
* {
    box-sizing: border-box;
}
@font-face {
    font-family: "novabr";
    src: url("../fonts/novabr_.ttf")   
}
@font-face {
    font-family: "novam";
    src: url("../fonts/novam.ttf")
}
body {
    /*grid-template-rows: defined in size.js*/
    display: grid;
    grid-template-columns: 100%;
    gap: 0.5rem;
    background-color: #FFFEDB;
    margin: 0;
    background-size: contain;
    background-position:center 0    ;
    background-repeat: repeat-y;
    overflow-x: hidden;
    min-width: 100%;
    width: 100%;
}
p {
	text-align: justify;
}
.top-button-row {
    display: none;
}
#floating-btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px; 
    width: 50px;
    height: 50px;
    justify-content:center;
    align-items: center;
    font-size: 2.5em;
    background-color: lightblue;
    z-index: 1;
    font-family: novabr;
    opacity: 0.7;
    border: 4px solid white;
    box-shadow: 0px 0px 5px gray;
    border-radius: 15px;
    cursor: pointer;
    color: rgba(0,0,0,0.8);
    transform: rotate(270deg);
}
#floating-btn-top:hover {
    opacity: 0.9
}
.floating-btn-display-class {
    display: flex;
}


#main {
    grid-area: 2 / 1 / span 1 / 1;
    display: grid;
    grid-template: 1fr / repeat(10, 1fr) ;
    gap: 0.5em;
    
}




#background-div {
    background-size: cover;
    background-position:top;
    grid-area: 5 / 1 / 6 / -1 ;
    background-attachment: fixed;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    align-items:space-between;
    position: relative;
}
#mid-page-arrow {
    font-family: monospace;
    font-weight: bold;
    width: min-content;
    display: none;
    align-items:center;
    justify-content: center;
    transform-origin: 50% 0%;
    line-height: 0.5;
    margin-bottom: 15px;
}
.mid-arrow-animation {
    animation: point2 4s ease-in-out infinite;
    animation-direction: alternate;
}
@keyframes point2 {
    0%{transform: rotate(90deg) translateX(30px)}
    50% {transform: rotate(90deg) translateX(30px)}
    80% {transform: rotate(90deg) translateX(45px);color:#FFFA86}
    100% {transform: rotate(90deg) translateX(30px) ;}
   
}

.arrow {
    color:#FFFEDB;
    font-family: novabr;
    margin: 0;
    padding: 0;
    text-shadow: 0px 0px 4px black;
    cursor: pointer;
    font-size: 7vw;
}
.arrow:hover {
    text-shadow: 0px 0px 4px black, 0px 0px 10px #FFFEDB;
}
.mid-page-text {
    
    font-size: 1.4em;
    
    
}
#mid-page-text-1 {
    position: absolute;
    left: 30px;
    bottom: 25%;
    width: 35%;
}

.spiritual-science-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #00CCCC;
}
.social-science-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #666600;
}
.modern-translations-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #000066;
}
.fantasy-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #CC00CC;
}
.fiction-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #660000;
}
.childrens-books-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #006600;
}
.coming-soon-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #006666;
}
.history-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #0000CC;
}
.philosophy-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #660066;
}
.religious-category {
    font-weight: bold;
    font-family: verdana,arial;
    color: #CC0000;
}

.hidden {
    display: none;
}
.hidden-desktop {
    display: none;
}

.no-overflow {
    overflow: hidden;
}
.highlight:hover, .highlight:focus {
    text-shadow: 2px 2px 7px burlywood, -2px -2px 7px white;
}

@media only screen and (max-width:650px) {
    .hidden-mobile{display: none;}
    .hidden-desktop {
        display: block;
    }
}
@media only screen and (max-width:800px) and (orientation: landscape) {
    /* #main {grid-template: 17vh 17vh 17vh 17vh 17vh 17vh / 50px repeat(8, 1fr) 50px ;} */
    #mid-page-arrow {
        display: none;
    }
    #mid-page-text-1, #mid-page-text-2 {
        font-size: 0.9em
    }
    #mid-page-text-1 {
        bottom: 10%
    }
    
}
@media only screen and (min-width: 651px) {
    #main {grid-template: 50px 120px 120px 50px 38vh 1fr / 50px repeat(10, 1fr) 50px ;}
    #mid-page-arrow {
        display: flex;
    }
}
@media only screen and (min-width: 1024px) {
    #top-button-row {
        width: 100%;
        height:50px;
        z-index:1;
        align-items: center;
        justify-content: center;
    }
    .top-button-row {
        display: flex;
    }
    .top-button-row-fixed {
        position: fixed;
    }
    .top-button-row-button {
        background:#105485; 
        border-radius:5px 5px 5px 5px;
        font-weight:normal; 
        font-family:null;
        border:none;
        box-shadow:0 0 8px rgba(0, 0, 0, 0.5);
        display: block;
        width:145px;
        height:40px;
        line-height:2.8;
        position:relative;
        font-size:16px;
        text-align:center;
        cursor:pointer;
        color:#fff;
        text-decoration: none;
        z-index:1;
        margin-left: 0.5vw;
        margin-right: 0.5vw;
}
}
