:root {
    --page-bg: #535353;
    --page-color: #000000;
    --card-bg: #efefef;
    --card-bg-dark: #c6c6c6;
    --card-bg-darker: #a6a6a6;
    --links-bg: #5a5a5a;
    --links-color: #ffffff;
    --links-white: #ffffff;
    --links-green: #29ff4a;
    --links-blue: #39d5f6;
    --links-yellow: #f7f72a;
    --links-orange: #ffb529;
    --footer-color: #ffffff;
    --log-border: grey;
    --log-bg: var(--card-bg);
    --button-bg: #e1e1e1;
    --button-border: #adadad;
    --button-bg-active: #bebebe;
    --link-color-active: var(--link-color);
    --comic-font: "Courier New", Courier, monospace;
    --text-font: Verdana, Arial, Helvetica, sans-serif;
    --links-font: Arial, Helvetica, sans-serif;
}

#chat::-webkit-scrollbar {
    display: none;
}

#chat {
    position:absolute;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    max-width: 180px;
    max-height:340px;
    overflow-y: scroll;
    overflow-x: scroll;
    transform:translate(168%,-167%);
}

#comictitle {
    display: inline-block;
}

#comic {
    position:absolute;
    color: #8a8a8a;
    top:-25px;
    left:50%;
    text-align: center;
    font-size: 2rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-50%, 0%);
    text-decoration: underline;
}

html {
    text-align: center;
    font-family: monospace;
    margin-top: 18px;
    height: 115%;
    background-color: rgb(43, 43, 43);
    margin-top: 12px;
    margin-right: 20px;
    padding-left: -10px;
    overflow-x:auto;
    font-size: 10px;
}

@media screen and (max-width: 600px) {
    html {
        font-size: 9.5px;
    }
}

@media screen and (max-width: 400px) {
    html {
        font-size: 9.2px;
    }
}

body {
    display: inline-block;
    background-color: gray;
    color: black;
    font-family: Verdana, serif;
    font-size: 16px;
}

.topsection {
    margin-top: -15px;
    margin-right: -15px;
    margin-left: -15px;
}

#italic {
    font-style: italic;
}

#italictitle {
    font-style: italic;
    position:relative;
    margin: 0;
    padding: 20px;
    padding-top: 0px;
    font-size: 32px;
    font-family: verdana;
    font-weight: 500;
    text-align: center;
    overflow-wrap: break-word;
    max-width: 14em;
    left:50%;
    transform: translate(-50%, 27px);
}

#topbar {
    display: flex;
    background-color: var(--page-bg);
    padding-top: 5px;
}

.content {
    display: inline-block;
    background-color: rgb(219, 219, 219);
    padding-right: 15px;
    padding-left: 15px;
    padding-bottom: 0px;
    padding-top: 0px;
    margin-top: -.5%;
    margin-bottom: 0%;
    transform: translate(0, 0);
}

.pagetop {
    display:block;
}

.pagenumber {
    display:block;
    position:relative;
}

#page {
    position:absolute;
    color: #8a8a8a;
    top:50%;
    left:50%;
    text-align: center;
    font-size: 2rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-50%, -70%);
    text-decoration: underline;
}

.act {
    display:block;
    position:relative;
}

#arc {
    position:absolute;
    color: #adadad;
    top:50%;
    left:100%;
    text-align: center;
    font-size: 1.6rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-85%, -60%);
    text-decoration: underline;
}

#autosave {
    display: flex;
}

#autosavelink {
    color:rgb(26, 11, 153) ;
}

#autosavebutton {
    
    position: absolute;
    padding: 20px;
    padding-top: 0;
    font-size: 1.5rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-30px, -8px);
}

#savelink {
    color:rgb(26, 11, 153) ;
}

#savebutton {
    position: absolute;
    padding: 20px;
    padding-top: 0;
    font-size: 1.5rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-30px, 14px);
}

#loadlink {
    color:rgb(26, 11, 153) ;
}

#loadbutton {
    position: absolute;
    padding: 20px;
    padding-top: 0;
    font-size: 1.5rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-30px, 36px);
}

