body {
    margin: 0;
    font-family: "Lato", sans-serif;
    padding: 0px;
}

/* ######################### Popup Form ############################# */

/* The popup form - hidden by default */
.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #f1f1f1;
    z-index: 1000;
    width: 90%;
    max-width: 500px;
}

.form-container {
    padding: 10px;
    background-color: white;
    width: 100%;
}

.form-container input[type=text],
.form-container input[type=number] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

.form-container input[type=text]:focus,
.form-container input[type=password]:focus {
    background-color: #ddd;
    outline: none;
}

.form-container select {
    width: 100%;
    height: 30px;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

.form-container .btn {
    background-color: #0e68b4;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    opacity: 0.8;
}

.form-container .cancel {
    background-color: #fb4b4b;
}

.form-container .btn:hover,
.open-button:hover {
    opacity: 1;
}

/* ######################### Data Tables ############################# */

.dt-button.red {
    background-color: #fb4b4b;
}

.dt-url-column {
    /*width: 40%;*/
    max-width: 300px;
    min-width: 100px;
    text-overflow: ellipsis;
    word-break: break-all;
}

.dt-img-column {
    width: 105px;
    max-width: 105px;
    min-width: 105px;
}

.dt-img-arrow {
    width: 30px;
    max-width: 30px;
    min-width: 30px;
}

.dt-product-track-product-img-column {
    width: 30px;
    max-width: 30px;
    min-width: 30px;
}

.dt-track-img-column {
    width: 20px;
    max-width: 20px;
    min-width: 20px;
}

.dt-img {
    height: auto;
    width: 100%
}

.dt-text-alert {
    color: #e22904;
}

.dt-text-normal {
    color: black;
}

.dt-product-text p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* ######################### Main ############################# */

.noramlButtonStyle {
    margin: 10px;
    background-color: #0e68b4;
    border: none;
    color: white;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 10px;
}

.noramlButtonStyle:hover {
    background-color: #21acfb;
    color: white;
}


/* ######################### Main ############################# */

.mainButtonStyle {
    margin: auto;
    background-color: #0e68b4;
    border: none;
    width: 80%;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
}

.mainButtonStyle:hover {
    background-color: #21acfb;
    color: white;
}

/* ######################### Login ############################# */

.mainButtonStyle.login {
    display: flex;
    justify-content: center;
}

.loginInput {
    margin: 0 auto;
    width: 80%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

div.loginBox {
    text-align: center;
    margin: 50px auto;
    width: 50%;
    border: 3px solid #0e68b4;
    padding: 20px;
}

/* ######################### Index ############################# */

.sidebar {
    margin: 0;
    padding: 0;
    width: 200px;
    background-color: #0e68b4;
    position: fixed;
    height: 100%;
    overflow: auto;
}

.sidebar a {
    display: block;
    color: #c4bfbf !important;
    padding: 20px;
    text-decoration: none;
    /*border: 1px solid #09487b;*/
}

.sidebar a.active {
    background-color: #21acfb;
    color: white !important;
}

.sidebar a.dropdown-selected {
    border-bottom: 1px solid #21acfb;
}

.sidebar a.category-selected {
    color: #21acfb !important;
}

.sidebar a.normal:hover:not(.active) {
    background-color: #03639b;
    color: white !important;
}

.sidebar a.category-dropdown:hover:not(.category-selected) {
    color: white !important;
}

.dropdown-first-contain {
    background-color: #0b538e !important;
}

.dropdown-second-contain {
    background-color: #07375f !important;
}

.dropdown-third-contain {
    background-color: #041c2f !important;
}

div.content {
    margin-left: 200px;
    padding: 10px 16px;
}

/* ######################### Market Info ############################# */

.market-content.content {
    min-width: 950px;
}

.market-info .category-title {
    background-color: #0e68b4;
    padding: 10px;
}

.market-info .category-title a {
    color: white;
    font-size: 20px;
}

.market-info .grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    background-color: white;
    margin-bottom: 30px;
    width: 850px;
    font-size: 13px;
}

.market-info .grid-item {
    padding: 10px;
    text-align: center;
}

.market-info .is-rank-improve-1 .prod-name {
    color: #21acfb;
    font-weight: bold;
}

.market-info .prod-is-price-change-1 .price {
    color: #D62872;
}

.market-info .grid-container .prod-is-new-1 {
    border: 2px solid #21acfb;
}

.market-info .prod-name {
    margin: 5px 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.market-info .prod-img {
    width: 120px;
    height: 120px;
}

.market-info .price {
    margin: 0;
    text-align: left;
}

/* ######################### Responsive Web Design ############################# */

@media screen and (max-width: 800px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidebar a {
        float: left;
    }

    div.content {
        margin-left: 0;
    }

    div.loginBox {
        width: 80%;
    }
}

@media screen and (max-width: 600px) {
    .sidebar a {
        text-align: center;
        float: none;
    }
}