html {
  font-size: 16px;
  font-family: "Rubik", sans-serif;
  background: #F8F8FF;
}

.collapsible-header,
.page-footer {
  background: #F8F8FF;
}

/* Rubriker */
h1 { font-size: 3rem; margin: 2rem 0 1.2rem 0; }
h2 { font-size: 2.5rem; margin: 1.6rem 0 1rem 0; }
h3 { font-size: 2rem; margin: 1.5rem 0 0.9rem 0; }
h4 { font-size: 1.875rem; margin: 1.3rem 0 0.7rem 0; }
h5 { font-size: 1.5rem; margin: 1.1rem 0 0.6rem 0; }
h6 { font-size: 1.25rem; margin: 0.8rem 0 0.5rem 0; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 500;
}

p { line-height: 1.5; }

/* Mobil rubrikstorlek */
@media only screen and (max-width: 600px) {
  h1 { font-size: 2.5rem; margin: 1.6rem 0 1rem 0; }
  h2 { font-size: 2rem; margin: 1.5rem 0 0.9rem 0; }
  h3 { font-size: 1.875rem; margin: 1.3rem 0 0.7rem 0; }
  h4 { font-size: 1.5rem; margin: 1.1rem 0 0.6rem 0; }
  h5 { font-size: 1.25rem; margin: 0.8rem 0 0.5rem 0; }
  h6 { font-size: 1.1rem; margin: 0.6rem 0 0.3rem 0; }
}

/* Horisontell linje */
hr {
  height: 1px;
  background-color: #ffeb3b;
  border: none;
  margin: 2rem 0;
}

/* Card länkar */
.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-floating) {
  color: #000;
}

.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-floating):hover {
  color: #000;
  background-color: #E3F2FD !important;
  text-decoration: underline;
}

.card-action:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Parallax */
.parallax-container {
  height: 300px;
  overflow: visible;
}

.parallax {
    overflow: hidden;
}


/* Logotypstorlek */
.brand-logo img {
  height: 45px;
  padding-top: 5px;
}

@media only screen and (min-width: 601px) {
  .brand-logo img {
    height: 50px;
  }
}

/* Cards */
.card.medium .card-image {
  height: 40%;
}

.card.medium .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.small .card-image + .card-content,
.card.medium .card-image + .card-content,
.card.large .card-image + .card-content {
  max-height: 60%;
}

/* Tar bort skuggor på olika komponenter */
nav,
.card-panel,
.card,
.toast,
.btn,
.btn-large,
.btn-small,
.btn-floating,
.dropdown-content,
.collapsible,
.sidenav {
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* Listor */
ul.browser-default {
  padding-left: 30px;
  margin-top: 10px;
  margin-bottom: 15px;
}

ul.browser-default li {
  list-style-type: initial;
}

/* Truncate text */
.truncated-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

@media only screen and (max-width: 600px) {
  .truncated-text {
    -webkit-line-clamp: 3;
  }
}

/* Extra small screens (<400px) */
@media only screen and (max-width: 399px) {
  .xs12 { width: 100%; }
  .xs6  { width: 50%; }
  .xs4  { width: 33.3333%; }
}

/* Länkar i text */
article a,
ol li a,
p a {
  color: black;
  text-decoration: underline;
}

a:hover article h3 {
  color: black;
}

/* Hoverable */
.hoverable:hover {
  -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.14), 0 1px 10px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.14), 0 1px 10px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hoverable:active {
  -webkit-box-shadow: 0 16px 24px rgba(0, 0, 0, 0.14), 0 6px 30px rgba(0, 0, 0, 0.12), 0 8px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.14), 0 6px 30px rgba(0, 0, 0, 0.12), 0 8px 10px rgba(0, 0, 0, 0.2);
}

/* Mobilkort */
@media only screen and (max-width: 600px) {
  .card-image {
    height: 45% !important;
  }
  .card {
    height: 330px !important;
  }
}

.card-content i.left {
  float: left;
  margin-right: 5px;
}

/* Lopp-kort */
.lopp .card-content h3, 
.lopp .card-content h4,  
.error .card-panel h2 {
  font-size: 1.2rem;
  line-height: 1.4rem;
  margin: 0;
  font-weight: 500;
}
.error {
  margin-top: 1rem;
}

.lopp .card-content p {
  font-size: 0.9rem;
}

.lopp .card-content p.card-datum {
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 400;
}

/* Sidenav */
.sidenav li > a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 300;
  height: 56px;
  line-height: 56px;
}

/* Collapsible body  */
.collapsible-body h1,
.collapsible-body h2,
.collapsible-body h3,
.collapsible-body h4 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0 0;
}

/* Mindre h1 */
h1.smaller {
  font-size: 2rem;
  margin: 0.5rem 0 0 0;
}

/* Länkfärg i article */
a article {
  color: #000 !important;
}

.card-section {
  padding: 0 10px;
}
.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  noposition: static;
  left: 3px;
  width: auto;
  height: auto;
}