/* Stylesheet */
tw-debugger {
    /*display: none;*/
}

body {
    background: #010101;
    color: white;
    font: serif;
    background-color: #010101;
    color: #f2c313;
    font-family: 'Nokia Cellphone';
    font-size: 16px;
    line-height: 1.5;
    /*padding: 0 1em;*/
    /*text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);*/
}
/*.pre-init { display: none !important; }*/

#title {
    font-family: 'Atari System';
    font-size: 2em;
    -webkit-font-smoothing: none;
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;
}

h1.top {
    font-size: 4em;
    text-align: center;
}

tw-story {
    background-color: #010101;
    position: absolute;
    margin: 0 auto;
    right: 0px;
    line-height: 1.6;
    font-size: 1em;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding-left: 200px;
    padding-right: 100px;
    /*padding-top: 20px;*/
    transition: 0.5s all ease;

}

/* Ensure main text doesn’t hide behind sidebar */
tw-passage {
    display: inline-block;
    margin-left: 60px !important;
    /* Adjusted for left sidebar */
    max-width: 100%;
    width: 80vw;
    min-width: 70vw;

    font-family: 'Perfect DOS';
    font-size: 1.06em;
    color: #2df9f6;
    font-weight: normal;
    line-height: 1.5;

    overflow-x: auto;
    transition: all 0.5s ease;
    transition: margin-left 0.5 ease;
    /*will-change: transform;*/
}
@media only screen and (max-width: 600px) {
	 tw-passage {
       width: 95vw;
       min-width: 95vw;
  	}
}

h3 {
    /*color: #3498db; /* Bright blue for headings */
    color: yellow;
    /* yello for headings */
    margin: 0 0 15px 0;
    border-bottom: 2px solid #122029;
    padding-bottom: 8px;
}

tw-sidebar {
    position: fixed;
    left: 0px;
    /* Changed from right to left */
    top: 5px;
    background: black;
    /* Dark blue */
    color: #ecf0f1;
    /* Light gray text */
    border: 2px solid #34495e;
    border-color: yellow;
    padding: 20px;
    border-radius: 10px;
    width: 240px;
    bottom: 5px;
    z-index: 99999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    font-size: 1em;
    direction: ltr;
    margin-top: 1px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    transition: left ease 0.5s;
    will-change: transform;
}

tw-sidebar.hidden {
    left: -238px !important;
}

.tw-sidebar h3 {
    color: gold;
    /* Bright blue for headings */
    margin: 0 0 15px 0;
    border-bottom: 2px solid #34495e;
    padding-bottom: 8px;
}

.tw-sidebar h5 {
    color: #3498db;
    /* Bright blue for headings */
    margin: 0 0 15px 0;
    border-bottom: 2px solid #34495e;
    padding-bottom: 8px;
}


.sidebar-hider {
    position: fixed;
    display: flex;
    top: 5px;
    left: 0px;
    width: 40px;
    min-width: fit-content;
    font-size: 17px;
    font-size: clamp(16px, 1.5vw, 24px);
    justify-content: space-around;
    color: gold;
    border: 2px solid gold;
    border-radius: 10px;
    background-color: black;
    transition: border ease 0.3s, background 0.3s linear;
    line-height: 1.5;
    z-index: 100000;
    opacity: 0.5;
}

.sidebar-hider:hover {
    opacity: 1;
}



/* Optional: Add progress bar styles for stats */


/*tw-sidebar tw-icon {
  margin-bottom: 20px;
}*/

tw-sidebar tw-icon {
    /*position: absolute;*/
    background: navy;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 0px;
    cursor: pointer;
    transition: background 0.3s;
    width: 40%;
    scale: 0.7;
    line-height: 0;
    opacity: 1;
}

tw-icon {
    margin: -0.5em 0;
    font-size: 28px;
    padding-top: 2px;
}

tw-icon[alt] {
    opacity: 0.7;

}

tw-icon[alt]:hover {
    opacity: 1;
}

.container {
    display: justify-content;
    margin-top: 0px;
    /*position: absolute;*/
}

.tw-sidebar-button:hover {
    background: #2980b9;
}

tw-dialog {
    border-radius: 8px;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    /*display:none;*/
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0, );
    background-color: rgb(10, 10, 10, 0.7);
    animation: fadein 0.4s;
}


