
:root {
  --font-title: "Dancing Script", Georgia, serif;  /*Google fonts Dancing Script och Raleway, inkluderade i index.html*/
  --font-text: Raleway, sans-serif;

  /*Definierar färger att använda till sidan*/
  --border-image: 1px solid var(--color-dark);

  --color-white: #fff;
  --color-black: #000;
/*
  --color-light: #EAF6CF;
  --color-medium: #A0CE4E;
  --color-dark: #00525D;
*/
/*
  --color-light: #DDDDD4;
  --color-medium: #ABAFA6;
  --color-dark: #404A42;
*/

/*
  --color-light: #e3f2fd;
  --color-medium: #f5cba7;
  --color-dark: #A43F13;
*/

  /*New Color scheme for 2026:*/
  --color-light: #F3E5D8;  /*#FEF3E2 #*/
  --color-medium: #D9A083; /*--color-medium: #A4B8C4; */
  --color-dark: #294562;  

/*
🎨 Färgschema A: Natur & stillhet (mycket tryggt)
Passar Bibelveckan perfekt
Light: #F6F5F2 – varm off-white
Medium: #9FAE9C – salviagrön
Dark: #3E4A44 – mörk skogsgrön
Accent (valfri): #B89B5E – dämpad mässing

🎨 Färgschema B: Sommar & vatten
Lite mer liv, men fortfarande värdigt.
Light: #FFFFFF
Medium: #7FA6B2 – dämpad blå
Dark: #2F4A5C – djup havsblå
Accent: #C46A4A – varm terrakotta

🎨 Färgschema C: Minimalistiskt & modernt
Om du vill hålla allt extremt rent.
Light: #F4F4F4
Medium: #B5B5B5
Dark: #1F1F1F
Accent: #6E7D8B – kall gråblå
 * */

  --wave-height: 4rem;

}


* {
  box-sizing: border-box;
  margin: 0;
  font-family: var(--font-text);
  background-color: transparent;
  color: var(--color-black);
  /* outline: 1px dotted black; */
}
html {
  font-size: 100%;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-light);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.0vw, 1.3rem);
  line-height: 1.5;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: var(--font-title);
  color: var(--color-dark);
  text-align: center;
}
h1 {
  font-size: clamp(1.5rem, 8.0vw + 1rem, 5rem);
}
h2 {
  font-size: clamp(1rem, 5vw + 1rem, 3rem);
}
.title,
.subtitle {
  font-family: var(--font-title);
  color: var(--color-dark);
  text-align: center;
  white-space: nowrap;
  margin-bottom: 2rem;
}
.subtitle {
  font-family: var(--font-text);
  text-transform: uppercase;
  font-size: clamp(0.8rem, 4.5vw + 0.5rem, 3.3rem);
  /* outline: 1px solid red; */
}
.subtitle::before,
.subtitle::after {
  content: '\0020\2014\0020'; /*&nbsp;&mdash;&nbsp;*/
}
p {
  position: relative;
  margin: 1rem 0;
}
em {
  font-style: normal;
  font-family: var(--font-title);
  font-size: 1.0em;
  font-size: clamp(1.20rem, 2.25vw, 1.5rem);
}
.nobreak {
  white-space: nowrap;
}
q {
  font-style: italic;
}
q::before,
blockquote::before {
  content: '»';
}
q::after,
blockquote::after {
  content: '«';
}
blockquote {
  position: relative;
  font-family: var(--font-title);
  font-size: clamp(1rem, 3vw, 2rem);
  color: var(--color-dark);
  line-height: 1.2;
  max-width: 50rem;
  margin: 2rem auto;
  padding-left: 0.5em;
  box-shadow: inset 0.2em 0 0 0 var(--color-dark);
}
blockquote > span.reference { /*bible reference inside span in blockquote*/
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-dark);
}
span.emphasis {
  font-family: inherit;
  color: var(--color-light);
  background-color: var(--color-dark);
  padding: 0 0.25rem;
  border-radius: 0.5rem;
}
pre.address {
  /* outline: 1px solid white; */
  width: fit-content;
  padding-left: 0.5em;
  margin-left: 50%;
  transform: translateX(-50%);
  box-shadow: -0.25rem 0 var(--color-dark);
}

