:root {
    --header-height: 60px;
    --sidebar-width: 256px;
    --bottombar-height: 60px;
    --greybot-gradient: linear-gradient(to bottom, #101013, #000000);
    --graytop-gradient: linear-gradient(to top, #101013, #000000);
    --button-gradient: linear-gradient(to bottom right, #FFA500, #FFFF00);
    --button-gradient-hover: linear-gradient(to bottom right, #ffb732, #ffff32);
    --background-gradient: linear-gradient(to bottom right, #383536, #181516);
    --error-button-gradient: linear-gradient(to bottom right, #FF0000, #690000);
    --error-button-gradient-hover: linear-gradient(to bottom right, #ff3232, #873232);
}

body {
    display: flex;
    background: var(--background-gradient);
    margin: 0;
    padding: 0;
    color: white;
    min-height: 100vh;
    min-width: 270px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.med-icon {
    font-size: 28pt;
    padding: 5px;
}

.button {
    background: var(--button-gradient);
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #000000;
    width: auto;
    text-decoration: none;
    overflow: hidden;
}

.header-container {
    display: flex;
    position: fixed;
    right: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    z-index: 998;
    height: var(--header-height);
    background: var(--graytop-gradient);
}

.history-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left, .history-bar-left {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding-left: 10px;
    padding-right: 10px;
    
}
.header-centre, .history-bar-center {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    width: 100%;
}
.history-bar-center {
    text-align: center;
}
.header-title {
    font-size: larger;
    font-weight: bold;
}
.header-right, .header-icon, .tooltip, .history-bar-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 10px;

}
.header-icon {
    transform: rotate(90deg);
    font-size: 20pt;
}
.header-right {
    gap: 0.5rem;
    z-index: 2;
}

.header-button, .bottombar-button {
    width: 20vw;
    font-size: medium;
    padding-left: 20px;
    padding-right: 20px;
    min-width: 200px;
}

.error-button {
    background: var(--error-button-gradient);
    color: white;
}

.error-tooltip {
    display: fixed;
}

.error-text {
    color: red;
    font-weight: bolder;
    text-align: center;
    word-wrap: break-word;
}
.bottombar-button {
    width: 100%;
    height: 100%;
    border-radius: 0px;
}

.address {
    display: flex;
    align-items: center;
    border-radius: 5px;
    width: 100%;
    min-width: 120px;
    overflow: hidden;
    justify-content: center;
    /* position: fixed; */

}

.address-start {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    text-align: left;
}

.address-end {
    text-align: right;
}

.sidebar-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    gap: 10px;
    z-index: 400;
    width: var(--sidebar-width); 
    background: var(--greybot-gradient);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: var(--bottombar-height);
    right: 0;
    left: 0;
    top: var(--header-height);
    gap: 10px;
    z-index: 800;
    background: var(--greybot-gradient);
    justify-content: center;
}

.navigation-container {
    margin-top: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: medium;
    font-weight: 600;
    overflow: scroll;
    scrollbar-width: none;
}

.mobile-menu .navigation-container {
    font-size: 3vh;
    padding-left: 10px;
    margin-top: 0;
}

.mobile-menu-visible {
    display: flex; /* Show the mobile menu when the class is present */
}

.nav-games-links, .nav-casino-links, .nav-external-links {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    column-gap: 5px;
}

.nav-link {
    position: relative;
    width: 100%;
    display: flex;
    padding: 5px;
    margin: 5px;
    align-items: center;
    border-radius: 5px;
    gap: 10px;
    user-select: none;
}
.nav-link:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-icon {
    margin-right: 10px
}

.layout-body {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
    padding-left: var(--sidebar-width);
    z-index: 1;
}

.layout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.component-container, .error-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 80%;
    margin: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: small;
    position: relative;
    align-items: center;
    justify-content: center;
}

.error-container {
    background-color: rgba(255, 0, 0, 0.7);
    color: #FFBABE;
    font-weight: bolder;
    z-index: 500;
}
.close-button {
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 16px;
    padding-right: 16px;
}

.string-input {
    flex-grow: 1;
}
.qty-input {
    max-width: 100px;
}

.input-step {
    display: grid;
    width: 80%;
    align-items: center;
    gap: 10px;
    align-self: center;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

input {
    padding: 8px;
    border: none;
    border-radius: 5px;
    text-align: center;
    margin-left: 5px;
    width: 80%;
}

.stat-table {
    display: flex;
    padding: 20px;
    padding-top: 50px;
    width: 90%;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    border-radius: 10px;
    width: 105%;
    min-width: 170px;
    background-color: rgba(169, 169, 169, 0.7); /* Grey background with 10% opacity */
    color: #000000;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loading-text {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #000000; /* Dot color */
    border-radius: 50%;
    margin: 0 5px;
    animation: pulse 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.5s; /* Delay for the second dot */
}

.dot:nth-child(3) {
    animation-delay: 1s; /* Delay for the third dot */
}

@keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.5);
    }
}

.layout-footer {
    padding: 10px;
    font-size: 10pt;
    text-align: center;

}
.bottombar-container {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    z-index: 998;
    height: var(--header-height);
    background: var(--greybot-gradient);
    text-align: center;
    min-width: 270px;

}

.bottombar-left {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    text-align: center;
    font-size: 20pt;
}

.bottombar-right {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    
}

#notUserError {
    display: none;
    position: fixed;
    right: 0;
    left: var(--sidebar-width);
    width: auto;
    min-width: 190px;
}

#useInviteButton {
    min-width: 76px;
}

#networkError {
    visibility: hidden;
    position: fixed;
    text-align: center;
    top: 35px;
    right: 0px;
    max-width: 400px;
}

@media (hover:hover) {
    .button:hover {
        color: #5f5d5e;
        background: var(--button-gradient-hover);
    }
    .error-button:hover {
        background: var(--error-button-gradient-hover);
        color: #FFA500;
    }
    .tooltip:hover #networkError {
        visibility: visible;
    }
    .bottombar-left:hover {
        background-color: #161616;
    }
    .header-link:hover {
        text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.7); /* Horizontal offset, vertical offset, blur radius, shadow color */
    }

    
}

@media (min-width: 901px) {
    .mobile-menu {
        display: none;
    }
}


@media (max-width: 900px) {
    .layout-body {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-bottom: var(--bottombar-height);
    }
    .layout-container {
        width: 100%;
    }
    .header-right {
        display: none;
    }
    .sidebar-container {
        display: none;
    }
    .bottombar-container {
        display: flex;
    }
    #notUserError {
        bottom: var(--bottombar-height);
        left: 0;
    }
}

