:root {
    --color-white: #FFFFFF;
    --color-light: #E0E0ED;
    --color-black: #000000;
    --color-red: #D22B2B;
    --color-main: #00000D;
    --color-purple-1: #0D122C;
    --color-purple-2: #17214F;
    --color-purple-3: #263075;
    --color-purple-4: #3B409F;
    --color-contrast: #5B63F5;
    --color-bkg-opaque: #0D122C1A;
    --font-title: BankGothic, serif;
    --font-text: NotoSansLaoLooped, sans-serif;
}

@font-face {
    font-family: BankGothic;
    src: url('../assets/fonts/BankGothicLight.otf');
}

@font-face {
    font-family: NotoSansLaoLooped;
    src: url('../assets/fonts/NotoSansLaoLooped.ttf');
}

body {
    position: relative;
    background-color: var(--color-light);
    color: var(--color-main);
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}


/* ---------------------------------------General--------------------------------------- */

img {
    display: block;
    object-fit: contain;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons */
button {
    cursor: pointer;
}

.btn-filled,
.btn-border {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 175px;
    height: 40px;
    background-color: var(--color-purple-4);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    font-family: inherit;
    font-size: 15px;
}

.btn-border {
    background-color: transparent;
    border: 1.5px solid var(--color-purple-4);
    color: var(--color-purple-4);
    font-weight: 500;
}

.btn-table {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 30px;
    height: 30px;
    background-color: var(--color-purple-2);
    outline: none;
    border: none;
    border-radius: 5px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
}

.btn-table.empty {
    background-color: transparent;
    color: var(--color-purple-2);
    font-size: 17px;
}

.btn-close {
    display: block;
    width: 40px;
    height: 40px;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-main);
    font-size: 22px;
}

.special-session__btns {
    display: grid;
    grid-template-columns: 150px 150px;
    grid-template-rows: 30px;
    column-gap: 20px;
    margin: 20px 0 0 auto;
}

.special-session__btns button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple-4);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
}

.special-session__btns button:last-child {
    background-color: transparent;
    border: 2px solid var(--color-purple-4);
    color: var(--color-purple-4);
}

#new-story-mob {
    display: none;
}

#delete-account-mob {
    display: none;
    margin: 30px auto 0 auto;
    border-color: var(--color-red);
    color: var(--color-red);
}


/* ----------------------------------------Public--------------------------------------- */

/* Forms */
.public__form-cont {
    display: block;
    width: 100%;
    min-height: 100vh;
    background: url('../assets/img/jagger-fighting.webp') center center no-repeat;
    background-size: cover;
}

.public__form,
.login__form-cont {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 25px;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: #17214FA0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login__form,
.public__form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 80px 35px 80px;
    width: 100%;
    max-width: 600px;
    background-color: var(--color-white);
    border-radius: 15px;
}

.login__form h1,
.public__form h1 {
    margin-bottom: 35px;
    color: var(--color-purple-2);
    text-align: center;
    font-family: var(--font-title);
    font-size: 2.1em;
    font-weight: 400;
}

.login__form img,
.public__form img {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 40px;
    object-fit: cover;
}

.login__form label,
.public__form label {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    padding-left: 10px;
    font-size: 14px;
}

.login__form input,
.public__form input {
    display: block;
    margin-bottom: 20px;
    padding: 0 20px;
    width: 100%;
    height: 45px;
    background-color: var(--color-purple-2);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    font-size: 1em;
}

.login__form button,
.public__form button {
    display: block;
    margin-top: 30px;
    width: 175px;
    height: 45px;
    background-color: var(--color-purple-4);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    font-size: 16px;
}

.public__form span {
    display: block;
    width: 100%;
    font-size: 12px;
    opacity: 0.8;
}

.public__form-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 45px;
    width: 100%;
    text-align: center;
}

.public__form-links a {
    color: var(--color-purple-4);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
}

.public__form-links a:hover {
    text-decoration: underline;
}

/* Login */
.login__form-carousel {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    width: 100%;
    overflow: hidden;
}

