* {
    margin: 0;
    padding: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}


html, body {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-height: 100%;
    min-width: 320px;
    font-family: 'Open Sans', sans-serif, tahoma, arial;
    font-weight: 400;
    font-size: 13px;
    line-height: normal;
    color: #181818;
    background-image: url('../../pics/polaroid.png');
    background-color: #f5f5f5;
    background-attachment: scroll;
    -webkit-text-size-adjust: 100%;
    margin: 0;
    padding: 0;

}


div, header, footer, nav, li {
    position: relative;
}


a {
    color: rgb(245, 104, 9);
}

a:hover {
    color: rgb(245, 132, 43);;

}

.text {

    padding: 10px;
    width: 100%;
    min-height: 100px;
    font-size: 14px;

}

p {padding: 6px;}

h2 {padding-top: 10px;}

.format_h3 {padding-top: 15px; padding-bottom: 0; padding-left: 0;}


ul {
    padding-left: 10px;
    padding-right: 10px;
}


li {

    list-style: none;
    padding-left: 15px;

}

.text li:before {
    position: absolute;
    font-family: 'FontAwesome';
    content: '\f105';
    left: 0;
    top: 0;
}

.logo_main {

    position: relative;
    max-width: 1024px;
    margin: 0 auto;

}

.center {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
}

.main {
    width: 100%;
    margin: 0 auto;
    max-width: 1024px;
    height: auto;
    background-color: #ffffff;
    padding-bottom: 3em;
}

h1 {
    font-size: 1.4em;
    font-weight: bold;
    color: rgb(245, 104, 9);
    padding: .6em .3em .8em .3em;
    margin: 0;
    line-height: 1em;
}

h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #4F4F4F;
    padding: .2em .5em .5em .5em;
}


.top_description {
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 10px 10px 20px 10px;
    color: #525052;

}

.select_town_halls {
    width: 100%;
    height: auto;
    padding: 0;

}

.th_item {

    display: inline-block;
    width: 49%;
    text-align: center;
    padding: .3em .3em 3em .3em;


}

.th_item img {

    border: 1px solid #e2e9eb;
    margin: 0;
    padding: 0;
    width: 70%;
    height: auto;
    vertical-align: top;

}

.th_item:hover img{

    border: 1px solid #becfdd;

}

.th_item a{

    padding: 0;
    margin: 0;
    display: block;
    width: 100%;

}

.th_item_image {
    display: block;

}


.th_item_text {
    display: flex;
    vertical-align: bottom;
    position: relative;
    align-items: center;
    justify-content: center;


}

.th_item_text a{

    margin: 5px;
}

.base_label {
    position: absolute;
    font-size: 11px;
    right: 8%;
    border-radius: 3px;
    opacity: 0.9;
    -moz-opacity: 0.9;
    filter: alpha(opacity=9);
    width: auto;
    padding-right: 5px;
    padding-left: 5px;
    height: 18px;
    line-height: 18px;
    z-index: 50;
    color: white;

}

.link_label {
    top: 6%;
    background-color: #217edd;
}

.year_label {
    top: 20%;
    background-color: #ff753d;

}

.new_label {
    top: 20%;
    font-weight: bold;
    background-color: #ff9121;
    color: #ffffff;
}

.base_label_full {
    position: absolute;
    right: 3%;
    top: 5%;
    background-color: #ff753d;
    font-size: 11px;
    border-radius: 3px;
    width: auto;
    padding-right: 5px;
    padding-left: 5px;
    height: 18px;
    line-height: 18px;
    z-index: 50;
    color: white;
}
.new_label_full {
    font-weight: bold;
    background-color: #ff9121;
}

/** new all bases grid **/

.bases_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1.25rem;
  column-gap: 1.25rem;
  padding: 0.25rem 1rem 0.5rem;
}
.base_grid_item {
  border: 2px solid rgba(221, 221, 221, .81);
  border-radius: 5px;
  position: relative;

}
.base_grid_item a {
  display: flex;
  justify-content: center;
  position: relative;
}

