*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Margin";
  src: url("font/margin/Margin\ DEMO.otf");
  font-weight: normal;
  font-style: normal;
}

/* =========================
   Variabler
========================= */
:root {
  --green: #C3C471;
  --softlight: #FFFFBF;
  --paws: #FFF68C;
  --black: #000;
  --pink: #FFBFDB;
  --h1-font-family: "Caveat", Helvetica, sans-serif;
  --h1-font-size: 64px;
  --h1-font-weight: 400;
  --h3-font-family: "Inter-Regular", Helvetica, sans-serif;
  --h3-font-size: 24px;
  --h3-font-weight: 400;
}

/* =========================
   Body / startsida container
========================= */
body {
  margin: 0;
  font-family: var(--h3-font-family);
  font-size: clamp(14px, 2.5vw, 22px);
  background-color: #FFF68C;
  color: var(--black);
}

/* =========================
   Loading screen
========================= */

.loader {
  position: fixed;
  inset: 0;
  background: var(--softlight);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader {
  position: fixed;
  inset: 0;
  background: #FFF68C;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 9999;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader img {
  width: 120px;
  animation: bounce 1s infinite ease-in-out;
}

.loader p {
  font-family: "Caveat", sans-serif;
  font-size: 28px;
}

.loading-text {
  font-size: 24px;
  font-family: sans-serif;
}

.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.dots span {
  width: 6px;
  height: 6px;
  background: black;
  border-radius: 50%;
  display: block;
  animation: bounce 1s infinite ease-in-out;
}

.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* =========================
   Header / hero
========================= */
.header {
  width: 100%;
  background-color: var(--green);

  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.logo {
  font-family: "Margin";
  font-weight: var(--h1-font-weight);
  font-size: clamp(42px, 10vw, 122px);
  color: var(--softlight);
  text-align: center;

  position: absolute;
  top: 64%;
  left: 46%;
  transform: translate(-50%, -50%);

  z-index: 2;
  margin: 0;
}

.hamburger {
  position: absolute;
  top: 20px;
  left: 20px;

  width: 40px;
  height: 28px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: none;
  border: none;
  cursor: pointer;

  z-index: 7;
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: var(--softlight);
  border-radius: 3px;
  transition: 0.25s ease;
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.3);

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;

  z-index: 5;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}


.side-menu a {
  color: black;
  font-size: clamp(18px, 5vw, 32px);
  text-decoration: none;
  font-family: "Caveat";
}

.side-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  height: 100%;

  width: 280px;

  background: var(--softlight);
  backdrop-filter: blur(10px);

  box-shadow: -10px 0 30px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 30px;

  padding: 100px 30px;

  transform: translateX(-100%);
  transition: transform 0.35s ease;

  z-index: 6;
}

.side-menu.active {
  transform: translateX(0);
}

.hamburger.active span {
  background: var(--black);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* =========================
   Katter
========================= */
.katter-bild {
  width: 100%;
  height: auto;
}

.katter-bild img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Meny / navigation
========================= */
.main::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("img/paw-print-background-pattern/Paw Print Background Pattern.jpg");
  background-size: 400px 400px;
  background-repeat: repeat;

  opacity: 0.1;
}

.main {
  padding: 20px 30px;

  background-color: var(--paws);

  margin-top: -10px;

  position: relative;
  z-index: 2;
  
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);

  font-family: Helvetica, sans-serif;
  font-size: clamp(18px, 20px, 22px);
}

.main-container {
  margin: 10px auto; 
  padding: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;

  background-color: var(--softlight);
  position: relative;
  z-index: 1;
}

.intro {
  padding: 10px 40px;
  max-width: 1000px;

  text-align: center;
  margin-bottom: 20px;
}

.kattungar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  max-width: 1000px;
}

.kattungar .mail {
  color: var(--black);
  text-decoration: underline;
}

.kattungar-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-kattunge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-kattunge h2 {
  margin-bottom: 2px;
}

.kattunge-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
}

