* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Afacad Flux", serif;
}

html, body {
    width: 100%;
    overflow: auto; /* Allow scrolling */
    margin: 0; /* Remove default margins */
    background-color: black;
}

body {
    height: 100vh;
    overflow: auto;
    padding-bottom: 10vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    width: 70%;
    margin: 0 auto;
    display: block;
}

.notice {
    font-size: 4em;
    margin-top: 10vh;
    text-align: center;
    color: rgb(44, 255, 44);
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15%;
    background-color: rgba(119, 9, 146, 0.966);
    width: 100%;
}

.content {
    width: 30%;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content > span:nth-child(1) {
    display: block;
    color: rgba(78, 255, 191, 1);
    padding: 10px 16px;
    border-radius: 20px;
    background-color: rgba(14, 133, 14, 0.322);
}

.content > span:nth-child(2) {
    text-align: center;
    display: block;
    color: white;
    font-size: 3.5em;
}

.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.a-text {
    border: 0 !important;
    background-color: inherit !important;
    color: rgb(241, 241, 241);
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: 0.2s;
}

.a-text:hover {
    text-decoration: underline;
    color: rgb(163, 163, 163);
}

.socials a {
    background-color: black;
    border-radius: 10px;
    padding: 2px;
    border: 2px solid rgb(68, 68, 68);
    text-decoration: none;
}

.socials a img {
    width: 30px;
    border-radius: 20px;
}

.header span {
    font-size: 2em;
    color: rgba(24, 196, 24, 0.918);
    font-weight: bold;
    text-transform: uppercase;
}

.ca {
    margin: 0;
    margin-top: 10vh;
    width: 400px;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1.5px solid gray;
    display: flex;
    background-color: purple;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: rgb(255, 255, 255);
    margin-left: 15%;
    font-weight: bold;
}

.ca span {
    color: white;
    letter-spacing: 1px;
}

.intro {
    margin-top: 10vh;
    display: block;
    font-size: 4em;
    color: white;
}

.buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-top: 2vh;
}

.button {
    display: block;
    padding: 8px 15px;
    cursor: pointer;
    color: rgb(0, 0, 0) !important;
    border-radius: 10px;
    border: 1.5px solid gray;
    width: fit-content;
    background-color: rgb(20, 202, 29);
    font-weight: bold;
    transition: 0.3s;
    text-decoration: none;
}

.sign {
    color: gray;
    font-size: 0.9em;
}

.button:hover {
    background-color: rgb(255, 255, 255);
}

.input-text {
    gap: 2vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    color: rgb(201, 201, 201);
}

.thought {
    padding: 5%;
    border-radius: 20px;
    border: 2px solid green;
    flex-direction: column;
    align-items: start;
    background-color: rgba(186, 80, 212, 0.938);
}

.thought img {
    align-self: center;
    width: 200px;
    height: 200px;
    border: 2px solid white;
    border-radius: 10px;
}

.thought-topic {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 2vh;
}

.thought-topic span:nth-child(1) {
    color: white;
    font-weight: bold;
    font-size: 1.5em;
}

.thought-topic span:nth-child(2) {
    font-weight: bolder;
    font-size: 1.5em;
    color: rgb(64, 204, 35);
}

.thought .thought-topic:last-child {
    margin-bottom: 5vh;
}

.thought .buttons {
    align-self: center !important;
    margin-top: 5vh;
}

.not-available {
    color: red;
    align-self: center;
    margin-top: 1vh;
}

.box > span {
    color: white;
    font-size: 2em;
}

.coins {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgb(0, 81, 255);
}

.button-coin {
    background-color: rgb(252, 9, 9) !important;
    color: white !important;
}

.coin span {
    color: white;
    font-weight: bold;
}

.box {
    margin-top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
}

input {
    width: 100%;
    margin-top: 2vh;
    background-color: rgb(24, 24, 24);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.9em;
    border: 1px solid white;
    color: white;
}

ul {
    margin-left: 2%;
    margin-top: 1vh;
}

ul li {
    color: green;
    font-weight: bold;
    font-size: 1.2em;
}

ul a {
    color: white;
    text-decoration: none;
}

.category {
    display: none;
    opacity: 0;
    transition: 0.5s;
}

ul a:hover {
    text-decoration: underline;
}

.analyze {
    margin-top: 3vh;
    padding: 8px 16px;
}

.table {
    margin-top: 10vh;
    padding: 20px;
    border-radius: 20px;
    border: 3px solid rgb(36, 36, 36);
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.table > span {
    color: white;
    font-size: 1.2em;
    color: rgb(114, 180, 15);
    font-weight: bold;
}

.fa-circle-notch {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 8.5;
    animation: spinner 0.7s linear infinite;
}

.status {
    border-radius: 20px;
    border: 2px solid rgb(3, 59, 10);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.status span {
    color: white;
    transition: 0.3s;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.trading-history {
    color: white !important;
}

.pnl {
    color: rgb(223, 191, 13) !important;
}

.profit {
    color: rgb(223, 191, 13) !important;
}

.table-2 {
    border-top: 2px solid white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.main-row {
    padding: 1vh 20px;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr 1fr; /* Adjust fractions as needed */
    align-items: center;
    border-bottom: 2px solid white;
}

.main-row span {
    color: white;
}

.sub-row {
    display: flex;
    flex-direction: column;
}

.row {
    padding: 1.5vh 20px;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr 1fr; /* Match main-row structure */
    align-items: center;
    border-bottom: 1px solid gray;
}

.row > span:nth-child(1) {
    color: orange;
}

.row div span:nth-child(1), .row > span:nth-child(5) {
    color: white !important;
}

.row > span:nth-child(3) {
    color: rgb(1, 172, 1);
}

.row > span:nth-child(4) {
    color: red;
}

.row > span:nth-child(6) {
    color: rgb(1, 172, 1);
}

.row span {
    font-weight: bold;
    color: black; /* Default text color for rows */
    overflow: hidden; /* Truncate overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    white-space: nowrap; /* Prevent wrapping */
}

.row div {
    display: flex;
    align-items: center;
    gap: 8px; /* Spacing between span and icon */
    max-width: 200px; /* Limit width for token address */
    overflow: hidden; /* Truncate content if too wide */
}

.row div span {
    flex-grow: 1; /* Allow the span to take up remaining space */
    overflow: hidden; /* Truncate overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    white-space: nowrap; /* Prevent wrapping */
}

.row div i {
    flex-shrink: 0; /* Ensure the icon does not shrink */
    color: gray; /* Default icon color */
    cursor: pointer; /* Show pointer cursor on hover */
}

.status, .sub-row, .pnl, .profit, .trust {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

@media only screen and (max-device-width: 500px) {
    .ca {
        width: 300px;
        font-size: 0.8em;
    }
    
    .main-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

.footer {
    margin-top: 10vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2vh;
}

.col > span:nth-child(2) {
    color: rgb(155, 155, 155);
}

.col a {
    color: white;
    text-decoration: none;
}

.col a:hover {
    text-decoration: underline;
}

.limit {
    width: 20%;
}

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.main-text {
    font-size: 1.2em;
    color: white;
}

.logo-text img {
    width: 40px;
}

.logo-text span {
    color: white;
    font-size: 1.5em;
}

@media only screen and (max-device-width: 600px) {
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 5vh;
    }

    .header {
        flex-direction: column;
        align-items: center;
        gap: 5vh;
    }

    .col {
        align-items: center;
    }

    .limit {
        width: 100%;
    }

    .footer span {
        text-align: center;
    }
}