.base_grid_img {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  padding: 2px;
}
.base_grid_bottom  {
  padding: 6px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*views block for main grid*/
.views_block_mg {
  display: none;
  align-items: center;
  column-gap: 0.3rem;
}


.bottom_description {

    border-top: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
    padding-top: 25px;
    padding-right: 10px;
    padding-bottom: 25px;
    margin-top: 20px;
    background-color: #f9f9f9;
    color: #525052;
    width: 100%;

}

footer {

    background-color: #ffffff;
    height: auto;
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #babec7;

}

.counters {
    position: absolute;
    right: 1em;
    bottom: 1em;

}

.counters_ar {
    position: absolute;
    left: 1em;
    bottom: 1em;

}



.langs {

    padding: 30px 0.5em 30px 0.5em;
    font-size: 13px;
    color: #666666;
}

.langs span {

    padding-left: 4px;
    padding-right: 4px;

}

.langs a {

    color: #666666;

}

.copyright {

    padding-left: .5em;
    padding-right: .5em;

}


.breadcrumps {

    width: 100%;
    padding-top: 14px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 14px;
    color: #808680;
    font-size: 14px;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    background-color: #fbfbfb;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;

}

.breadcrumps a{

    text-decoration: none !important;

}

/*select base type text block*/
.select_base_type {
    display: inline-block;
    padding: 1em .9em .5em .9em;
    font-size: .85em;
    width: 100%;
    color: #686666 !important;
    line-height: 2.8em;
}

.select_base_type a {

    color: rgb(245, 104, 9) !important;
    font-weight: bold;
    background-color: rgba(255, 225, 208, 0.51);
    border-radius: 10px;
    margin: 6px;
    padding: 6px;
}

.select_base_type #selected{

    color: rgb(245, 104, 9); !important;
    font-weight: bold;
    background-color: rgba(255, 225, 208, 0.51);
    border-radius: 10px;
    margin: 6px;
    padding: 6px;
    border: 2px solid #f48249 !important;

}

/*select sort type text block*/
.select_sort_type {
    padding-left: 13px;
    padding-right: 13px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: .8em;
    width: 100%;
    display: flex;
    color: #3e5768 !important;
    line-height: 2.8em;

}

.select_sort_type a {
    color: rgb(245, 104, 9); !important;
    font-weight: bold;
    background-color: rgba(255, 225, 208, 0.51);
    border-radius: 10px;
    margin: 3px;
    padding: 6px;
}

.select_sort_type #selected_sort{
    color: rgb(245, 104, 9); !important;
    font-weight: bold;
    background-color: rgba(255, 225, 208, 0.51);
    border-radius: 10px;
    margin: 3px;
    padding: 6px;
    border: 2px solid #f48249 !important;
}

@media only screen and (max-width: 499px) {
    .select_sort_type {
        flex-direction: column;
    }
}

.select_village {
  margin-top: 1.75rem;
}


.select_village ul li {
    display: inline-block;
    line-height: 10px;
    padding-left: 10px;
    margin: 13px 0;
}


.select_th_level ul li  {
    display: inline-block;
    line-height: 10px;
    margin: 13px 0;
    padding-left: 10px;

}


.select_th_level ul  {
    display: inline-block;
}


#th_selected {

    color: #fff9f4 !important;
    font-weight: bold;
    background-color:#FA6900;
    border-radius: 10px;
    margin: 0;
    padding: 4px;
    text-decoration: none;
}





.base_item {

    display: inline-block;
    width: 45%;
    padding-top: .7em;
    padding-bottom: 1.3em;
    margin-left: .7em;
    margin-bottom: 14px;
    border: 2px solid rgba(221, 221, 221, 0.81);
    background-color: #ffffff;
    border-radius: 5px;
    text-align: center;
}


.base_image img {
    width: 90%;
    height: auto;

}
.views {display: none;}


.full_base_views {
  display: flex;
  align-items: center;
  height: 100%;
  column-gap: 0.4rem;
  float: right;
  padding-right: 14px;
  font-size: 12px;
}

.small_base_views {}


/* pagination */



.pagination_pages {

    position: relative;
    max-width: 1024px;
    width: 100%;
    padding-bottom: 0;
    padding-top: 18px;
    font-size: 26px;
    text-align: center;
    color: #7d7a79;
    background-color: #ffffff;

}

.pagination_pages a {

    color: rgb(245, 104, 9); !important;
    text-decoration: none;

}

.pagination_pages a:hover {

    color: rgb(245, 104, 9); !important;

}

.pages {

    display: none;
}

.pages a,.pages span {

    margin-right: 7px;
    margin-left: 7px;

}

.page_number {

    font-size: 20px;
    color: #7d7a79;
    margin-left: 20px;
    margin-right: 20px;

}

.nav_points {

    margin: 0;
}


i.icon{
    display: inline-block;
    position: relative;
}

