@font-face {
    font-family: 'ScribeFont';
    src: url('../assets/scribe_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
* {
    font-family: 'ScribeFont', sans-serif;
}
textarea,
input,
button,
select {
    font-family: inherit;
}

html,
body {    
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    overflow-y: auto;
}

#full_app {
    text-align: center;

    width: min(100vw, 600px);
    height: min(100dvh, 900px);

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 16px;
    box-sizing: border-box;
    
    /* View bounding box for debug 
    border: 1px solid black; */
}

#dailyGoalButton {
    border: none;
}

#header {
    font-size: 2rem;
    width: 100%;

    display: flex;
    justify-content: center;
}
.experienceBarWrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.experienceBar {
    width: 120px;
    height: 12px;
    border: 1px solid #333;
    background: transparent;
    overflow: hidden;
}
.experienceBarFill {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
}

#app {
    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    flex: 1 1 auto;
    overflow: auto;
    width: 100%;
    height: 100%;

    /* View bounding box for debug 
    border: 1px solid red; */
}

.deskBackground {
    background-image: url("../assets/images/UI/wood_desk.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}
.parchmentBackground {
    background-image: url("../assets/images/UI/parchment.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    image-rendering: pixelated;
}

#settingsButton {
    border: none;
    position: fixed;
    top: 0px;
    right: 0px;
}

#friendsButton {
    border: none;
    position: absolute;
    top: 12px;
    left: 12px;
}

#sanctifyButton {
    border: none;
    position: absolute;
    top: 12px;
    right: 12px;
}

#footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.navigationBar {
    display: flex;
    width: 100%;
    min-width: 0;
}
.navigationButton {
    flex: 1 1 0;
    min-width: 0;

    border: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.navigationButton img {
    width: clamp(20px, 8vw, 40px);
    height: auto;
}
.navigationButton span {
    font-size: clamp(10px, 2.8vw, 14px);
}

#loadingIndicator {
    display: none;
    width: 40px;
    height: 40px;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.libraryBookGrid {
    display: flex;
    flex-wrap: wrap;
}
.upgradeButton {
    flex: 1;
    min-height: 100px;
    border: none;
}
.bookBackground {
    background-image: url("../assets/images/UI/libraryMenu.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}
.bookIcon {
    width: 40%;
    max-width: 40%;
    object-fit: contain;

    position: relative;
    z-index: 1;

    transform: translateY(-6px)
}
.bookText {
    font-size: clamp(12px, 1.5vw, 14px);
    line-height: 1.1;
    white-space: nowrap;
}
.upgradeCost {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.costToUpgradeCoin {
    width: 12px;
    height: 12px;
    image-rendering: pixelated;
}

.chapterReading {
    padding-left: 30px;
    padding-right: 30px;
}
#apiVerseSubmitButton {
    display: none;
}
#review_page_data {
    padding-left: 24px;
    padding-right: 24px;
}

select:disabled {
    display: none;
}

input,
select,
textarea {
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    background:transparent;

    color: black;
}

button {
    background-size: 100% 100%;
    background-color: transparent;
    image-rendering: pixelated;

    margin: 1px;

    color: black;

    padding: 10px;

    border: 1px solid black; 
    border-radius:10px;
    border-style: double;
}

.letter {
    max-width: 100%;
    box-sizing: border-box;
    border: none;
}

textarea {
    resize: none;
}

.hidden {
    display: none;
}