a,
a:hover,
a:visited {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}
a:hover {
  text-decoration: underline;
}
.button {
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  width: fit-content;
  background-color: var(--color-dark);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.25rem 0.5rem 0.5em;
  box-shadow: 0 0 0 0.0rem var(--color-light),
              0 0 0 0.0rem var(--color-dark);
  transition: box-shadow 250ms linear,
              color 250ms linear;
}
.button,
.button:visited {
  color: var(--color-light);
}
.button:hover {
  text-decoration: none;
  color: var(--color-medium);
  box-shadow: 0 0 0 0.1rem var(--color-light),
              0 0 0 0.2rem var(--color-dark);
}
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
input,
textarea {
  -webkit-appearance: none;
  position: relative;
  display: block;
  margin: 1rem auto;
  width: 75%;
  height: 2.5rem;
  font-size: inherit;
  font-family: "Courier New", sans-serif;
  text-align: center;
  background-color: var(--color-light);
  color: var(--color-dark);
  border-radius: 0.5rem;
  border: 1px solid var(--color-dark);
}
input::placeholder {
  color: var(--color-medium);
}
input.button {
  display: block;
  margin: 1rem auto;
  font-family: var(--font-text);
  cursor: pointer;
  transition: color 0.5s ease 0s;
}
input:invalid {
  box-shadow: 0 0 0 5px red;
}
input[type="radio"]  {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin: 0 0.1rem 0 1rem;
}
input[type="radio"]:checked {
    border: 5px solid blue;
    /* background-color: red; */
}
input[type="checkbox"]  {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem 0 1rem;
}
input[type="checkbox"]:checked {
    border: 5px solid blue;
    /* background-color: red; */
}
label {

}

textarea {
  text-align: left;
  max-width: 75%;
  height: auto;
}
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
form > div {
  position: relative;
}
#processing { /*Shows when an email is being sent*/
  position: absolute;
  inset: 0;
  margin: auto;
  height: 2.0rem;
  width: 2.0rem;
  border-radius: 50%;
  border: 0.2rem solid var(--color-light);
  border-top-color: transparent;
  z-index: 1;
  display: none;
  animation-name: rotation;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: 10;
  animation-play-state: paused;
}
#processing.active { /*show in progress*/
  display: block;
  animation-play-state: running;
}
@keyframes rotation {
  from {transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}
#processing.active + input {
  color: var(--color-dark); /*hide text on button*/
}


header,
main,
footer {
  width: min(100%, 50em); /*100% or max-width*/
}
header {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;

/*
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  background-image: url('../images/img-bible-01.jpeg');
*/
}
main {
  overflow-x: hidden;
  overflow-y: hidden;
  /*box-shadow: 0 0 1rem 0 #333;*/
  filter: drop-shadow(0 0 1rem rgba(0, 0, 0, 0.5)); /*drop-shadow works with clip-path*/
}
section {
  padding: 1rem 3rem;
  min-height: 25vh;
}
footer {
  padding: 1rem;
  background-color: var(--color-dark);
}
footer * {
  color: var(--color-light);
}
footer a,
footer a:hover,
footer a:visited {
  color: var(--color-medium);
}

.disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: black;
  opacity: 0.5;
}
.hidden {
  display: none!important;
}
#banner {
  /* height: 1.75em; */
  width: 100%;
  margin-top: 1em;
  background-color: darkred;
  border: 2px solid red;
  color: white;
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 5px 5px 5px 0 #333;
  z-index: 1000;
}
#banner a, #banner a:hover, #banner a:visited {
  color: white;
}
.note {
  /* border: 2vmin solid red; */
  margin: 1vmin 0;
  box-shadow: 0 0 0 1vmin var(--color-light) inset,
              0 0 0 1vmin red inset,
              0 0 0 2vmin var(--color-dark) inset,
              0 0 0 3vmin red inset;
}



.bg-white {background-color: var(--color-white);}
.bg-light {background-color: var(--color-light);}
.bg-medium {background-color: var(--color-medium);}
.bg-dark {background-color: var(--color-dark);}
.bg-black {background-color: var(--color-black);}
.bg-dark p, .bg-black p {
   color: var(--color-light);
}



#background {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -2;

    background-image: url("../images/2026/logotyp/Bakgrund2026.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

}
#logo {
    width: 80vmin;
    height: 80vmin;
    /* border: 1px solid red; */
    background-color: rgba(255, 255, 255, 0.9);
    background-color: transparent;


    background-image: url("../images/2026/logotyp/Bibelveckan 2026 logotyp.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
}

svg * {
  stroke: var(--color-dark);
  stroke-width: 0.5;
  fill: none;
  fill: white;
  stroke-linecap: round;
  stroke-linejoin: round;
}

div#email {
  margin-top: 1em;
  display: block;
  text-align: center;
}
div#email svg {
  width: min(8.5vw, 5rem);
  cursor: pointer;
}

