html, body {
    height: 100%;
    margin: 0;
    overflow: auto;
    font-family: 'UnifrakturMaguntia', cursive;
    background-color: black;
}

body.fullscreen-locked {
    overflow: hidden;
}

.landing-screen {
    width: 100%;
    min-height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    margin-bottom: 20px;
    margin-top: 40px;
    cursor: pointer;
}

.logo-image {
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    width: 323px;
    height: 616px;
}

@media (max-width: 700px) {
    .logo-image {
        content: url('images/logosmall.png');
        width: 323px;
        height: 465px;
    }

    .logo-container {
        width: 323px;
        height: auto;
        margin-top: 60px;
    }

    .landing-screen {
        justify-content: flex-start;
    }

    .button-group {
        flex-direction: row;
    }
}

.enter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.enter-wrapper {
    position: relative;
    width: 173px;
    height: 112px;
}

.enter-image {
    width: 100%;
    height: 100%;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    display: block;
}

.enter-text {
    font-size: 25px;
    color: blue;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none;
    pointer-events: auto;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
    text-shadow: -2px 2px 0 #a8c100;
    text-align: center;
    width: auto;
}

.enter-text:hover {
    text-shadow: none;
    transform: translate(-50%, -50%) scale(0.98);
}

.slow-enter-text {
    font-size: 12px;
    color: white;
    text-decoration: none;
    margin-top: 10px;
    text-align: center;
    display: block; 
}

@media (max-width: 700px) {
    .slow-enter-text {
        display: none; 
    }
}

.slow-enter-text:hover {
    text-decoration: underline;
}

.fullscreen-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #ffffe0;
    position: relative;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    overflow-y: auto;
}

.frameslideshow-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    z-index: 3;
}

.frameslideshow-image {
    position: relative;
    z-index: 0;
    width: 963px;
    height: 958px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.image-container {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 943px;
    height: 943px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fixed-size-image {
    width: 943px;
    height: 943px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.frameboxcontainer-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.frameboxcontainer-image {
    width: 963px;
    height: 106px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.box-container {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 941px;
    height: 84px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    border: 1px solid black;
}

.box {
    width: 104px;
    height: 84px;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}


#box1 {
    width: 101px;
}

#box2 {
    width: 104px;
}

#box6 {
    width: 103px;
}

#box3 {
    width: 217px;
    overflow-y: auto;
}

#box1a, #box2a, #box3a, #box4a, #box5a, #box6a, #box7a, #box8a {
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

#box1b, #box2b, #box3b, #box4b, #box5b, #box6b, #box6c, #box6d, #box7b, #box8b {
    height: 27px;
    font-family: 'Almendra','Times New Roman', Times, serif;
    font-size: 14px;
    font-style: bold;
    color: black;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

#box1a {
    background-image: url('images/box/box1a.png');
    background-size: cover;
    background-position: center;
}

#box1b {
    background-image: url('images/box/box1b.png');
    background-size: cover;
    background-position: center;
}

#box2a {
    background-image: url('images/box/box2a.png');
    background-size: cover;
    background-position: center;
}

#box2b {
    background-image: url('images/box/box2b.png');
    background-size: cover;
    background-position: center;
}

#box3a {
    background-image: url('images/box/box3a.png');
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow-y: auto;
}

#box3a::-webkit-scrollbar {
    width: 6px;
}

#box3a::-webkit-scrollbar-track {
    background: transparent;
}

#box3a::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0);
    border-radius: 3px;
}

#box3a::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0);
}

#box3a {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0) transparent;
}

#box3a {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

#box3b {
    background-image: url('images/box/box3b.png');
    background-size: cover;
    background-position: center;
}

#box4a {
    background-image: url('images/box/box4a.png');
    background-size: cover;
    background-position: center;
}

#box4b {
    background-image: url('images/box/box4b.png');
    background-size: cover;
    background-position: center;
}

#box5a {
    background-image: url('images/box/box5a.png');
    background-size: cover;
    background-position: center;
}

