@charset "utf-8";

/* =======================================
   GLOBALA VARIABLER OCH BAS
======================================= */

:root {
  --site-max: 1400px;
  --gold: #917b4c;
  --gold-dark: #7a6a2f;
  --gold-hover: #5c4f22;
  --page-bg: #9f9b9b;
  --content-bg: #d3d2d2;
  --light-bg: #e9e9e9;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Comic Sans MS", cursive;
  background-color: var(--page-bg);
}

#wrapper {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* =======================================
   HEADER OCH HUVUDRAM
======================================= */

#ram {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 15px 0;
  text-align: center;
  background-color: var(--content-bg);
  border: 2px groove #999;
}

#ram h1 {
  margin: 20px 0;
  font-family: "Lucida Calligraphy", serif;
  font-size: 100px;
  color: var(--gold);
}

#ram h2 {
  margin: 5px 0;
  font-family: Georgia, serif;
  font-size: 40px;
  color: var(--gold);
}

#ram h3 {
  margin: 5px 0;
  font-family: Georgia, serif;
  font-size: 30px;
  color: var(--gold);
}

#ram h4 {
  margin: 10px 0;
  font-family: "Comic Sans MS", cursive;
  font-size: 20px;
  color: #444;
}

/* =======================================
   DATUM OCH SPRÅKVAL
======================================= */

#date-wrap {
  margin-top: 25px;
}

#date {
  font-size: 16px;
  font-weight: bold;
  color: #444;
}

.lang-switch {
  margin-top: 8px;
  text-align: center;
}

.lang-switch a {
  font-size: 14px;
  font-weight: bold;
  color: #000 !important;
  text-decoration: none;
}

.lang-switch a:hover {
  color: #555 !important;
}

/* =======================================
   STARTSIDAN
======================================= */

#startContent {
  margin: 0 auto;
  text-align: center;
}

#startContent img {
  display: block;
  width: 100%;
  max-width: var(--site-max);
  height: auto;
  margin: 0 auto;
}

/* =======================================
   GALLERI OCH FÖRÄLDRABILDER
======================================= */

#box5 {
  width: 100%;
  max-width: 1000px;
  margin: 25px auto;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 28px 0;
}

#box5 td {
  padding: 0;
  text-align: center;
  vertical-align: top;
}

#box5 td > a {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
}

#box5 td > a img {
  display: block;
  width: 100%;
  height: 300px;
  margin: 0;
  object-fit: cover;
  border: 2px solid #b9b7b2;
  border-radius: 15px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

#box5 td > a:hover img {
  transform: scale(1.02);
}

#box5 .heartCell {
  width: 120px;
  vertical-align: middle;
}

#box5 .heartCell img,
#box5 .middleImg {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.imgName {
  margin-top: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #6f5d35;
}

.imgName a,
#box5 a {
  font-size: 18px;
  font-weight: bold;
  color: #5f584d !important;
  text-decoration: none;
}

.imgName a:hover,
#box5 a:hover {
  color: var(--gold-dark) !important;
  text-decoration: underline;
}

/* =======================================
   LÄNK UNDER BILD
======================================= */

.imgLink {
  margin-top: 10px;
}

.imgLink a {
  font-size: 18px;
  font-weight: bold;
  color: #8b6f2d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.imgLink a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* =======================================
   STARTKNAPP
======================================= */

.back-button {
  margin: 20px 0 30px;
  text-align: center;
}

.back-button a {
  display: inline-block;
  padding: 10px 28px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background-color: #9b8450;
  border-radius: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.back-button a:hover {
  background-color: #b1975d;
  transform: translateY(-2px);
}

/* =======================================
   FOTO-GRID
======================================= */

.photoGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 40px 0;
}

.photoGrid img {
  width: 350px;
  max-width: 100%;
  height: auto;
}

/* =======================================
   TEXTBLOCK
======================================= */

.textBlock {
  padding-top: 40px;
  text-align: center;
}

/* =======================================
   LOGGOR
======================================= */

.aboutLogos {
  margin: 40px 0;
}

.logoRow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 40px;
}

.logoRow img {
  width: auto;
  max-height: 200px;
  transition: transform 0.3s ease;
}

.logoRow img:hover {
  transform: scale(1.05);
}

