/* http://meyerweb.com/eric/tools/css/reset/
   v5.0.2 | 20191019
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
  display: none;
}

body {
  line-height: 1;
}

menu, ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.roboto-regular {
  font-family: "Roboto", system-ui;
  font-weight: 400;
  font-style: normal;
}

.roboto-bold {
  font-family: "Roboto", system-ui;
  font-weight: 700;
  font-style: normal;
}

.roboto-regular-italic {
  font-family: "Roboto", system-ui;
  font-weight: 400;
  font-style: italic;
}

body, html {
  font-family: "Roboto", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 62.5%;
}
@media (max-width: 720px) {
  body, html {
    font-size: 42%;
  }
}
@media (min-width: 721px) {
  body, html {
    font-size: 55%;
  }
}
@media (min-width: 1000px) {
  body, html {
    font-size: 62.5%;
  }
}

#header {
  height: 15rem;
  width: calc(100% - 20rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0 10rem;
  background-color: white;
}
#header span {
  font-size: 5rem;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  #header {
    justify-content: center;
    padding: 0 0rem;
    width: 100%;
  }
  #header span:first-of-type {
    display: none;
  }
}
@media (min-width: 721px) {
  #header {
    padding: 0 5rem;
    width: calc(100% - 10rem);
  }
  #header span {
    font-size: 3rem;
  }
}
@media (min-width: 880px) {
  #header {
    padding: 0 5rem;
    width: calc(100% - 10rem);
  }
  #header span {
    font-size: 4rem;
  }
}

#content {
  background-color: #C5C1C1;
  height: calc(100vh - 15rem);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: inset 0px 20px 16px 10px rgba(47, 47, 47, 0.18);
  position: relative;
}
#content #bottom {
  width: 100%;
  height: 3rem;
  display: block;
  position: absolute;
}

.itemContainer {
  perspective: 1200px;
  width: 40rem;
  height: 35rem;
  position: absolute;
  z-index: 1;
  filter: drop-shadow(20px 20px 16px rgba(47, 47, 47, 0.18));
}
.itemContainer .rotater {
  width: 100%;
  height: 100%;
  top: 10rem;
  left: 0;
  transition: transform 0.5s ease-in-out;
}
.itemContainer .iframe {
  display: none;
}
.itemContainer .iframe iframe {
  display: none;
}
.itemContainer.expanded {
  width: calc(100dvw - 4rem);
  height: calc(100dvh - 20rem);
  transition: height 0.5s ease-in, width 0.5s ease-in, top 0.5s ease-in, left 0.5s ease-in;
}
.itemContainer.expanded .iframe {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.itemContainer.expanded .iframe iframe {
  display: block;
  transform: rotate3d(0, 1, 0, 180deg);
  width: calc(100dvw - 4rem);
  height: calc(100dvh - 20rem);
  background-color: white;
}
.itemContainer.expanded .info {
  background-color: transparent;
}
.itemContainer.open .rotater {
  transform: rotate3d(0, 1, 0, 180deg);
}
.itemContainer.close {
  opacity: 1;
}
@media (max-width: 720px) {
  .itemContainer {
    width: 80vw;
    height: auto;
    aspect-ratio: 1.25/1;
  }
}
.itemContainer:focus {
  cursor: grabbing;
}
.itemContainer h2 {
  cursor: grab;
}
.itemContainer img, .itemContainer h2 {
  user-select: none;
}
.itemContainer .item {
  width: 100%;
  height: calc(100% - 1rem);
  padding-top: 1rem;
  background-color: white;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  position: absolute;
}
.itemContainer h2 {
  font-size: 3rem;
  height: 5rem;
  text-align: center;
}
.itemContainer .imageContainer {
  width: 100%;
  height: calc(100% - 5rem);
  flex-shrink: 4;
  position: relative;
  cursor: pointer;
}
.itemContainer .imageContainer .bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 10000;
}
.itemContainer .imageContainer img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
}
.itemContainer .info {
  position: absolute;
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
  background-color: white;
  color: black;
  border-radius: 5px;
  pointer-events: all;
  cursor: default;
  transform: rotate3d(0, 1, 0, 180deg);
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding: 2rem;
  gap: 1rem;
}
.itemContainer .info p {
  font-size: 3.2rem;
}
.itemContainer .info .link {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.itemContainer .info a {
  font-size: 2rem;
  text-decoration: none;
  cursor: pointer;
  pointer-events: fill;
}
.itemContainer .info a:visited {
  color: black;
}
.itemContainer .info a.empty {
  display: none;
}
.itemContainer .info a:hover {
  text-decoration: underline;
}
.itemContainer .info p.go:not(.empty) {
  font-size: 3rem;
  cursor: pointer;
}
.itemContainer .info p.go:not(.empty):hover {
  text-decoration: underline;
}
.itemContainer .info p.empty {
  display: none;
}

#settings {
  width: 6rem;
  height: 6rem;
  background-color: white;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 50000;
  border-radius: 50%;
  display: flex;
  max-height: 6rem;
  filter: drop-shadow(20px 20px 16px rgba(47, 47, 47, 0.18));
  transition: max-height 0.2s ease-in;
  overflow: hidden;
}
@media (max-width: 720px) {
  #settings {
    display: none;
  }
}
#settings #closer {
  display: none;
  width: 100%;
  font-size: 1.5rem;
  font-style: bold;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
#settings:hover {
  filter: drop-shadow(10px 10px 6px rgba(47, 47, 47, 0.18));
  transform: scale(1.2);
}
#settings.open {
  transform: scale(1);
  filter: drop-shadow(10px 10px 6px rgba(47, 47, 47, 0.18));
  width: 30rem;
  height: auto;
  max-height: 40rem;
  border-radius: 15px;
}
#settings.open #close {
  display: block;
}
#settings.open #open {
  display: none;
}
#settings.open #nav {
  display: block;
}
#settings #close {
  display: none;
}
#settings #navContainer {
  position: relative;
  width: 100%;
  height: 100%;
}
#settings #navContainer #icon {
  cursor: pointer;
  width: 6rem;
  height: 6rem;
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
#settings #navContainer #icon svg {
  width: 50%;
  height: 50%;
}
#settings.closeSite #navContainer {
  display: none;
}
#settings.closeSite #closer {
  display: flex;
}
#settings #nav {
  display: none;
  margin: 2rem 2rem 2rem 6rem;
  width: calc(100% - 8rem);
}
#settings #nav h2 {
  font-size: 2rem;
}
#settings #nav p {
  font-size: 1.7rem;
}
#settings #nav .flexbox {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  height: max-content;
  margin-bottom: 2rem;
}
#settings #nav .flexbox p {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: #C5C1C1;
  cursor: pointer;
}
#settings #nav .flexbox p:hover, #settings #nav .flexbox p.active {
  background-color: #ebeaea;
}
#settings #nav #sort p {
  margin: 1rem 0;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: #C5C1C1;
  cursor: pointer;
}
#settings #nav #sort p:hover, #settings #nav #sort p.active {
  background-color: #ebeaea;
}