.login__form-carousel form {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative;
    display: block;
    top: 0;
    padding: 0 10px;
    width: 100%;
    background-color: var(--color-white);
    translate: 100%;
    transition: translate 0.4s;
}

.login__form-carousel form:nth-child(1) {
    z-index: 1;
}

.login__form-carousel form:nth-child(2) {
    z-index: 2;
}

.login__form-carousel form:nth-child(3) {
    z-index: 3;
}

.login__form-carousel form.visible {
    translate: 0;
}

.login__form-carousel p {
    text-align: center;
    font-size: 0.9em;
}

.login__form-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto 0 auto;
}

.login__form-btns button {
    margin: 0;
}

.login__form-btns :first-child {
    background-color: var(--color-white);
    border: 1px solid var(--color-purple-4);
    color: var(--color-purple-4);
}



/* ---------------------------------------Session--------------------------------------- */

/* Left Bar */
.left__user {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: 50px auto;
    column-gap: 12px;
    row-gap: 15px;
    margin: 25px 15px 35px 15px;
    padding: 10px;
    width: calc(100% - 30px);
    height: 115px;
    background-color: var(--color-purple-1);
    border-radius: 12px;
    color: var(--color-white);
}

.left__user-pic {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    border: 2px solid var(--color-contrast);
    border-radius: 25px;
    overflow: hidden;
}

.left__user-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left__user-data {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
    overflow: hidden;
}

.left__user-data h3 {
    display: block;
    width: 100%;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.left__user-data h4 {
    font-size: 11px;
    font-weight: 400;
}

.left__user-btns {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: flex;
    align-items: center;
    gap: 15px;
}

.left__user-btns a,
.left__user-btns button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-white);
    text-decoration: none;
    font-size: 18px;
}

aside.show {
    translate: 0;
}

aside nav {
    display: flex;
    flex-direction: column;
}

aside nav a {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    column-gap: 15px;
    padding: 0 25px;
    width: 100%;
    height: 50px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s;
}

aside nav a:hover {
    background-color: var(--color-purple-2);
}

aside nav a.current {
    background-color: var(--color-purple-1);
    cursor: default;
}

aside nav a.current::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 6px;
    height: 100%;
    background-color: var(--color-contrast);
    border-radius: 0 3px 3px 0;
}

aside nav i {
    font-size: 18px;
}

.left__mob-btns {
    display: none;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding: 15px 15px;
}

.left__mob-btns button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    width: 40px;
    aspect-ratio: 1;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-white);
    font-size: 9px;
}

.left__mob-btns i {
    font-size: 18px;
}

/* Page Structure */
main {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: 60px auto;
    width: 100%;
    height: 100vh;
    background-color: var(--color-purple-1);
    overflow: hidden;
}

header {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    align-items: center;
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-auto-flow: column;
    grid-auto-columns: auto;
    column-gap: 30px;
    padding: 0 15px;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple-2);
}

#nav-btn {
    display: none;
}

aside {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    background-color: var(--color-purple-3);
}

article {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 100%;
    padding: 25px;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden;
}

section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    border-radius: 15px;
    overflow: hidden;
}

section.small-gap {
    gap: 15px;
}

/* Header */
header img {
    width: 100%;
}

header h1 {
    color: var(--color-white);
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 400;
}

header h1.ellipsis {
    display: block;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.header__page-controls {
    display: flex;
    gap: 20px;
    height: 30px;
}

.header__page-controls select {
    display: block;
    padding: 0 15px;
    width: 120px;
    height: 100%;
    background-color: var(--color-light);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-main);
}

.header__page-controls a,
.header__page-controls button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    height: 100%;
    background-color: var(--color-purple-4);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 12px;
    line-height: 1em;
    transition: background-color 0.3s;
}

.header__page-controls button:hover {
    background-color: var(--color-contrast);
}

.header__icon-btns {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header__icon-btns button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    width: 40px;
    aspect-ratio: 1;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-white);
    font-size: 9px;
}

.header__icon-btns button i {
    font-size: 18px;
}

/* Pages Layout */
article.session {
    grid-template-columns: 1fr 330px;
    column-gap: 25px;
}

