:root {
    /* //// General Colors //// */
    --blueGradient: #40DDFF;
    --pink: #F4418B;
    --purple: #BC42FF;
    --green: #30E0A1;
    /* //// Dark Mode Colors //// */
    --bg-darkBlue: #17153A;
    --softBlue: #23204E;
    /* //// Light Mode Colors //// */
    --lightGray: #D3D2DC;
    --darkGray: #A7A6B8;
    --border-color: #d2d2d8;

    --heading: 40px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* ///// Wrapper ////// */
#wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1920px;
    background-color: var(--bg-darkBlue);
    font-size: 16px;
}

/* // Heading // */
#wrapper .container {
    width: 80%;
    margin: 0 auto;
    padding: 60px 0;
}

/* // Body Content // */
.container .heading,
table td {
    color: #fff;
}

.container table {
    margin-top: 28px;
    width: 100%;
    text-align: left;
    border-spacing: 0;
}

.container table th {
    padding: 10px 0 20px 0;
    color: var(--blueGradient);
}

table tr td {
    padding: 15px 0;
}

table tr:hover {
    background-color: var(--softBlue);
    cursor: pointer;
}

.tableHeading:hover {
    background-color: var(--bg-darkBlue);
    cursor: default;
}

/* //////////// Icons //////// */
table tr img {
    position: relative;
    width: 22px;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 3px;
    right: 3px;
}

/* /////////// Dialog Box /////////// */
/* Overlay (covers whole screen) */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
}

/* Dialog box */
.dialogBox {
    position: relative;
    width: 1200px;
    aspect-ratio: 2;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    margin: 16px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--pink);
}

.close-btn:hover {
    color: #bb0350;
}

/* ////////////////// Dialog Content /////////////// */
#coinIcon {
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.dialogHeader {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    column-gap: 5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.dialogBox .dialogContent {
    height: 100%;
    display: flex;
}

/* ////////// Left Side Content //////// */

.dialogContent .description {
    width: 40%;
    height: 100%;
    border-right: 1px solid var(--border-color);
    padding-top: 16px;
    overflow: auto;
}

.dialogContent .description p {
    padding-top: 10px;
    line-height: 25px;
}

/* /////////// Right Side content ///////// */
.dialogBox .status {
    width: 60%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    overflow: auto;
}

/* /// Media query to make the web responsive */
@media (max-width: 900px) {
    .dialogBox .status {
        grid-template-columns: 1fr;
    }

    .container table {
        font-size: 12px;
    }

    table tr img {
        width: 18px;
        aspect-ratio: 1;
    }

    #wrapper .container {
        width: 95%;
    }

    table tr td:nth-last-child(-n+2),
    table tr th:nth-last-child(-n+2) {
        display: none;
    }


}

.dialogBox .dialog-container {
    width: 100%;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-top: none;

}

/* /// Media Query for mobile size */
@media (max-width: 750px) {
    #dialogTitle {
        font-size: 26px;
    }

    #coinIcon {
        width: 30px;
        aspect-ratio: 1;
    }

    #coinName {
        font-size: 18px;
    }

    #dialogDescription {
        font-size: 14px;
    }

    .dialog-container p {
        font-size: 14px;
    }
}

.coin-info,
.coin-market,
.coin-performance,
.coin-links {
    padding: 16px;
}

.dialogBox .dialog-container p {
    padding: 4px 0;
}

.dialogBox .dialog-container h3 {
    padding-bottom: 10px;
}