.modal-title {
    display: flex;
    position: absolute;
    left: 20px;
    top: 0px;
    font-size: 50px;
    font-weight: bold;
}

.modal-content {
    background-color: #d9d9d9;
    margin: 5% auto;
    padding: 0px 20px;
    border: 1px solid grey;
    width: 75%;
    color: black;
    padding-bottom: 15px;
}

.close {
    display: flex;
    position: absolute;
    right: 20px;
    top: 0px;
    font-size: 50px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal .closer {
    position: fixed;
    width: 100%;
    height: 100%;
    cursor: initial;
}

/*.modal .closer:hover {
  cursor: pointer;
}*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: rgba(25, 147, 147, 0.1);
}

::-webkit-scrollbar-track:hover {
    border-radius: 10px;
    background-color: rgba(25, 147, 147, 0.3);
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(25, 147, 147, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    border-radius: 10px;
    background-color: rgba(25, 147, 147, 0.8);
}


/***** POPUPS *****/
/*
  This is the code for the custom popups.
  Again the black background is for backup loading
*/
.popup {
    width: max-content;
    height: max-content;

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;

    visibility: hidden;
    display: none;

    background: black;
    outline: 2px solid darkred;
}

/* 
  With every custom popup you create, you need to add the new ID below, or it won't open. 
*/
#popup-save.open,
#popup-settings.open,
#popup-credits.open,
#popup-save1.open {
    visibility: visible;
    z-index: 999999;
    display: block;
    background: black;
}

#popup-close {
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 50px;
    height: 58px;
    width: 50px;
}

#popup-close tw-hook {
    margin-left: 15px;
}

#popup-close tw-link {
    color: darkred;
}

#popup-close tw-link:hover {
    color: darkred;
    background-color: black;
    text-shadow: 0px 0px 20px yellow;
}

#popup-title {
    text-align: center;
    margin: 0.2em 0 0.3em;
    line-height: 0.8em;
}

.popup hr {
    border: none;
    border-bottom: 2px dotted;
}

#popup-body {
    overflow: auto;
    padding: 1% 2% 3%;
    width: 100%;
    height: max-content;
    margin: auto;
    max-height: 75vh;
    max-width: 600px;
    background: black;
}

/* Popup Specific */
.fake-button {
    font-weight: bold;
    color: grey;
    cursor: not-allowed;
}

imp-exp#saves {
    display: flex;
    text-align: center;
    align-items: center;
}

imp-exp#saves>* {
    padding: 0 5px;
}

table#saves {
    border: 2px solid darkred;
}

table#saves td {
    max-width: 700px;
    min-width: 50px;
    border-bottom: 1px solid red;

}

table#saves td.savename {
    width: 360px;
    /*border-bottom: 1px solid darkred;  */
}

table#saves th {
    max-width: 700px;
    min-width: 50px;
}

table#settings td {
    min-width: 200px;
    text-align: right;
}

table#settings th {
    text-align: right;
    width: 150px;
}

/***** SETTINGS *****/
/*
  Below is the code for any settings requiring a class.
*/
/* Font Family */

.serif tw-story {
    font-family: serif;
}

.sansserif tw-story {
    font-family: sans-serif;
}

.monospace tw-story {
    font-family: monospace;
}

/* Themes */

body.light-theme {
    background-color: white;
    color: black;
}

body.dark-theme {
    background-color: #242424;
    color: #e8e7e7;
}

body.sepia-theme {
    background-color: #F7F4F1;
    color: #7b3012;
}

.light-theme tw-footer,
.light-theme tw-footer {
    background: white;
    border-color: black;
}

.dark-theme tw-footer,
.dark-theme tw-footer {
    background: #242424;
    border-color: white;
}

.sepia-theme tw-footer,
.sepia-theme tw-footer {
    background: #F7F4F1;
    border-color: black;
}

.light-theme tw-dialog {
    background: white;
    color: black;
    border-color: black;
}

.dark-theme tw-dialog {
    background: #242424;
    color: #e8e7e7;
    border-color: white;
}

.sepia-theme tw-dialog {
    background: #F7F4F1;
    color: #7b3012;
    border-color: black;
}

.light-theme .popup {
    background: white;
}

.dark-theme .popup {
    background: #242424;
}

