.debug-info {
    position: absolute;
    bottom: 0;
    padding: 10px;
    right: 0;
}

:root {
    /* --background-colour: radial-gradient(ellipse, #2a3439 0%, #090a0e 100%); */
    --background-colour: #2a3439;
    --table-colour: radial-gradient(ellipse, #1E5C3A 40%, green 100%);
    --winner-gold: #B8860B;
    --bright-gold: #FFD700;
    --text-colour: #E0E0E0;
    --red-card: #FF0000;
    --black-card: #000000;
    --card-face-colour: #87ceeb;
    --fold-red: #8B0000;
    --raise-red: #FF4500;
    --call-green: #008000;

    --shade-purple-1: hsl(265, 100%, 94%);
    --shade-purple-2: hsl(265, 100%, 81%);
    --shade-purple-3: hsl(265, 100%, 69%);
    --shade-purple-4: hsl(265, 100%, 56%);
    --shade-purple-5: hsl(265, 100%, 35%);
    --shade-purple-6: hsl(265, 100%, 30%);
    --shade-purple-7: hsl(265, 100%, 26%);
    --shade-purple-8: hsl(265, 100%, 14%);
    --shade-purple-9: hsl(265, 100%, 5%);
    --shade-green-1: hsl(116, 100%, 94%);
    --shade-green-2: hsl(116, 100%, 81%);
    --shade-green-3: hsl(116, 100%, 69%);
    --shade-green-4: hsl(116, 100%, 41%);
    --shade-green-5: hsl(116, 100%, 35%);
    --shade-green-6: hsl(116, 100%, 30%);
    --shade-green-7: hsl(116, 100%, 26%);
    --shade-green-8: hsl(116, 100%, 14%);
    --shade-green-9: hsl(116, 100%, 5%);
    --shade-red-1: hsl(316, 100%, 94%);
    --shade-red-2: hsl(316, 100%, 81%);
    --shade-red-3: hsl(316, 100%, 69%);
    --shade-red-4: hsl(316, 100%, 56%);
    --shade-red-5: hsl(316, 100%, 35%);
    --shade-red-6: hsl(316, 100%, 30%);
    --shade-red-7: hsl(316, 100%, 26%);
    --shade-red-8: hsl(316, 100%, 14%);
    --shade-red-9: hsl(316, 100%, 5%);
    --shade-orange-1: hsl(30, 100%, 94%);
    --shade-orange-2: hsl(30, 100%, 81%);
    --shade-orange-3: hsl(30, 100%, 69%);
    --shade-orange-4: hsl(30, 100%, 56%);
    --shade-orange-5: hsl(30, 100%, 35%);
    --shade-orange-6: hsl(30, 100%, 30%);
    --shade-orange-7: hsl(30, 100%, 26%);
    --shade-orange-8: hsl(30, 100%, 14%);
    --shade-orange-9: hsl(30, 100%, 5%);
    --shade-blue-1: hsl(222, 100%, 95%);
    --shade-blue-2: hsl(222, 100%, 82%);
    --shade-blue-3: hsl(222, 100%, 70%);
    --shade-blue-4: hsl(222, 100%, 57%);
    --shade-blue-5: hsl(222, 100%, 36%);
    --shade-blue-6: hsl(222, 100%, 30%);
    --shade-blue-7: hsl(222, 100%, 26%);
    --shade-blue-8: hsl(222, 100%, 14%);
    --shade-blue-9: hsl(222, 100%, 5%);
    --shade-grey-1: hsl(222, 18%, 95%);
    --shade-grey-2: hsl(222, 18%, 82%);
    --shade-grey-3: hsl(222, 18%, 70%);
    --shade-grey-4: hsl(222, 18%, 57%);
    --shade-grey-5: hsl(222, 18%, 36%);
    --shade-grey-6: hsl(222, 18%, 30%);
    --shade-grey-7: hsl(222, 18%, 26%);
    --shade-grey-8: hsl(222, 18%, 14%);
    --shade-grey-9: hsl(222, 18%, 5%);
    --shade-grey-dark: hsl(222deg 1.71% 8.66%);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--shade-grey-9);
    color: var(--shade-grey-1);
    max-width: 100%; 
    overflow-x: hidden;
    overflow-y: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    top: calc(1px * var(--y));
    left: calc(1px * var(--x));
    animation: move linear 100s infinite;
}

