@font-face {
  font-family: "smhi-font";
  src: local("FuturaEFCEOP-DemiBold"), local("FuturaEFCEOP-DemiBold"),
    url("futuraefop-demibold-webfont.woff2") format("woff2"),
    url("futuraefop-demibold-webfont.woff") format("woff"),
    url("FuturaEFOP-DemiBold.ttf") format("truetype"),
    url("futuraefceop-demibold-webfont.svg#webfontdHIuxQVO") format("svg");
  font-weight: normal;
  font-style: normal;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dd,
dl,
dt,
li,
ol,
ul,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: normal;
  font-size: 16px;
  font-family: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

ol,
ul {
  list-style: none;
}

body {
  font-family: "Noto Sans", sans-serif, sanserif;
  background-color: #f5f6f7;
  font-size: 16px;
  line-height: 1.5em;
}

p {
  line-height: 1.455;
}

img,
a img {
  border: none;
}

.smhi-button {
  border: none;
  color: #fff;
  background: #000;
  padding: 0.6em;
  font-size: 1.2em;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.small_div {
  background-color: #000;
  height: 0.25em;
  margin-bottom: 1em;
}

#viktigt {
  box-shadow: 0 0.125rem 0.25rem 0 rgb(0 0 0 / 16%),
    0 0.0625rem 0.5rem 0 rgb(0 0 0 / 12%);
  border-radius: 0.125rem;
  background-color: #ffbd99;
  text-align: center;
  letter-spacing: 0.02rem;
  padding: 1.5rem;
  margin: 0 auto 1.5rem;
}

#viktigt h1 {
  font-family: Futura Medium, Verdana, Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 2.5rem;
  letter-spacing: -0.02rem;
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.timestamp {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/*********** Navigering ****************/

.navigering {
  background-color: #fff;
  max-width: 78.5rem;
  margin: auto;
  display: flex;
}

.logo-container {
  padding: 1.5rem 0;
}

.navigering ul {
  list-style-type: none;
  float: left;
  margin-left: 1em;
}

.navigering li {
  float: left;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.navigering img {
  float: left;
}

.navigering ul a {
  font: 1.5em smhi-font, "Noto Sans", sans-serif, sanserif;
  text-decoration: none;
  color: #000;
  font-weight: 400;
  padding: 3.2rem 0.75rem 1.2rem 0.75rem;
  align-items: flex-end;
}

.navigering a:hover {
  text-decoration: none;
  background-color: #def1ff;
}

/** End Navigering ********************************************/

.main {
  background-color: #fff;
  margin: 0 auto;
  width: 1256px;
  max-width: 100%;
  position: relative;
}

.mainH1 {
  clear: both;
  font: 3em/1.15em smhi-font, "Noto Sans", sans-serif, sanserif;
  margin-bottom: 0.27em;
  margin-top: -0.17em;
  overflow: visible;
}

#content {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  line-height: 1.455em;
  padding: 2em 1em;
  min-height: 30em;
}

.maincont {
  display: inline-block;
  width: 100%;
}

#footer .title {
  border-bottom: 3px solid #000;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.4em;
  display: inline-block;
}

#footer {
  background-color: #f5f6f7;
  padding: 1em;
  line-height: 1.455;
}

#footer h3 {
  margin-bottom: 0.4em;
  border-bottom: 3px solid #000;
  text-decoration: none;
  padding-bottom: 0.1em;
  font: 1.25em smhi-font, "Noto Sans", sans-serif;
}

#footer p,
#footer div {
  margin: 0.75em 0;
}
#footer a {
  color: #0c6bc4;
  text-decoration: underline;
}
#footer a:hover {
  color: #000;
}

.bodynav {
  list-style-type: none;
}

.bodynav li a {
  font-size: 1.4em;
  font-weight: 300;
  color: #0063be;
  text-decoration: none;
}

