
/* Dark Mode Theme for Laivheli */
:root {
  --padding: 0;
  --color-black: #222222;
  --color-white: #eeeeee;
  --color-grey: #aaaaaa;
  --color-light: #222222;
  --color-text: var(--color-white);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-black);
  --table-color-back: var(--color-black);
  --table-color-th-back: var(--color-black);
  --table-color-hover: #553311;
  --color-border: #666;
  --color-primary: #ffcc00; /* Adjust for better visibility */  
  --color-code-light-grey:  #555555;
  --color-code-comment:     #999999;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #ff8888;
  --color-code-orange:      #ffae75;
  --color-code-yellow:      #ffdf80;
  --color-code-green:       #b6e47e;
  --color-code-aqua:        #8adbd7;
  --color-code-blue:        #82aaff;
  --color-code-purple:      #c792ea;
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Laivheli specific */

  --color-table-border: rgba(255, 255, 255, 0.2);
  --color-table-header-background: rgba(255, 200, 0, 0.05);
}

.k-panel, .k-view {
  background-color: var(--color-background) !important;
  color: var(--color-text);
}

.k-panel-menu-body {
  background-color: var(--color-background) !important;
  color: var(--color-text) !important;
}

.k-input, .k-button {
  background-color: var(--color-light);
  color: var(--color-text);
}

.k-button.is-primary {
  background-color: var(--color-primary);
  color: #000;
}

.k-label-text {
  color: var(--color-text);
}
.k-item {
  background-color: var(--color-black);
}


/* Main */
main {
}


/* Kirby header and footer */

header.header {
  display: none;
}

footer.footer {
  display: none;  
}

/* Header */

div.Menu {
  background-color: rgba(30, 30, 30, 0.8);
  position: fixed;
  left: 30px;
  top: 0px;
  right: 30px;
  height: 2em;
  z-index: 100;
  vertical-align: middle;
  border-radius: 0 0 15px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1em 0 1em;
}
div.Menu>div {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1em;
}
div.Menu>div>a {
  display: inline-block;
}
div.Menu a.Logo>img {
  height: 2em;
}

/* Header */

header.Top {
  display: block;
  width: 100vw;
  text-align: left; 
  margin-bottom: 0px;
}

header.Top section.TextSection {
  display: block;
  background-color: rgba(34, 34, 34, 0.7);
  padding-top: 0px;
  padding-bottom: 0px;
}
header.Top section.TextSection>h1 {
  display: inline-block;
}
header.Top section.TextSection>h1>div {
  display: flex;
  flex-wrap: nowrap;
  justify-content: left; /* centers items horizontally within each row */
  align-items: center;     /* centers items vertically within each row */
  align-content: center;   /* if the container has extra vertical space, centers the rows as a whole */
  height: 70px;
  font-size: 40px;
  _color: rgba(255, 255, 255, 0.7);
  color: rgba(255, 220, 180, 0.7);
  text-shadow: none;
  position: relative;
  top: -70px;
  margin-bottom: 0px;
  padding: 0 5vw 0 5vw;
  border: none;
  border-radius: 0 15px 0 0;
  background-color: rgba(34, 34, 34, 0.7);
}
header.Top section.TextSection>h1>div>span {
}
header.Top section.TextSection>h1>div>span>i {
  padding: 0 0.15em 0 0.15em;
  margin-right: 0.2em;
  border-radius: 9px;
  _color: black;
  _box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  _background-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 220, 180, 0.4);
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.4);
/*  text-shadow: 0 0 2px #885500;  */
}

header.Top section.TextSection>h2 {
  padding: 0 10vw 0 10vw;
  position: relative;
  top: -60px;
  text-transform: uppercase;
  color: #aaaaaa;
}
header.Top section.TextSection>div {
  padding: 2em 3em 1em 3em;
  position: relative;
  top: -60px;
  font-size: 1.5em;
  color: #999999;
}
div.Reflection::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;      /* limit reflection to 50px height */
  /* Use the same image, but show only its bottom part */
  background: var(--banner-image) center/cover no-repeat;
  background-position: bottom;
  transform: scaleY(-1);  /* flip vertically for reflection */
  
  /* Apply a gradient mask to fade out the reflection */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
  opacity: 0.5;
}

/* Prerequisite */