/* Sections Content */
.section__title {
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-auto-columns: auto;
    grid-auto-flow: column;
    align-items: center;
    column-gap: 15px;
}

.section__title > i {
    font-size: 20px;
}

.section__title h2 {
    font-family: var(--font-title);
    font-size: 25px;
    font-weight: 400;
}

.section__title-search {
    display: grid;
    grid-template-columns: 1fr 30px;
    padding: 0 10px;
    width: 100%;
    height: 35px;
    max-width: 200px;
    background-color: var(--color-purple-2);
    border-radius: 8px;
    overflow: hidden;
}

.section__title-search input {
    display: block;
    width: 100%;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-white);
}

.section__title-search input::placeholder {
    color: #FFFFFFB0;
}

.section__title-search button {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-white);
}

.section__scroll {
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.section__scroll::-webkit-scrollbar {
    width: 6px;
}

.section__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.section__scroll::-webkit-scrollbar-thumb {
    background: var(--color-purple-3);
    border-radius: 3px;
}

.section__collapsible {
    display: block;
    width: 100%;
    height: 0px;
    overflow: hidden;
    transition: height 0.3s;
}

.section__collapsible > div {
    display: block;
    padding-top: 25px;
    width: 100%;
    height: max-content;
}

.collap__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    border-radius: 15px;
}

.section__paginator {
    display: grid;
    grid-auto-columns: auto;
    grid-template-rows: 30px;
    grid-auto-flow: column;
    column-gap: 15px;
    margin: auto auto 0 auto;
    padding-top: 25px;
}

.section__paginator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    border: 1px solid var(--color-purple-4);
    border-radius: 15px;
    color: var(--color-purple-4);
    text-decoration: none;
    font-size: 14px;
}

.section__paginator a.current {
    background-color: var(--color-purple-4);
    color: var(--color-white);
    cursor: default;
}

.section__paginator a.disabled {
    opacity: 0.6;
}

/* Tabbed Sections */
.tabbed-sections {
    display: grid;
    grid-row: 1 / -1;
    grid-template-columns: 100%;
    grid-template-rows: 35px auto;
    height: 100%;
    overflow: hidden;
}

.tabbed-sections__tabs {
    display: flex;
    gap: 5px;
    padding: 0 25px;
    height: 100%;
}

.tabbed-sections__tabs button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 25px;
    height: 100%;
    background-color: var(--color-purple-4);
    outline: none;
    border: none;
    border-radius: 10px 10px 0 0;
    color: var(--color-white);
    font-size: 15px;
}

.tabbed-sections__tabs button.active {
    background-color: var(--color-light);
    color: var(--color-purple-2);
    font-weight: 700;
}

.tabbed-sections__tabs button.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -5px;
    z-index: 1;
    display: block;
    width: 5px;
    height: 20px;
    background-color: transparent;
    border-radius: 0 0 5px 0;
    box-shadow: 0 10px var(--color-light);
}

.tabbed-sections__tabs button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -5px;
    z-index: 1;
    display: block;
    width: 5px;
    height: 20px;
    background-color: transparent;
    border-radius: 0 0 0 5px;
    box-shadow: 0 10px var(--color-light);
}

.tabbed-sections section {
    display: none;
}

.tabbed-sections section.active {
    display: flex;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

table.main tr {
    height: 40px;
}

table.aux tr {
    height: 32px;
}

table.main tr {
    transition: background-color 0.3s;
}

table.main tr.selected,
table.main tr:nth-child(4n + 2) {
    background-color: var(--color-bkg-opaque);
}

table.main tr.searched {
    background-color: var(--color-light);
    border-bottom: 1px solid #00000D4C;
}

table.main tr.border {
    border-bottom: 2px solid var(--color-main);
}

table.main tr.highlight {
    background-color: #5B63F566;
}

table.aux tr:has(td) {
    border-bottom: 1px solid #00000D4C;
}

table .btn-detail {
    display: block;
    margin: 0 auto;
    padding: 0;
    width: 30px;
    height: 30px;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-main);
    font-size: 1.2em;
}

