﻿@font-face {
    font-family: "OpenSans";
    src: url("OpenSans-Regular.ttf");
}

* {
    box-sizing: border-box;
}

html, body {
    padding: 0px;
    margin: 0px;
    font-family: "OpenSans";
    background-color: white;
    color: #333;
}

p {
    line-height: 1.5;
}


a {
    color: #333333;
    text-decoration: none;
}


    a:hover {
        color: red;
        text-decoration: underline;
    }

::placeholder {
    color: silver;
    font-weight: normal;
}

.external-link {
    color: forestgreen;
    font-weight: bold;
}

/* CONTAINER */



.container {
    padding-left: 10px;
    padding-right: 10px;
    margin: auto;
    background-color: white;
    max-width: 600px;
}





/* HEADER */

.header__logo {
    font-size: 2.5em;
    color: #444;
    font-weight: bold;
}

.header__banner {
    display: none;
}

.header__search {
    display: none;
}

/* MENU */

#btnMenu {
    display: flex;
    align-items: center;
    padding: 15px 0px;
    background-image: linear-gradient(#e1e1e1, #f1f1f1);
    border-radius: 2px;
    text-transform: uppercase;
    padding-left: 15px;
    font-weight: bold;
}

    #btnMenu > img {
        max-width: 16px;
        max-height: 16px;
        margin-right: 10px;
    }