.particle:nth-child(3n+1) {
    width: 1px;
    height: 1px;
}

.particle:nth-child(3n+2) {
    width: 0.5px;
    height: 0.5px;
}

.particle:nth-child(3n+3) {
    width: 1.5px;
    height: 1.5px;
}

@keyframes move {
    from {
        top: calc(1px * var(--y));
        left: calc(1px * var(--x));
    }
    to {
        top: calc(2px * var(--y));
        left: calc(2px * var(--x));
    }
}

.topnav {
    overflow: hidden;
    /* background-color: #333; */
    background-color: var(--shade-grey-dark);
    /* box-shadow: 0px 0px 10px var(--shade-grey-8); */
    /* margin-bottom: 1%; */
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, rgba(79, 88, 107, 0), rgb(79, 88, 107), rgb(79, 88, 107), rgba(79, 88, 107, 0)) 1 / 1 / 0 stretch;
    z-index: 10;
    position: relative;
    text-align: center;
    font-size: 17px;
    /* border-radius: 0 0 10px 10px; */
}

.topnav a {
    float: left;
    color: var(--shade-grey-1);
    padding: 14px 16px;
    text-decoration: none;
}

.topnav a:hover {
    color: var(--shade-purple-3);
}

.topnav-bank-coins {
    height: 1em;
    padding: 0 0.5em 0 0;
}

.topnav-bank {
    display: flex;
    justify-content: space-between;
    float: right !important;
}

.topnav-bank:hover {
    color: var(--bright-gold) !important;
}

.topnav-username {
    background-color: var(--shade-purple-4);
    float: right !important;
}

.topnav-logout {
    background-color: var(--shade-purple-5);
    float: right !important;
}

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

h1 {
    text-align: center;
}

button:hover {
    opacity: 0.8;
}

#input_table_id {
    width: 300px;
    text-align: center;
    border: 2px solid var(--winner-gold);
    border-radius: 10px;
}

.view-container {
    display: flex;
    flex-direction: row;
    overflow: auto;
    justify-content: space-around;
    align-items: center;
    height: 90vh;
}





/* .video-container {
    flex: 0 0 30vw;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    top: 100px;
    margin-left: 10px;
}

#not_connected_message {
    font-family: 'Roboto Mono', monospace;
    text-align: center;
    position: absolute;
} */

#video {
    border: 1px solid #121212;
    background-color: #000000;
    border-radius: 10%;
    width: 30vw;
    /* aspect-ratio: auto 16 / 9; */
    aspect-ratio: 640 / 480;
}

#stream-button {
    background: radial-gradient(ellipse, var(--shade-purple-3) 10%, var(--shade-purple-2) 100%);
    height: 4em;
    width: 10em;
    border: 2px solid var(--shade-purple-9);
    border-radius: 10px;
    position: absolute;
}

#stream-button:hover {
    cursor: pointer;
}

.container-containers {
    display: flex;
    justify-content: center;
}
.container-options {
    width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "performers tables";
    grid-gap: 10%;
    margin-left: auto;
}

.avatar {
    width: 3vw;
    height: 3vw;
    float: left;
    margin-right: 0.5vw;
    margin-left: 10px;
    border-radius: 2px;
}

.performer-display-name {
    margin-left: 1vh;
    font-weight: bold;
}

.performer-username {
    margin-top: 1vh;
    font-size: small;
    color: var(--shade-grey-4);
}

