/* Colors:
Karry: #D2C955;
Mørkegrøn: #5b5029;
Lysebrun: #E0D5CA;
Blå: #79B4EE;
Gråblå: #CAD5E0;
Creme: #FFFCEC;
*/

html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: none;
}

body {
  margin: 0;
  padding: 0; /* Remove padding for alignment */
  font-family: montserrat;
  background: #FFFCEC;
  color: #5b5029;
}

section {
  min-height: 100vh;
}
 

header, menu {
  position: sticky;
  top: 0;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h6, h7 {
  font-family: custom-PFR;
  margin: 1rem 0;
  padding: 0 10vw;
  font-weight: normal;
  line-height: 1.1;
}

h1 {
  line-height: 0;
  color: #FFFCEC;
}

h2 {
  margin-top: 4rem;
  font-size: 3rem;
  scroll-margin-top: 7rem;
}

h3 {
  margin-top: 3rem;
  font-size: 1.8rem;
}

h4 {
  margin-top: 13vw;
  font-size: 6vw;
  text-align: center;
  font-family: montserrat;
  font-weight: 350;
  scroll-margin-top: 7rem;
}

h5 {
  margin-top: 0rem;
  margin-bottom: 8vw;
  font-size: 2.8vw;
  font-family: montserrat;
  text-align: center;
  font-style: italic;
  font-weight: 350;
}

h6 {
  font-family: montserrat;
  font-size: 1.3rem;
  padding: 0 10vw;
  line-height: 1.3;
}

h7 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

/* List styling */
ul.custom-list {
  font-family: montserrat;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 1rem 0;
  padding-left: 14vw;
  padding-right: 10vw;
  list-style-type: disc;
}

ul.custom-list li {
  margin-bottom: 0.5rem;
}

ol, blockquote {
  padding-left: 1rem;
  margin-left: 1rem;
  margin-right: 0;
  padding-right: 0;
}

blockquote {
  border-left: 1px solid gray;
}

pre {
  white-space: pre-wrap;
  padding: 1rem;
  line-height: 1.2;
  border: 1px solid lightgray;
  border-radius: 4px;
  font-family: monospace;
}

ol li {
  margin: 0.4rem 0;
}

ol li::marker {
  color: lightgray;
}

p {
  margin: 0.75rem 0;
}

main img, main video, main audio {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
}

main video, main audio {
  width: 100%;
}

main video {
  border: 1px solid lightgray;
  aspect-ratio: 16 / 9;
}

footer {
  padding-top: 0rem;
  margin-top: 0rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
}

footer .lichen-plug {
  display: block;
  margin: 1rem auto;
  color: inherit;
  text-decoration: none;
}

footer p {
  margin: 0.2rem 0;
}

table {
  border: 1px solid gray;
  border-collapse: collapse;
  font: normal 13px Arial, sans-serif;
}

thead th {
  background-color: orchid;
  border: 1px solid black;
  color: white;
  padding: 10px;
  text-align: left;
}

tbody td {
  border: 1px solid black;
  color: #333;
  padding: 10px;
  text-shadow: 1px 1px 1px #fff;
}

@font-face {
  font-family: 'custom-PFR';
  src: url('https://favn.ukrudt.net/assets/PlayfairDisplay-Regular.ttf');
}

@font-face {
  font-family: 'montserrat';
  src: url('https://favn.ukrudt.net/assets/montserrat.ttf');
}

menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background-color: #79B4EE;
  font-size: 2rem;
  font-family: custom-PFR;
  gap: 1rem;
  position: sticky;
}

@media (max-width: 1024px) {
  menu {
    font-size: 1.5rem;
  }
}

/* Small screens (smartphones) */
@media (max-width: 768px) {
  menu {
    font-size: 1.1rem;
  }
  section {
    min-height: 80vh;
  }

}

/* Extra small screens (very small smartphones) */
@media (max-width: 480px) {
  menu {
    font-size: 1.2rem;
      grid-template-columns: repeat(2, 1fr);
/*grid-template-columns: 2;  Single column for very small screens */
  }
  h4 {
    margin-top: 8vw;
    font-size: 12vw;
    text-align: center;
    font-family: montserrat;
    font-weight: 350;
  }
  h5 {
    margin-top: 0rem;
    margin-bottom: 16vw;
    font-size: 6vw;
    font-family: montserrat;
    text-align: center;
    font-style: italic;
    font-weight: 350;
  }
}

.menu-item {
  position: relative;
}

.menu-item a {
  display: block;
  padding: 0rem;
  text-align: center;
  color: #5b5029;
  text-decoration: none;
}

.menu-item a:hover {
  background-color: #5b5029;
  color: #D2C955;
  border-radius: 0rem;
}

.menu-item:nth-child(2) {
  grid-column: 1;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #79B4EE;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0´0rem;
}

.dropdown-content a {
  display: block;
  padding: 0rem;
  text-align: center;
  color: #5b5029;
  border-radius: 0rem;
  text-decoration: none;
  font-family: custom-PFR;
}

.dropdown-content a:hover {
  background-color: #5b5029;
  color: #D2C955;
  border-radius: 0rem;
}

.menu-item:hover .dropdown-content {
  display: block;
}

/* Container with three columns */
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.5rem;
}

.column {
  background-color: #FFFCEC;
  display: flex;
  flex-direction: column;
}

.column img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0;
}

.column .text {
  padding: 1rem;
  padding-top: 0;
  text-align: left;
  color: #5b5029;
  font-size: 1.5rem;
}
.mobile-only-image {
  display: none; /* Hide by default */
}

/* Hide container and its contents on screens smaller than 768px */
@media (max-width: 768px) {
  .container, .column {
    display: none;
  }
  .mobile-only-image {
    display: block; /* Show only on smaller screens */
    text-align: center;
    padding: 0rem 0;
  }

  .mobile-only-image img {
    width: 100%; /* Adjust image to fit the screen width */
    height: auto; /* Maintain aspect ratio */
  }
  .h5 {
  margin-bottom: 1vw;
  }
}

/* Colored section */
.graablaa {
  padding-top: 0.01vw;
  padding-bottom: 1vw;
  background-color: #CAD5E0;
  color: #5b5029;
}

.mosgroenogkarry {
  padding-top: 0.01vw;
  padding-bottom: 1vw;
  background-color: #5b5029;
  color: #D2C955;
}