@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap');

:root {
    --primary-color: #94C11F;
    --secondary-color: #0F2D1D;
    --accent-color: #E30F18;
    --bg-gray-color: #EDEEEB;
}

* {
    font-family: 'Source Sans Pro', sans-serif;
}

body {
    font-size: 1rem;
}

main {
    margin-top: 50px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}


.text-loading {
    height:1rem;
    border-radius: 50px;
    margin:0.2em;
    animation: loadingPulse 2s ease infinite;
}

.btn {
    outline:none;
    border:none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.5em 2em;
}

.btn.btn-primary {
    background-color: var(--primary-color);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background-color: var(--secondary-color);
}

#toast-message-wrapper {
    position: fixed;
    z-index: 999;
    right:20px;
    bottom:20px;
}

@keyframes loadingPulse {
    0% {
        background: lightgray;
    }
    50% {
        background: darkgray;
    }
    100% {
        background:lightgray;
    }
}

#full-navigation-bar {
    position: sticky;
    top:0;
    left:0;
    z-index: 9999;
    width:100%;
}

#full-navigation-bar .nav-link {
    font-size: 0.875rem;
    padding:0.1rem 1rem;
}

#top-navigation-bar {
    background-color: #FFFFFF;
    padding:0.5em 0;
    border-bottom: 5px solid var(--primary-color);
}

#top-navigation-bar .brand-logo {
    height:70px;
}

.products-table {
    width: 100%;
}

.products-table .website-logo {
    height:40px;
    object-fit: cover;
}

.products-table .product-list-price.green {
    background-color: greenyellow;
}

.products-table .product-list-price.orange {
    background-color: orange;
}

.products-table .product-list-price.red {
    background-color: darkred;
    color: white;
}

.products-table .regular-price {
    color: gray;
    margin-left: 0.5em;
}

.pagination-wrapper .pagination {
    display: block;
    list-style-type: none;
    margin: 1em 0;
    padding:0;
}

.pagination-wrapper .pagination .page {
    display: inline-flex;
    width: 30px;
    height:30px;
    align-items: center;
    justify-content: center;
    border:1px solid lightgray;
    border-radius: 3px;
    margin:0.1em;
}

.pagination-wrapper .pagination .page a {
    text-decoration: none;
    color: #000;
}

.pagination-wrapper .pagination .page.current {
    background-color: var(--primary-color);
}

.pagination-wrapper .pagination .page.current a {
    color: #FFF;
}

.products-table-wrapper {
    /*overflow-x: hidden;*/
}

.table-header.sticky {
    position: sticky;
    top:120px;
    left:0;
    z-index: 999;
}

#top-bar {
    display: grid;
    grid-template-columns: 5fr 1fr;
}

#top-bar .filter-wrapper {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 768px) {
    #top-bar {
        grid-template-columns: 1fr;
    }
}

/**
PRODUCT PAGE
 */
.product-image {
    max-width: 300px;
    height:300px;
    object-fit: cover;
    border:1px solid gray;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin:0;
}

.product-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.price-data-wrapper .price-data {
    width: 100%;
}

.price-data-wrapper .price-data .shop-logo {
    height:50px;
    margin:0.5em;
}

.price-data-wrapper .price-data .price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
}

table {
    border-collapse: collapse;
}

table th,
table td {
    padding:0.2em;
}

table th {
    text-align: left;
    background-color: var(--primary-color);
    color: #FFF;
    text-transform: uppercase;
    font-weight: 700;
}

table tr:nth-child(2n) td {
    background-color: #F8F8F8;
}

table .website-count {
    background-color: var(--accent-color);
    color: #FFF;
    padding:0.2em;
}

.login-form-wrapper {
    background-color: var(--bg-gray-color);
    padding:2em;
    max-width: 400px;
    margin:auto;
}

.login-form-wrapper .form-group {
    margin:0.5em 0;
}

.login-form-wrapper label {
    font-weight: 700;
    display: block;
}

@media screen and (max-width: 768px) {
    .product-data-grid {
        grid-template-columns: 1fr;
        grid-row-gap: 50px;
    }
}