table .mob {
    display: none;
}

table.main tr.tr__mob {
    display: none;
    height: max-content;
    border-bottom: 1px solid #00000D4C;
    overflow: hidden;
}

.tr__mob-detail {
    display: block;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s;
}

.tr__mob-detail > div {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 0.6rem;
    padding: 1rem 2rem;
}

.tr__mob-detail div span {
    font-weight: 600;
    text-align: start;
}

tr:has(th) {
    border-bottom: 1px solid var(--color-main);
    font-weight: 700;
}

td {
    text-align: center;
}

td > a {
    color: #1C56E8;
    text-decoration: none;
}

td > a:hover {
    text-decoration: underline;
}

td.bold {
    font-weight: 700;
}

tr.highlight td > a {
    color: var(--color-purple-3);
}

td input {
    display: block;
    margin: 0 auto;
    width: 45px;
    height: 20px;
    background-color: #0D122C26;
    outline: none;
    border: none;
    border-radius: 7px;
    text-align: center;
}

td input:disabled {
    background-color: transparent;
    color: var(--color-main);
}

td .long-text {
    display: block; 
    max-width: 180px;
    margin: 0 auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
}

.table__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

/* Forms */
form.one-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

form.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 20px;
}

form.new-session {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 15px;
    width: 100%;
    max-width: 1000px;
}

form.new-session > :first-child {
    grid-column: 1 / 3;
}

form > button {
    margin: 45px auto 0 auto;
}

form button.form-mob-btn {
    display: none;
}

.simple-input {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto 45px;
    row-gap: 10px;
}

.simple-text {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto 150px;
    row-gap: 10px;
}


.double-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 45px;
    column-gap: 20px;
    row-gap: 10px;
    width: 100%;
}

.simple-text label,
.simple-input label,
.double-input label {
    padding-left: 10px;
    font-size: 14px;
}

.simple-text textarea,
.simple-input input, .double-input input,
.simple-input select, .double-input select {
    display: block;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple-2);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    font-size: 1em;
}

.simple-text textarea {
    resize: none;
    padding: 20px;
    font-family: var(--font-text);
}

.simple-input.light input, .double-input input,
.simple-input.light select, .double-input select {
    background-color: var(--color-bkg-opaque);
    color: var(--color-main);
}

.simple-input span {
    padding-left: 20px;
    font-size: 12px;
    opacity: 0.7;
}

.dynamic-inputs {
    display: grid;
    grid-template-columns: 1fr 30px;
    grid-template-rows: auto;
    grid-auto-rows: 45px;
    row-gap: 10px;
    margin-top: 10px;
}

.dynamic-inputs span {
    align-self: center;
    padding-left: 10px;
    font-size: 14px;
}

.dynamic-inputs input {
    grid-column: 1 / 3;
    display: block;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    background-color: var(--color-bkg-opaque);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-main);
    font-size: 1em;
}

.dynamic-inputs button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--color-purple-2);
    outline: none;
    border: none;
    border-radius: 5px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
}

.img-input {
    display: grid;
    grid-template-columns: 250px;
    grid-template-rows: auto 250px 45px;
    row-gap: 10px;
    margin-bottom: 10px;
}

.img-input span {
    padding-left: 10px;
    font-size: 14px;
}

.img-input div {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
}

.img-input img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-input img.mask {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: fill;
}

.img-input input {
    display: none;
}

.img-input label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple-4);
    border-radius: 12px;
    color: var(--color-white);
    cursor: pointer;
}

.img-input button {
    width: 100%;
}

.thumbnail-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-input span {
    padding-left: 10px;
    font-size: 14px;
}

.thumbnail-input label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 16 / 9;
    background-color: var(--color-bkg-opaque);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-input img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-input.empty img {
    display: none;
}

.thumbnail-input i {
    font-size: 45px;
    opacity: 0.7;
}

.thumbnail-input p {
    font-size: 14px;
    opacity: 0.7;
}

.thumbnail-input input {
    display: none;
}

.thumbnail-hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #00000D80;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.25s;
}

.thumbnail-input.empty .thumbnail-hover {
    display: none;
}