#content input {
  margin: 0.6em 0;
  font-size: 1.5em;
  padding: 0.4em 0.2em 0;
  width: 28em;
}

#content textarea {
  padding: 0.3em;
}

#content .radera {
  float: right;
  position: relative;
  top: 1em;
}

#content input,
#content textarea {
  border: 2px solid #efefef;
  font-family: "Noto Sans", sans-serif, sanserif;
}

h2 {
  font-size: 1.25em;
  font-weight: bold;
  line-height: 1.6;
  margin-top: 2rem;
}

h3 {
  font-weight: bold;
}

strong {
  font-style: oblique;
}

#topbuttons {
  display: block;
  text-align: right;
}

.postdivider {
  height: 1.5em;
  border-bottom: 2px #ededed dashed;
  margin-bottom: 1em;
}

header {
  background-color: #fff;
}

.navigation {
  width: 14em;
  float: left;
  font-weight: bold;
}

.navigation ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0.7em;
}

.navigation ul ul {
  font-weight: normal;
}

.navigation li {
  padding-bottom: 0.25em;
  padding-top: 0.25em;
}

.navigation a {
  text-decoration: none;
  color: #000;
  line-height: 1.4545em;
}

.navigation a:hover {
  text-decoration: underline;
  border: none;
}

/* slut Navigering - left */

.no-warning {
  margin: 0.5em;
}

/* Prognoser */

.prognos {
  width: 48em;
  float: left;
  margin-bottom: 1rem;
}

.prognos h3 {
  margin-top: 1rem;
}

.dropdown-toggle {
  border: none;
  padding: 0.75em 1.5em 0.75em 1em;
  background: transparent;
  font-size: 1.25em;
  font-family: smhi-font, "Noto Sans", sans-serif, sanserif;
}

.dropdown-toggle:hover {
  background-color: #e1e2dd;
}

.dropdown-caret {
  display: inline-block;
  height: 0;
  width: 0;
  border-style: solid;
  border-width: 8px 7px;
  margin-top: -3px;
  transition: all 0.3s ease;
  border-color: #000 transparent transparent;
  position: relative;
  top: 0.25em;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-caret {
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  top: -0.15em;
}

.dropdown-list {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 3.38em;
  left: 0;
  background-color: #fff;
  -webkit-box-shadow: 0px 10px 30px -4px #aaa;
  -moz-box-shadow: 0px 10px 30px -4px #aaa;
  box-shadow: 0px 10px 30px -4px #aaa;
  border: 1px solid #000;
  max-height: 28em;
  overflow-y: scroll;
}

.dropdown-option {
  border-bottom: 1px solid #ddd;
}

.dropdown-option[aria-selected="true"],
.dropdown-option:hover,
.dropdown-option a:focus {
  background-color: #e1e2dd;
}

.dropdown-option a {
  display: block;
  padding: 0.5em 1em;
  color: #000;
  text-decoration: none;
}

.dropdown-container {
  position: relative;
  min-width: 200px;
}

.obstime {
  display: block;
  font-weight: bold;
}

.area {
  /* width: 290px; */
  height: 660px;
  float: left;
}

.area div {
  width: 100%;
  height: 100%;
}

/* Slut Prognoser */

.main-content {
  display: flex;
}

/* Observationer */

.observationer {
  /* width: 34em; */
  padding-left: 1rem;
  float: right;
}

.observationer img {
  padding: 1em;
  width: 100%;
  box-sizing: border-box;
}

.observationer a {
  color: #0063be;
  font-size: 1.2em;
}

.observationer a:hover {
  color: #000;
}

.observationer li {
  padding: 0.5em;
}

.centered {
  text-align: center;
}

.padded {
  padding: 1em;
}

.nonpadded {
  padding: 0;
}

.area .station {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid black;
  background-color: #800000;
}

.area .valdstation {
  background-color: #0033cc;
  z-index: 10;
}

.stationlink {
  float: left;
  width: 16em;
  padding: 0.5em;
  background-color: #f3f3f3;
}

/* Slut Observationer */

/* Varningar */

#varningar {
  box-sizing: border-box;
  background-color: #fff;
  padding: 1rem;
}

