
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /*background: linear-gradient(115deg, #c3eefd 10%, #d7fe51 100%);*/
    /* background: radial-gradient(circle at center, #196c57, #c0effa 50%, #5b7bd4 100%);*/
   /* background: linear-gradient(to top, #d7fe51 50%, #0a3d62 100%), /* darker blue moving up */
   /* linear-gradient(to bottom, #d7fe51 50%, #27ae60 100%); /* darker green moving down */
    /*background: 
    linear-gradient(180deg, #5b7bd4, #b8eaf7, #98f796, #45985c); /* Linear gradient with specified colors at 115 degrees */
    /*background: linear-gradient(to right, #8ad0e9, #045781, #f0dda2, #a5203d, #e47ab8);;*/
    /*background: url('universe.jpg') no-repeat center center fixed;*/
    background-color: #bae4e9;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    color: #333;
    padding: 0 20px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
}

.welcome {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.username {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.user-name {
    font-size: 1.5rem;
    color: #1e2455;
    text-align: left;
    margin-top: 10px;
    margin-left: 10px;
}

form, .betting-section, .chat-container {
    /*background-color: #fff;*/
    padding: 25px;
    border-radius: 8px;
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.15);*/
    margin-bottom: 25px;
    width: 100%;
    max-width: 450px;
}

input {
    display: block;
    width: 96%;
    padding-left: 70px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1.7rem;
    box-sizing: border-box;
    margin-bottom: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: -5px;
    padding-right: -42px;
    margin-top: 0px;
}

input#login-username, #login-username-reg {
    padding-left: 87px;
    margin-top: -22px;
}

input#email {
    padding-left: 114px;
}

input#login-password, #password-reg {
    padding-left: 90px;
    padding-right: 0px;
}





label {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 25px;
}

textarea, select {
    display: block;
    width: 90%;
    margin-bottom: 15px;
    margin-left: 20px;
    margin-right: 20px;
}

textarea, select {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    width: 95%;
    padding: 12px;
    padding-top: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    background-color: #1d2455;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1d2455;
}

#result, #balance {
    margin-top: 20px;
    text-align: center;
}

.link-login {
    color: #007BFF;
    cursor: pointer;
    text-align: center;
    display: block;
    margin-top: 11px;
    margin-left: -24px;
    padding-bottom: 20px;
    font-size: 1.7rem;
}

.link-login-fail {
    color: #007BFF;
    cursor: pointer;
    text-align: center;
    display: block;
    margin-top: -26px;
    margin-left: -24px;
    padding-bottom: 20px;
    font-size: 1.7rem;
}



.link-register {
    color: #007BFF;
    cursor: pointer;
    text-align: center;
    display: block;
    margin-top: -25px;
    margin-left: 3px;
    padding-bottom: 20px;
    font-size: 1.7rem;
}

.link-login:hover, .link-register:hover {
    text-decoration: underline;
}

.bet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}

.bet-table th, .bet-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    min-width: 100px;
}

.bet-table th {
    background-color: #f4f4f4;
}

.logout-button {
    background-color: #4c9f62;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.logout-button:hover {
    background-color: #3a7c4a;
}

.betting-container {
    flex-direction: column; /* Align items vertically */
    align-items: center;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Ensure full width */
    padding: 10px; /* Add padding for spacing */
    background-color: #e0f7fa; /* Light blue background */
    margin: 20px 0; /* Add vertical margin */
}

.chat-window {
    position: relative;
    height: 350px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    margin: 0 20px; /* Add horizontal margin */
}

.chat-message {
    /*display: flex;
    align-items: flex-start;
    flex-direction: column;*/
    margin-bottom: 0px;
    padding: 10px;
    border-radius: 6px;
    /* color: black; */ /* Ensure text color contrasts with background */
    /* background-color: #007BFF; */ /* Default background color for messages */
    word-wrap: break-word; /* Ensure text wraps within the container */
    word-break: break-word; /* Break long words to prevent overflow */
    margin-top: 0px;
    margin-left: 2px;
    margin-right: 11px;
}

.chat-message.user {
    background-color: #c8e6c9;
    color: #388e3c;
    text-align: right;
}

.chat-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 0px;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 1px 0px 16px 2px rgba(255, 255, 255, 0.7); 
}


.chat-username {
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.9rem;
}

