:root {
    --color-primary: #FB6445;
    --color-white: #fff;
    --color-black: #000;
    --text-color : #333;
    --growth-from: 0;
    --growth-to: 1;

    --header-height: 120px;
    --navbar-height: 38px;
    --header-with-search-height: calc(var(--header-height) - var(--navbar-height));
    --sort-bar-height: 46px;
}

* {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    line-height: 1.6rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.text-primary {
    color: var(--color-primary);
}

.text-gray {
    color: #888;
}

.text-strong-5 {
    font-weight: 500;
}

.text-strong-7 {
    font-weight: 700;
}

.text-small {
    font-size: 1.3rem;
}

.text-large {
    font-size: 1.8rem;
}

.no-pointer {
    cursor: text;
    color: var(--color-white);
}

.grid__row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

/* Test */
.grid__col{
    padding: 0 12px;
}

.grid__col-2 {
    width: 16.6667%;
}

.grid__col-2-4 {
    width: 20%;
}

.grid__col-3 {
    width: 25%;
}

.grid__col-10 {
    width: 83.3333%;
}

/* Animation */
@keyframes fadeIn{
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    100% {
        opacity: 0;
    }
}

@keyframes growth {
    0% {
        transform: scale(var(--growth-from));
    }
    100% {
        transform: scale(var(--growth-to));
    }
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    animation: fadeIn 0.5s linear;
    display: none;
}

.modal__layout {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal__body {
    margin: auto;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1;
    --growth-from: 0.7;
    --growth-to: 1;
    animation: growth 0.5s linear;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.2rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    min-width: 60px;
    min-height: 34px;
}

.btn + .btn {
    margin-left: 0.8rem;
}

.btn-disable {
    opacity: 0.5;
    cursor: default;
}

.btn.btn-size-s {
    min-width: 60px;
    min-height: 34px;
}

.btn.btn-size-m {
    min-width: 140px;
    min-height: 36px;
}

.btn.btn-size-l {
    min-width: 200px;
    min-height: 40px;
}

.btn:hover {
    background-color: #ccc;
    color : black;
}

.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-item  {
    --height: 30px;
    text-decoration: none;
    color: #A2A2A2;
    font-size: 2rem;
    display: block;
    border: none;
    border-radius: 2px;
    min-width: 40px;
    min-height: var(--height);
}

.pagination-item + .pagination-item {
    margin-left: 2rem;
}

.pagination-item-link {
    --height: 30px;
    text-decoration: none;
    color: #A2A2A2;
    font-size: 2rem;
    display: block;
    border: none;
    border-radius: 2px;
    min-width: 40px;
    min-height: var(--height);
    text-align: center;
    line-height: var(--height);
}

.pagination-item--active .pagination-item-link {
    color: var(--color-white);
    background-color: var(--color-primary);
}

.pagination-item--active .pagination-item-link:hover {
    opacity: 0.8;
}