.logoBig {
  display: block;
  width: 900px;
  max-width: 100%;
  height: auto;
  margin: 20px auto 50px;
}

/* =======================================
   KONTAKT
======================================= */

.contactBlock {
  max-width: var(--site-max);
  margin: 20px auto;
  padding: 80px 40px;
  text-align: center;
  background-color: var(--content-bg);
  border: 2px groove #999;
}

.contactBlock p {
  margin: 18px 0;
  font-family: Georgia, serif;
  font-size: 28px;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

.contactBlock p:first-child {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 2px;
}

body.kontakt .contactBlock {
  min-height: 700px;
}

body.kontakt #ram,
body.kontakt .contentBlock,
body.kontakt .contactBlock,
body.kontakt #kontaktSida {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =======================================
   FÖDELSETABELL
======================================= */

body.fodelse {
  background-color: var(--page-bg) !important;
}

body.fodelse #ram {
  max-width: var(--site-max);
  min-height: 800px;
  margin: 30px auto;
  padding: 40px;
}

body.fodelse h1 {
  font-size: 70px;
  font-weight: bold;
  color: var(--gold);
  text-align: center;
}

body.fodelse h2 {
  margin-bottom: 30px;
  font-size: 28px;
  color: var(--gold);
  text-align: center;
}

body.fodelse .container,
body.fodelse .container-fluid,
body.fodelse .row,
body.fodelse .col-md-6,
body.fodelse .card,
body.fodelse .card-body {
  background-color: transparent !important;
}

body.fodelse .card {
  background-color: #e6e6e6 !important;
  border: 1px solid #999;
}

body.fodelse .card-header {
  font-weight: bold;
  text-align: center;
  background-color: #e8e8e8;
}

/* =======================================
   PLANER, KONTAKT OCH FÖDELSE
======================================= */

body.planer #ram,
body.fodelse #ram,
body.kontakt #ram {
  min-height: 800px;
}

body.fodelse #ram,
body.kontakt #ram {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* =======================================
   IFRAME
======================================= */

#pageContent iframe {
  display: block;
  width: 100%;
  height: 900px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: var(--page-bg);
}
#pageContent {
  margin: 0;
  padding: 0;
}


/* =======================================
   KATTSIDOR
======================================= */

.stamtavla-link,
.utstallning-link {
  font-weight: bold;
  color: var(--gold) !important;
}

/* =======================================
   MENY
======================================= */

#navMenu li {
  position: relative;
}

#navMenu .sub-menu {
  top: 100%;
  margin-top: 0;
}

#navMenu .sub-menu li a {
  margin: 2px 6px;
  border-radius: 6px;
}

#navMenu .sub-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

/* =======================================
   INNEHÅLL DIREKT UNDER MENYN
======================================= */

.contentBlock {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =======================================
   BOOTSTRAP-FIX
======================================= */

.container,
.container-fluid {
  max-width: 100% !important;
}

/* =======================================
   KATTUNGEKORT
======================================= */

.kittenCard img:first-child {
  border-radius: 12px;
}

.kittenBottom img {
  border-radius: 0;
}

/* =======================================
   SURFPLATTA
======================================= */

@media (max-width: 900px) {
  #ram h1 {
    font-size: 65px;
  }

  #ram h2 {
    font-size: 34px;
  }

  #ram h3 {
    font-size: 26px;
  }

  #box5 {
    border-spacing: 15px 0;
  }

  #box5 td > a img {
    height: 260px;
  }

  .logoRow {
    flex-wrap: wrap;
    gap: 25px;
  }

  .contactBlock {
    padding: 50px 25px;
  }
}

/* =======================================
   MOBIL
======================================= */

@media (max-width: 600px) {
  #ram {
    padding: 10px;
  }

  #ram h1 {
    font-size: 42px;
  }

  #ram h2 {
    font-size: 28px;
  }

  #ram h3 {
    font-size: 22px;
  }

  #box5,
  #box5 tbody,
  #box5 tr,
  #box5 td {
    display: block;
    width: 100%;
  }

  #box5 {
    border-spacing: 0;
  }

  #box5 td {
    margin-bottom: 25px;
  }

  #box5 td > a {
    width: 100%;
    max-width: 400px;
  }

  #box5 td > a img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  #box5 .heartCell {
    width: 100%;
    margin: 10px 0 20px;
  }

  #box5 .heartCell img,
  #box5 .middleImg {
    width: 120px;
  }

  .photoGrid {
    gap: 15px;
    margin: 25px 10px;
  }

  .photoGrid img {
    width: 100%;
  }

  .contactBlock {
    padding: 35px 15px;
  }

  .contactBlock p {
    font-size: 22px;
  }

  .contactBlock p:first-child {
    font-size: 28px;
  }

  .back-button {
    padding-left: 10px;
  }

  .back-button a {
    padding: 9px 18px;
    font-size: 16px;
  }
}