#email a svg:first-of-type {
  display: inline-block;
}
#email a svg:last-of-type {
  display: none;
}
#email a:hover svg:first-of-type {
  display: none;
}
#email a:hover svg:last-of-type {
  display: inline-block;
}

#curved-title {
  margin-bottom: -2vw;
  display: block;
  width: 100%;
  /* outline: 1px dotted red; */
}
#curved-title path {
  stroke: none;
}
#curved-title textPath {
  text-anchor: middle;
  font-family: var(--font-title);
  fill: var(--color-dark);
  stroke: none;
  font-size: 10px;
}



.columns-1 {

}
.columns-2,
.columns-3 {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.columns-1 > img,
.columns-2 > img,
.columns-3 > img {
  width: min(80%, 25rem);

  /* Set height = width for browsers not supporting aspect-ratio!? */
}

@media (min-width: 50em) {
  .columns-2,
  .columns-3 {
    flex-direction: row;
    margin: 1rem 0;
    justify-content: space-between;
    align-items: stretch;
  }
  .columns-2 > p,
  .columns-2 > img,
  .columns-2 > div {
    width: calc((100% - 4rem) / 2);
  }
  .columns-3 > p,
  .columns-3 > img,
  .columns-3 > div {
    width: calc((100% - 8rem) / 3);
  }
  .columns-2 > p + p:after,
  .columns-3 > p + p:after { /*vertical line between columns: border of pseudo-element*/
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2rem;
    width: 0;
    border-left: 1px solid var(--color-dark);
  }
  .columns-2 > img + p,
  .columns-3 > img + p {
    align-self: center;
  }
  p {
    /* outline: 2px dotted red; */
  }
}



.wave {
  position: relative;
  padding-top: 0;
  filter: drop-shadow(0 0 1rem rgba(0, 0, 0, 0.5)); /*drop-shadow works with clip-path*/
}
.wave:first-child {
  margin-top: var(--wave-height);
  filter: none;
}
.wave::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: var(--wave-height);
  transform: translateY(calc(-1 * var(--wave-height)));
  clip-path: url(#waveClipPath);
  background-color: inherit;
  /*border: 1px solid black;*/
}








.flex-row {
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  justify-content: center;
}


img.circle {
  position: relative;
  /* width: min(100%, 80vmin); */
  margin: 1rem;
  aspect-ratio: 1;
  border: var(--border-image);
  border-width: 0.2em;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
  opacity: 1;
  transition: opacity 500ms ease; /*Time for transition also in timeout used when loading images*/
}
.circle.hidden { /*Images hidden until loaded*/
  opacity: 0;
}
#attribution {
  font-size: 0.5em;
}
@supports not (aspect-ratio: auto) { /*For browsers not supporting aspect-ratio*/
  /*Not needed if all preloaded images are squares*/
  img.circle {
    /* border-radius: 0;
    clip-path: circle(49%); */ /*Alternative to make circular image if it is not square. Not used; all images are squares.*/
  }
}
img.folder {
  border: 1px solid black;
  transform: scale(0.75) rotate(7deg);
  cursor: pointer;
}
img.folder:hover {
  box-shadow: 0 0 5px 0 #000;
}
img.forbidden {
  cursor: not-allowed;
  opacity: 0.5;
}