.thumbnail-input label:hover .thumbnail-hover {
    opacity: 1;
}

/* Register Form */
.session__info {
    display: flex;
    flex-direction: column;
}

.session__info h4 {
    font-size: 15px;
    font-weight: 500;
}

.session__info p {
    font-size: 14px;
    margin-bottom: 10px;
}

.session__info button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 30px 0;
    background-color: transparent;
    outline: none;
    border: none;
    color: #1C56E8;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

#unreg-form button {
    margin: 0 auto;
    border-color: var(--color-red);
    color: var(--color-red);
}

.resume-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resume-text label {
    padding-left: 10px;
    font-size: 14px;
}

.resume-text textarea {
    display: block;
    padding: 10px 15px;
    width: 100%;
    height: 120px;
    background-color: var(--color-bkg-opaque);
    outline: none;
    border: none;
    border-radius: 10px 3px 3px 10px;
    font-family: inherit;
    font-size: 1em;
    resize: none;
}

.resume-text textarea::-webkit-scrollbar {
    width: 6px;
}

.resume-text textarea::-webkit-scrollbar-track {
    background: transparent;
}

.resume-text textarea::-webkit-scrollbar-thumb {
    background: #AAABA9;
    border-radius: 3px;
}

.input-link,
.input-file {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 15px;
    row-gap: 10px;
    width: 100%;
}

.input-link input {
    display: block;
    padding: 0 20px;
    width: 100%;
    height: 45px;
    background-color: var(--color-bkg-opaque);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-main);
    font-size: 1em;
}

.input-file input {
    display: none;
}

.input-file div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    width: 100%;
    height: 45px;
    background-color: var(--color-bkg-opaque);
    border-radius: 10px;
    color: var(--color-main);
    font-size: 1em;
    overflow: hidden;
}

.input-file span,
.input-link label {
    grid-column: 1 / -1;
    padding-left: 10px;
    font-size: 14px;
}

.input-link button,
.input-file label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    height: 45px;
    background-color: transparent;
    outline: none;
    border: 1.5px solid var(--color-purple-4);
    border-radius: 10px;
    color: var(--color-purple-4);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.input-file p {
    display: block;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.input-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-check input {
    display: block;
    width: 18px;
    height: 18px;
    accent-color: var(--color-contrast);
}

.form-note {
    font-style: italic;
    font-size: 13px;
}

/* Session Forms */
section.session-forms {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
    column-gap: 30px;
}

.session-forms > div {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 400px;
}

.session-forms .vr {
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--color-purple-1);
    opacity: 0.5;
}

.session-forms form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.session-forms select {
    display: block;
    padding: 0 20px;
    width: 100%;
    height: 45px;
    background-color: var(--color-purple-2);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    font-size: 1em;
}

.session-forms input {
    display: block;
    padding: 0 20px;
    width: 100%;
    height: 45px;
    background-color: var(--color-bkg-opaque);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-main);
    font-size: 1em;
}

.session-forms button {
    margin: 15px 0 0 0;
}

.session-forms__title {
    display: flex;
    align-items: center;
    column-gap: 15px;
}

.session-forms__title i {
    font-size: 15px;
}

.session-forms__title h3 {
    font-size: 17px;
    font-weight: 500;
}

/* Stories */
.story__graphics {
    display: flex;
    flex-direction: column;
    gap: 45px;
}


.story__no-graphics {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.story__mob-graphics {
    display: none;
    flex-direction: column;
    gap: 25px;
}

.story__mob-graphics h2 {
    font-size: 18px;
}

.story__mob-graphics p {
    font-size: 14px;
}

.story__graphics canvas {
    max-height: calc(100vh - 270px);
}

.story__graphs-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.story__graphs-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    background-color: #CFCFCF;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.story__graphs-toggle:has(input:checked) {
    opacity: 1;
}

.story__graphs-toggle input {
    display: none;
}



/* ----------------------------------------Modals--------------------------------------- */