i.back_arrow {
    background:url(/template/icons/left-arrow-orange.svg) no-repeat center;
    width:23px;
    height: 23px;
    top: 4px;

}

i.next_arrow {
    background:url(/template/icons/right-arrow-orange.svg) no-repeat center;
    width:23px;
    height: 23px;
    top: 4px;

}


.back {
    display: inline-block;
    vertical-align: text-top;
    padding-right: 10px;

}

.next {
    display: inline-block;
    vertical-align: text-top;
    padding-left: 10px;

}


.comments {

    padding-left: 1em;
    width: 100%;
    padding-right: 1em;
    padding-top: 10px;

}



/*header*/
.logo_background {
    position: relative;
    height: 70px;
    background-color: #1f1f1f;  /* #6F6F6F;*/
}


.coc_logo {
    display: block;
    position: absolute;
    left: 15px;
    z-index: 4;
    top: -66px;
    background-image: url(/pics/coc_logo.jpg?v2);
    background-repeat: no-repeat;
    width: 125px;
    height: 56px;
    background-size: auto 100%;

}

.layouts_text {

    display: block;
    position: absolute;
    z-index: 4;
    left: 160px;
    top: -45px;
    font-weight: 600;
    color: #fffff9;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px #4f4f4f;
    letter-spacing: 5px;

}
/*header end*/




.layouts_update {

    padding: 0 1em 1.5em 1em;
    font-size: .9em;
    color: #666666;


}

.bottom_tx_description {

    position: relative;
    height: auto;
    border-top: 1px solid #cfcfcf;

    border-bottom: 1px solid #cfcfcf;

    padding-top: 3em;
    padding-bottom: 2em;
    margin-top: 2em;
    background-color: #f9f9f9;
    color: #525052;

    width: 100%;

}

.town_hall_image {

    display: inline-block;
    width: 15%;
    height: auto;
    text-align: center;
    vertical-align: top;

}

.town_hall_image img {

    width: 70%;
}



.town_hall_description {

    display: inline-block;
    width: 83%;
    height: auto;
    margin-bottom: 1em;


}


.bases_type_description {

    width: 100%;
    padding-top: 20px;
    margin-top: 20px;
    padding-left: 10px;
    padding-right: 10px;

}


.supercell_info {

    width: 100%;
    padding-top: 5px;
    padding-bottom: 30px;
    padding-left: 8px;
    padding-right: 8px;
    /*background-color: #d3d8e2;*/

}




.base_border {

    text-align: center;
    width: 100%;
    height: auto;

}

.base_border_wide {

    text-align: center;
    width: 100%;
    height: auto;

}


.base_border img {

    margin: 0;
    padding: 10px;
    width: 97%;
    height: auto;
    background-color: #f3f3f3;
    border: 3px #CCCCCC solid;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    border-radius: 10px;

}

.base_border_wide a img {

    background: #fbfff4;
    border: 2px #7CA777 solid;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    border-radius: 10px;
    width: 100%;
    height: auto;

}


.base_link_block {

    z-index: 100;
    width: 100%;
    min-height: 80px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
}


.no_base_link {
    font-size: 16px;
    margin-top: 4px;
}


a.base_link_button {

    z-index: 100;
    position: absolute;
    display: block;
    left:50%;
    right:1%;
    margin-left: -150px;
    top: 20px;
    text-align: center;
    width: 300px;
    height: 38px;
    color: #ffffff;
    background: #e45d00;
    text-decoration: none;
    font-weight: 400;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -o-border-radius: 4px;
    box-shadow: 0 0 8px #939292;
    -moz-box-shadow: 0 0 8px #939292;
    -webkit-box-shadow: 0 0 8px #939292;
    -o-box-shadow: 0 0 8px #939292;
    transition: background 0.3s;
    -moz-transition: background 0.3s;
    -webkit-transition: background 0.3s;
    -o-transition: background 0.3s;
}

a.base_link_button:hover {

    background: rgba(228, 93, 0, 0.79);
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    border-bottom: 3px solid #e45606;

}

.base_link_button span {
    display: block;
    font-size: 15px;
    text-align: center;
    margin-top: 8px;
    color: #ffffff;


}

.base_credits {

    width: 100%;
    padding-bottom: 10px;



}


.rate_and_views {

    margin-top: 10px;
    height: 52px;
    width: 100%;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    background-color: #fbfbfb;

}


.comments_description {
    width: 100%;
    text-align: center;
    padding: 10px;
    color: #666666;
}