#box5b {
    background-image: url('images/box/box5b.png');
    background-size: cover;
    background-position: center;
}

#box6a {
    display: flex;
    justify-content: space-between;
}

#box6aa {
    width: 36px;
    height: 57px;
    background-image: url('images/box/box6aa.png');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#box6b {
    width: 31px;
    height: 57px;
    background-image: url('images/box/box6b1.png');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#box6c {
    width: 36px;
    height: 57px;
    background-image: url('images/box/box6c.png');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#box6d {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 103px;
    height: 27px;
    background-image: url('images/box/box6d.png');
    background-size: cover;
    background-position: center;
    padding: 0 6px;
    box-sizing: border-box;
    font-family: 'Almendra', serif;
    font-size: 14px;
    color: black;
    line-height: 27px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

#staticText {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    transition: opacity 0.5s ease;
}

.scrollable-text-container {
    overflow: hidden;
    white-space: nowrap;
    width: 91px; 
    position: absolute;
    left: 6px;
    right: 6px;
}

.scrollable-text {
    display: inline-block;
    white-space: nowrap;
    transform: translateX(0);
    transition: transform 1.5s linear, opacity 0.5s ease;
    padding-left: 2px;
    padding-right: 2px;
}

#box6d:hover .scrollable-text {
    transform: translateX(calc(100px - 100%));
}

#box7a {
    background-image: url('images/box/box7a.png');
    background-size: cover;
    background-position: center;
}

#box7b {
    background-image: url('images/box/box7b.png');
    background-size: cover;
    background-position: center;
}

#box8a {
    background-image: url('images/box/box8a.png');
    background-size: cover;
    background-position: center;
}

#box8b {
    font-family: 'Almendra', serif;
    font-size: 14px;
    color: black;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/box/box8b.png');
    background-size: cover;
    background-position: center;
    height: 27px;
    width: 103px;
}

.chapter-icons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.chapter-icon {
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: grayscale(50%) brightness(70%);
}

.chapter-icon[data-index="0"],
.chapter-icon[data-index="1"] {
    filter: none;
}

.lock-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    width: 100%;
    height: 100%;
}

.lock-digit {
    width: 16px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.go-button {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    margin-left: 5px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.frame-counter {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    color: black;
    text-align: center;
    width: 100%;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-wheel {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.footer {
    font-size: 12.5px;
    font-family: 'Almendra','Times New Roman', Times, serif;
    color: #666666;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 50;
    border-top: 3px double #666666;
    background: none;
    margin: 0;
    box-sizing: border-box;
}

.footer a {
    color: #666666;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

.scrollable-content {
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

.interactive-box {
    cursor: pointer;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1px 0 0 0;
    box-sizing: border-box;
}

.cookie-text-box {
    background-color: #ffffd6;
    padding: 5px 10px;
    border: 1px solid black;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.cookie-text {
    font-family: 'Almendra', serif;
    font-size: 14px;
    color: black;
    margin: 0;
}

.cookie-button {
    font-family: 'Almendra', cursive;
    background-color: blue;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 0px;
    cursor: pointer;
}

.cookie-button:hover {
    background-color: #00aaaa;
}

.closed-tab, .left-draw, .open-tab, .right-tab {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.closed-tab {
    bottom: 10px;
    left: -18px;
    width: 21px;
    height: 60px;
    background-image: url('images/info.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; 
    border: none;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.left-draw {
    bottom: 0px;
    left: -300px; 
    width: 300px;
    height: 958px;
    background-image: url('images/drawbg.png'); 
    background-size: cover; 
    background-position: center;
    display: none; 
    z-index: -1; 
}


.open-tab {
    bottom: 10px;
    left: -319px; 
    width: 21px;
    height: 60px;
    background-image: url('images/info.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2; 
    border: none;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    display: none; 
}

.right-tab {
    bottom: 5px;
    right: -103px;
    width: 104px;
    height: 943px;
    background-color: #996600;
    z-index: -1;
}