.sepia-theme .popup {
    background: #F7F4F1;
}

/*.light-theme #popup-close tw-link:hover {
  color: red;
}
.sepia-theme #popup-close tw-link:hover {
  color: red;
}

.light-theme tw-story select {
  background: white;
}
.dark-theme tw-story select {
  background: #222;
}
.sepia-theme tw-story select {
  background: white;
}

.light-theme tw-link {
  color: #3559c4;
}
.dark-theme tw-link {
  color: #6487ee;
}
.sepia-theme tw-link {
  color: #3559c4;
}

.light-theme tw-link:hover {
  color: darkred;
}
.dark-theme tw-link:hover {
  color: #43d0ff;
}
.sepia-theme tw-link:hover {
  color: #048b00;
}
*/
/***** OTHER *****/
/*
  Below is the code for any settings requiring a class.
*/
/*This code is so I could display the examples*/
pre {
    width: fit-content;
    padding: 0 1em 1em;
    border-radius: 6px;
}

.light-theme pre,
.sepia-theme pre {
    background: lavender;
}

.dark-theme pre {
    background: #333357;
}

select,
input[type="checkbox"],
label {
    cursor: pointer;
    background: black;
    color: black;
}


/*****************************/
/* Dialog style with images */


.chat-container {
    font-family: cursive;
    max-width: 98%;
    /*margin: 20px auto;*/
    padding: 0 10px;
    transition: all 0.3s ease;
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.avatar {
    flex-shrink: 0;
    width: 75px;
    /* Increased by 50% */
    height: 75px;
    /* Increased by 50% */
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff15;
    border: 2px solid #ffffff20;
    position: relative;
    margin-top: 20px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Focus on top part of image */
}

.message-content {
    background: linear-gradient(145deg, #252525, #151515);
    /* Darker gradient */
    padding: 7px 25px 15px;
    /* More top padding for name */
    border: 2px solid black;
    border-radius: 15px 0 15px 0;
    /* Angled edges */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    margin-top: 20px;
    /* Space for name */
    transition: all 0.3s ease;
}

.message-content::beforee {
    content: '';
    position: absolute;
    left: -12px;
    /* Adjusted for larger avatar */
    top: 25px;
    /* Aligned with new spacing */
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #252525 55%, transparent 50%);
    /* Darker */
    transform: rotate(45deg);
}

.speaker-name {
    display: inline-block;	
    color: inherit;
    font-weight: 700;
    font-family: ui-serif;
    font-size: 1.25em;
    position: absolute;
    top: 0px;
    /* Position above message bubble */
    left: 0.5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-text {
    color: inherit;
    /*font-family: 'Arial', sans-serif;*/
    font-family: cursive;
    line-height: 1.5;
    font-size: 1.06em;
    margin: 0;
}

tw-story sup {
  font-size: 0.95em;
}
@media only screen and (max-width: 600px){
  tw-story sup {
  	font-size: 15px;
  }
  .avatar {
	margin-top: 20px;
    width: 15vw;
    height: 15vw;
    position: absolute;
    z-index: 1;
  }
  .message-content {
    padding-top: 7vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .speaker-name {
    left: 15vw;
    top: -3vw;  
  }
  .speaker-reaction {
	position: absolute;
    right: 10%;
    top: 4vw;
  }
}


.self-says {
    color: #00FFE5;
    background: #1A1A2E;
    border: 2px solid #00FFE5;
    border-radius: 15px 0 15px 0;
    /* Angled edges */
    /*animation: pulse 0.1s;*/
}

/* Keep original body styles */
body {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    min-height: 100vh;
    margin: 0;
    /*padding: 20px 0;*/
}


/************************/
hr.menu-seperator {
    background-color: #34495e;
    color: #34495e;
    height: 2px;
    margin: 4px;
    padding: 0px;
    border: 0px solid #34495e;
}


tw-story tw-link,
.visited {
    background-color: none;
    color: #03f;
    transition: background 0.3s ease;
    text-shadow: none;
    border-radius: 5px;

}

tw-story tw-link:hover,
.visited:hover {
    background-color: white;
    border-radius: 5px;
    color: black;
    text-shadow: none;
    transition: background 0.3s ease;
}


tw-story sup {
    color: yellow;
    text-shadow: none;
    line-height: 1;
    /*display: inline-flex;*/
}

tw-link:hover sup {
    color: black;
}

tw-story do {
    color: yellow;
    font: initial;
    font-size: 1em;
}

* {
    -webkit-font-smoothing: none;
}

/* Buttons */
/* method 1 -> use border-image */
.btn-gradient-1 {
    border-width: 4px;
    border-style: solid;
    border-image: linear-gradient(to right, darkblue, darkorchid) 1;
}

/* method 2 -> use background-clip to support border-radius */
.btn-gradient-2 {
    background: linear-gradient(white, white) padding-box,
        linear-gradient(to right, darkblue, darkorchid) border-box;
    border-radius: 50em;
    border: 4px solid transparent;
}

/*********************************/

/* SAVELOAD BOX */
.save-load-box {
    width: 100%;
    height: flex;
    padding: 10px;
    border: 1px solid yellow;
    margin: 0;

}

tw-sidebar hr {
    border-top: 1px solid yellow;
}

/******************/

/* progress bars containers */
.progress-bar {
    background: #34495e;
    height: 8px;
    border-radius: 4px;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: gold;
    border-radius: 4px;
    transition: width 0.3s ease;
}


.grid-progress-container {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 2px;
    background-color: none;
    padding: 1px;
    font-size: 16px;

}

.grid-progress-container>div {
    text-align: center;
    padding: 1px;
}

.progress-left-cell {
    grid-column-start: 1;
    grid-column-end: 2;
    width: 20px;
}

.progress-middle-cell {

    grid-column-start: 2;
    grid-column-end: 9;
}

.progress-right-cell {
    grid-column-start: 9;
    grid-column-end: 10;
}


/*****************/

/**** Cards *****/
.cards-list {
    z-index: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card {
    margin: 10px auto;
    margin-left: 20px;
    width: 180px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 5px 5px 30px 7px rgba(0, 0, 0, 0.25), -5px -5px 30px 7px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: 0.4s;
}

.card .card_image {
    width: inherit;
    height: inherit;
    border-radius: 10px;
}

.card .card_image img {
    width: inherit;
    height: inherit;
    border-radius: 10px;
    object-fit: cover;
}

.card .card_title {
    text-align: center;
    border-radius: 0px 0px 10px 10px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.125em;
    margin-top: -53px;
    height: 35px;
    width: 100%;
    background-color: rgb(0 0 0 / 70%);
}


.card:hover {
    transform: scale(0.99, 0.99);
    box-shadow: 5px 5px 30px 15px rgba(0, 0, 0, 0.25),
        -5px -5px 30px 15px rgba(0, 0, 0, 0.22);
}

.card .card-session {
    text-align: center;
    background-color: rgb(0 0 0 / 100%);
    color: #1bff00;
    font-size: 0.94em;
    margin-top: -201px;
    border-radius: 10px 10px 0px 0px;

}

.card .title-white {
    color: white;
}

.card .title-black {
    color: black;
}

@media all and (max-width: 500px) {
    .card-list {
        /* On small screens, we are no longer using row direction but column */
        flex-direction: column;
    }
}


/**************************/
/* Header Image */

img.header-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center middle;
    outline: 1px solid gold;
  	display: block;
  	transition: all 0.3s ease-out;
    /*transform: translateY(100%);*/
}

/***************/

/* Stats table */
table.stats {
    width: 100%;
    font-size: 1.125em;
    font-family: "monospace";
    background-color: #010101;
}

table.stats td.name {
    text-align: left;
}

table.stats td.value {
    text-align: right;
}

/***************/
/**** fonts ****/
.p1 {
    font-family: "Times New Roman", Times, serif;
}

.p2 {
    font-family: Arial, Helvetica, sans-serif;
}

.p3 {
    font-family: monospace;
    text-align: center;
}

/********/

.false {
    position: fixed;
}

.true {
    position: fixed;
}

.logo2 {
    width: 200px;
}

.undo-redo {
    position: fixed;
    top: 5px;
    right: 5px;
    width: 125px;
    display: flex;
    justify-content: space-around;
    border: 2px solid rgba(255, 255, 0, 0.2);
    background-color: rgba(0, 0, 128, 0.3);
    transition: border ease 0.3s, background 0.3s linear;
    line-height: 1.5;
    padding-top: 6px;

}

.undo-redo:hover {
    border: 2px solid rgba(255, 255, 0, 0.8);
    background-color: rgba(0, 0, 128, 0.8);
    z-index: 1;
}

tw-story q {
    color: red;
}

tw-story err {
    color: red;
}

.quick-menu-container {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    background-color: #0a0a0a;
    border: 2px dashed gold;
    width: 100%;
    column-gap: 5px;
    row-gap: 12px;
    padding: 12px;
}

.quick-menu-container .quick-icon {
    width: 50px;
    height: 56px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.quick-menu-container .quick-icon:hover {
    scale: 1.1;
}

.quick-menu-container .quick-icon img {
    width: inherit;
    height: inherit;
    object-fit: cover;
}

.quick-menu-container .quick-icon .text {
    color: gold;
    bottom: 3px;
    font-size: 15px;
    font-weight: bold;
}

.tooltiptext {
    visibility: hidden;
    background-color: #575757;
    color: #fff;
    text-align: center;
    font-size: 17px;
    border-radius: 6px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    /*left: 50%;*/
    margin-right: -60px;
    opacity: 0;
    transition: opacity 0.5s;
}

.quick-menu-container .quick-icon:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.number-key {
    font-size: 0.8em;
    vertical-align: sub;
    margin-left: 2px;
    color: #666;
}


/**** Cards *****/
.backpack-list {
    z-index: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.backpack-card {
    margin: 10px auto;
    margin-left: 20px;
    width: 180px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 5px 5px 30px 7px rgba(0, 0, 0, 0.25), -5px -5px 30px 7px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: 0.4s;
    scale: 0.9;
}

.backpack-card .backpack-card_image {
    width: inherit;
    height: inherit;
    border-radius: 0px;
}

.backpack-card .backpack-card_image img {
    width: inherit;
    height: inherit;
    margin-top: -33px;
    border-radius: 0px;
    object-fit: cover;
}

.backpack-card .backpack-card_title {
    text-align: center;
    margin-top: -267px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 20px;
    height: 35px;
    width: 100%;
    background-color: rgb(0 0 0 / 70%);
}

.backpack-card .backpack-card_title_text {
    margin-top: -27px;
    color: white;
}

.backpack-card .backpack-card_bottom {
    text-align: center;
    margin-top: 99px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 18px;
    height: 35px;
    width: 100%;
    background-color: rgb(0 0 0 / 70%);
}

.backpack-card .backpack-card_bottom_text {
    margin-top: -23px;
    color: white;
}

.backpack-table {
    border: 1px solid black;
    border-collapse: collapse;
    width: 90%;
}

.backpack-table th,
.backpack-table td {
    border: 1px solid #0A0A0A;
    padding: 8px;

}

.backpack-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.backpack-table tr:hover {
    background-color: #ddd;
}

.backpack-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-col0or: #0A0A0A;
    color: white;
}

.phone-image {}

.store-table {
    border: 1px solid black;
    border-collapse: collapse;
    width: 100%;
    font: status-bar;
    font-size: 1.5em;
    font-size: min(1.5vw, 24px);
}

.store-table th,
.store-table td {
    border: 1px solid #34495e;
    padding: 8px;

}

.store-table tr:nth-child(odd) {
    background-color: #0A0A0A;
}

.store-table tr:nth-child(even) {
    background-color: #011324;
}

.store-table tr:hover {
    background-color: #1e2b70;

    border-color: gold;
}

.store-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #0A0A0A;
    color: white;
}


/* Game Bar for decisions */
.game-bar-container {
    width: 80%;
    margin: 50px auto;
    text-align: center;
    scale: 0.5;
}

.game-bar-status-bar {
    height: 40px;
    display: flex;
    position: relative;
    margin: 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

.game-bar-danger {
    background-color: #ff4444;
    flex: 1;
}

.game-bar-safe {
    background-color: #4CAF50;
    flex: 1;
}

.game-bar-pointer {
    position: absolute;
    top: -20px;
    left: 0%;
    width: 20px;
    height: 60px;
    /*transition: left 0.2s linear;*/
    /*clip-path: polygon(50% 0%, 0% 100%, 100% 100%);*/
    background-color: white;
}

game-bar-pointer::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-left: 2px solid white;
    border-right: 2px solid white;
}

/****************************/
.dimage {
    max-width: 90%;
    /*min-width: 45%;*/
    display: block;
    margin-left: auto;
    margin-right: auto;
	max-height: 90vh !important;
}

/****************************/
.patreon_icon {
    width: 66px;
    left: auto;
    top: 59px;
    position: relative;
    transition: 0.3s;
  	z-index: 1;
}

.patreon_icon:hover {
    scale: 1.1;
}

.bouncy {
    transition: 0.3s;
}

.bouncy:hover {
    scale: 1.1;
}


video::-internal-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

tw-story .video {
    min-width: 35%;
    max-width: 70%;
    max-width: min(720px, 70%);
    margin-left: auto;
    margin-right: auto;
}
@media only screen and (max-width: 600px){
  tw-story .video {
  	min-width: 100%;
  }
  .dimage {
  	max-height: 75%;
  }
}

video {
    max-width: 100%;
}
.video video {
	width: 100%
}

/* CSS */
tw-link sup.key-hint {
    font-size: 0.7em;
    color: #ff0000 !important;
    /* Red for visibility */
    margin-left: 3px;
    vertical-align: super;
}

tw-link sup.key-hint {
    font-size: 0.7em;
    color: #666;
    vertical-align: super;
    margin-left: 3px;
}

tw-link:focus {
    outline: 2px solid #00f;
}

.left-key::before,
.right-key::after,
.up-key::after,
.down-key::before,
.space-key::after {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}

.left-key::before {
    content: "[←]";
}

.right-key::after {
    content: "[→]";
}

.up-key::after {
    content: " [↑]";
}

.down-key::before {
    content: " [↓]";
}

.space-key::after {
    content: " [Space]";
}

img.night {
	filter: brightness(0.4) contrast(0.9) saturate(0.7);
}
.night-effect {
  position: relative;
  display: inline-block;
}

.night-effect img {
  display: block;
  width: 100%;
  filter: brightness(0.4) contrast(0.9) saturate(0.7);
  transition: filter 0.3s ease;
}
.night-effect:hover img{
	filter: brightness(0.7) contrast(0.9) saturate(0.7);
}
.night-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 30, 80, 0.3);
  mix-blend-mode: multiply;
}

.night-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, 
    white 0.5px, transparent 1px),
    radial-gradient(circle at 80% 60%, 
    white 0.5px, transparent 1px);
  opacity: 0.3;
  z-index: 2;
}

