.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-items-center {
    justify-items: center;
}

.justify-items-left {
    justify-items: start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-left {
    justify-content: start;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.align-items-left {
    align-items: start;
}

.w-full {
    width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #333333;
    margin: 0;
    overflow: hidden;
    height: 100vh;
}

.container {
    transition: transform 0.5s ease-in-out;
}

.section {
    width: 100vw;
    height: 100vh;
}

.card {
    width: 90%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 5px;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    padding: 0 10px;
    display: none;
}

.nav.left {
    left: 10px;
}

.nav.right {
    right: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .nav {
        display: block;
    }
}

.with-bg {
    background-size: contain;
    background-repeat: no-repeat;
}

#generative-section {
    overflow: hidden;
    position: relative;
}

#story-section {
    min-height: 70%;
    margin-bottom: 15px;
}

#story-pagination > a {
    color: #844128;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    margin: 10px 5px;
}

#canvas-assets {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 500px;
    white-space: nowrap;
    scroll-behavior: smooth
}

#canvas-assets::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

#canvas-assets::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#canvas-assets::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

#canvas-assets::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#canvas-buttons,
#canvas-items {
    padding: 0;
    margin: 10px 0;
}

#canvas-ordinal-btn,
#canvas-save-btn {
    margin: 5px;
}

#canvas-ordinal-btn > img,
#canvas-save-btn > img {
    width: 90%;
}

#canvas-ordinal-btn > img:hover,
#canvas-save-btn > img:hover {
    width: 91%;
}

#canvas {
    width: 72%;
    height: 72%;
    overflow: hidden;
}

@media (max-width: 640px) {
    #canvas-buttons,
    #canvas-items {
        margin: 0;
    }
}

#story {
    position: relative;
}

#zoomedModal.zoom-modal {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
  
#zoomedModal .modal-content {
    position: absolute;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}
  
#zoomedModal .close-btn {
    position: absolute;
    top: -6%;
    right: -4%;
    cursor: pointer;
}
  
#zoomedModal img#zoomedImage {
    max-width: 100%;
    max-height: 100%;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
  
  #preloader > .loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #844128;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }