body {
    display: flex;
    flex-direction: column;
    background: #121212;
    font-family: 'Gilroy-ExtraBold';
    margin: 0;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
}

#checker-button {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    margin-left: 25px;
    cursor: pointer;
    color: #e8e8de;
}

#checker-button:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:#e8e8de;
}

#leaderboard-button {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    margin-left: 16px;
    cursor: pointer;
    color: #e8e8de;
}

#leaderboard-button:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:#e8e8de;
}

#container {
    display: none;
    margin-top: 100px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#logo {
    width: 45px;
    cursor: pointer;
}

#buttons {
    display: flex;
    max-height: 31px;
    justify-content: center;
    align-items: center;
}

#admin-button {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    cursor: pointer;
    width: 150px;
    display: none;
    color: #e8e8de;
    margin-left: 8px;
}

#admin-button:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:#e8e8de;
}

.view-history-grid {
    display: grid;
    grid-template-columns: 40px 200px 25px 60px 75px 50px 175px 100px;
    color: #e8e8de;
    gap: 5px;
}

.usernameHover {
    cursor: pointer;
}

.usernameHover:hover {
    background-color: #121212;
}

.grid-item {
    background-color: #1b1b1b;
    border: 2px solid #1b1b1b;
    border-radius: 2px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copy {
    cursor: pointer;
}

#fetch-history-button {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    cursor: pointer;
    width: 100px;
    color: #e8e8de;
}

#fetch-history-button:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:#e8e8de;
}

#fetch-history-button:disabled {
    opacity: 0.5;
}

#fetch-history-button:disabled:hover {
    background-color: #1b1b1b;
    cursor: default;
}

#prev, #next {
    visibility: hidden;
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    cursor: pointer;
    width: 100px;
    color: #e8e8de;
}

#prev:hover, #next:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:#e8e8de;
}

#fetch-buttons {
    margin-left: 555px;
    margin-top: -16px;
    user-select: none;
}

abbr {
    text-decoration: none;
}

#history-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12,12,12,0.97);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

.close {
    display: inline-block;
    font-size: 24px;
    cursor: pointer;
    color: #e8e8de;
    margin-left: 800px;
}

#fetch-history-error {
    color: rgb(236 119 112);
}

#profile-image {
    margin-top: 16px;
    width: 256px;
    height: 256px;
}

#profile-image img {
    width: 256px;
    height: 256px;
    border-radius: 8px;
}

#change-pfp {
    display: none;
    margin-top: -140px;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
}

#change-pfp-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12,12,12,0.97);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

#change-pfp-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1b1b1b;
    width: 300px;
    height: 200px;
    border-radius: 8px;
}

#change-pfp-text {
    color: #e8e8de;
    font-size: 24px;
    margin-top: 0px;
}

#pfp-input {
    width: 250px;
    height: 40px;
    border-radius: .5rem;
    border: 0px;
    padding-left: 16px;
    background-color: #121212;
    color: #e8e8de;
}

#pfp-error {
    color: #e8e8de;
    text-align: center;
    height: 16px;
    margin-top: 8px;
}

#change-pfp-box button {
    border-radius: .5rem;
    border: 0px;
    width: 270px;
    height: 40px;
    font-family: 'Gilroy-ExtraBold';
    font-size: medium;
    background-color: #121212;
    color: #e8e8de;
    cursor: pointer;
}

#change-pfp-close {
    display: inline-block;
    font-size: 24px;
    cursor: pointer;
    color: #e8e8de;
    margin-left: 350px;
}

#user-details-box {
    color: #e8e8de;
    width: 1000px;
    height: 500px;
    background-color: #1b1b1b;
    border-radius: 16px;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#user-details {
    color: #e8e8de;
    width: 1000px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#user-details-title {
    font-size: 24px;
}

#email, #username, #latest-login, #password {
    font-size: 20px;
}

#purchased-tokens, #total-checks, #total-tokens-used {
    font-size: 16px;
}

.username2, .password2, .email2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.latest-login {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#username, #password, #email, #latest-login {
    margin-left: 16px;
}

#user-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 260px;
    height: 100px;
    background-color: #121212;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

#purchased-tokens, #total-checks, #total-tokens-used {
    margin: 0;
}

#purchased-tokens, #total-checks {
    margin-bottom: 10px;
}

#account-details {
    display: flex;
    flex-direction: column;
    justify-content: left;
    text-align: left;
    width: 500px;
    height: 256px;
    background-color: #121212;
    border-radius: 8px;
    padding-left: 24px;
    margin-bottom: 44px;
}

.username, .password, .email {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.username {
    margin-top: 6px;
}

.edit {
    width: 24px;
    height: 24px;
    margin-right: 24px;
    cursor: pointer;
}

#confirm-password {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 524px;
    height: 60px;
    position: relative;
    top: -6px;
    flex-wrap: wrap;
}

#confirm-password-input {
    width: 390px;
    height: 58px;
    background-color: #121212;
    border-radius: 8px;
    color: #e8e8de;
    font-size: 16px;
    font-family: 'Gilroy-Extrabold';
    border: 0px;
    padding-left: 16px;
}

#confirm-password-input:focus, #username:focus, #password:focus, #email:focus {
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
}

#submit-button {
    color: #e8e8de;
    width: 100px;
    height: 60px;
    background-color: #121212;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Gilroy-Extrabold';
    border: 0px;
    cursor: pointer;
}

#submit-button:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:#e8e8de;
}

#username, #password, #email {
    background-color: #121212;
    border-radius: 8px;
    color: #e8e8de;
    font-family: 'Gilroy-Extrabold';
    border: 0px;
    padding-left: 8px;
    height: 32px;
}

#username {
    width: 330px;
}

#password {
    width: 336px;
}

#email {
    width: 370px;
}

#password::placeholder {
    color: #e8e8de;
}

#username:not(:disabled), #password:not(:disabled), #email:not(:disabled) {
    background-color: #1b1b1b;
}

.account-details-error {
    display: flex;
    width: 476px;
    justify-content: center;
    align-items: center;
}

#account-details-error {
    color: rgb(236 119 112);
    text-align: center;
}

.current-password-error {
    display: flex;
    width: 524px;
    justify-content: center;
    align-items: center;
}

#current-password-error {
    color: rgb(236 119 112);
    text-align: center;
    margin-top: 8px;
    margin-right: 100px;
}

#pfp {
    width: 256px;
    height: 256px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e8e8de;
}

.placeholder {
    text-align: center;
}

.userActions {
    display: flex;
    flex-direction: row;
    margin-top: 24px;
    margin-bottom: 128px; /* To make it look better on smaller screens */
}

#signOutButton {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    cursor: pointer;
    width: 100px;
    color: rgb(236 119 112);
    margin-left: 8px;
}

#signOutButton:hover {
    background-color: rgb(236 119 112);
    outline: none;
    border-color: rgb(236 119 112);
    box-shadow: 0 0 5px rgb(236 119 112);
    color:#e8e8de;
}

#toggle-privacy-mode-button {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    cursor: pointer;
    width: 155px;
    display: flex;
    justify-content: center;
    color: #e8e8de;
    margin-left: 8px;
    user-select: none;
}

#toggle-privacy-mode-button:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:#e8e8de;
}

#delete-account-button {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    cursor: pointer;
    width: 125px;
    display: flex;
    justify-content: center;
    justify-content: center;
    color: white;
    margin-left: 8px;
    user-select: none;
    background-color: rgb(236 119 112);
}

#delete-account-button:hover {
    background-color: red;
    outline: none;
    border-color: red;
    box-shadow: 0 0 5px red;
    color:#e8e8de;
}

.details-button {
    border-radius: 16px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: #1b1b1b;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e8e8de;
    user-select: none;
    height: 100%;
}

.details {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #1b1b1b;
}

#modalSpace {
    display: none;
    background-color: rgba(12, 12, 12, 0.75);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

#successfulUpdateModal {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 250px;
    background-color: #1b1b1b;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

#successfulUpdateModal p {
    color: #e8e8de;
    text-align: center;
}

#successfulUpdateModal img, #deleteAccountModal img {
    width: 96px;
}

#deleteAccountModal {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 450px;
    background-color: #1b1b1b;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

#deleteAccountModal p {
    color: #e8e8de;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
}

#deleteAccountModal button {
    width: 150px;
    height: 50px;
    border-radius: 16px;
    border: none;
    background-color: #121212;
    font-family: 'Gilroy-ExtraBold';
    cursor: pointer;
    color: green;
    font-size: large;
}

a {
    color: #55b76c;
    text-decoration: none;
}

a:hover {
    color: #4fd37d;
    text-decoration: underline;
}

.token-count {
    color: var(--green); 
}

.upgrade-link {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
}

.upgrade-link:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.thank-you {
    font-size: 12px;
    color: #FFD700;
    font-style: italic;
    margin-top: 5px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--green);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#paymentModal {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 275px;
    background-color: var(--alt-black);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
    padding: 0px 24px;
}

#paymentModal p {
    color: var(--white);
    text-align: center;
}

.font {
    font-family: 'Gilroy-ExtraBold';
    color: var(--white);
    line-height: 1.4;
}

.paymentButton {
    background-color: var(--green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    margin: 10px 5px;
    font-size: 16px;
    font-family: 'Gilroy-ExtraBold';
    cursor: pointer;
    transition: all 0.2s ease;
}

.paymentButton.deny {
    background-color: var(--lightred);
    color: var(--white);
}

.paymentButton.deny:hover {
    background-color: var(--darkred);
    border-color: var(--darkred);
    box-shadow: 0 0 5px var(--darkred);
}

.close-button {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff20;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Gilroy-ExtraBold';
}
  
.close-button:hover {
    background: #ffffff10;
    border-color: #ffffff30;
}
  
.close-button:active {
    transform: scale(0.97);
    background: #ffffff15;
}

#generator-button {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-family: 'Gilroy-ExtraBold';
    background-color: var(--alt-black);
    border: none;
    margin-left: 16px;
    cursor: pointer;
    color: var(--white);
}

#generator-button:hover {
    background-color: #4fd37d;
    outline: none;
    border-color: #55b76c;
    box-shadow: 0 0 5px #55b76c;
    color:var(--white);
}