/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  background-color: #111;
  margin: 0;
  padding: 0;
  font: icon;
}

body {
  margin: 0;
  padding: 0;
}
p {
  margin: 0;
  padding: 0;
}
h1 {
  margin-left: 50px;
  color: #6dbeec;
}

.scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #6dbeec #222;
}

#catalog {
  display: block;
  position: absolute;
  top: 200px;
  left: 10px;
  width: 800px;
  height: 600px;
  background: none;
  overflow: hidden;
}

#catalog_header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: none;
  margin-left: 10px;
}

.item_category_tab  {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  background-color: #222;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: 1px solid #000;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}

.item_category_tab img{
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
}

.hidden {
  display: none !important;
}

#catalog_body {
  position: absolute;
  top: 80px;
  left: 0;
  /*right:-20px;*/
  width: 100%;
  height: calc(100% - 130px);
  background-color: #333;
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 10px 10px 10px 10px;
  box-sizing: border-box;
  overflow-y: scroll;
}

.item {
  position: relative;
  width: 97px;
  height: 105px;
  display: inline-block;
  float: left;
}
.item img {
  position: absolute;
  top: 5px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}
.item_name {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 20px;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

#item_counter {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 100%;
  height: 50px;
  color: #6dbeec;
  font-size: 30px;
  line-height: 50px;
}

#filters_container {
  position: absolute;
  top: 75px;
  left: 10px;
  width: 800px;
  height: 108px;
  background-color: #333;
  border: 3px solid #000;
  border-radius: 10px 10px 10px 10px;
  color: #fff;
}

#filters {
  position: absolute;
  left: 0;
  top: 39px;
  width: 100%;
  height: calc(100% - 39px);
}

.title {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 20px;
  font-size: 26px;
  color: #6dbeec;
}

.filter {
  position: relative;
  display: table;
  text-align: center;
  float: left;
  top: 10px;
  height: 40px;
  width: calc(20% - 12px);
  border: 2px solid #000;
  border-radius: 10px;
  box-sizing: border-box;
  margin-left:10px;
  overflow: hidden;
  background-color: #222;
}

button {
  background: none;
  color: #FFF;
  font-size: 16px;
  position: relative;
  top: 0;
  left: 0;
  height: 50px;
  width: 100%;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #6dbeec !important;
}

.filter:hover {
}

.filter_options {
  position: absolute;
  left: 0;
  top: 50px;
  width: 100%;
  overflow-y: scroll;
  max-height: 350px;
}
