@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Misc */
body {
    font-family: 'Roboto', sans-serif;
    background-color: black;
    color: white;
}
.main-text {
    font-size: 2rem;
    margin-top: 100px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3rem;
}
.btn-grey {
    background-color: #444;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
}
.btn-grey:hover{
    background-color: white;
    color: black;
}
.btn-white {
    background-color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: black;
}
.btn-white:hover {
    background-color: #ddd;
}
.btn-white-outline {
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
}
.btn-white-outline:hover {
    background-color: #1a1a1a;
    color: white;
}
.btn-blk {
    background-color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
}
.btn-blk:hover{
    background-color: #333;
    color: white;
}
.btn-blk-long {
    background-color: black;
    color: white;
    border-radius: 20px;
    padding: 10px 20px;
    width: 100%;
    border: none;
    font-size: 1rem;
    font-weight: 500;
}
.btn-blk-long:hover {
    background-color: #333;
}

/* Navbar */
.navbar {
    background-color: black;
}
.navbar-brand {
    color: white;
}
.nav-link {
    color: white;
}
.navbar .btn {
    background-color: white;
    color: black;
    border-radius: 20px;
}
.navbar-toggler {
    border-color: white;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    align-items: center;
}
.toolbar img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}
.toolbar .balance {
    display: flex;
    align-items: center;
    background-color: #444444;
    padding: 10px 20px;
    border-radius: 30px;
}
.toolbar .balance img {
    margin-right: 5px;
}
.toolbar .balance span {
    font-size: 1.2rem;
}
.notifications-dropdown {
    background-color: #222;
    border: 1px solid #444;
    max-width: 60vw;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
.notifications-dropdown.show {
    display: block;
}
.notifications-dropdown .dropdown-item {
    color: #fff;
}
.notifications-dropdown .dropdown-item:hover {
    background-color: #222;
}
.notifications-dropdown .dropdown-item.unread {
    background-color: #1a1a1a;
}
.notifications-dropdown .dropdown-item small {
    display: block;
    margin-top: 5px;
}
.notifications-dropdown::-webkit-scrollbar-track {
    background: #222;
}
.notifications-dropdown::-webkit-scrollbar-thumb {
    width: 4px;
    background: #444;
}
.notifications-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Result pop-up box */
.result-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 999;
}
.result-text {
    color: black;
    text-align: center;
}
.close-icon {
    position: absolute;
    top: 5px;
    right: 12px;
    cursor: pointer;
    color: black;
}

/* Sign up and log in page */
.register-form-wrapper {
    background-color: #111;
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.register-form-group {
    text-align: left;
    margin-bottom: 15px;
}
.register-form-group label {
    font-size: 1.2rem;
    color: white;
}
.register-input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #202020;
    color: white;
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-clip: padding-box;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.register-input:focus {
    outline: none;
    background-color: #444;
}
.extra-options {
    margin-top: 20px;
}
.extra-options a {
    color: #3472e3;
    text-decoration: none;
}
.extra-options a:hover {
    text-decoration: underline;
}
.google-auth-btn {
    background-color: #111;
    border: 1px solid #444;
    border-radius: 30px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}
.google-auth-btn:hover {
    background-color: #333;
    text-decoration: none;
    color: white;
}
.google-icon {
    width: 18px;
    height: 18px;
}

/* Index page */
.about-section {
    background-color: #111;
    padding: 20px 80px;
    max-width: 100vw;
    min-height: 2vh;
    margin-left: auto;
    margin-right: auto;
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.step-number {
    background-color: #2b2b2b;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.8rem;
}
.step-text {
    color: #eee;
}
.game-icons {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.game-icon {
    margin: 0 20px;
}
.game-icon img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}
.game-label {
    margin-top: 10px;
    font-size: 1rem;
}

/* Dashboard page */
.game-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}
.game-item {
    background-color: #222;
    border-radius: 10px;
    padding: 10px;
    margin: 15px;
    width: 120px;
    text-align: center;
}
.game-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.game-item .rank {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ccc;
}
.game-item .entry-fee {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #f0c040;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-item .entry-fee img {
    margin-left: 5px;
    width: 15px;
    height: 15px;
}
a.game-link {
    text-decoration: none;
}
a.game-link:hover {
    text-decoration: none;
}
.referral-display {
    display: flex;
    gap: 10px;
}
.referral-text {
    background-color: #111;
    padding: 12px 16px;
    border-radius: 30px;
    flex-grow: 1;
}
.btn-copy-referral {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-copy-referral:hover {
    color: #e83e8c;
}
.referral-table-wrapper {
    padding: 10px;
    border-radius: 20px;
    overflow: auto;
    border: 1px solid white;
}
.referral-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.referral-table th,
.referral-table td {
    padding: 12px;
    color: white;
}
.referral-table th {
    font-weight: 500;
}

/* Groups page */
.group-table-container {
    padding: 10px;
    background-color: #212121;
    border-radius: 20px;
    width: 100%;
    height: 30vh;
    overflow: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.group-table-container::-webkit-scrollbar {
    display: none;  /* WebKit */
}
.group-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.group-table th {
    position: sticky;
    top: 0;
    background-color: #212121;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: left;
}
.group-table td {
    color: white;
    padding: 10px;
}
.group-table tr:hover {
    background-color: #2c2c2c;
}
.form-control {
    border-radius: 20px;
    padding: 10px;
    background-color: #222;
    color: white;
    width: 350px;
}

/* Create groups page */
.create-group-form-container {
    background-color: white;
    border: white;
    border-radius: 20px;
    padding: 30px;
}
.create-group-form-field {
    margin-bottom: 1.5rem;
}
.create-group-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: black;
}
.create-group-form-field input,
.create-group-form-field select {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: black;
}
#wager {
    margin-top: 0.25rem;
}
.wager-note {
    font-size: 0.8rem;
    color: #676767;
    margin-bottom: 0.25rem;
}

/* Games info page */
.leaderboard-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 10px;
    max-height: 8vh;
    overflow-y: hidden;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.leaderboard-tabs::-webkit-scrollbar {
    display: none;  /* WebKit */
}
.tab-button {
    padding: 10px 15px;
    color: white;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    background-color: transparent;
    border-bottom: 2px solid transparent;
}
.tab-button.active {
    background-color: transparent;
    border-bottom: 2px solid white;
}
.leaderboard-content {
    background-color: #212121;
    border-radius: 20px;
    padding: 20px;
    color: white;
    height: 50vh;
    overflow: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.leaderboard-content::-webkit-scrollbar {
    display: none;  /* WebKit */
}
.leaderboard-table {
    display: none;
}
.leaderboard-table.active {
    display: block;
}
.end-time {
    margin-bottom: 10px;
    font-style: italic;
    color:#c2c2c2;
}
.leaderboard-table-container table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table-container td, th {
    padding: 10px;
    text-align: left;
}
.leaderboard-table-container tr.highlight {
    background-color: #DFBB00;
    color: black;
}
.leaderboard-table-container table tr:hover {
    background-color: #2c2c2c;
    color: white;
}
.practice-tokens {
    margin-left: 10px;
    background-color: #212121;
    border-radius: 50px;
    font-size: 1rem;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: white !important;
}


/* Friends page */
.friends-container {
    padding: 10px;
    background-color: #212121;
    border-radius: 20px;
    width: 100%;
    overflow: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.friends-container::-webkit-scrollbar {
    display: none;  /* WebKit */
}