@import 'loan-item.css';
@import 'hero.css';

html {
    --main-color: #5580e9;
    --secondary-color: #84ceeb;
    --active-color: #5ab8eb;
    font-family: 'Ubuntu', sans-serif;
}

::-webkit-scrollbar {
    width: 10px
}

::-webkit-scrollbar-track {
    background: #ccc
}

::-webkit-scrollbar-thumb {
    background: #5580e9;
}

::-webkit-scrollbar-thumb:hover {
    background: #555
}

.container {
    position: relative;
}

.hint {
    background: #5580e9;
    color: #fff;
    padding: 20px;
    margin: 0 0 23px;
}

.hint__message {
    display: block;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.borrow__label {
    display: block;
    margin: 0 0 5px;
    font-size: 16px;
}

.borrow__label--big-margin {
    margin-bottom: 10px;
}

.borrow__input {
    width: 200px;
    font-size: 52px;
    line-height: 1;
    font-weight: bold;
    letter-spacing: 1px;
    color: #5580e9;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    border-radius: 0;
    -webkit-appearance: none;
    vertical-align: middle;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.borrow__input:focus,
.borrow__input:hover {
    outline: none;
}

.borrow__controlls {
    vertical-align: middle;
    display: inline-flex;
    flex-flow: row wrap;
    width: 95px;
    height: 50px;
}

.borrow__up,
.borrow__down {
    flex: 1;
    text-align: center;
    background: #5580e9;
    font-size: 24px;
    color: #fff;
    border: 1px solid #fff;
    padding: 0;
}

.heading {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.dashed-link {
    display: inline-block;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dashed #555;
}

.footer {
    margin: 45px 0 0;
    background: #f3f3f3;
}

.footer__info {
    color: #333;
    padding: 45px 0 20px;
}

.footer__bg {
    background: #5580e9;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer__copy {
    margin: 0;
}


.header {
    padding: 12px 0;
    background: #5580e9;
    color: #fff;
    border-bottom: 1px solid #fafafa;
}

.header__inner {
    display: flex;
    align-self: center;
    justify-content: space-between;
}

nav {
    display: inherit;
}

.menu {
    display: flex;
    align-self: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.menu__item {
    list-style: none;
}

.menu__item:not(:last-of-type) {
    margin-right: 25px;
}

.menu__link {
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    padding-bottom: 2px;
}

.menu__link--active {
    font-weight: bold;
}

.menu__link:hover {
    color: #eee;
}

.form-item {
    width: 100%;
    margin: 0 0 15px;
}

.form-item__label {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    font-size: 15px;
}

.form-item__input {
    display: block;
    width: 100%;
    max-width: 250px;
    border: 1px solid #5580e9;
    border-radius: 2px;
    padding: 14px;
    font-size: 15px;
    text-align: center;
    margin: 0;
}

.form-item__input--rub {
    position: relative;
}

.form-item__input--rub:after {
    content: 'Руб.';
    display: inline-block;
    margin: 0 5px;
    font-size: 14px;
}

.clear-btn {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    width: 20px;
    height: 20px;
    border: 1px solid #5580e9;
    border-radius: 50%;
    margin: 0 5px;
    background: #fafafa;
    color: #5580e9;
    font-size: 14px;
    line-height: 1;
    padding: 0px;
    font-family: monospace;
}

.float-right {
    float: right;
}

#app {
    position: relative;
    padding-top: 23px;
}

#approval {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.approval {
    width: 320px;
    padding: 5px;
    border: 3px solid #84ceeb;
    display: flex;
    align-items: center;
    background: #fff;
    transition: all .2s ease-in-out;
}

.approval:hover {
    opacity: .5;
}

.approval__img {
    display: block;
    width: 50%;
    height: 0;
    padding-top: 30%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.approval__text {
    width: 50%;
    padding: 10px 15px;
    font-size: 15px;
}

.fade-enter-active,
.fade-leave-active {
    opacity: 1;
    transition: opacity .3s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}

p {
    font-size: 16px;
    margin: 15px 0;
}

p a {
    color: #5580e9;
}

.loan-items-counter {
    display: none;
    color: #333;
    margin: 0 0 15px;
}

.alert-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 10px;
    transform: translateY(100%);
    transition: transform .3s ease-in-out;
}

.alert-panel--visible {
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .hint {
        padding: 17px;
    }
    
    .borrow__input {
        width: 176px;
        font-size: 48px;
    }

    .borrow__controlls {
        width: 69px;
        height: 44px;
    }

    .form-item__input {
        padding: 12px;
    }
}

@media (max-width: 991px) {
    .menu__item:not(:last-of-type) {
        margin-right: 15px;
    }

    .menu__link,
    .heading {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
	.logo {
        flex-direction: column;
    }

    .logo__text {
        margin-top: 5px;
        text-align: center;
    }

    #approval {
        display: none;
    }

    .header {
        padding: 10px 0;
    }

    .header__inner {
        flex-flow: column wrap;
    }
    
    .menu {
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 5px 0;
    }

    .menu__item {
        line-height: 1.2;
    }

    .hint-message {
        display: block;
        border: 2px solid #84ceeb;
        padding: 7px;
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    #app {
        padding-top: 15px;
    }

    .form-item.float-right {
        display: none;
    }

    .loan-items-counter {
        display: block;
    }

    .hint {
        margin-bottom: 15px;
    }

    .borrow__controlls {
        width: 90px;
        height: 45px;
    }

    .borrow__label {
        margin: 0;
    }

    .borrow {
        margin-bottom: 5px;
    }
}