/* Center the container and style the display */
body {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    background-color: #000000;
    color: #e4e4e4;
    font-family: 'Libre Baskerville', serif;
}

footer {
    color: #A9A9A9;
    font-size: 0.75em;
    display: flex;
    text-align: left;
    margin-left: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

ul {
    list-style-type: circle;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
}

#product-name {
    margin-top: 10%;
    font-size: 4rem;
    color: auto;
    font-family: "Henny Penny", serif;
    animation: fade-out 2.0s forwards 0.5s;
    cursor: default;
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.hidden-display {
    display: none;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 420px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 380px;
}

.modal-content.share {
    width: 500px;
    height: 60px;
}

.modal-content input {
    width: 80%;
    padding: 8px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-body {
    display: flex;
    width: 100%;
}

.tab-column {
    flex: 1;
    background: #ffffff;
    padding: 10px;
    border-right: 1px solid #ddd;
}

.tab-column .tab-button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000;
}

.tab-column .tab-button.active {
    background-color: #000000;
    color: white;
}

.tab-content {
    flex: 3;
    padding: 20px;
    color: #000;
}

#changeData {
    height: 100%;
}

#storyListContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Make sure the container has a defined height */
}

.buttonContainer {
    margin-top: auto;
}

.disabledButton {
    background-color: #e3e3e3;
    cursor: default;
}

.disabledButton:hover {
    background-color: #e3e3e3;
    cursor: default;
}

.storyListButtons {
    display: flex;
    justify-content: center;
}

#storyListPrev {
    margin-right: 10px;
}

#clearHistory {
    margin-top: 10px;
}

.savedStoryTitle {
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.savedStoryTitle:hover {
    background-color: #A9A9A9;
}

.settingsRow {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 10px;
    font-family: "Basic", serif;
}

.settingsRow.settingsButtons {
    justify-content:center;
    padding-top: 10px;
}

.settingsRow#settingsAutoParse {
    justify-content: flex-start;
}

.settingsRow label.text {
    margin-right: 10px;
    align-self: center;
}

.unit {
    align-self: flex-end;
    color:#A9A9A9;
    font-size: 0.75em;
}

.settingsRow select {
    margin-right: 10px;
}

.settingsRow input[type~="number"] {
    width: 50px;
}

.settingsRow input[type~="color"] {
    height: 50px;
    width: 75px;
    margin-right: 25px;
}

.settingsRow input[type~="checkbox"] {
    width:auto;
}

label.settingsDesc {
    font-family: "Source Code Pro", serif;
    font-optical-sizing: auto;
    /*font-weight: 200;*/
    font-style: normal;
    font-size: 0.75em;
    color:#8c8c8c;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

:where(.modal-content button) {
    padding: 8px 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: #000000;
    color: white;
    cursor: pointer;
}

:where(.modal-content button:hover) {
    background-color: #A9A9A9;
}

#shortenerMsg {
    color: black;
    text-align: center;
    margin-top: 10px;
    font-size: 0.75em;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.cursor-invisible {
    cursor: none; /* hide the cursor when needed */
}

header {
    /*visibility: hidden;*/
    transition: opacity 0.3s ease;
    /*position: fixed;*/
    width: 100%;
    height: 100px; 
}

header.hidden {
    opacity: 0;
    /*pointer-events: none; */
    transition: opacity 0.3s ease;
  }

.svgHeaderButton {
    position: fixed;
    left: 0px;

    width: 40px;
    height: 40px;
    z-index: 20;
    margin: 30px 30px;
    
    background-color: transparent;
    border: 2px solid #000000;
    /*color: #A9A9A9;*/
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

#shareButton {
    left: 150px;
}

#optionsButton {
    left: 75px;
}

#fullscreenButton {
    left: unset;
    right: 0px;
}

#playPauseButton {
    left: unset;
    right: 75px;
}

#playPauseButton > img {
    filter: brightness(0) saturate(100%) invert(55%) sepia(5%) saturate(18%) hue-rotate(101deg) brightness(91%) contrast(92%);
}

#playPauseButton:hover > img {
    filter: invert(0%) sepia(100%) saturate(100%) hue-rotate(127deg) brightness(0%) contrast(100%);
}

#pauseIcon {
    display: none;
}

main {
    flex: 1;
    margin: 0px auto 50px auto;
    width: 60%;
    text-align: left;
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-style: normal;
    user-select: none;
}

#addNewStory {
    display: none;
    width: auto;
    height: 100%;
}

#display {
    cursor: default;
    font-size: 1.1em;
    white-space: pre-wrap;
    display: none;
    color: #e4e4e4;
}

#storyTitle {
    width: 100%;
    margin-top: 50px;
}

#storyInput {
    width: 100%;
    height: 300px;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.25s forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

#arrows {
    position: fixed;
    margin-top: 30px;
    width: 100%;
}

.centeredButtons {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.centeredButtons button {
    border: 2px solid #000000;
    font-size: 1.5em;
    padding: 0px 15px;
    cursor: pointer;
    margin: 0 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    outline: 1px solid rgb(132, 132, 132);
}

#totalPageContainer {
    position: fixed;
    top: 75px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 18px;
    font-family: "Basic", serif;
    font-size: 0.75em;
    visibility: hidden;
}

/* Editable page indicator */
#indicator {
    width: 40px;
    text-align: center;
    font-size: 1.5em;
    border: 2px solid #000000;
    border-radius: 5px;
    outline: none;
    margin: 0px 10px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

#indicator:focus, #indicator:focus:hover {
    background-color: #f5f5f5;
    color: #000;
}

.no-hover:hover {
    background-color: inherit !important;  /* Reset background */
    color: inherit !important;             /* Reset text color */
    /* Add other properties you need to reset */
}

.menu-icon {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 0px;
    left: 0;
    background-color: #000000;
    width: 100%;
    text-align: center;
    z-index: 1000;
}

.dropdown-menu div {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #666;
}

.dropdown-menu div:hover {
    background-color: #666;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.textarea-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.overlay-button {
    position: absolute;
    bottom: 0;
}

#pasteButton {
    right: 0%;
    transform: translate(-20%, 35%);
}

#clearButton {
    left: 0%;
    transform: translate(20%, 35%);
}

button:disabled {
    background-color: gray;
}

#storySubmit {
    margin-top: 50px;
}