#varningar :last-child {
  margin-bottom: 0;
}

#varningar .varning:first-child {
  margin-top: 0;
}

#varningar .varning:last-child {
  margin-bottom: 0;
}

#varningar .varning {
  border: 2px solid #888;
  padding: 0.5em;
  margin: 0.5em;
}

#varningar .yellow {
  background-color: #ffce00;
  border: 1px solid #8e521c;
}

#varningar .orange {
  background-color: #ff7900;
  border: 1px solid #8e521c;
}

#varningar .red {
  background-color: #e60000;
  border: 1px solid #8e521c;
}

#brandriskvarning {
  float: left;
  padding-top: 1em;
  padding-bottom: 1em;
  width: 100%;
  border-bottom: 2px solid #888;
  margin-bottom: 1em;
}

#brandriskvarning h2 {
  padding-bottom: 0em;
}

#textvarningar {
  list-style-type: circle;
}

#textvarningar li {
  padding: 1em 1em 1em 2em;
  margin-bottom: 2em;
  border: 2px solid #222222;
}

#teckenforklaring {
  float: left;
}

.td_row_even {
  background-color: #f2f2f2;
  border: 1px solid #e1e1e1;
  color: #000000;
  font-size: small;
}

.td_row_odd {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  color: #000000;
  font-size: small;
}

.td_varningsklass_1 {
  background-color: #ffce00;
  border: 1px solid #e1e1e1;
  color: #000000;
  font-size: small;
  font-style: normal;
  text-align: center;
}

.td_varningsklass_2 {
  background-color: #ff7900;
  border: 1px solid #e1e1e1;
  color: #000000;
  font-size: small;
  font-style: normal;
  text-align: center;
}

.td_varningsklass_3 {
  background-color: #e60000;
  border: 1px solid #e1e1e1;
  color: #fff;
  font-size: small;
  font-style: normal;
  text-align: center;
}

.td_varningsbrandrisk {
  background-color: #ab56ac;
  border: 1px solid #e1e1e1;
  color: #fff;
  font-size: small;
  font-style: normal;
  text-align: center;
}

th,
caption {
  background-color: #efefef;
  padding: 5px 10px;
  text-align: left;
}

td {
  padding: 5px 10px;
}

.sectiontitle {
  font-weight: bold;
  text-align: left;
}

caption {
  background-color: #fff;
}

.global-top {
  height: 3.5em;
  background: #12212b;
}

.second-nav {
  background-color: #f5f6f7;
  margin: 0;
  height: 2em;
}

.inline-warning {
  background-repeat: no-repeat;
  width: 3.25em;
  height: 3.25em;
  display: inline-block;
  margin-right: 0.5em;
  vertical-align: bottom;
}

.inline-warning-box {
  margin-top: 0;
  outline: none;
  font-weight: normal;
  display: inline-block;
  box-sizing: border-box;
}

#warning {
  float: right;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 0.75rem 1rem 0.75rem;
  margin-left: auto;
}

#warning a {
  font-size: 1em;
  display: block;
  color: #000;
  text-decoration: underline;
}

.warning-explanation {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.warning-explanation-table {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 3em 0;
  padding: 0;
}
.warning-explanation-table-cell {
  box-sizing: border-box;
  width: 100%;
  padding: 0 1em 0.5em 0;
}
.warning-explanation-table-cell:nth-child(5),
.warning-explanation-table-cell:nth-child(6) {
  padding-right: 0;
}
.warning-explanation-table > .first-row {
  order: 1;
}
.warning-explanation-table > .second-row {
  order: 2;
}
.warning-explanation-table > .warning-explanation-table-cell {
  width: 33%;
}

.warning-box {
  font-weight: normal;
  display: inline-block;
}

.warning-txt {
  font-weight: bold;
  display: block;
}

#warning a:hover {
  background-color: #fff;
}

