/* ===============================
   VARIABLER
=============================== */
:root {
  --bg: #FAEEEE;
  --heading: #E85D8F;
  --bubble-border: rgba(232,93,143,0.3);
}

/* ===============================
   RESET
=============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: var(--bg);
  font-family: 'Sibila', sans-serif;
  overflow-x: hidden;
}

/* ===============================
   HEADER
=============================== */
body.ommig .sidhuvud {
  font-size: 3rem;
  color: var(--heading);
  text-align: center;
  margin-top: 20px;
}

body.ommig .sidhuvud .title {
  font-size: 1.2rem;
  margin-top: 8px;
}

/* ===============================
   MENY
=============================== */
body.ommig .meny ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

body.ommig .meny a {
  text-decoration: none;
  color: var(--heading);
  border: 2px solid var(--heading);
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

body.ommig .meny a:hover {
  background: var(--heading);
  color: var(--bg);
}

/* ===============================
   BILDYTA
=============================== */
body.ommig .ommig-yta {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;

  /* begränsa höjden så sidan inte behöver scrolla */
  max-height: 80vh;
  overflow: hidden; /* bubblor utanför syns inte */

  display: flex;
  justify-content: center;
  align-items: center;
}

body.ommig .ommig-bild {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}


/* ===============================
   GEMENSAM BUBBLA
=============================== */
body.ommig .ommig-bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(232,93,143,0.4), transparent 45%),
    linear-gradient(135deg, rgba(232,93,143,0.25), rgba(255,255,255,0.55));
  border: 2px solid var(--bubble-border);
}

/* Hus-bubbla */
body.ommig .hus-bubble {
  width: 140px;
  height: 140px;
  top: 55%;   /* justera så bubblan ligger på bilden */
  left: 12%;
  overflow: hidden;
}

body.ommig .hus-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CV-bubbla */
body.ommig .cv-bubble {
  width: 110px;
  height: 110px;
  top: 30%;
  right: 12%;
}

body.ommig .cv-bubble a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}

/* ===============================
   MOBIL
=============================== */
@media (max-width: 560px) {
  body.ommig .sidhuvud {
    font-size: 2rem;
    margin-top: 10px;
  }

  body.ommig .sidhuvud .title {
    font-size: 1rem;
  }

  body.ommig .meny ul {
    gap: 10px;
  }

  body.ommig .hus-bubble {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 10%;
  }

  body.ommig .cv-bubble {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 10%;
  }
}
/* ===============================
   HUS-SIDA – text ovanför bilden
=============================== */
body.ommig .ommig-yta {
  display: flex;
  flex-direction: column;
  align-items: center; /* centrerar både text och bild */
  padding: 40px 20px;
}

body.ommig .hus-text-container {
  text-align: center;
  margin-bottom: 20px;
  max-width: 700px;
}

body.ommig .hus-text {
  font-size: 1.5rem;
  color: var(--body);
  line-height: 1.6;
}

body.ommig .hus-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

body.ommig .hus-bild {
  width: 80%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}/* ===============================
   UNDER CONSTRUCTION – om mig
=============================== */
body.ommig .under-construction {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  padding: 0;
  font-size: 0.95rem;
  color: #FAEEEE; /* exakt bakgrundsfärgen */
  text-align: center;
  max-width: 90%;

  /* detta är avgörande */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(0, 0, 0, 0.25);
}
/* CV-specifik styling */
body.ommig.cv-page .hus-text-container {
  background-color: rgba(250, 238, 238, 0.7); /* ljusrosa och genomskinlig */
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

body.ommig.cv-page .hus-text-container h1,
body.ommig.cv-page .hus-text-container h2 {
  color: #E85D8F; /* ljusrosa rubriker */
}

body.ommig.cv-page .hus-text-container p,
body.ommig.cv-page .hus-text-container li {
  color: #3A3A3A; /* mörk text för läsbarhet */
  line-height: 1.6;
}

body.ommig.cv-page .hus-text-container ul {
  padding-left: 20px;
}
/* CV-sida – tillåt scroll */
body.ommig.cv-page .ommig-yta {
  max-height: none;   /* tar bort max-height */
  overflow: visible;  /* låter innehållet scrollas */
  padding: 40px 20px; /* behåll padding */
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ===============================
   CV-SIDA
=============================== */

/* Låter sidan scrolla */
body.ommig.cv-page .ommig-yta {
  max-height: none;    /* ta bort begränsning */
  overflow: visible;   /* låt innehållet scrollas */
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CV-text i halvtransparent ljusrosa ruta */
body.ommig.cv-page .hus-text-container {
  background-color: rgba(250, 238, 238, 0.7); /* ljusrosa och genomskinlig */
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

/* Rubriker i ljusrosa */
body.ommig.cv-page .hus-text-container h1,
body.ommig.cv-page .hus-text-container h2 {
  color: #E85D8F;
}

/* Lättläst text */
body.ommig.cv-page .hus-text-container p,
body.ommig.cv-page .hus-text-container li {
  color: #3A3A3A;
  line-height: 1.6;
}

/* Lista får indrag */
body.ommig.cv-page .hus-text-container ul {
  padding-left: 20px;
}