.container-title {
    font-size: xx-large;
    font-weight: bold;
    margin-bottom: 3vh;
}

.menu-option {
    padding: 1vh 0 0 0;
    height: 4vw;
    width: 50%;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--shade-grey-4);
    background-color: var(--shade-grey-8)
}

.menu-option:hover {
    background-color: var(--shade-grey-7);
}

.performer-display-name {
    color: var(--shade-grey-1);
}

.menu-game-id {
    float: right;
    margin-right: 1ch;
}

body:has(.container-performers) {
    overflow: auto !important;
}

.index-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "welcome login";
    margin-top: 20vh;
}

.login-container {
    grid-area: login;
}

.poster-container {
    text-align: center;
}

/* .login-input {
    margin-top: 20px;
    height: 35px;
    font-size: 15px;
    padding-left: 15px;
    border-radius: 5px;
    width: 20em;
    border: 2px solid var(--shade-purple-5);
    background-color: var(--shade-grey-8);
    color: var(--shade-purple-2);
}

.login-input::placeholder {
    opacity: 0.5;
    font-size: 15px;
    line-height: 15px;
    color: var(--shade-purple-1);
}

.login-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 30em;
} */

.register-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 30em;
    display: none;
}

.login-question {
    padding: 10px;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 2fr;
    grid-template-areas: "display-info profile-info" "display-name profile-info";
    margin-top: 20vh;
    margin-left: 10%;
    margin-right: 10%;
}