section.Prerequisite {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center; /* centers items horizontally within each row */
  align-items: center;     /* centers items vertically within each row */
  align-content: center;   /* if the container has extra vertical space, centers the rows as a whole */
  margin: 0 3em 3em 3em;
  position: relative;
  top: -2em;
}
section.Prerequisite div.Pre {
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 1);
  padding: 1em 2em 0.5em 2em;
  background-color: rgba(50, 50, 50, 0.5);
  max-width: 400px;
  text-align: center;
  box-shadow: 0px 0px 2vw rgba(0, 0, 0, 0.4);
  border-radius: 0 45px 45px 45px;
}
section.Prerequisite>a>div.Pre {
  border-color: rgba(255, 120, 0, 0.5);
}
section.Prerequisite div.Pre>h3 {
  text-align: left;
  color: transparent;
  text-shadow: 0 0 3px rgba(255, 120, 0, 0.7);
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 0.5em;
  position: relative;
  left: -0.5em;
}
section.Prerequisite div.Pre>h2 {
  color: #888888;
  margin-bottom: 0.5em;
}
section.Prerequisite div.Pre>h1 {
  color: #aaaaaa;
  margin-bottom: 0.5em;
}
section.Prerequisite>a>div.Pre>h1 {
  color: #ff7700;
  font-size: 1.5em;
}
section.Prerequisite div.Pre>h1>i {
  color: #888888;
  margin-right: 0.3em;
}


/* Sections */

section.Service {
  display: block;
  width: 100vw;
  text-align: center; 
}
section.Service div.Photo {
  text-align: center;
}
section.Service div.Photo>img {
  max-width: 100vw;
  width: auto;
  height: auto;
}
section.Service section.TextSection {
  padding: 5vw 10vw 5vw 10vw;
  background-color: rgba(50, 50, 50, 0.9);
  text-align: left;
}
section.Service section.TextSection>h1 {
  font-size: 3em;
  color: transparent;
  text-shadow: 0 0 5px rgba(180, 100, 0, 1);
  _padding: 0 0 0 1em;
  position: relative;
  left: -0.3em;
  _top: 0.4em;
  _padding-bottom: 30px;
  _border-bottom: 5px solid rgba(200, 120, 0, 0.3);
  margin-bottom: 0.2em;
}
section.Service section.TextSection>div {
  column-count: 1;
  column-gap: 50px;
  column-rule: 9px solid rgba(255, 255, 255, 0.05); 
}
section.Service section.TextSection>div>h2 {
  color: #888888;
  font-size: 1.5em;
  margin: 0.8em 0 0.3em 0;
}
section.Service section.TextSection>div>h3 {
  color: #999999;
  font-size: 1.2em;
  margin: 0.8em 0 0 0;
}
section.Service section.TextSection>div>h2:first-child, section.Service section.TextSection>div>h3:first-child {
  margin-top: 0;
}
section.Service section.TextSection ul {
  text-align: left;
}
section.Service section.TextSection li {
  margin-top: 0.3em;
  list-style: none; /* Remove default bullet */
  position: relative; /* Establish positioning context */
  padding-left: 1.5em; /* Create space for the bullet */
}
section.Service section.TextSection li::before {
  content: "◆";
  color: #cc8800;
  position: absolute;
  left: 0;
  top: 0;
}
/*
    min-width: 1200px => XL
    min-width:  992px => L
    min-width:  768px => M
    min-width:  480px => S
    min-width:    0px => XS
*/
@media screen and (min-width: 992px) {
  section.Service section.TextSection>div {
    column-count: 2;
  }
}
@media screen and (min-width: 1200px) {
  section.Service section.TextSection>div {
    column-count: 2;
  }
}
section.Service section.TextSection>div>h2 {
  break-after: avoid;
}
section.Service section.TextSection img.Frame {
  border: 15px solid rgba(0, 0, 0, 0.3);
  border-radius: 0 0 35px 0;
}