.menu {
    background-image: linear-gradient(#e1e1e1, #f1f1f1);
    align-items: center;
    border-radius: 4px;
    margin: auto;
}

.menu__item {
    display: none;
    text-decoration: none;
    color: black;
    font-weight: bold;
    margin-left: 0px;
    text-transform: uppercase;
    padding: 15px 20px;
    border-right: 0px;
}

.menu__item_show {
    display: block;
}


.menu__item_push {
    margin-left: auto;
}

.menu__item_add {
    background-color: yellow;
    color: black;
    border: 5px;
    padding: 10px 20px;
    transition: all 0.5s ease 0s;
}


/* CARD */

.card {
    border: 2px solid #f1f1f1;
    border-radius: 2px;
    margin-bottom: 20px;
}

.card__header {
    background-color: #f1f1f1;
    background-image: linear-gradient(#f1f1f1, #ffffff);
    padding: 10px;
    padding-bottom: 20px;
    text-align: left;
    font-weight: bold;
}

.card__body {
    padding: 10px;
}



/* MAIN PAGE */

.main {
    display: flex;
}

.main__left {
    width: 17%;
    margin-top: 30px;
    margin-right: 20px;
    display: none;
}

.main__center {
    width: 100%;
    margin-top: 30px;
}

.main__right {
    margin-top: 30px;
    width: 17%;
    margin-left: 20px;
    display: none;
}


.main-category {
    margin-bottom: 30px;
}



.main-category__icon {
    display: none;
}

.main-category__img {
    height: 42px;
    width: 42px;
    margin-right: 10px;
}

.main-category__header {
    display: flex;
    justify-content: left;
    align-items: center;
    font-weight: normal;
    font-size: 1.3em;
    text-decoration: none;
    color: #0d1e91;
    font-weight: bold;
    line-height: 1.5;
}

.main-category__header-link {
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted #333;
}

.main-category__header-count {
    margin-left: 7px;
    color: #777;
    font-size: 0.9em;
}

.main-category__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    font-size: 1.2em;
    font-weight: normal;
    line-height: 2.2;
    transition: margin-left 0.5s, color 0.5s;
    background-repeat: no-repeat;
}

    .main-category__item:hover {
        margin-left: 0px;
        color: #FF0000;
        text-decoration: underline;
    }

.main-sites {
    margin-bottom: 50px;
}

.main-site {
    display: flex;
    padding: 10px;
    margin-bottom: 5px;
    border-bottom: 1px dotted #ccc;
}

    .main-site:hover {
        background-color: #FAFAFA;
    }

.main-site__date {
    margin-right: 12px;
}

.main-site__external-link-wrap {
    margin-right: 10px;
}

.main-site__external-link {
    color: forestgreen;
}

.main-site__internal-link-wrap {
    display: none;
}


/* CATEGORY PAGE */

.sub-categories {
    padding-bottom: 0px;
}

.sub-categories__link {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    background: url('/images/folder_gold.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 30px;
    transition: all 0.5s ease 0s;
}

    .sub-categories__link:hover {
        color: red;
    }


.breadcrumbs {
    text-align: left;
    margin-bottom: 20px;
}

    .breadcrumbs > a {
        font-weight: bold;
        color: #555;
    }


/* SITE BLOCK */

.site {
    border-bottom: 2px solid #f1f1f1;
    padding: 20px 10px;
    margin-left: -10px;
    margin-right: -10px
}

.site__title-link {
    color: #000;
}

.site__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.site__external-link {
    color: #080;
    font-weight: bold;
}

/* SEARCH BLOCK */

.search-side__input {
    display: block;
    font-size: 14px;
    width: 100%;
    background-color: white;
    border: 1px solid #AFAFAF;
    border-radius: 4px;
    padding: 5px 7px;
    outline: none;
    box-sizing: border-box;
    font-weight: bold;
    color: black;
}

.search-side__btn {
    margin: 10px auto 0px auto;
    background-image: linear-gradient(to top, #e4e4e4, #f7f7f7);
    border: 1px solid #afafaf;
    border-radius: 2px;
    display: block;
    width: 50%;
    padding: 5px 10px;
    color: #555;
    outline: none;
    cursor: pointer;
    transition: all 0.5s ease 0s;
    font-size: 14px;
    font-weight: bold;
}

    .search-side__btn:hover {
        background-image: linear-gradient(to bottom, #e4e4e4, #f7f7f7);
        border: 1px solid gray;
        color: #000;
    }



/* NEW SITES BLOCK */

.new-sites__link {
    display: block;
    margin-bottom: 15px;
    white-space: nowrap;
    background-image: url(/images/link_gray.svg);
    background-repeat: no-repeat;
    padding-left: 23px;
    background-size: 15px;
    background-position-y: 5px;
}

/* SEARCH PAGE */

.search-form {
    padding-bottom: 20px;
}

.search-form__input-text-query {
    display: block;
    font-size: 14px;
    width: 100%;
    background-color: white;
    border: 1px solid #AFAFAF;
    border-radius: 4px;
    padding: 7px 10px;
    outline: none;
    box-sizing: border-box;
    font-weight: bold;
    color: black;
}

.search-form__button-submit {
    background-image: linear-gradient(to top, #e4e4e4, #f7f7f7);
    border: 1px solid #afafaf;
    display: block;
    width: 100%;
    padding: 10px 30px;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: all 0.5s ease 0s;
    font-size: 16px;
}

.search-content {
}


/* ADD PAGE  */

.add-form {
    background: white;
    margin: 20px auto;
}

.add-form__body {
}

.add-form__left-side {
}

.add-form__right-side {
}


.add-form__input-container {
    margin-bottom: 20px;
}

.add-form__label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #000;
    font-weight: normal;
}

.add-form__input-text {
    display: block;
    font-size: 14px;
    width: 100%;
    background-color: white;
    border: 1px solid #afafaf;
    border-radius: 4px;
    padding: 7px 10px;
    outline: none;
    box-sizing: border-box;
    color: black;
    font-weight: bold;
    transition: all 0.5s ease 0s;
}

    .add-form__input-text:focus {
        background-color: #FAFAFA;
        border-color: #44ccee;
    }

.add-form__select {
    display: block;
    font-size: 14px;
    width: 100%;
    background-color: white;
    border: 1px solid #afafaf;
    border-radius: 4px;
    padding: 7px;
    outline: none;
    margin-bottom: 5px;
    font-weight: bold;
    color: black;
}

    .add-form__select:focus {
        background-color: fff3cd;
    }


.add-form__textarea {
    display: block;
    font-size: 14px;
    background-color: white;
    width: 100%;
    min-height: 150px;
    padding: 7px;
    height: calc(100% - 43px);
    border: 1px solid #afafaf;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    font-weight: normal;
    color: #440;
    transition: all 0.5s ease 0s;
}

    .add-form__textarea:focus {
        background-color: #fff3cd;
    }

.add-form__input-container:focus {
    background: ivory;
}

.add-form__label_error {
    color: red;
}

.add-form__input-text_error,
.add-form__textarea_error {
    border: 1px solid red;
    color: red;
}

.add-form__error-text {
    font-size: 12px;
    color: red;
    font-weight: bold;
}

.btn {
    margin: 10px auto 0px auto;
    background-image: linear-gradient(to top, #e4e4e4, #f7f7f7);
    border: 1px solid #afafaf;
    border-radius: 2px;
    display: block;
    width: 50%;
    padding: 15px 10px;
    color: #555;
    outline: none;
    cursor: pointer;
    transition: all 0.5s ease 0s;
    font-size: 16px;
    font-weight: bold;
}

/* RULES PAGE */

.rules-list {
    list-style-image: url('/images/check.svg');
}

.rules-list__item {
    margin-bottom: 10px;
    line-height: 1.8;
    padding-left: 5px;
}


/* PAGINATION  BLOCK */

.pagination {
    margin: 20px;
    text-align: center;
}

    .pagination > a {
        display: inline-block;
        margin-left: 10px;
        padding: 5px 10px;
        border: 1px solid #52dfff;
        border-radius: 4px;
        font-weight: bold;
        color: #555;
        cursor: pointer;
    }

        .pagination > a.active,
        .pagination > a:hover {
            color: black;
            background-color: #52dfff;
        }


/* FOOTER BLOCK */

.footer {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 20px 0px 20px 0px;
    border-top: 2px solid #f1f1f1;
    border-radius: 5px;
    font-weight: bold;
}

.footer__left {
    text-align: center;
    margin-bottom: 20px;
}

.footer__center {
    text-align: center;
    margin-bottom: 20px;
}

.footer__right {
    text-align: center;
    margin-bottom: 20px;
}

.footer a {
    color: #555;
    font-weight: bold;
}





/* ALERTS */

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px dotted #f5c6cb;
    padding: 20px 30px;
}

.alert-warning {
    background-color: #fff3cd;
    padding: 30px 10px;
    color: #856404;
    border: 1px dotted gold;
    margin-bottom: 30px;
}

.alert-success {
    color: black;
    background-color: #f0ffd9;
    border: 1px dotted greenyellow;
    padding: 20px 30px;
    border-radius: 6px;
}


.page-title {
    border-bottom: 2px solid dodgerblue;
    padding: 20px 0px
}

.h3-line {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.h-line {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}





/* ADD FORM */

.text-center {
    text-align: center;
}