/* =========================
   HCM
========================= */

.health-body {
  margin: 0;
  background-color: var(--content-bg);
}

.health-page {
  width: min(1800px, 99%);
  margin: 0 auto 80px;
  text-align: center;
  background-color: var(--content-bg);
  display: flow-root;
}

.health-page h1 {
  margin-top: 0;
  padding-top: 25px;
}

.health-intro {
  margin-bottom: 30px;
}

.health-table-wrap {
  overflow-x: auto;
}

.health-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background-color: #fff;
}

.health-table th,
.health-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

.health-table th {
  background-color: #f5f2ef;
}
.health-column:first-child {
    transform: translateX(-35px);
}

/* Kattkolumner */

.health-table th:nth-child(1),
.health-table td:nth-child(1),
.health-table th:nth-child(3),
.health-table td:nth-child(3) {
  width: 32%;
}


/* HCM-kolumner */

.health-table th:nth-child(2),
.health-table td:nth-child(2),
.health-table th:nth-child(4),
.health-table td:nth-child(4) {
  width: 18%;
  white-space: nowrap;
}


/* Bild + kattnamn */

.cat-info {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  text-align: left;
}

.cat-info span {
  white-space: nowrap;
}


/* Små kattbilder */

.health-table .cat-info .health-cat-img {
  width: 110px !important;
  height: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  min-height: 110px !important;
  max-height: 110px !important;
  object-fit: cover !important;
  border-radius: 10px;
  cursor: zoom-in;
  flex: 0 0 110px !important;
}


/* Förstorad bild */

.health-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.health-lightbox.open {
  display: flex;
}

.health-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  cursor: zoom-out;
}

.health-lightbox-close {
  position: fixed;
  top: 18px;
  right: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}
.health-cat-img {
  margin-left: 25px;
}


/* Mindre skärmar */

@media (max-width: 1200px) {

  .health-page {
    width: 100%;
  }

  .health-table {
    min-width: 1450px;
  }
}
/* Flytta HCM-resultaten tydligt åt vänster */
.health-table tbody td:nth-child(2),
.health-table tbody td:nth-child(4) {
  text-align: left !important;
  position: relative;
  left: -45px;
  white-space: nowrap;
}
/* HCM-resultaten jämnt uppradade */
.health-table tbody td:nth-child(2),
.health-table tbody td:nth-child(4) {
  text-align: left;
  padding-left: 10px;
  white-space: nowrap;
}
.health-result {
    word-spacing: 8px;
}

/* ===== GEMENSAM STIL FÖR ALLA KATTER ===== */

.cat-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.cat-page table {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.cat-page img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.cat-page td {
    vertical-align: top;
}

.cat-page p {
    line-height: 1.5;
}

/* ===== STARTSIDA-KNAPP ===== */

.cat-start {
    text-align: center;
    margin: 20px 0 30px;
}

.cat-start a {
    display: inline-block;
    padding: 10px 25px;
    background: #e8e6e1;
    border: 1px solid #aaa;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

.cat-start a:hover {
    background: #c5c5c5;
}

/* ===== MOBILANPASSNING ===== */

@media (max-width: 700px) {

    .cat-page table,
    .cat-page tbody,
    .cat-page tr,
    .cat-page td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .cat-page td {
        padding: 10px !important;
        text-align: center !important;
    }

    .cat-page img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

/* ===== EXTRA MOBILJUSTERING FÖR KATTSIDOR ===== */
@media (max-width: 700px) {
  .cat-page {
    padding: 12px;
  }
  .cat-page table {
    table-layout: auto;
    border-spacing: 0;
  }
  .cat-page td[style] {
    max-width: 100%;
  }
}
