/* KJV1611 Font by Fredrick Brennan / license : SIL Open Font License (OFL)
https://fontmeme.com/fonts/kjv1611-font/ */
@font-face {
    font-family: "KJV1611";
    src: url("assets/KJV1611.otf");    
}

:root {
    --color-theme:      rgb(146, 30, 22);
    --color-background: rgb(247, 245, 233);
    --color-menu:       rgba(247, 245, 233, 0.6);
    --color-page:       rgba(247, 245, 233, 0.9);
    --font-family:      serif;
    cursor:             url(assets/cursor-1.png) 20 23, auto;
}

body {
    margin: 0; 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-background);    
    color: var(--color-theme);
}

.square {
    width: min(100vw, 100vh);
    height: min(100vw, 100vh);
    max-width: 800px;
    max-height: 800px;
    contain: content;
}

.home {
    position: fixed;
    object-fit: contain;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6, .menu {
    text-transform: lowercase;
    font-family: "KJV1611", system-ui;
    font-weight: 400;
    font-style: normal;
    text-shadow: 1px 1px var(--color-background);
}

.homepage-content {
    position: absolute;
    top: 60%;
    width: 100%;
}

.homepage-text {
    position: relative;
    width: fit-content;
    line-height: 2em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    z-index: 2;
    background-color: var(--color-menu);
    box-shadow: var(--color-menu) 0 0 2px 2px;
}

.menu {
    font-size: xx-large;
    display: none;
}

.page {
    position: absolute;
    z-index: 4;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background: var(--color-page);
    display: none;
}

.page-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
}

.page :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 2em;
}

@keyframes cursor {
    0% { cursor: url(assets/cursor-1.png) 20 23, auto;}
    50% { cursor: url(assets/cursor-2.png) 20 23, auto;}
}

a {
    text-decoration: none;
    color: inherit;
}

a.underlined {
    text-decoration: underline;
    cursor: url(assets/cursor-1.png) 20 23, auto;    
    animation: cursor 200ms infinite;
}

.menu a {
    cursor: url(assets/cursor-1.png) 20 23, auto;    
    animation: cursor 200ms infinite;
}

#close-page-button {
    position: fixed;
    top: 1em;
    right: 1em;
    z-index: 5;
    display: none;
}

#close-page-button a {
    cursor: url(assets/cursor-1.png) 20 23, auto;      
}

#menubutton, #close-page-button {
    font-size: xx-large;
    text-shadow: 1px 1px var(--color-background);
    animation: cursor 200ms infinite;
}

@keyframes bush {
    from { content: url("assets/bush-2.png"); }
    to   { content: url("assets/bush-3.png"); }
}

@keyframes sapphire {
    from { content: url("assets/sapphire-2.png"); }
    to   { content: url("assets/sapphire-3.png"); }
}

.bulb {
    position: fixed;
    z-index: 3;
    top: 5%;
    left: 42.65%;
    width: 18.375%;
    height: 20%;
}

.bush {
    position: fixed;
    z-index: 3;
    top: 75%;
    left: 76%;
    height: 15%;
    width: 18.625%;
}

.teeth {
    position: fixed;
    z-index: 3;
    top: 4.5%;
    left: 70.5%;
    height: 33.75%;
    width: 18.625%;
}

.sapphire {
    position: fixed;
    z-index: 3;
    top: 88%;
    left: 23.9%;
    height: 8.75%;
    width: 18.625%;
}

.bush:hover {
    animation: bush steps(2) 500ms infinite;
}

.sapphire:hover {
    animation: sapphire steps(2) 500ms infinite;
}

/* portrait mode */
@media only screen and (max-width: 479px) {
    #menubutton { display: none; }
    .menu { display: inline; }
    .homepage-content { position: absolute; top: 70%; }
    body { align-items: normal; }
    .square { margin-top: 30%; }
}

/* landscape mode */
@media only screen and (max-height: 580px) and (min-width: 480px) {
    #menubutton { display: none; }
    .menu { display: inline; }
    .homepage-content { position: relative; display: inline-block; width: 50%; }
    .square { margin-top: auto; width: 50%;}
}