/*
  FullWidthSticky
  MidWidthSticky
  Opaque
  BlockTitleOpaque
*/
section.Service.MidWidthSticky section.TextSection {
  display: inline-block;
  max-width: 600px;
  border-radius: 0 35px 0 0;
}
@media screen and (min-width: 992px) {
  section.Service.MidWidthSticky section.TextSection>div {
    column-count: 1;
  }
}
@media screen and (min-width: 1200px) {
  section.Service.MidWidthSticky section.TextSection>div {
    column-count: 1;
  }
}
div.Sticky, section.StickySection>section, section.StickySection>div {
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
}
div.OverSticky, section.OverSticky {
  position: -webkit-sticky;
  position: sticky;
  background-color: rgba(50, 50, 50, 0.9);
}
section.Opaque>section.TextSection {
}
section.Opaque>section.TextSection>div {

}
section.BlockTitleOpaque>section.TextSection {
  background-color: rgb(24, 25, 23);
  padding: 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers items horizontally within each row */
  align-items: center;     /* centers items vertically within each row */
  align-content: center;   /* if the container has extra vertical space, centers the rows as a whole */
  gap: 3vw;
}
section.BlockTitleOpaque>section.TextSection>h1 {
  left: 0;
  text-shadow: 0 0 4px #556033;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5vw;
  border-radius: 9px;
  background-color: rgb(15, 17, 10);
  margin-bottom: 0.4em;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(55, 60, 33, 0.5);
}
section.BlockTitleOpaque>section.TextSection>h1>span {
}
section.BlockTitleOpaque>section.TextSection>div {
  color: rgba(255, 255, 255, 0.7);
  max-width: 70vw;
}
@media screen and (min-width: 992px) {
  section.Service.BlockTitleOpaque section.TextSection, section.Service.BlockTitleOpaque section.TextSection>div {
    column-count: 1;
  }
}
@media screen and (min-width: 1200px) {
  section.Service.BlockTitleOpaque section.TextSection, section.Service.BlockTitleOpaque section.TextSection>div {
    column-count: 1;
  }
}
section.Service.BlockTitleOpaque section.TextSection li::before {
  color: #556600;
}

section div.Blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers items horizontally within each row */
  align-items: center;     /* centers items vertically within each row */
  align-content: center;   /* if the container has extra vertical space, centers the rows as a whole */
  padding: 1em;
  gap: 2em;
}
section div.Blocks>div {
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 1);
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 15px 15px 15px;
  max-width: 300px;
  box-shadow: inset 0 0 15px rgba(60, 65, 40, 0.5);
}
section div.Blocks>div>i {
  font-size: 5em;
  color: transparent;
  text-shadow: 0 0 5px rgb(60, 65, 40);  
  position: relative;
  left: 0.5em;
}
section div.Blocks>div>h2 {
  font-size: 1.5em;
  color: #667700;
  position: relative;
  top: -0.6em;
}
section div.Blocks>div>p {
  margin-top: 0.8em;
}
section.FramedSticky section.TextSection, section.FramedSingleSticky section.TextSection {
  text-align: center;
  border-radius: 0 35px 0 0;
}
section.FramedSingleSticky section.TextSection {
  display: inline-block;
  max-width: 600px;
}
section.FramedSticky section.TextSection>h1, section.FramedSingleSticky section.TextSection>h1 {
  text-align: left;
  padding-bottom: 0px;
  border: none;
  color: transparent;
  text-shadow: 0 0 4px rgba(255, 160, 0, 0.8);
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 2.5em;
}
section.FramedSticky section.TextSection>div, section.FramedSingleSticky section.TextSection>div {
  display: inline-block;
  max-width: 600px;
  text-align: left;
  _column-rule: none;
}
section.FramedSticky section.TextSection.OverSticky, section.FramedSingleSticky section.TextSection.OverSticky {
  border: 12px solid rgba(0, 0, 0, 0.3);
  background-color: rgba(50, 50, 50, 0.95);
}
section.FramedSticky section.TextSection>div, section.FramedSingleSticky section.TextSection>div {
  _column-rule: none;
}
@media screen and (min-width: 1200px) {
  section.FramedSticky section.TextSection>div {
    column-count: 2;
  }
}
@media screen and (min-width: 992px) {
  section.FramedSingleSticky section.TextSection>div {
    column-count: 1;
  }
}
@media screen and (min-width: 1200px) {
  section.FramedSingleSticky section.TextSection>div {
    column-count: 1;
  }
}

/* Section Content */

div.Content>p {
  margin: 0.5em 0 0.5em 0;
}
div.Content p.Quote {
  display: inline-block;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 15px 0;
  padding: 0 1em 0 1em;
  margin: 1em 0 1em 0;
  background-color: rgba(0, 180, 255, 0.05);
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;  
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}
div.Content p.Quote>i {
  display: block;
  font-size: 2em;
  color: transparent;
  text-shadow: 0 0 4px rgba(0, 180, 255, 0.3);
  position: relative;
}
div.Content p.Quote>i.Top {
  top: -0.5em;
}
div.Content p.Quote>i.Bottom {
  top: 0.5em;
}
div.Content p.Quote>span {
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.5em;
  font-size: 0.8em;
  text-transform: uppercase;
}

