/*
 * Name: Herr GrayGray
 * Target: Main
 * Author: Leon Watermann
 * Website: leonsdepot.de
 * Version: 1.0.0
 */

/*
 * Ressources
 */

:root {
  --whitePrimary: #fafafa;
  --grayPrimary: #888888;
  --graySecondary: #f2f0f0;
  --grayHighlight: #D4D4D4;
  --grayActive: #6d6d6d;
}

@font-face {
  font-family: OpenSans;
  src: url(../font/OpenSans-Regular.ttf);
}

/*
 * Elements
 */

/* Structures */

* {
  margin: 0px;
  padding: 0px;
  font-family: "OpenSans", sans-serif;
  box-sizing: border-box;
}

body {
  height: auto;
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

header {
  width: 100%;
  max-width: 900px;
}

header h1, header p {
  text-shadow: 2px 2px 10px black;
  color: var(--whitePrimary);
}

#navigation {
  height: 60px;
  width: 100%;
  max-width: 900px;
  padding: 0px;
  display: flex;
  justify-content: space-between;
  background-color: var(--grayPrimary);
  border-radius: 10px;
  box-shadow: 2px 2px 10px black;
}

#navigation > #siteNavigation {
  display: flex;
}

#navigation > #siteNavigation > #siteNavigationButton {
  display: none;
}

#navigation > #siteNavigation > #siteNavigationBar {
  display: flex;
}

main {
  height: 100%;
  width: 100%;
  max-width: 900px;
  padding: 30px;
  flex-grow: 1;
  background-color: var(--whitePrimary);
  border-radius: 10px;
  box-shadow: 2px 2px 10px black;
}

footer {
  width: 100%;
  max-width: 900px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background-color: var(--grayPrimary);
  border-radius: 10px;
  box-shadow: 2px 2px 10px black;
}

section {
  width: 100%;
}

/* Collections */

ul {
  list-style-position: inside;
  list-style-type: circle;
}

/* Media */

img {
  border-radius: 5px;
}

figure {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

figure > img {
  max-height: 250px;
  width: 100%;
  max-width: 500px;
}

figure > figcaption {
  color: var(--grayPrimary);
}

.icons {
  height: 100%;
  width: 30px;
  cursor: pointer;
}

.iconsSvg path {
  fill: var(--whitePrimary);
}

.iconsBurger div {
  height: 5px;
  width: 100%;
  margin: 6px 0;
  background-color: var(--whitePrimary);
  border-radius: 2px;
}

/* Controls */

.button {
  padding: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--grayPrimary);
  border-radius: 5px;
  text-decoration: none;
  color: var(--whitePrimary);
}

.button.selected {
  background-color: var(--grayActive);
}

.buttoNavigation {
  height: 100%;
  border-radius: 0px;
}

.buttoNavigation:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.buttoNavigation:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.buttonSmall {
  padding-top: 1px;
  padding-bottom: 1px;
}

.buttonWithIcon {
  padding: 0px;
}

.buttonWithIcon > .iconsSvg, .buttonWithIcon > .iconsBurger {
  width: 54px;
  padding: 12px;
}

.bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-auto-rows: minmax(170px, 1fr);
}

.bubble {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bubble p {
  color: var(--grayPrimary);
}

.bubble > a {
  height: 100%;
  width: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background-color: var(--whitePrimary);
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 2px 2px 5px var(--grayPrimary);
}

.bubble > a > .bubbleImg {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: var(--graySecondary);
  border-radius: 20px;
}

.bubble > a > .bubbleImg > img {
  height: 100%;
  max-width: 100%;
  padding: 10px;
  position: absolute;
  flex-shrink: 0;
  border-radius: 24px;
}

.bubble > a > .bubbleText {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  flex-grow: 1;
}

/* Fonts */

h1 {
  width: fit-content;
  position: relative;
  display: block;
  font-size: 96px;
}

h1::after {
  height: 12px;
  width: 210px;
  position: absolute;
  top: 103%;
  bottom: 0px;
  left: 62%;
  display: block;
  content: "";
  background-image: url(../img/objects/balken_bunt_3.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 5px;
}

h2 {
  width: fit-content;
  padding-bottom: 12px;
  position: relative;
  font-size: 24px;
}

h2::after {
  height: 12px;
  width: 90%;
  position: absolute;
  bottom: 0px;
  display: block;
  content: "";
  background-image: url(../img/objects/balken_bunt_4.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 5px;
}

p {
  font-size: 14px;
}

.note {
  background-color: var(--grayPrimary);
}

.note p {
  color: var(--whitePrimary);
}

.title {
  font-size: 11px;
}

.caption {
  font-size: 10px;
}

.text {
  font-size: 14px;
  line-height: 1.5;
}

/*
 * Animations
 */

.button:hover {
  background-color: var(--grayHighlight);
  color: var(--grayPrimary);
  transition: 0.5s;
}

.button:hover > .iconsSvg > path {
  fill: var(--grayPrimary);
}

.button:hover > .iconsBurger div {
  background-color: var(--grayPrimary);
}

.bubble {
  padding: 2px;
  transition: 0.5s;
}

.bubble:hover {
  padding: 0px;
}

.bubble:hover > a {
  background-color: var(--grayHighlight);
}

.iconsBurger div {
  transition: 0.4s;
}

.iconsBurger.change > .burgerBar1 {
  -webkit-transform: rotate(-45deg) translate(-9px, 6px);
  transform: rotate(-45deg) translate(-9px, 6px);
}

.iconsBurger.change > .burgerBar2 {
  opacity: 0;
}

.iconsBurger.change > .burgerBar3 {
  -webkit-transform: rotate(45deg) translate(-8px, -8px);
  transform: rotate(45deg) translate(-8px, -8px);
}

/*
 * Spacings
 */

.bubbles {
  gap: 12px;
}

.text, figure img, ul {
  margin-bottom: 12px;
}

h2 {
  margin-bottom: 18px;
}

h3, h4 {
  margin-bottom: 12px;
}

header, #navigation, main, footer {
  margin-bottom: 20px;
}

header {
  margin-top: 20vh;
  margin-bottom: 40px;
}

section, figure {
  margin-bottom: 34px;
}

main *:last-child {
  margin-bottom: 0px;
}
