:root {
  --primary-bg: #1a1a1a;
  --white: #fff;
  --o1: #f87706;
  --b1: #dd2c18;
  --g1: #259d1e;
  --bl1: #b132a5;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--primary-bg);
  font-family: "Nunito", sans-serif;
}

/* SECTION */
.home {
  width: 100%;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding: 100px 80px 50px;
  background-color: var(--primary-bg);
  box-sizing: border-box;
}

/* TEXT */
.description {
  color: rgb(205, 205, 204);
  max-width: 45rem;
  min-width: 20rem;
  margin: auto;
}

.description > h1 {
  font-family: "Tilt Neon", sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  background-color: var(--primary-bg);
  text-align: center;
  margin-bottom: 30px;
  padding: 0;
  border-radius: 10px;
  line-height: 1;
}

.gradient-text {
  background-image: linear-gradient(
    90deg,
    rgb(218, 52, 19) 0%,
    #cb32d0 30%,
    rgb(247, 130, 47) 50%,
    rgb(63, 210, 26) 100%
  );
  -webkit-background-clip: text;
  color: transparent;
}

.description > h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  color: white;
  margin: 3rem auto 1rem;
}

.description > p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 1rem;
  font-weight: 300;
  color: var(--white);
}

/* RIGHT CONTAINER */
.right-container {
  display: grid;
  margin: auto;
}

.item-box {
  display: grid;
  padding: 100px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
}

.item-box a {
  text-decoration: none;
}

.item-box p {
  font-size: 1.6rem;
  color: var(--white);
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}


.item1, .item2, .item5, .item6 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5),
              inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

.item1 {
  background-color: var(--o1);
  border-radius: 5rem 0 5rem 0; /* diagonal snitt */
}

.item2 {
  background-color: var(--b1);
  border-radius: 5rem 0 5rem 5rem; /* asymmetrisk bubbla */
}

.item5 {
  background-color: var(--g1);
  border-radius: 5rem 5rem 0 0; /* topp-bubbla */
}

.item6 {
  background-color: var(--bl1);
  border-radius: 5rem; /* helt rund (cirkel) */
}




 @keyframes shake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-2px, 2px) rotate(-1deg); }
  40%  { transform: translate(2px, -2px) rotate(1deg); }
  60%  { transform: translate(-1px, 1px) rotate(-1deg); }
  80%  { transform: translate(1px, -1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.item1:hover {
  animation: shake 0.4s ease;
}

.item2:hover {
  animation: shake 0.4s ease;
}

.item5:hover {
  animation: shake 0.4s ease;

}

.item6:hover {
  animation: shake 0.4s ease;
}

/* RESPONSIVE */
@media screen and (max-width: 40rem) {
  .home {
    padding: 100px 20px;
  }
}

@media screen and (max-width: 27rem) {
  .item-box {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .item1, .item2, .item5, .item6 {
    width: 8rem;
    height: 8rem;
  }

  .item-box p {
    font-size: 1.1rem;
  }

  .description > h1 {
    font-size: 3.5rem;
  }

  .home {
    padding: 5rem 0 1rem 0;
  }
}
