@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    font-size: 1rem;

    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: <weight>; */
    font-style: normal;
}

:root {
    --background: #ececec;
    --background-opposite-color: #000;
    --card-background: #fff;
    --text-color: #000;
    --light-text-color: #686868;
}

body {
    background: #ececec;
    color: var(--text-color);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.nav {
    background: var(--card-background);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1.5rem;
}

.logo h1 {
    font-size: 1.5rem;
}

.nav .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: right;
}

.nav-links a {
    text-decoration: none;
    margin: 0 .5rem;
    padding: 1rem;
    color: var(--text-color);
    font-weight: bold;
}

.sector-cards-container {
    margin: 1rem;
}

.left {
    justify-content: left;
    text-align: left;
}

.center {
    justify-content: center;
    text-align: center;
}

.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.heading {}

.tables-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

.tables-container table {
    background: var(--card-background);
    width: fit-content;
}

.tables-container table td,
th {
    padding: 0.3rem;
    border-bottom: 0.5px solid #9b9b9b;
}

.table-title {
    text-align: left;
    margin-left: 0.5rem;
    font-weight: bold;
}

.btn {
    background: var(--background-opposite-color);
    color: #fff;
    padding: .2rem;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    border: 1px solid var(--background-opposite-color);
    align-items: center;
}

.btn:hover {
    background: var(--background-color);
    color: #000;
    border: 1px solid var(--background-opposite-color);
}

.hidden {
    display: none;
    visibility: hidden;
}

.light-text {
    font-size: .8rem;
    font-style: italic;
    color: var(--light-text-color);
}

.close {
    margin-left: 3rem;
    cursor: pointer;
}

.graph-container {
    padding: 1rem;
    width: 700px;
    height: 500px;
}

.live-button {
    background: red !important;
    color: #fff;
    width: fit-content;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    align-items: center;
    text-align: center;
    border: none;
    outline: none;
}

.container {
    padding: 0 1rem;
    margin: 1.3rem;
    min-height: 100vh;
}

.green {
    color: green;
}

.red {
    color: red;
}

table {
    margin: 1rem auto;
    border-collapse: collapse;
}

.sector-table-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-color);
}

.sector-table {
    background: var(--card-background);
    min-width: 160px;
    padding: 1rem 0;
    margin: 1rem;
    border-radius: 5px;
}

/* .sector-table .col-5{
    width: 460px;
    min-width: 420px;
} */

th.sortColumn {
    cursor: pointer;
    position: relative;
}

th.sortColumn:after {
    content: " ⇅";
    font-size: 0.8em;
    color: #aaa;
}

th.asc:after {
    content: " ↑";
    color: #000;
}

th.desc:after {
    content: " ↓";
    color: #000;
}

.sector-table h3 {
    text-align: center;
    font-size: .9rem;
}

.sector-table td,
.sector-table td span {
    font-size: .65rem;
}

.sector-table th {
    font-size: .8rem;
}

.sector-table-table {
    padding: 1rem 0;
    background: var(--card-background);
    text-align: left;
    width: 100%;
    height: 400px;
    min-height: 200px;
    overflow-y: scroll;
}


.sector-table thead th {
    position: sticky;
    top: 0;
    background: var(--card-background);
    /* Optional: white background */
    z-index: 1;
}

.sector-table table td,
th {
    padding: 0.5rem;
    border-bottom: 0.5px solid #9b9b9b;
}

/* Style the input which has type == "submit" */
form button[type=submit] {
    background-color: var(--background-opposite-color);
    color: var(--card-background);
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form input,
form select {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
}

.option-chain-table {
    margin: 1rem auto;
    border-collapse: collapse;
}

.option-chain-table table td,
th {
    padding: 0.5rem;
    border-bottom: 0.5px solid #9b9b9b;
}

.alert {
    padding: 1rem;
    width: fit-content;
    margin: 1rem auto;
    border-radius: 5px;
}

.alert-error {
    background: rgb(255, 200, 200);
    color: red;
    border: 1px solid red;
}

.alert-success {
    background: rgb(207, 255, 207);
    color: green;
    border: 1px solid green;
}

.line-graph-container {
    padding: 1rem;
    display: block;
    width: 72rem;
    margin: auto;
}

.line-graph-container canvas {
    width: 600px;
    height: 500px;
}

.disclaimer-box {
    background: var(--card-background);
    padding: 1rem;
    text-align: center;
    font-size: .8rem;
    align-self: baseline;
}

.disclaimer-box p {
    color: var(--light-text-color);
}