#varningar .warning-status {
  margin-top: 0.5rem;
}

.warning-level-none {
  background-image: url("../img/no-weather-warning.svg");
}

.warning-level-GRASS_FIRE {
  background-image: url("../img/fire-outline-56x56.png");
}

.warning-level-FOREST_FIRE {
  background-image: url("../img/fire-outline-56x56.png");
}

.warning-level-YELLOW {
  background-image: url("../img/yellow-weather-warning-56x56.png");
}

.warning-level-ORANGE {
  background-image: url("../img/orange-weather-warning-56x56.png");
}

.warning-level-RED {
  background-image: url("../img/red-weather-warning-56x56.png");
}

.warning-button {
  width: 100%;
  align-items: stretch;
  margin-bottom: 1rem;
  box-shadow: rgba(0, 0, 0, 0.16) 0 0.125rem 0.25rem 0,
    rgba(0, 0, 0, 0.12) 0 0.0625rem 0.5rem 0;
  border-radius: 0.125rem;
  margin-top: 1.5rem;
  font-family: "Noto Sans", Verdana, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.02rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s, border-color 0.2s;
  color: #12212b;
  border: none;
  background-color: #ffffff;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.warning-button:hover {
  background-color: #def1ff;
}

.warning-button:active {
  background-color: #b3dfff;
}

.warning-button-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 0.125rem;
  border-style: solid;
  border-color: #d0d6db;
  border-width: 0.0625rem;
}