/* Section Table */

table.Borders {
  margin: 0.8em 0 0.8em 0;
  border-collapse: collapse;
}
table.Borders thead {
  display: table-header-group;
}

table.Borders th, table.Borders td {
  padding: 10px 14px 10px 14px;
  border-bottom: 1px solid var(--color-table-border);
}
table.Borders th {
  color: #cc8833;
  border-top: 1px solid var(--color-table-border);
  background-color: var(--color-table-header-background);
}
table.Borders th:not(:first-child), table.Borders td:not(:first-child) {
  border-left: 1px solid var(--color-table-border);
}
table.NoBreak {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}


/* Cta and NextStep */

section.CtaOuter {
  padding: 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers items horizontally within each row */
  align-items: center;     /* centers items vertically within each row */
  align-content: center;   /* if the container has extra vertical space, centers the rows as a whole */
  gap: 2em;

}
section.CtaOuter>a {
  display: inline-block;
  border: 1px solid rgba(255, 120, 0, 0.5);
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.1);
  max-width: 400px;
  text-align: center;
  box-shadow: 0px 0px 2vw rgba(0, 0, 0, 0.4);
}
section.CtaOuter>a.Cta {
  border-radius: 0 45px 45px 45px;
}
section.CtaOuter>a.NextStep {
  border-radius: 45px 45px 0 45px;
}
section.CtaOuter>a.LabelServices {
  border-radius: 45px 45px 45px 0;
}
section.CtaOuter>a>h1 {
  color: #ff7700; 
  font-size: 1.5em;
}
section.CtaOuter>a>div {
  color: #888888;
}
section.CtaOuter>a.Cta>h1 {
  margin-bottom: 0.5em;
}
section.CtaOuter>a.NextStep>h1 {
  margin-top: 0.5em;
}
section.CtaOuter>a>h1>i {
  color: #888888;
  margin-right: 0.3em;
}


/* Footer */

footer.Bottom {

}

footer.Bottom>div.Logo {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center; /* centers items horizontally within each row */
  align-items: center;     /* centers items vertically within each row */
  align-content: center;   /* if the container has extra vertical space, centers the rows as a whole */
  height: 100vh;
}
footer.Bottom>div.Logo>img {
  max-width: 50vw;
  max-height: 50vh;
  width: 50vw;
  height: auto;
}

footer.Bottom>div.Copyright {
  text-align: center;
  font-size: 0.8em;
  color: #777777;
  margin-bottom: 2em;
}
footer.Bottom>div.Copyright>h1 {
  font-size: 4em;
  color: transparent;
  text-shadow: 0 0 4px rgba(80, 70, 60, 0.5);
}


/* Default link color */

a {
  /* Fallback color for browsers that don’t support color-mix */
  color: #ff5500; 
  /* Blend 50% of the current text color (inherited) with 50% of your design accent (#007bff) */
  color: color-mix(in srgb, currentColor 50%, #ff5500 80%);
}

section.Service.BlockTitleOpaque section.TextSection a {
  color: color-mix(in srgb, currentColor 50%, #556600 80%);
}

a>i {
  margin-right: 0.3em;
  color: #888888;
}
div.Menu a {
  color: #888888;
}
div.Menu a:hover {
  color: #aaaaaa;
}


/* ScrollUp */

#ScrollUp {
  position: fixed;
  right: 0px;
  bottom: 10vh;
  z-index: 500;
  display: inline-block;
  transition: all 0.5s;
  cursor: pointer;
  border-radius: 5px 0 0 5px;
  opacity: 0.5;
  font-size: 32px;
  padding: 4px 12px 4px 16px;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px 0 0 30px;
}

/* Image Copyright */

div.Photo>div.Copyright {
  text-align: right;
  font-size: 0.8em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  top: -1em;
  margin: -1em 1em 0 1em;
}

table.PrettyList {
  margin: 10px 0 10px 0;
}
table.PrettyList th, table.PrettyList td {
  padding: 4px 10px 4px 10px;
}
table.PrettyList th {
  background-color: rgba(255, 200, 0, 0.1);
}
table.PrettyList td {
  background-color: rgba(255, 200, 0, 0.05);
}



