.display-info {
    grid-area: display-info;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.display-buttons {
    grid-area: profile-info;
    display: flex;
    align-items: center;
    grid-area: edit-pic;
    flex-direction: column;
}

.profile-pic {
    height: 100px;
    width: 100px;
    grid-area: pic;
}

.picture-info {
    display: flex;
}

.edit-pic {
    grid-area: edit-pic;
}

.display-name {
    grid-area: display-name;
    margin-top: 50px;
}

.display-bio {
    grid-area: display-name;
    margin-top: 80px;
    padding: 10px;
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.new-table {
    margin-left: 20px;
    position: fixed;
    bottom: 0;
    margin-bottom: 20px;
}

.new-table-button {
    width: fit-content;
    background-color: var(--shade-grey-8);
    color: var(--shade-purple-2);
    height: 3em;
    border: 2px solid var(--shade-purple-3);
    border-radius: 10px;
}

.new-table-button:hover {
    cursor: pointer;
}

.new-table .new-table-form {
    display: none;
}

.new-table-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.new-table-form input {
    float: right;
    margin-left: 3rem;
}

/* TODO - Merge this with display-button */
.edit-value-button {
    padding: 14px 20px;
    margin: 8px 0;
    cursor: pointer;
    width: 100%;
    border: none;
    border-radius: 10px;
    background-color: var(--shade-grey-8);
    color: var(--shade-purple-2);
    border: 2px solid var(--shade-purple-3);
}

.display-button {
    padding: 14px 20px;
    margin: 8px 0;
    cursor: pointer;
    width: 100%;
    border: none;
    border-radius: 10px;
    background-color: var(--shade-grey-8);
    color: var(--shade-purple-2);
    border: 2px solid var(--shade-purple-3);
}

.upload-avatar-form {
    display: contents;
}

.menu-option-link {
    position: relative;
    color: var(--shade-grey-1);
    text-decoration: none;
    display: block;
}

.table-option-time {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1vh 1vh 0 0;
}

.menu-table-name {
    float: right;
    margin-right: 1ch;
    /* color: black; */
}

.profile-menu {
    float: left;
    /* outline: 1px solid red; */
    margin-top: 10vh;
    padding: 2vh;
}

.profile-menu-option {
    /* outline: 1px solid blue; */
    margin-top: 2vh;
    border: 1px solid grey;
    border-radius: 10px;
    padding: 3% 5% 3% 5%;
    width: 100%;
    background-color: var(--shade-grey-8);
}

.profile-menu-option:hover {
    background-color: var(--shade-grey-7);
    cursor: pointer;
}

.tables-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* grid-template-rows: 1fr 2fr; */
    grid-template-rows: 1fr;
    grid-template-areas: "create-table tables-list";
    margin-top: 20vh;
    margin-left: 10%;
    margin-right: 10%;
}

.create-table-container {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    grid-area: create-table;
    padding: 1vh;
}

.tables-list {
    padding: 1vh;
    grid-area: tables-list;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70vh;
    overflow-y: scroll;
}

.chat {
    border: 2px solid var(--shade-grey-7);
    border-radius: 10px;
    width: 100%;
    height: 20em;
    background-color: var(--shade-grey-9);
    display: flex;
    flex-direction: column;
}

.chat-input {
    /* position: absolute; */
    bottom: 0px;
    margin-bottom: 10px;
    margin-left: 10px;
    width: 100%;
}

.chat-input input[type=text] {
    width: 85%;
    border-radius: 2px;
    border: 2px solid var(--shade-purple-4);
    background-color: var(--shade-grey-8);
    line-height: 2em;
    padding-left: 1em;
    color: var(--shade-purple-2);
}

.chat-input input[type=text]:focus {
    border: 2px solid var(--shade-purple-4);
    outline: none;
}

.chat-input input[type=submit] {
    border-radius: 2px;
    border: 2px solid var(--shade-purple-4);
    background-color: var(--shade-grey-8);
    line-height: 2em;
    color: var(--shade-purple-2);
    border-radius: 2px;
}

.chat-messages {
    padding: 2px;
    overflow-y: auto;
    /* height: 15em; */
    padding-left: 3ch;
    height: 100%;
}

.chat-message {
    padding: 4px;
    width: fit-content;
    color: var(--shade-grey-3);
}

.chat-username {
    font-size: small;
    color: var(--shade-purple-3);
}

.create-betting-option-title {
    font-size: 1.5em;
    font-weight: bold;
}

.betting-option {
    display: flex;
    gap: 1vh;
    position: relative;
    margin: 1vh 0vh 0vh 0vh;
}

.betting-option-input {
    border: 2px solid var(--shade-grey-4);
    color: var(--shade-grey-1);
    background-color: var(--shade-grey-9);
    line-height: 2em;
    padding-left: 1em;
    border-radius: 2px;
}

.betting-option-amount {
    line-height: 2em;
    width: 5em;
}

.betting-option-button {
    width: fit-content;
    background-color: var(--shade-grey-8);
    color: var(--shade-purple-2);
    border: 2px solid var(--shade-purple-3);
    border-radius: 10px;
}

.betting-option-button:hover {
    cursor: pointer;
}


.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
}

.sidebar-item:hover {
    background: var(--shade-grey-5);
}

.sidebar {
    flex: 0 0 20%;
    height: 100vh;
    flex-basis: 15rem;
    flex-grow: 0;
    flex-shrink: 0;

    background: var(--shade-grey-dark);
    display: flex;
    flex-direction: column;

    border-right: 1px solid;
    border-image: linear-gradient(to top, rgba(79, 88, 107, 0), rgb(79, 88, 107), rgb(79, 88, 107), rgba(79, 88, 107, 0)) 1 / 1 / 0 stretch;
}

.sidebar-live-indicator-wrapper {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 5px;
}

.sidebar-live-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: #ff0000;
  border-radius: 50%;
}

.discover-container {
    display: flex;
    flex-direction: row;
    overflow: auto;
}

.sidebar-title {
    margin: 1em 0 0 1ch;
}

.sidebar-avatar {
    height: 3em;
    border-radius: 50%;
    grid-area: avatar;
}

.sidebar-item-text-content {
    display: flex;
    flex-direction: column;
}