.chat-text {
    flex: 1;
    color: #003366;
    font-size: 0.74rem;
    margin-right: 5px;
    box-shadow: 2px -3px 3px 0px rgba(255, 255, 255, 0.3);
    background: linear-gradient(to bottom, #cdebee 25%, #b8e4e9);
    padding: 5px;
}

.loading {
    text-align: center;
    font-style: italic;
    color: #999;
}

.BigCatTerritory-form-container {
    display: block;
    height: 88vh;
    width: 328px;
    flex-direction: column;
    /*align-items: center;
    justify-content: center;*/
    background-color: #bae4e9;/* Transparent background */
    padding-left: 10px;
    padding-right: 0px;
    padding-top: 14px;
    margin-top: 0px;
    border-radius: .4;
    margin-left: -11px;
    margin-right: 20px;
    margin-top: -59px;
    margin-bottom: 9px;
    overflow: hidden;
    box-shadow: 0px 0px 1.4px 2.5px rgba(255, 255, 255, 0.7);
}

.fixed-avatar {
    position: fixed;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fixed-header {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.BigCatChat-window {
    position: relative;
    height: 58vh;
    border-radius: 2px;
    overflow-y: auto;
    padding: 0px;
    background-color: #c8e9f1;
    margin-left: -20px;
    margin-top: 11px;
    box-shadow: -1px -1px 20px 1.5px rgba(255, 255, 255, 0.7);
}

.HearMyRoar {
        text-align: left;
        padding-left: 29px;
        padding-top: 16px;
        padding-right: 20px;
        padding-bottom: 0px;
        border: 2px solid #c8e9f1;
        background: transparent;
        color: #1d2455;
        box-sizing: border-box;
        height: 54px;
        box-shadow: inset 0px 20px 20px 20px rgba(255, 255, 255, 0.7);
        border-radius: 23px;
        font-size: 1.12rem;      
        display: block;
        width: 237px;
        margin-bottom: 12px;
        margin-top: 11px;
        margin-left: -10px;
        margin-right: 0px; 
}

@media screen and (max-width: 600px) {
    body{
        padding: 0 10px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    form, .betting-section, .chat-container {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }

    .chat-window {
        height: 300px;
        margin-bottom: 10px;
        padding: 10px;
    }

    .chat-message {
        padding: 5px;
        font-size: 0.9rem;
    }

    button {
        padding: 11px;
        font-size: 1.7rem;
        margin-left: -3px;

    }

    .button-roar {
        margin-top: -63px;
        float: right;
        gap: 10px;
        width: 37px;
        height: 59px;
        display: inline-flex;
        margin-right: 64px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group button {
        margin-bottom: 10px;
        width: 100%;
    }

    .bet-table thead {
        display: none;
    }
    .bet-table, .bet-table tbody, .bet-table tr, .bet-table td {
        display: block;
        width: 100%;
    }
    .bet-table tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .bet-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .bet-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    .username-display {
        flex-direction: column;
        align-items: center;
    }

    .avatar-header {
        width: 80px;
        height: 80px;
    }

    .user-name {
        font-size: 1.2rem;
        text-align: left;
        margin-top: 10px;
    }

    #user-list-container {
        padding: 5px 0;
    }

    .user-item {
        margin-right: 5px; /* Adjust spacing for smaller screens */
    }

    .avatar {
        width: 40px; /* Adjust size for smaller screens */
        height: 40px;
    }
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    flex: 1;
}

#prev-page, #next-page {
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#prev-page:hover, #next-page:hover {
    background-color: #0056b3;
}

.filter-icon {
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
    color: #007BFF;
}

.filter-icon:hover {
    color: #0056b3;
}

.result-message {
    color: red;
    font-weight: bold;
    margin-top: -32px;
    font-size: 1.4rem;
    margin-bottom: 33px;
    text-align: center;
}

.result-message-reg {
    color: red;
    font-weight: 400;
    margin-top: 8px;
    font-size: 1.2rem;
    margin-bottom: 33px;
    text-align: center;
    padding-right: 18px;
    margin-left: -11px;
    padding-left: 2px;
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-circle {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007BFF;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #1d2455;
    z-index: 1000;
    transition: width 0.2s ease-out;
    display: none;
}

@keyframes loading-bar-animation {
    0% { width: 0; }
    50% { width: 50%; }
    100% { width: 100%; }
}

.hidden {
    display: none;
}

.username-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.avatar-header {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.avatar {
    display: block;
    margin: 0 auto;
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    border-radius: 50%;
}

.user-item {
    display: inline-block;
    text-align: center;
    margin-right: 10px; /* Adjust spacing between avatars as needed */
}

#logged-in-users {
    margin-top: 20px;
}

#logged-in-users h2 {
    margin-bottom: 10px;
}

#user-list-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

#user-list {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#user-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#user-list li span {
    margin-top: 5px;
    font-size: 0.8rem;
    text-align: center;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    gap: 5px;
}

.buttons-container button {
    width: 120px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #4c9f62;
    background-color: #4c9f62;
    color: white;
    cursor: pointer;
}

.buttons-container button:hover {
    background-color: #3a7c4a;
}

#ask-chat-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.ask-chip-h2 {
    margin-left: 25px;
}

#question::placeholder {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px; /* Adjust the size to match */
    color: #333; /* Use the same color as the other text */
}