/* Night effect overlay */
body.night-mode::before {
  content: "";
  position: fixed; /* Covers entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 30, 80, 0.4);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* Optional: Add star effects */
body.night-mode::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, 
    white 0.5px, transparent 1px),
    radial-gradient(circle at 80% 60%, 
    white 0.5px, transparent 1px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* Optional: Add dark filter to background */
body.night-mode {
  /*filter: brightness(0.7) contrast(1.2);*/
}

.force-overlay {
  /*position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  pointer-events: none;*/
}

.force {
  position: relative;
  z-index: 9999;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Base Styling */
.speaker-name {
    display: inline-block;
    margin-right: 10px;
    position: relative;
}

.speaker-reaction {
    /* Inherit from parent message */
    background: var(--reaction-bg, #f0f0f0);
    color: var(--reaction-text, #333);
    
    display: inline-block;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: top;
    border: 1px solid transparent;
    
    /* Automatic color adjustment */
    border-color: color-mix(in srgb, var(--reaction-bg) 70%, black);
}

/* Auto-generated color scheme based on message type */
.message[data-speaker-type="male"] {
    --reaction-bg: color-mix(in srgb, #2C3E50 20%, white);
    --reaction-text: #2C3E50;
}

.message[data-speaker-type="female"] {
    --reaction-bg: color-mix(in srgb, #6D4C5C 20%, white);
    --reaction-text: #6D4C5C;
}

.message[data-speaker-type="you"] {
    --reaction-bg: color-mix(in srgb, #00FFE5 15%, white);
    --reaction-text: #1A1A2E;
}

.mini {
  position: relative;
    display: inline-flex;
    padding-left: 4px;
  transition: all 0.3s ease;
}
.mini img {
  width: 23px;
    height: 23px;
    border-radius: 15px;
}

.mini:hover {
  scale:1.2;
}

.mini:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Collapsible Container */
.collapsible {
  width: 100%;
  max-width: 100%; /* Adjust as needed */
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
}

/* Header Button */
.collapsible-header {
  width: 100%;
  padding: 15px 20px;
  text-align: left;
  border: none;
  background: linear-gradient(to right, #3a3a3a, #2a2a2a);
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.collapsible-header:hover {
  background: linear-gradient(to right, #4a4a4a, #3a3a3a);
}

/* Title and Icon */
.collapsible-title {
  font-size: 1.125em;
  font-weight: bold;
}

.collapsible-icon {
  font-size: 1.25em;
  transition: transform 0.3s ease;
}

/* Content Area */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #b3b3b3;
}

.collapsible-inner {
  padding: 20px;
}

/* Active State */
.collapsible.active .collapsible-icon {
  transform: rotate(45deg);
}

.collapsible.active .collapsible-content {
  max-height: 1000px; /* Adjust based on your content */
  transition: max-height 0.5s ease-in;
}

.collapsible.active .collapsible-icon::before {
  content: "-";
}

.collapsible.active .collapsible-icon i {
  transform: rotate(180deg);
}

.hover-to-preview:hover:parent(.modal){ 
	opacity: 0.25;
}


/*** SUPPORTERS ***/
.patrons-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: url('https://example.com/game-texture.jpg') no-repeat center/cover; /* Optional: Add a subtle game-themed texture */
  border: 2px solid #3a3a3a;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}


.thank-you-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #3f51b5; /* Gold */
  margin-bottom: 10px;
  text-shadow: 0 0 10px #f44336, 0 0 20px #673ab7;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.3rem;
  color: #0825c9;
  margin-bottom: 40px;
  font-style: italic;
  text-shadow: 0 0 5px #000;
}

.supporter {
	display: inline-block;
  margin: 1px;
}
}

.tier-ravens {
  background: linear-gradient(135deg, #f8d347, #c9a227);
  color: #1a1a1a;
  border-radius: 15px;
  padding: 20px;
  margin: 30px 0;
  border: 3px solid #f8d347;
  box-shadow: 
    0 0 15px #f8d347,
    inset 0 0 10px rgba(248, 211, 71, 0.5);
  position: relative;
}

.tier-ravens h2 {
  font-size: 2.2rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'Cinzel Decorative', serif;
}

.tier-ravens::before {
  content: "⚔️"; /* Optional: RPG icon */
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
}

.tier-ravens .supporters-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.tier-ravens .supporter {
  background: rgba(25, 25, 25, 0.8);
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 700;
  color: #f8d347;
  border: 1px solid #f8d347;
  box-shadow: 0 0 5px #f8d347;
}

.tier-vips {
  background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
  color: #1a1a1a;
  border-radius: 12px;
  padding: 18px;
  margin: 25px 0;
  border: 3px solid #6ab7ff;
  box-shadow: 
    0 0 12px #6ab7ff,
    inset 0 0 8px rgba(106, 183, 255, 0.5);
}

.tier-vips h2 {
  font-size: 1.8rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tier-vips .supporters-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.tier-vips .supporter {
  background: rgba(25, 25, 25, 0.7);
  padding: 7px 15px;
  border-radius: 20px;
  color: #6ab7ff;
  border: 1px solid #6ab7ff;
}

.tier-patrons {
  background: linear-gradient(135deg, #cd7f32, #9a5c20);
  color: #1a1a1a;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  border: 2px solid #ff5e5e;
  box-shadow: 0 0 10px #ff5e5e;
}

.tier-patrons h2 {
  font-size: 1.6rem;
  margin: 0;
  text-transform: uppercase;
}

.tier-patrons .supporters-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.tier-patrons .supporter {
  background: rgba(25, 25, 25, 0.6);
  padding: 6px 12px;
  border-radius: 15px;
  color: #ff5e5e;
}

.tier-supporters {
  background: #2a2a2a;
  color: #aaa;
  border-radius: 8px;
  padding: 12px;
  margin: 20px 0;
  border: 1px solid #555;
  box-shadow: 0 0 5px #333;
}

.tier-supporters h2 {
  font-size: 1.4rem;
  margin: 0;
}

.tier-supporters .supporters-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.tier-supporters .supporter {
  background: #333;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
}