ul.people {
  list-style: none;
  margin-bottom: min(25rem, 12%);
  padding: 0;
}
ul.people > li {
  display: flex;
  flex-direction: row;
  align-items: center;
  line-height: 1.5;
  margin-bottom: calc(-1 * min(25rem, 12%));
  padding: 2rem 0;
  margin: 2rem 0;
  border-bottom: 1rem dotted var(--color-light);
  border-bottom: 1rem solid var(--color-dark);
}
ul.people > li:last-child {
  border: none;
}
ul.people > li:nth-child(2n) {
  /*direction: rtl;
  text-align: right;*/
  /* background-color: var(--color-light); */
}
img.portrait{
  position: relative;
  max-width: min(50rem, 25%);
  aspect-ratio: 1;
  border: var(--border-image);
  border-width: 0.4em;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
}
div.person > div {
  flex-direction: column;
  align-items: flex-start;
}
div.person > img.portrait {
    max-width: 90%;
}
div.person.portrait {
  max-width: min(50rem, 25%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-content: center;
}
div.person > div.day {
  font-family: var(--font-text);
  font-size: 1.0rem;
  font-weight: bold;
}
div.person > div.name {
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0.25rem 0;
}
div.person > div.heading {
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.2;
}
div.person > div.preamble {
  margin-top: 1rem;
}
div.person > div.presentation {
  margin-top: 1rem;
  font-style: italic;
}

@media (max-width: 50em) {
  ul.people > li {
    flex-direction: column;
    align-items: center;
  }
  div.person.portrait {
    max-width: 100%!important;
    width: 100%;
    flex-direction: row;
  }
  img.portrait {
    max-width: max(50rem, 45%);
    width: 45%;
  }
}

div.events > a {
  display: none;
}
div.events {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-direction: row!important;
  flex-wrap: wrap;
}
div.events::before {
  content: 'L\00e4gg till i kalender:';
  display: block;
  flex-basis: 100%;
  text-align: center;
}


/*Dropdown menu from button for saving calendar event.*/
div.dropdown {
  position: relative;
  display: inline-block;
  margin: 0.5rem 1rem;
}
div.dropdown > button.dropdown {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: var(--font-text);
  border: none;
  border-radius: 1rem;
  cursor: pointer;
}
div.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-dark);
  min-width: 10rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem 0 #333;
  z-index: 1;
}
div.dropdown-content a {
  color: var(--color-light);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  border-radius: 1rem;
  white-space: nowrap;
}
div.dropdown-content a:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
}
div.dropdown:hover .dropdown-content {
  display: block;
}
div.dropdown:hover > button.dropdown {
  background-color: var(--color-medium);
}



span.time {
  display: inline-block;
  width: 3rem;
}


.parallax-image {
  position: relative;
  width: 110%; /*No boxshadow on the vertical sides*/
  left: -5%;
  height: 50vh;
  background-attachment: scroll; /*No parallax effect on smaller devices*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 2rem 1rem rgba(0, 0, 0, 0.25);
}
@media (hover: hover) { /*Only devices with hover capabilities, i.e. no mobile phone or tablet.*/
  div.parallax-image {
    background-attachment: fixed; /*Parallax effect only on larger devices*/
  }
}
.parallax-image::before { /*Show gradient while image is loading as background-image*/
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from -45deg at 0 0, #A0CE4EDD, #A0CE4EDD, #00525DDD, #00525DDD),
              conic-gradient(from 135deg at 100% 100%, #00525DDD, #00525DDD, #A0CE4EDD, #A0CE4EDD);
  z-index: -1;
}
#parallax-1 {
  background-image: url('../images/img-01.JPG');
}
#parallax-2 {
  background-image: url('../images/img-02.JPG');
}
#parallax-3 {
  background-image: url('../images/img-03.JPG');
}
#parallax-4 {
  background-image: url('../images/img-04.JPG');
}
#parallax-5 {
  background-image: url('../images/img-05.JPG');
}
#parallax-6 {
  background-image: url('../images/img-06.JPG');
}
#parallax-7 {
  background-image: url('../images/img-07.JPG');
}
#parallax-8 {
  background-image: url('../images/img-08.JPG');
}
#parallax-9 {
  background-image: url('../images/img-09.JPG');
}
#parallax-10 {
  background-image: url('../images/sommarhemmetSundet01.jpg');
}
#parallax-11 {
  background-image: url('../images/img-10.JPG');
}



#map {
  aspect-ratio: 1;
  border: var(--border-image);
  border-radius: 5px;
  overflow: hidden;
}
#map > iframe {
  border: none;
  width: 100%;
  height: 100%;
}



#msg-box-container {
  position: fixed;
  bottom: min(-25vh, -200px);
  left: 0;
  right: 0;
  height: min(25vh, 200px);
  z-index: 1000;
  background-color: var(--color-dark);
  box-shadow: 0 0 2vh 1vh rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  transition: all 1s ease 0s;
  overflow-y: auto;
  opacity: 0;
  outline: 1px solid black;
}
#msg-box-container.show {
  opacity: 1;
  bottom: 0;
}
#msg-box-container::after {
  content: '';
  position: fixed;
  bottom: 1vh;
  left: 0;
  right: 0;
  height: 2vh;
  border-radius: 1vh;
  background-color: var(--color-medium);
  transition: left 9s linear 1s,
              right 9s linear 1s;
}
#msg-box-container.show::after {
  right: 50%;
  left: 50%;
}
#msg-box {
  position: absolute;
  top: 1rem;
  padding-bottom: 2rem;
  width: clamp(300px, 50vw, 700px);
  color: var(--color-light);
  text-align: center;
}
#msg-box a,
#msg-box a:visited,
#msg-box a:hover {
  color: var(--color-medium);
}