.kattunge-btn {
  padding: clamp(10px, 16px, 20px);
  border-radius: 20px;
  margin: 0;

  font-family: "caveat", "margin", Helvetica, sans-serif;
  font-size: clamp(24px, 2.5vw, 28px);

  background-color: var(--paws);
  color: var(--black);
  text-decoration: none;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.kattunge-btn:hover {
  opacity: 0.8;
}

.kattunge-btn:active {
  transform: translate(1px, 4px);
  box-shadow: 0px 0px 2px #0000004c;
  opacity: 1;
}

.kattungar-container img {
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  
}

.vuxna-katter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;

  max-width: 1000px;

  text-align: center;

  margin: 20px auto;       
}

.katt-btns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;

  flex-wrap: wrap;

  max-width: 1000px;
}

.katt-btn {
  position: relative;
  display: block;
  width: 170px;
  height: auto;

  border-radius: 20px;
  margin: 0;
  overflow: hidden;

  text-decoration: none;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.katt-btn:hover {
  opacity: 0.8;
}

.katt-btn:active {
  transform: translate(2px, 6px);
  box-shadow: 0px 0px 4px #0000004c;
  opacity: 1;
}

.katt-btn img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  overflow: hidden;
}

.katt-namn {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: clamp(3px, 10px, 12px);
  text-align: center;

  background-color: rgb(255, 245, 140);
  
  border-radius: 0px 0px 10px 10px;
  
  font-family: "caveat", Helvetica, sans-serif;
  font-size: clamp(24px, 2.5vw, 28px);
  color: var(--black);
}

/* =========================
   Footer
========================= */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;

  background-color: var(--green);
  padding: 60px 20px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;

  display: flex;
  justify-content: space-around;
}

.footer-left {
  display: flex;
}

.footer-right {
  display: flex;
  gap: 40px;
}

.footer-sektion {
  display: flex;
  flex-direction:column;
  align-items: flex-start;
  gap: 12px;
  width: auto;
}

.footer-sektion h3 {
  font-family: "Margin";
  font-size: 32px;
  letter-spacing: 2px;
  margin: 0;
  text-align: left;
}

.footer-sektion p,
.footer-sektion a {
  font-size: 16px;
  color: var(--black);
  text-decoration: none;
  text-align: left;
}

.footer-sektion ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sektion ul li {
  margin-bottom: 8px;
}

.footer-sektion ul li a {
  text-decoration: none;
  color: var(--black);
}

.footer-attribution {
  align-self: center;
  display: block;
  margin-top: 40px;
  text-align: center;
  opacity: 0.6;

  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.footer-attribution:hover {
  text-decoration: underline;
  color: rgba(0, 0, 0, 0.8);
}


@media (max-width: 900px) {
  .logo {
    font-size: 98px;
    top: 64%;
    left: 46%;
  }

  .side-menu {
    width: 100%;
    gap: 3px;
  }

  .side-menu a {
    font-size: 18px;
  }

  .nav-kattunge {
    text-align: center;
  }

  .nav-kattunge p {
    text-align: center;
  }

  .katter-bild {
    margin-top: -20px;
  }

  .katt-btns {
    gap: 10px;

    flex-wrap: wrap;
  }

  .main-container {
    margin: 10px auto; 
    padding: 20px;
    gap: 60px;
  }

  .intro {
    padding: 10px 10px;
    align-items: center;
    margin: 0 auto;
  }

  .katt-btn {
    width: 130px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .footer-right {
    flex-direction: column;
    gap: 40px;
  }

  .footer-sektion {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 700px) {

  .logo {
    font-size: 94px;
    top: 64%;
    left: 42%;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 52px;
    top: 64%;
    left: 40%;
  }
  
  :root {
    --h1-font-size: 42px;
    --h1-font-weight: 300;
    --h3-font-family: "Inter-Regular", Helvetica, sans-serif;
    --h3-font-size: 34px;
    --h3-font-weight: 300;
  }
}

