* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #202532;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}


.header-top {
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    width: 165px;
    height: 50px;
    background: #e21e2a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
}

.search input {
    width: 100%;
    height: 27px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0 15px;
    font-size: 10px;
    outline: none;
}

.header-links {
    margin-left: auto;
    padding-right: 25px;
    display: flex;
    gap: 18px;
    font-size: 10px;
}

.blue-line {
    height: 34px;
    background: #008ed6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.navigation {
    height: 43px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 9px;
    border-bottom: 1px solid #eee;
}

.nav-blue {
    color: #008ed6;
}


/* =========================
   MAIN BACKGROUND
========================= */

.main-background {
    min-height: 1470px;

    background:
        linear-gradient(
            rgba(13, 35, 71, .16),
            rgba(13, 35, 71, .16)
        ),
        url("assets/background.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.main-width {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: auto;
}


.top-box {
    background: #fff;
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 460px;
}

.tops,
.news {
    padding: 20px;
}

.tops {
    border-right: 1px solid #ddd;
}

.top-box h2 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-box h2 i {
    display: block;
    width: 4px;
    height: 23px;
    background: #e31e2b;
}

.market-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 17px;
    color: #006bb3;
    font-size: 9px;
}

.stock-item {
    min-height: 40px;
    display: grid;
    grid-template-columns: 1fr 65px 65px;
    gap: 8px;
    align-items: center;
    font-size: 11px;
}

.stock-item b {
    text-align: right;
}

.up {
    color: #13b95b;
}

.down {
    color: #ee3b4b;
}

.progress {
    height: 17px;
}

.green {
    background: #25bc5c;
}

.lightgreen {
    background: #82d79e;
}

.red {
    background: #ff3f50;
}

.p100 { width: 100%; }
.p90 { width: 90%; }
.p80 { width: 80%; }
.p70 { width: 70%; }
.p65 { width: 65%; }
.p55 { width: 55%; }

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
}

.news-grid article {
    min-height: 90px;
}

.news-grid small {
    font-size: 8px;
    color: #777;
}

.badge {
    display: inline-block;
    color: #fff;
    padding: 3px 5px;
    border-radius: 2px;
    font-size: 7px;
}

.badge-red {
    background: #e52a34;
}

.badge-green {
    background: #27b757;
}

.news-grid h3 {
    margin-top: 9px;
    font-size: 15px;
    line-height: 1.2;
}


/* =========================
   CHART AREA
========================= */

.chart-section {
    background: #fff;
    margin-top: 15px;
    padding: 15px;
}

.stock-container {
    display: grid;
    grid-template-columns: 225px 1fr;
}

.stock-info-container {
    padding: 7px 14px 7px 0;
    border-right: 1px solid #eee;
}

.stock-info-container h1 {
    color: #13ad4c;
    font-size: 29px;
    margin-bottom: 5px;
}

.chart-label {
    color: #13ad4c;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 25px;
}


.stock-table {
    width: 100%;
    border-collapse: collapse;
}

.stock-table td {
    padding: 9px 2px;
    border-bottom: 1px solid #eee;
    font-size: 10px;
}

.stock-table td:last-child {
    text-align: right;
    font-weight: 600;
}
.stock-chart {
    padding-left: 20px;
}

.chart-nav {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#current-date {
    color: #777;
    font-size: 9px;
}

.time-tabs {
    display: flex;
    gap: 2px;
}

.tab {
    color: #777;
    padding: 5px 8px;
    font-size: 8px;
}

.tab.active {
    color: #111;
    font-weight: bold;
    border-bottom: 2px solid #111;
}

.canvas-container {
    height: 320px;
    width: 100%;
}

.lottery-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 15px;
}

.lottery-table th,
.lottery-table td {
    border: 1px solid #e7e7e7;
    padding: 8px;
    text-align: center;
    font-size: 9px;
}

.lottery-table th {
    background: #fafafa;
    text-transform: uppercase;
}

.bottom-box {
    margin-top: 15px;
    background: white;
    display: grid;
    grid-template-columns: 1fr 235px;
    min-height: 650px;
}

.top-aktien {
    padding: 22px;
}

.top-aktien h2 {
    font-size: 19px;
    margin-bottom: 14px;
}

.top-aktien > p {
    font-size: 10px;
    color: #777;
    margin-bottom: 35px;
}

.ranking {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}

.ranking th {
    color: #777;
    text-align: left;
    font-weight: normal;
    padding: 8px;
}

.ranking td {
    padding: 15px 8px;
    border-top: 1px solid #eee;
}

.company {
    color: #2d45b8;
    font-weight: bold;
}

.ranking a {
    color: #3b1697;
    font-weight: bold;
}

.side {
    border-left: 1px solid #e5e5e5;
}

.guide,
.realtime {
    padding: 23px 19px;
}

.guide {
    border-bottom: 1px solid #e5e5e5;
}

.side h2 {
    font-size: 18px;
    margin-bottom: 17px;
}

.guide-icon {
    text-align: center;
    font-size: 35px;
    margin: 15px 0;
}

.guide p {
    font-size: 9px;
    line-height: 1.6;
}

.realtime a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #37108e;
    font-size: 9px;
}

.history {
    background: #fff;
    padding: 70px 15px 100px;
}

.history-inner {
    width: 1200px;
    max-width: 100%;
    margin: auto;
}

.history h2 {
    font-size: 19px;
    margin-bottom: 15px;
}

#dataTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
}

#dataTable th,
#dataTable td {
    border: 1px solid #d7d7d7;
    padding: 5px;
    font-size: 11px;
    background: white;
}

#dataTable th {
    background: #f4f4f4;
    font-weight: normal;
}

@media (max-width: 900px) {

    .search {
        display: none;
    }

    .navigation {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 15px;
    }

    .top-box {
        grid-template-columns: 1fr;
    }

    .tops {
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }

    .bottom-box {
        grid-template-columns: 1fr;
    }

    .side {
        border-left: 0;
        border-top: 1px solid #ddd;
    }
}


@media (max-width: 650px) {

    .main-width {
        width: 100%;
        max-width: 100%;
    }

    .header-links a:nth-child(-n+4) {
        display: none;
    }

    .logo {
        width: 135px;
    }

    .top-box,
    .chart-section,
    .bottom-box {
        margin-left: 8px;
        margin-right: 8px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .stock-container {
        grid-template-columns: 1fr;
    }

    .stock-info-container {
        border-right: 0;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .stock-chart {
        padding: 20px 0 0;
    }

    .canvas-container {
        height: 270px;
    }

    .chart-nav {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
    }

    .ranking {
        min-width: 550px;
    }

    .top-aktien {
        overflow-x: auto;
    }

    .history {
        overflow-x: auto;
    }

    #dataTable {
        min-width: 500px;
    }
}