.chip-logo {
    width: 232px;
    height: 232px;
    margin-bottom: 35px;
    /*display: block;*/
    margin-top: 52px;
    margin-left: 35px;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 1px 0px 16px 2px rgba(255, 255, 255, 0.7); /* Add a drop shadow */
}

img#chip-text {
    width: 127px;
    height: 161px;
    margin-top: -67px;
    margin-left: 89px;
    margin-bottom: -52px;
}

img#chip-text-reg {
    width: 127px;
    height: 161px;
    margin-top: -67px;
    margin-left: 89px;
    margin-bottom: -57px;
}

.chip-logo-login {
    width: 70px;
    height: 70px;
    margin-bottom: 0px;
    display: block;
    margin-top: 4px;
    margin-left: 10px;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 1px 0px 16px 2px rgba(255, 255, 255, 0.7); /* Add a drop shadow */
}

.chip-text-login {
    width: 127px;
    height: 161px;
    margin-top: -60px;
    margin-left: 105px;
    margin-bottom: -52px;
}

.login-container {
    display: flex;
    height: 87vh;
    width: 300px;
    flex-direction: column;
    /*align-items: center;
    justify-content: center;*/
    background-color: #bae4e9; /* Transparent background */
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 25px;
    margin-top: -71px;
    border-radius: 3px;
    margin-left: -28px;
    box-shadow: 0px 0px 1px 2.7px rgba(255, 255, 255, 0.7);
}

.form-container {
    display: flex;
    height: 550px;
    width: 302px;
    flex-direction: column;
    /*align-items: center;
    justify-content: center;*/
    background-color: #bae4e9;/* Transparent background */
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 25px;
    margin-top: -80px;
    border-radius: 3px;
    margin-left: 0px;
    box-shadow: 0px 0px 1px 2.7px rgba(255, 255, 255, 0.7);
}

.chip-logo-reg {
    width: 175px;
    height: 175px;
    margin-bottom: 27px;
    /*display: block;*/
    margin-top: 0px;
    margin-left: 65px;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 1px 0px 16px 2px rgba(255, 255, 255, 0.7);
}

.chip-logo-reg-fail {
    width: 120px;
    height: 120px;
    margin-bottom: 27px;
    /*display: block;*/
    margin-top: 0px;
    margin-left: 91px;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 1px 0px 16px 2px rgba(255, 255, 255, 0.7);
}

.chip-logo-reg-success {
    width: 175px;
    height: 175px;
    margin-bottom: 27px;
    /*display: block;*/
    margin-top: 150px;
    margin-left: 65px;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 1px 0px 16px 2px rgba(255, 255, 255, 0.7);
}

@keyframes changeAvatar {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.spin {
    animation: changeAvatar 4000ms linear infinite;
    transform-style: preserve-3d;
    transform-origin: center center;

}

.user-menu {
    position: absolute;
    top: 29px; /* Adjust according to your layout */
    left: 35px;
    /* height: 25px; */
    /* width: 87px; */
    background-color: #1e2455;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 1px 4px 2px rgba(255, 255, 255, 0.5);
    z-index: 1000;
    /* padding: 6px; */
}

.user-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #1e2455;
    cursor: pointer;
    margin-left: 0px;
    font-size: 1.1rem;
}

.user-menu button:hover {
    background-color: #ddd;
}

.chat-username {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #003366;
}

.message-content {
    display: flex;
    flex-direction: row-reverse;
    margin-top: -1px;
}

.chat-name {
    height: 60px;
    width: 62px;
    /* float: right; */
    margin-right: 64px;
}

.message-response {
    display: flex;
    flex-direction: row;
    margin-top: -18px;
}

/*Future Code*/
/*
chat-text {
    background: linear-gradient(to bottom, #cdebee 25%, #b8e4e9);
    color: #003366;
    padding-left: 2px;
    padding-right: 1px;
    border-radius: 1.5px;
    box-shadow: 1px -1px 3px rgba(205, 235, 238, 0.1);
    max-width: 400px;
    word-wrap: break-word;
}
*/