html {
  height: 100vh;
  overflow: hidden;
}
body {
  padding: 100px;
  /*display: flex;*/
  /*flex-flow: wrap;*/
  font-family: "Trebuchet MS", sans-serif;
}
.card-container {
  width: 35%;
  padding-right: 50px;
  padding-left: 50px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card {
  font-weight: bold;
  position: relative;
  height: auto;
  min-width: 50% !important;
  z-index: 1;
}
.card a {
  padding: 4px;
  width: 100%;
  height: 80px;
  border: 6px solid transparent;
  background: #FFEBC7;
  text-decoration: none;
  text-align: center;
  color: black;
  display: block;
  transition: 0.4s ease;
}
.card a:hover {
  transform: rotate(-3deg);
  translate: 0 -20px;
  border-color: #F56925;
}
.card a:hover .card--display {
  display: none;
}
.card a:hover .card--hover {
  display: block;
}
.card a .card--hover {
  display: none;
}
.card a .card--hover h2 {
  margin: 20px 0;
}
.card a .card--hover p {
  font-weight: bold;
  line-height: 1.5;
}
.card a .card--hover p.link {
  margin: 14px 0 0;
  font-weight: bold;
  font-size: 24px;
  color: #F56925;
}
.card .card--border {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: none;
  z-index: -1;
}
.kaleidoscope {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: gold;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
.kaleidoscope__segment {
  position: absolute;
  left: 0;
  top: 50%;
  height: 100vmax;
  width: 50%;
  z-index: 0;
  overflow: hidden;
  transform-origin: 100% 0;
}
.kaleidoscope__segment:nth-child(1) {
  transform: rotate(45deg);
}
.kaleidoscope__segment:nth-child(2) {
  transform: rotate(90deg);
}
.kaleidoscope__segment:nth-child(3) {
  transform: rotate(135deg);
}
.kaleidoscope__segment:nth-child(4) {
  transform: rotate(180deg);
}
.kaleidoscope__segment:nth-child(5) {
  transform: rotate(225deg);
}
.kaleidoscope__segment:nth-child(6) {
  transform: rotate(270deg);
}
.kaleidoscope__segment:nth-child(7) {
  transform: rotate(315deg);
}
.kaleidoscope__segment:nth-child(8) {
  transform: rotate(360deg);
}
.kaleidoscope__image {
  position: relative;
  top: 0;
  left: 100%;
  height: 100%;
  width: 100%;
  background-image: url('https://ivo-habitus.neocities.org/knotbrownvervanje.png');
  background-position: center;
  transform-origin: 0 0;
  transform: scaleX(-1) rotate(0deg);
  transition: background-position 1.5s;
}
.kaleidoscope__segment:nth-child(2n) .kaleidoscope__image {
  transform: rotate(45deg);
}