.profile {
  text-align: center;
  margin: 2rem auto;
  max-width: 350px; /* hela rutan får max denna bredd */
}

.profile img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.profile h3 {
  margin-top: 0.8rem;
  font-weight: 700;
  color: #a12da5;
  text-align: center;
}

.profile p {
  margin: 0.25rem 0 0 0;
  color: #444;
  font-size: 1.05rem;
  text-align: center;
}

@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400,500,600,700|Raleway:100,200,300,400,500,600,700,800,900&display=swap');

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%;}
body{margin:0;}
main{display:block;}
h1{font-size:2em;margin:.67em 0;}
hr{box-sizing:content-box;height:0;overflow:visible;}
pre{font-family:monospace,monospace;font-size:1em;}
a{background-color:transparent;}
abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}
b,strong{font-weight:bolder;}
code,kbd,samp{font-family:monospace,monospace;font-size:1em;}
small{font-size:80%;}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
sub{bottom:-.25em;}
sup{top:-.5em;}
img{border-style:none;}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}
button,input{overflow:visible;}
button,select{text-transform:none;}
[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;}
[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0;}
[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText;}
fieldset{padding:.35em .75em .625em;}
legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}
progress{vertical-align:baseline;}
textarea{overflow:auto;}
[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}
[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}
[type=search]::-webkit-search-decoration{-webkit-appearance:none;}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}
details{display:block;}
summary{display:list-item;}
template{display:none;}
[hidden]{display:none;}

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

:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --color3: #0dcaf0;
  --color4: #198754;
  --white: white;
  --light: #f8f9fa;
  --dark: #212529;
  --lilac: #8800b3;
}

/* Fonts */
body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--dark);
  color: #f5f5f5;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
}
h1, h2 {
  color: var(--lilac);
  text-align: center;
}
h3 {
  color: var(--lilac);
  text-transform: uppercase;
}

/* Header wrapper */
.header {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  background-color: #57525C;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Language bar */
.lang-bar {
  background: #2e003e;
  text-align: center;
  padding: 6px;
  font-size: 0.9rem;
}
.lang-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 8px;
}
.lang-bar a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  background: #4c0073;
  color: #fff;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: bold;
}
nav a:hover {
  background: rgba(255,255,255,0.12);
}

/* Sections */
.section {
  max-width: 900px;
  margin: auto;
  background: #fff;
  color: #000;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 10px;
}
p { line-height: 1.6; }

/* Slideshow */
.slideshow-container { max-width: 100%; position: relative; margin: auto; }
.mySlides { display: none; }
.fade { animation: fadeEffect 1.5s; }
@keyframes fadeEffect { from {opacity: .4} to {opacity: 1} }
.mySlides img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: auto;
  display: block;
}
@media (max-width: 600px) {
  .mySlides img { max-width: 95%; }
}

/* Forms */
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }
label { display: inline-block; margin: .5rem 0 .25rem; }

/* Footer */
footer {
  margin-top: 4rem;
  text-align: center;
  padding: 1rem;
  background: #2e003e;
  color: #bbb;
  font-size: 0.9rem;
}

html {
  scroll-behavior: smooth;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 24px 12px;
  color: #666;
  font-size: 14px;
}

/* --- Language bar --- */
.lang-bar {
  background: #4c0073;
  text-align: center;
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 2px solid #2e003e;
}

.lang-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 6px;
}

.lang-bar a:hover {
  text-decoration: underline;
}
/* Kombinerad mobilanpassning för språkbaren */
@media (max-width: 600px) {
  .lang-bar {
    font-size: 1.1rem;
    padding: 10px 0;
    text-align: center;
    flex-wrap: wrap;     /* tillåter brytning */
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .lang-bar a {
    flex: 1 1 auto;      /* låter länkar anpassa sig */
    min-width: 100px;    /* bryter automatiskt om de blir för trånga */
    margin: 4px 0;
    text-align: center;
  }
}