#deletelink {
    color:rgb(26, 11, 153) ;
}

#deletebutton {
    position: absolute;
    padding: 20px;
    padding-top: 0;
    font-size: 1.5rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-30px, 58px);
}


#backlink {
    color:rgb(255, 18, 38) ;
}

#backbutton {
    position: absolute;
    padding: 20px;
    padding-top: 0;
    font-size: 1.6rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-30px, -9px);
}

#startlink {
    color:rgb(9, 0, 78) ;
}

#start {
    position: absolute;
    padding: 20px;
    padding-top: 0;
    font-size: 1.6rem;
    font-family: "Courier New";
    font-weight: 700;
    transform: translate(-30px, -108%);
}

.msg {
    position: fixed;
    padding: 4px 8px;
    background: var(--card-bg);
    max-width: 90vw;
    cursor: pointer;
    box-shadow: 0 0 2px black;
    font-family: "Courier New";
    animation: fade-in .35s;
    transition: opacity .35s;
    border-style: solid;
    border-width: 2px;
    border-color: #000000;
    border-radius: 5px;
    z-index: 999;
}

.msg.fading-out {
    opacity: 0;
}

#menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

:root.modal-open #menu-container {
    pointer-events: auto;
}

#menu-background, #menu-background-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 0;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}

#menu-background-2 {
    z-index: 2;
}

#message-box {
    background: var(--card-bg);
    padding: 8px;
    max-width: 90vw;
    max-height: calc(100vh - 10vw);
    opacity: 0;
    transition: opacity .15s;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    box-shadow: 0 0 5px black;
}

.desktop #message-box {
    max-width: 600px;
    max-height: calc(100vh - 20px);
}

#message-box-content {
    min-width: 200px;
    min-height: 50px;
    word-wrap: break-word;
    max-width: 100%;
    max-height: 100%;
}

#message-box-content > * {
    max-width: 100%;
    max-height: 100%;
}

#message-box-dismiss {
    margin-top: 6px;
}

:root.message-box-open #message-box {
    opacity: 1;
    pointer-events: auto;
}

#title {
    position:relative;
    margin: 0;
    padding: 20px;
    padding-top: 0px;
    font-size: 32px;
    font-family: verdana;
    font-weight: 500;
    text-align: center;
    overflow-wrap: break-word;
    max-width: 14em;
    left:50%;
    transform: translate(-50%, 27px);
}

#text {
    
    position:relative;
    font-family: verdana, serif;
    font-weight: 600;
    max-width: 45ch;
    
    left:50%;
    transform: translate(-50%, 0px);
}

h2 {
    text-align: center;
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

p {
    line-height: 130%;
}

#command {
    padding-bottom: 2%;
    font-size: 26px;
    overflow: hidden;
    overflow-wrap: break-word;
    font-family: monospace, serif;
}

#stuff {
    width: 100%;
}

#feuxlink {
    color: #7c7c7c;
    cursor:default;
    text-decoration: underline;
}

a:-webkit-any-link {
    color: #00aeff;
    cursor: pointer;
    text-decoration: underline;
}

#media {
    margin-left: 0;
    margin-right: 0;
}

#art {
    width: 500px;
    max-width:100%;
    height:auto;
    margin-top: 10px;
}

#phonemedia {
    margin-left: auto;
    margin-right: auto;
    width: 800px;
    max-width:100%;
    height:auto;
    margin-top: 10px;
}

.footer {
    /*position:absolute;
    display: block;
    width: 100%;
    height: 100%;
    margin-top: 1em;
    margin-bottom: 4em;
    padding-bottom: 0.7%;*/
    
}

#copyright {
    position:relative;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    max-width: 20ch;
    left: 50%;
    transform: translate(-50%, 0%);
}

#ArC {
    position:relative;
    font-size: 12px;
    font-weight: 500;
    color: #00d85a;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}

#AlC {
    
    position:relative;
    font-size: 12px;
    font-weight: 500;
    color: #7b00c2;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}