@import url(normalize.css);
@import url("https://fonts.googleapis.com/css2?family=Antonio:wght@100..700&family=Fascinate&family=Fascinate+Inline&family=Molle&family=Niramit:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sail&family=Spicy+Rice&family=Yeseva+One&display=swap");

/* Övergripande stilregler */
* {
  box-sizing: border-box;
}

body {
  background-color: #67693d;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

body,
html {
  overflow-x: hidden;
}

.wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background-color: #f2edd5;
}

h1 {
  font-family: Antonio, Helvetica, Arial, sans-serif;
  color: #306630;
  font-size: 2.5em;
  line-height: calc(1ex / 0.42);
}

h2 {
  font-family: Poppins, Arial, Helvetica, sans-serif;
  color: #306630;
  font-size: 2em;
  line-height: calc(1ex / 0.42);
}

p {
  font-family: Niramit, Poppins, Arial, Helvetica, sans-serif;
  color: #404040;
  font-size: 1em;
  line-height: calc(1ex / 0.32);
  margin: calc(1ex / 0.32) 0;
  max-width: 80ch;
}

a {
  color: #67693d;
}

a:hover {
  color: #d9564a;
}

.fet {
  font-style: bold;
  font-weight: bold;
}

.kursiv {
  font-style: italic;
}

/* Specificerade stilregler*/
header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 90px;
  margin: 1rem;
}

header nav li {
  display: inline-block;
  padding: 0.5rem;
  margin: 0.5rem;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 75vh;
  background-image: url("../images/produktbildkokochrum.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image .opening {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 20px;
}

.opening h1 {
  margin: 0;
}

#oppettider {
  padding: 2rem;
  color: #306630;
  font-family: Niramit, Poppins, Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
}

.waiteraid-widget {
  display: inline-block;
  padding: 20px 40px; /* Justera om du vill ha annan storlek */
  border: 3px solid #306630; /* Tjock ram */
  background-color: #306630; /* Genomskinlig bakgrund */
  color: #f2edd5;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.waiteraid-widget:hover {
  background-color: #404040;
  color: #f2edd5;
}

/* 
.video-background {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
   */

/*
.video-background .opening {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 20px;
}
*/
.opening {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 1rem;
  background-color: rgb(240, 248, 255, 0.5);
}

.alert {
  background-color: #ffd0d0;
  color: #831c00;
  border: 1px solid #831c00;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem;
  font-family: sans-serif;
  text-align: center;
  max-width: 400px;
}

.info {
  margin: 0 auto;
  padding-bottom: 20px;
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: hsla(120, 36%, 29%, 0.222);
}

.rundahorn {
  border-radius: 50px;
}

.info p {
  max-width: 60ch;
}

.marginal {
  margin: 10px;
}

.bredd {
  width: 90%;
}

.menywrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Två kolumner */
  padding: 1rem;
  justify-items: center; /* centrerar innehållet i varje ruta */
}

.menywrapper > div {
  padding: 1rem;
  flex: 2;
  max-width: 40ch;
}

#restmenu {
  display: flex;
  justify-content: center;
  font-size: 6rem;
  margin: 0;
}

#dagens {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

#dagens p {
  margin: 0;
}

#menuinfo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  margin: 0;
  max-width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  background-color: #ddd;
}
.footer-column {
  flex: 1;
  padding: 0 1rem;
}

/* Stilregler för Destio */
iframe.townipromo {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

div.towniPromoContainer {
  width: 100%;
  height: 180px;
  transition: height 0.2s ease-in-out;
  overflow: hidden;
}

/* Stilregler för olika skärmar */

@media (max-width: 850px) {
  .wrapper {
    max-width: 100%;
  }

  header {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: wrap;
  }

  .menywrapper {
    display: flex;
    flex-wrap: wrap;
  }

  .footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2rem;
    background-color: #ddd;
  }
  .footer-column {
    flex: 1;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  header nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  header nav li {
    display: block;
    margin: 0.5rem 0;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    height: 50vh;
    background-position: center;
  }

  .hero-image .opening {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5); /* bättre kontrast */
  }

  .hero-image .opening h1,
  .hero-image .opening h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .menywrapper {
    grid-template-columns: 1fr; /* en kolumn på mobil */
  }

  .menywrapper > div {
    max-width: 90%;
  }
}

/* Destio */

@media screen and (max-width: 415px) {
  div.towniPromoContainer {
    height: 300px;
  }
}