/**base builder credits**/
.base_builder_credits_full {
    color: #767676;
    text-align: center;
    padding: 8px 10px 5px;
    font-size: 14px;
}
.base_builder_credits_full span {
    font-weight: 600;
}



/*rating stars active*/

.stars {
    float: left;
    width: 125px;
    height: 25px;
    padding-top: 12px;
    padding-left: 8px;
}

.stars-box {
  float: left;
  width: 125px;
  height: 25px;
}

.star-rating {
    font-size: 0;
    white-space: nowrap;
    display: inline-block;
    width: 125px;
    height: 25px;
    overflow: hidden;
    position: relative;
    background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
    background-size: contain;
}



.star-rating i {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
    background-size: contain;
}
.star-rating input {
    -moz-appearance: none;
    -webkit-appearance: none;
    opacity: 0;
    display: inline-block;
    width: 20%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 2;
    position: relative;
    cursor: pointer;
}
.star-rating input:hover + i {
    opacity: 1;
}
.star-rating i ~ i {
    width: 40%;
}
.star-rating i ~ i ~ i {
    width: 60%;
}
.star-rating i ~ i ~ i ~ i {
    width: 80%;
}
.star-rating i ~ i ~ i ~ i ~ i {
    width: 100%;
}

/*rating stars frozen*/
.stars-frozen {
  width: 70px;
  height: 14px;
}

.star-rating-frozen {
  font-size: 0;
  white-space: nowrap;
  display: inline-block;
  width: 70px;
  height: 14px;
  overflow: hidden;
  position: relative;
  background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
  background-size: contain;
}

.star-rating-frozen i {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 20%;
  z-index: 1;
  background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
  background-size: contain;
}


.choice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    display: block;
}


/*.adv {*/
/*    max-width: 1024px;*/
/*    text-align: center;*/
/*    width: 100%;*/
/*    min-height: 325px;*/
/*}*/

.adv {
  max-width: 1024px;
  text-align: center;
  width: 100%;
  min-height: 280px;
}

@media (max-width: 487px) {
  .adv {
    min-height: unset;
    aspect-ratio: 1 / 1; /* height = width */
  }
}


.adv_text {
    width: 100%;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 3px;
    font-size: 12px;
    color: grey;
}

/* tags start*/

.tags_block {
    padding: 0 15px 15px 5px;
}
.tags_block span{
    display: inline-block;
    position: relative;
    margin-left: 10px;
    margin-top: 10px;
}
.tags_block a{
    padding-left: 22px;
    font-size: 14px;
}

.tag_icon {
    background:url(/template/icons/tag.svg) no-repeat center;
    width:18px;
    height: 18px;
    margin-top: 1px;
    position: absolute;
    left: 0;
}

.tag_active_icon {
    background:url(/template/icons/tag_active.svg) no-repeat center;
    width:18px;
    height: 18px;
    margin-top: 1px;
    position: absolute;
    left: 0;
}

#tag_active a {
    color: #FFFFFF;
    text-decoration: none;
}

#tag_active {

    background-color:#FA6900;
    border-radius: 5px;
    padding: 2px;

}

/*tags end*/


.coc_update {
    width: 100%;
    padding: 10px 8px;
    margin: 10px 0;
    background-color: rgba(161, 231, 255, 0.38);
}

.similar_bases_block {
  border-top: 1px solid #ebebeb;
  margin-top: 10px;
}
.similar_bases_block h2 {
  font-size: 1.25rem;
  font-weight: bold;
  padding: 1.5rem 1rem 0 1rem;
  color: rgb(245, 104, 9);
}


.similar_bases_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1.25rem;
  column-gap: 1.25rem;
  padding: 1rem;
}

/*small base, all bases, similar bases*/
.small_base {
  border: 2px solid rgba(221, 221, 221, .81);
  border-radius: 5px;
  position: relative;
}

.small_base_img {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  padding: 2px;
}