.modals__cont {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: grid;
    padding: 0 15px;
    width: 100%;
    height: 100vh;
    background-color: #00000D80;
    opacity: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Alert */
.modal__alert {
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    padding: 45px 60px;
    width: 100%;
    max-width: 550px;
    background-color: var(--color-light);
    border-radius: 15px;
}

.modal__alert-title {
    display: grid;
    grid-template-columns: 30px auto;
    align-items: start;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 25px;
}

.modal__alert-title h4 {
    font-weight: 400;
}

.modal__alert p {
    margin: 25px 0 30px 0;
    font-size: 1em;
}

.modal__alert-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal__alert-check input {
    display: block;
    width: 18px;
    height: 18px;
    accent-color: var(--color-contrast);
}

.modal__alert-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.modal__alert-btns button {
    display: block;
    width: 100%;
    height: 40px;
    background-color: var(--color-purple-4);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    font-size: 16px;
}

.modal__alert-btns button:last-child {
    background-color: var(--color-light);
    border: 2px solid var(--color-purple-4);
    color: var(--color-purple-4);
}

.modal__alert-btns button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notification */
.modal__notification {
    align-self: start;
    justify-self: end;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    row-gap: 5px;
    margin: 25px 25px 0 0;
    padding: 12px 12px 12px 30px;
    width: 300px;
    background-color: var(--color-light);
    border-radius: 10px;
}

.modal__notification i {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 25px;
}

.modal__notification.green > i {
    color: #228B22;
}

.modal__notification.red > i {
    color: #D22B2B;
}

.modal__notification.yellow > i {
    color: #FFAA33;
}

.modal__notification h4 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-size: 15px;
}

.modal__notification p {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    font-size: 13px;
}

.modal__notification button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -5px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--color-purple-4);
    box-shadow: 2px 2px 3px #00000D4C;
    outline: none;
    border: none;
    border-radius: 15px;
    color: var(--color-white);
    font-size: 14px;
}

.modal__notification button i {
    font-size: inherit;
}

/* Loader */
.modal__loader {
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.33rem;
    padding: 1.66rem;
    width: 280px;
    background-color: var(--color-light);
    border-radius: 10px;
}

.modal__loader p {
    color: var(--color-black);
    font-size: 14px;
    opacity: 0.75;
}

.modal__loader span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.modal__loader span::after,
.modal__loader span::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid var(--color-contrast);
    animation: prixClipFix 2s linear infinite ;
}

.modal__loader span::after{
    transform: rotate3d(90, 90, 0, 180deg );
    border-color: var(--color-purple-3);
}

/* Modal Form */
.modal__form-cont {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    width: 100%;
    height: 100vh;
    background-color: #00000D80;
    opacity: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 0.3s;
    pointer-events: none;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 50px;
    width: 100%;
    height: auto;
    max-width: 600px;
    max-height: 65vh;
    background-color: var(--color-light);
    border-radius: 15px;
    overflow: hidden;
}

.modal__form.bad-luck {
    max-width: 750px;
    max-height: 80vh;
}

.modal__form .btn-filled {
    margin: 20px auto 0 auto;
}

/* Viewers modal */
.viewers__modal-cont {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    display: block;
    padding: 45px;
    width: 100%;
    height: 100vh;
    background-color: #00000D80;
    opacity: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 0.3s;
    pointer-events: none;
}

.viewers__modal {
    position: relative;
    display: grid;
    grid-template-columns: 5fr auto 4fr;
    grid-template-rows: min-content auto;
    column-gap: 40px;
    row-gap: 30px;
    margin: 0 auto;
    padding: 50px 60px 40px 60px;
    width: 100%;
    height: 100%;
    max-width: 1150px;
    background-color: var(--color-light);
    border-radius: 15px;
    overflow: hidden;
}

.viewers__modal > span {
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--color-purple-2);
    opacity: 0.5;
}