.sidebar-username {
    font-size: 0.8rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.subscription-status {
    background-color: var(--shade-green-7);
    grid-area: subscription-status;
    margin-right: 1px;
    font-size: 0.75rem;
}

.sidebar-viewers {
    grid-area: viewers;
    margin-left: 1ch;
    font-size: 0.8rem;
}

.avatar-online {
    background-color: var(--shade-green-7);
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    grid-area: avatar;
    align-self: flex-end;
}

.block-item {
    height: 50%;
    overflow: auto;
    /* outline: 1px solid var(--shade-grey-8); */
    border: 1px solid;
    border-top: 1px solid;
    border-image: linear-gradient(to right, rgba(79, 88, 107, 0), rgb(79, 88, 107), rgb(79, 88, 107), rgba(79, 88, 107, 0)) 1 / 1 / 0 stretch;
    padding-left: 10%;
}

.block-content {
    padding-top: 2em;
}

.main-content {
    overflow: hidden;
}

.carousel-list {
    width: 80%;
    height: 300px;
    padding: 20px;
    display: flex;
    gap: 4vw;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    margin-left: 10%;
}

.carousel-item {
    list-style-type: none;
    background: var(--shade-grey-8);
    border: 1px solid var(--shade-grey-4);
    border-radius: 0.5%;

    flex: 0 0 45%;
    scroll-snap-align: center;
    text-align: center;

    transition-duration: 0.5s;
}

.carousel-table {
    display: flex;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: var(--shade-grey-1);
}

.carousel-table-preview {
    background: var(--shade-grey-8);
    flex-basis: 66.666%;
    border-right: 1px solid var(--shade-grey-9);
    background: radial-gradient(ellipse, var(--shade-purple-5) 0%, var(--shade-purple-9) 100%);
}

.carousel-table-info {
    background: var(--shade-grey-8);
    flex-basis: 33.333%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
}

.carousel-table-info-value {
    margin-left: 10%;
}

.carousel-table-preview-board {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.preview-card {
    background: white;
    height: 30%;
}

.preview-card-red {
    color: red;
}

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

.carousel-item:hover {
    Transform: scale(1.05);
    transition-duration: 0.5s;

}

.previews {
    flex: 1 1 auto;
    overflow: auto;

    background: var(--shade-grey-9);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 40vh auto;
    grid-template-areas:
        "carousel"
        "blocks";
}

.social-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
    transition: opacity 0.3s ease-in-out;
}

.social-info-form {
    display: flex;
    flex-direction: column;
}

.social-login-label {
    width: 5em;
    display: inline-block;
    color: var(--shade-grey-3);
}

.social-login-input {
    margin-top: 20px;
    height: 35px;
    font-size: 15px;
    padding-left: 15px;
    border-radius: 5px;
    width: 20em;
    border: 2px solid var(--shade-grey-3);
    background-color: var(--shade-grey-8);
    color: var(--shade-purple-3);
    font-weight: bolder;
}

.social-login-input::placeholder {
    opacity: 0.5;
    font-size: 15px;
    line-height: 15px;
    color: var(--shade-purple-1);
}

.social-info-header {
    color: var(--shade-grey-3);
}

.social-input-delete {
    background-color: var(--shade-grey-9);
    /* background: radial-gradient(ellipse, var(--shade-purple-5) 10%, var(--shade-purple-3) 100%); */
    /* padding: 1px 20px; */
    margin: 0 1em;
    /* padding: 0.3em; */
    cursor: pointer;
    /* width: 22em; */
    border-radius: 30%;
    /* font-size: 15px; */
    /* line-height: 15px; */
    border: 2px solid var(--shade-grey-3);
    color: var(--shade-purple-1);
}

.social-login-button {
    margin-top: 3em;
    color: var(--shade-grey-1);
    border: 2px solid var(--shade-grey-3);
    cursor: pointer;
}

.bad-input {
    color: var(--shade-red-5);
    font-size: 0.8em;
}