.small_base_bottom_block {
  padding: 6px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.views_block {
  display: flex;
  align-items: center;
  column-gap: 0.3rem;
}


.labels_wrapper {
  position: absolute;
  display: flex;
  row-gap: 0.625rem;
  padding: 8px 6px;
  flex-direction: column;
  right: 0;
}

.label_container {
  display: flex;
  justify-content: flex-end;
}

/*core label*/
.label_std {
  z-index: 10;
  background-color: #217edd;
  color: white;
  padding: 1px 4px;
  opacity: .9;
  font-size: 11px;
  border-radius: 4px;
}

/*full base top nav block*/

.top_nav_block {
  margin-top: 1rem;
  display: flex;
  padding: 1rem;
  background-color: #fbfbfb;
  margin-bottom: 1rem;
  border-top: #ebebeb 1px solid;
  border-bottom: #ebebeb 1px solid;
}

.top_nav_block > div > a {
  display: flex;
  align-items: center;
  text-decoration: none;
}


.flat_button {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.flat_button > a {
  color: #ffffff;
  background: #e45d00;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
}



@media only screen and (min-width: 360px) {

  .base_grid_bottom  {
    padding: 6px;
  }

}



@media only screen and (min-width: 480px) {


    .views_block_mg {
      display: flex;
    }


  .similar_bases_grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .base_label {
        position: absolute;
        font-size: 12px;
        right: 9.8%;
        height: 18px;
        line-height: 18px;

    }

    .link_label {
        top: 8%;

    }

    .year_label, .new_label {
        top: 17.5%;
    }


    .th_item {
        width: 32%;
    }


    .base_item {
        width: 45%;
        padding-top: 1.3em;
        padding-bottom: 1.3em;
        margin-left: 1em;
        margin-bottom: 14px;

    }


    /* base views */
    .views {
        display: block;
        float: right;
        padding-right: 14px;
        color: #a9b0b6;
        font-size: 12px;
    }

    .views span {
        padding-top: 16px;
        float: right;
    }

    .views img{
        float: right;
        padding-top: 14px;
        padding-right: 5px;
        opacity: 0.5;

    }



    .page_number {

        display: none;

    }

    .pages {

        display: inline-block;
        vertical-align: text-top;

    }


    i.back_arrow {
        top: 2px;
    }

    i.next_arrow {
        top: 2px;
    }



    .base_border img {
        width: 82%;

    }




}

@media only screen and (min-width: 670px) {

  .bases_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .base_grid_bottom {
    padding: 8px 6px;
  }

}


@media only screen and (min-width: 768px) {

  .bases_grid {
    row-gap: 2rem;
    column-gap: 2rem;
    padding: 0.25rem 1.75rem 0.5rem;
  }


  .similar_bases_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }


  .base_label {
        position: absolute;
        font-size: 12px;
        right: 8%;
        height: 18px;
        line-height: 18px;
    }

    .link_label {
        top: 8%;

    }

    .year_label, .new_label {
        top: 16%;
    }


    .th_item {
        width: 24%;
    }

    .th_item img {

        width: 60%;

    }


    .base_item {

        width: 30%;
        margin-left: 1.7em;

    }

    .base_border img {

        width: 75%;

    }


}

@media only screen and (min-width: 1024px) {
  .similar_bases_grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }


}

/* base link submission form */
.base_link_submission {
  width: 100%;
  padding: 20px 15px;
  margin-top: 10px;
  background-color: #fbfbfb;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  color: #525052;
  font-size: 13px;
  line-height: 1.6;
}

.base_link_submission form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}

.base_link_submission input[type="text"] {
  flex: 1 1 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif, tahoma, arial;
  box-sizing: border-box;
}

.base_link_submission input[type="text"]:focus {
  outline: none;
  border-color: rgb(245, 104, 9);
  box-shadow: 0 0 5px rgba(245, 104, 9, 0.3);
}

.base_link_submission button[type="submit"] {
  padding: 10px 30px;
  background-color: #e45d00;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif, tahoma, arial;
  transition: background 0.3s;
}

.base_link_submission button[type="submit"]:hover {
  background-color: rgba(228, 93, 0, 0.79);
}

@media only screen and (min-width: 480px) {
  .base_link_submission input[type="text"] {
    flex: 1 1 calc(50% - 5px);
  }
}

/* submission messages */
.submission-message {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* loading spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinner-rotate 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spinner-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* next/prev base navigation buttons */
.next_prev_base_buttons {
  display: flex;
  justify-content: space-between;
  margin: 15px 13px;
}

.prev_base_button,
.next_base_button {
  background-color: rgba(255, 225, 208, 0.51);
  color: rgb(245, 104, 9);
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prev_base_button:hover,
.next_base_button:hover {
  background-color: rgba(255, 225, 208, 0.8);
  color: rgb(245, 104, 9);
}

.prev_base_button {
  padding: 10px 10px 10px 7px;
}

.next_base_button {
  padding: 10px 7px 10px 10px;
}