.viewers__modal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.viewers__modal-list {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.viewers__modal-list tr:has(th) {
    position: sticky;
    top: 0;
    border: none;
    background-color: var(--color-purple-1);
    color: var(--color-white);
}

.exp__btns {
    display: grid;
    grid-template-columns: 25px 40px 25px;
    margin: 0 auto;
    width: max-content;
}

.exp__btns button {
    display: block;
    width: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    color: var(--color-purple-1);
    font-size: 17px;
}

.exp__btns span {
    align-self: center;
    justify-self: center;
    color: var(--color-purple-2);
    font-size: 14px;
}

/* Contact */
.contact__message-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    width: 100%;
    height: 100vh;
    background-color: #00000D80;
    opacity: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 0.3s;
    pointer-events: none;
}

.contact__message {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 550px;
    background-color: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
}

.contact__message h3 {
    font-family: var(--font-title);
    font-size: 1.6em;
}

.contact__message button {
    display: block;
    padding: 0;
    background-color: transparent;
    outline: none;
    border: none;
    font-size: 1.45em;
}

.contact__message div {
    grid-column: 1 / 3;
    display: block;
    padding-right: 10px;
    width: 100%;
    height: 35vh;
    overflow: auto;
}

/* Story Name */
.modal__story-name {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    width: 100%;
    height: 100vh;
    background-color: #00000D80;
    opacity: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Wheel of Names */
.modal__wheel-cont {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: 35px 1fr 35px;
    column-gap: 25px;
    padding: 25px;
    width: 100%;
    height: 100vh;
    background-color: #00000DA0;
    opacity: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 0.3s;
    pointer-events: none;
}

.modal__wheel-cont iframe {
    grid-column: 1 / 3;
    width: 100%;
    height: 100%;
}

.modal__wheel-cont button {
    grid-column: 3 / 4;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--color-white);
    outline: none;
    border: none;
    border-radius: 50%;
    color: var(--color-purple-1);
    font-size: 1.4em;
}

/* Avatars */
.modal__avatars {
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    background-color: var(--color-white);
    border-radius: 12px;
}

.avatars__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    column-gap: 25px;
    row-gap: 10px;
    margin: 30px 0;
    width: 100%;
    max-height: 55vh;
    overflow-y: scroll;
}

.avatars__list::-webkit-scrollbar {
    width: 6px;
}

.avatars__list::-webkit-scrollbar-track {
    background: transparent;
}

.avatars__list::-webkit-scrollbar-thumb {
    background: var(--color-purple-3);
    border-radius: 3px;
}

.avatar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    width: 100%;
    max-width: 150px;
    border: 1.5px solid;
    border-color: transparent;
    border-radius: 10px;
    cursor: pointer;
}

.avatar__item.selected {
    border-color: var(--color-purple-4);
}

.avatar__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(circle,#C0C0CD 35%, #F0F0FD 55%);
    border-radius: 50%;
    object-fit: cover;
}

.avatar__item p {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.avatar__item i {
    position: absolute;
    display: none;
    top: 7px;
    right: 7px;
    color: var(--color-purple-4);
    font-size: 18px;
}

.avatar__item.avatar__item.selected i {
    display: inline-block;
}

.avatars__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.avatars__btns button {
    width: 100%;
}



/* -------------------------------------------404------------------------------------------- */

.not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(0deg, #A0A0AD 0%, #D0D0DD 100%);
}

.not-found__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    column-gap: 2rem;
    width: 100%;
    max-width: 750px;
}

.not-found__img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: center center no-repeat;
    background-size: cover;
    background-image: url('../assets/img/morgana-chibi.png');
    animation: glitch 0.3s linear 0.4s;
}

.not-found__texts {
    display: flex;
    flex-direction: column;
    animation: blur-in 1.75s ease-in forwards;
}

.not-found__texts h1 {
    color: var(--color-purple-2);
    font-size: 5em;
}

.not-found__texts p {
    margin: 2rem 0 4rem 0;
    color: var(--color-main);
    font-size: 1.15em;
    font-weight: 500;
    line-height: 1.33em;
}

.not-found__texts a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    padding: 0 2rem;
    height: 40px;
    background-color: var(--color-purple-4);
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.07em;
    font-weight: 500;
}



/* ---------------------------------------Special--------------------------------------- */

.hidden {
    display: none;
}

.appear {
    opacity: 1;
    pointer-events: all;
}

.centered {
    margin: 0 auto;
}



