*,
*:after,
*:before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: 0;
}

body,
html {
  height: 100%;
  width: 100vw;
  font-size: 20px;
  line-height: 25px;
  font-smooth: always;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-text-size-adjust: 100%;
  -webkit-touch-callout: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-family: sans-serif;
}

#content {
  padding: 1vw;
}

#content .item:not(tr) {
  margin-top: 1vw;
  padding: 1vw;
  background-color: white;
  float: left;
}

.item a {
  position: relative;
  display: block;
}

.item img {
  display: block;
  width: 100%;
}

#content .item img {
  width: 100%;
  float: left;
}

#content .item .caption {
  float: left;
  clear: both;
}

#content h1, #content p {
  margin-top: 1vw;
}

nav {
  z-index: 99;
  padding: 1vw;
  position: fixed;
}

nav li {
  display: inline-block;
}

nav li a {
  color: black;
  text-decoration: none;
}

nav li a.active {
  font-weight: bold;
}

main {
  width: 75vw;
  display: block;
  padding-top: 4vw;
  height: 100vh;
  position: fixed;
  top: 0vw;
  left: 0;
  overflow: scroll;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5vw;
}

main .item:not(tr) {
  width: calc(25% - 0.5vw);
}

label {
  display: inline-block;
  cursor: pointer;
}

input {
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

#items {
  display: flex;
  flex-wrap: wrap;
}

.filterz {
  position: fixed;
  right: 0;
  width: 25vw;
  top: 0vw;
  height: 100vh;
  overflow: scroll;
}

.color, .colors {
  width: 100%;
  display: block;
  margin-right: 1vw;
  display: flex;
  flex-wrap: wrap;
}

.color span, .colors span {
  height: 4vw;
  width: 4vw;
}

td, tr {
  min-width: 4vw;
  padding: 0.5vw;
  text-align: left;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
}

thead th {
  padding: 0.5vw;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}

.hidden {
  display: none !important;
}

.flip {
  position: relative;
  display: inline-block;
  perspective: 1000px;
}

.flip img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

/* Make sure the container has size from the front image */
.flip .front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}

.flip .back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* On hover, flip the front out and back in */
.flip:hover .front {
  transform: rotateY(180deg);
}

.flip:hover .back {
  transform: rotateY(0deg);
  z-index: 3;
}

.comment {
  width: 2vw;
  height: 2vw;
  top: -0.5vw;
  left: -0.5vw;
  position: absolute;
  background-color: red;
  z-index: 9;
  border-radius: 100%;
}