.warning-button-content {
  padding: 1rem;
  text-decoration: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.warning-box {
  margin-top: 0;
  display: flex;
}

.warning-text-box {
  flex: 1 1 auto;
}

.warning-title {
  font-weight: bold;
  display: block;
}

.warning-area {
  color: #647078;
}

.warning-icon-more {
  background-image: url("../img/more-outline-32x32.png");
  background-repeat: no-repeat;
  width: 3.25em;
}

.warning-desc {
  margin-bottom: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  display: none;
}

.warning-desc h3 {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.warning-desc .whiteSpace {
  white-space: pre-line;
}

.warning-when-container {
  display: flex;
  padding-top: 1rem;
}

.warning-where-container {
  display: flex;
  padding-top: 1rem;
}

.warning-icon {
  padding-right: 0.5rem;
  background-repeat: no-repeat;
  width: 1.5em;
  height: 1.5em;
}

.warning-icon-when {
  background-image: url("../img/time-outline-24x24.png");
}

.warning-icon-where {
  background-image: url("../img/location-outline-24x24.png");
}

@media screen and (-ms-high-contrast: none),
  screen and (-ms-high-contrast: white-on-black),
  screen and (-ms-high-contrast: black-on-white),
  screen and (-ms-high-contrast: active) {
  .inline-warning {
    background-position: center center;
  }
  .warning-class-1 {
    background-image: url("../img/varning1.gif");
  }
  .warning-class-2 {
    background-image: url("../img/varning2.gif");
  }
  .warning-class-3 {
    background-image: url("../img/varning3.gif");
  }
}

.th_rubrik,
.bold {
  font-size: 1em;
  font-weight: bold;
}

h1 {
  font-weight: bold;
  font-size: 1.4em;
}

/* Slut Varningar */

.end-of-page {
  background-color: #000;
  height: 5em;
  margin-top: 1em;
  margin-bottom: 0;
}

#nav-toggle {
  display: none;
}

/* Responsive */

@media screen and (max-width: 340px) {
  #nav-toggle {
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 550px) {
  .main-content {
    display: flex;
    flex-wrap: wrap;
  }
  .warning-box {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 400px) {
  .warning-explanation-table-cell {
    width: 100% !important;
  }
}

@media screen and (max-width: 750px) {
  a {
    overflow-wrap: break-word;
    word-break: break-all;
  }

  .warning-explanation-table-cell:nth-child(n + 1) {
    width: 130px;
  }

  .warning-explanation-table-cell:nth-child(2n) {
    width: calc(100% - 130px);
  }

  .warning-explanation-table > .first-row,
  .warning-explanation-table > .second-row {
    order: 0;
  }

  .warning-explanation-table-cell:nth-child(2n) {
    padding-right: 0;
  }
  .warning-explanation-table-cell:nth-child(5) {
    padding-right: 1em;
  }
}

@media screen and (max-width: 810px) {
  .prognos {
    float: none;
    width: inherit;
    margin-left: 0;
  }
}

@media screen and (max-width: 810px) {
  .navigation {
    top: 0;
  }
}

@media screen and (max-width: 900px) {
  #varningar {
    width: inherit;
    float: none;
    height: inherit;
  }
}

@media screen and (max-width: 960px) {
  .area {
    display: none;
  }
  .observationer {
    padding: 0;
  }
  .prognos {
    width: auto;
  }
}

@media only screen and (min-width: 1262px) {
  .navigation {
    display: none;
  }
}

@media only screen and (max-width: 1262px) {
  .navigering {
    background-color: #fff;
    padding: 0;
  }
  .logo {
    padding: 0 1em;
    display: block;
    float: left;
  }
  #content {
    position: relative;
  }
  .main-nav {
    display: none;
  }
  .second-nav {
    height: 5em;
  }
  .navigation {
    position: absolute;
    background-color: transparent;
    width: 100%;
    top: -0.5em;
    right: 0;
    z-index: 10000;
  }
  #nav-toggle {
    margin-left: 1.5rem;
    color: #fff;
    background-color: #0c6bc4;
    display: flex;
    align-items: center;
    border-radius: 0.125rem;
    padding: 1rem 1.5rem;
    bottom: inherit;
    border: none;
    top: 0.65em;
    right: 1em;
    font-family: "Noto Sans", sans-serif;
    font-size: 20px;
    cursor: pointer;
  }
  #nav-toggle span {
    display: inline-flex;
    margin-right: 1rem;
  }
  #nav-toggle:focus {
    outline: 0.125rem solid #fff;
    outline-offset: -0.35rem;
    background-color: #0c6bc4;
  }
  #nav-toggle:active {
    background-color: #004591;
  }
  #nav-toggle:hover {
    background-color: #0054a6;
  }
  #nav-toggle svg {
    fill: #fff;
    width: 24px;
    height: 24px;
  }
  #nav-toggle .menu-icon-opened {
    display: none;
  }
  #warning {
    margin-left: auto;
  }
  #warning a {
    position: absolute;
    top: 7em;
    right: calc((100% - 123px) / 2);
  }
  #warning a:hover {
    background-color: #f5f6f7;
  }
  #nav-list {
    clear: both;
    display: none;
  }
  #nav-list li {
    background-color: #f5f6f7;
    color: #000;
    padding: 0 0.5rem 0 1.5rem;
    border-bottom: 1px solid #ddd;
  }
  #nav-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
  }
  #nav-list li:first-of-type {
    border-top: 1px solid #ddd;
  }
  #nav-list li span {
    padding: 1rem 0.5rem 1rem 0;
    flex: 1 1 auto;
    color: #0054a6;
    text-decoration: none;
  }
  #nav-list,
  #nav-list ul {
    padding: 0;
  }
  .nav-group {
    padding: 0.3rem 0.5rem 0.3rem 1.5rem;
    display: block;
  }
  #nav-list li li {
    background-color: #f5f6f7;
    border-top: 1px solid #f5f6f7;
  }
  #nav-list li li a {
    padding: 1em 0 0.8em 1em;
    text-decoration: none;
    border: none;
    display: block;
  }
  .maincont {
    width: unset;
  }
  .mainH1 {
    font-size: 2.25em;
  }
}