/* ---------------------------------------Responsive--------------------------------------- */

@media screen and (max-width: 1200px) {

}

@media screen and (max-width: 1080px) {
    /* Left bar */
    aside {
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 100;
        width: 250px;
        height: calc(100vh - 60px);
        translate: -100%;
        transition: translate 0.3s;
    }
    .left__mob-btns {
        display: flex;
    }
    /* Page structure */
    main {
        grid-template-columns: 100%;
    }
    article {
        grid-column: 1 / 2;
    }
    #nav-btn {
        display: flex;
    }
    #btn-back,
    #log-out-form {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    /* Sessions */
    article.session {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: max-content max-content;
        row-gap: 25px;
        overflow-y: scroll;
    }
    article.session > section:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    /* 404 */
    .not-found__grid {
        grid-template-columns: 1fr;
        row-gap: 2rem;
        padding: 0 2rem;
        max-width: 500px;
    }
    .not-found__img {
        width: 280px;
    }
}

@media screen and (max-width: 760px) {
    /* Public */
    .login__form,
    .public__form form {
        padding: 30px 45px 35px 45px;
    }
    /* Page structure */
    .header__page-controls {
        display: none;
    }
    /* Buttons */
    #new-story-mob,
    #delete-account-mob {
        display: flex;
    }
    /* Tables */
    table .desk {
        display: none;
    }
    table .mob {
        display: table-cell;
    }
    table tr:nth-child(4n + 2):not(.selected) {
        background-color: transparent;
    }
    .ranking tr.border {
        border-bottom: none;
    }
    table.main tr.tr__mob {
        display: table-row;
    }
    /* Stories */
    .story__graphics,
    .story__no-graphics {
        display: none;
    }
    .story__mob-graphics {
        display: flex;
    }
}

@media screen and (max-width: 480px) {
    /* Public */
    .login__form,
    .public__form form {
        padding: 30px 20px 35px 20px;
    }
    .login__form h1,
    .public__form h1 {
        font-size: 1.8em;
    }
    header {
        grid-template-columns: 35px 1fr;
        column-gap: 15px;
    }
    header h1 {
        font-size: 22px;
    }
    .section__title {
        gap: 5px;
    }
    .section__title h2 {
        font-size: 20px;
    }
    /* Left Bar */
    aside {
        width: 100%;
    }
    /* Page structure */
    article {
        padding: 20px;
    }
    article.session {
        row-gap: 20px;
    }
    .section__title button:not(.btn-close) {
        display: none;
    }
    /* Forms */
    form button.form-mob-btn {
        display: flex;
    }
    .input-link,
    .input-file {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    .input-link button,
    .input-file label {
        width: 100%;;
    }
    .img-input {
        grid-template-columns: 100%;
        grid-template-rows: auto auto 45px;
    }
    /* Buttons */
    #delete-account-mob {
        margin: 15px auto 0 auto;
    }
    /* Modals */
    .modal__form-cont {
        padding: 45px 25px;
    }
    .modal__form {
        padding: 30px 20px 35px 20px;
    }
    .modal__alert {
        padding: 30px 25px 35px 25px;
    }
}



/* ---------------------------------------Animations--------------------------------------- */

/* 404 */
@keyframes blur-in {
    0%, 90% {
        opacity: 0;
        scale: 1.2;
        filter: blur(7px);
    }
    91% {
        opacity: 1;
        scale: 1.2;
        filter: blur(7px);
    }
    100% {
        opacity: 1;
        scale: 1;
        filter: blur(0);
    }
}

@keyframes glitch {
    0%, 100% {
        background-image: url('../assets/img/morgana-chibi.png');
    }
    25% {
        background-image: url('../assets/img/morgana-glitch-1.png');
    }
    50% {
        background-image: url('../assets/img/morgana-glitch-2.png');
    }
    75% {
        background-image: url('../assets/img/morgana-glitch-3.png');
    }
}

/* Loader */
@keyframes rotate {
    from {
        transform: rotate(0deg)
    }
    to {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }
    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }
    75%, 100% {
        clip-path:polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
}