css * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", serif;
  background: #ffffff;
  color: black;
}

footer {
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 1rem;
}

footer p {
  margin: 0;
}

header .logotype {
  padding: 1rem 0;
}

a {
  cursor: pointer;
  text-decoration: none;
}

header a {
  color: maroon;
}

.logotype {
  width: 220px;
}

/* HEADER */
.header-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* NAV */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  font-size: 1.2rem;
}

.nav-links a {
  font-family: "Cinzel", serif;
  text-decoration: none;
  transition: 0.3s;
  color: maroon;
}

.nav-links a:hover {
  color: burlywood;
}

.info-card .menu-image {
  height: 250px;
}

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

.info-card .menu-image button {
  width: 80%;
  min-height: 90px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sub-header-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: burlywood;
  padding: 1rem;
  border-top: 5px solid maroon;
  border-bottom: 10px solid maroon;
}

.address h2,
.address h3 {
  margin: 0;
  line-height: 1.2;
}

.address h3 {
  font-family: "Cinzel", serif;
}

.address {
  width: 15rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  width: 25rem;
}

.social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 25rem;
}

.social svg {
  color: maroon;
}

/* BANNER */
.banner {
  width: 100%;
  height: 3rem;
  overflow: hidden;
  position: relative;
  background-color: burlywood;
  display: flex;
  align-items: center;
}

.slides {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.slide {
  flex: 0 0 auto;
  padding: 0 2rem;
  white-space: nowrap;
  line-height: 3rem;
  font-size: larger;
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* DAGENS LUNCH */
.dagens-lunch-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: whitesmoke;
  background: rgba(255, 255, 25, 0.8);
  border: 10px solid maroon;
  background-image:
    linear-gradient(rgba(34, 18, 1, 0.9), rgba(128, 30, 30, 0.8)),
    url("../Images/melodylogo.png");
}

.dagens-lunch-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dagens-lunch-header {
  text-align: center;
  color: maroon;
}

.dagens-lunch-header h1 {
  text-shadow: 2px 2px 5px rgba(255, 0, 0, 0.9);
  color: white;
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
}

.dagens-lunch-content h1 {
  font-weight: 700;
  letter-spacing: 1px;
}

.dagens-lunch-content h2 {
  font-size: 3rem;
}

.dagens-lunch-content h1,
.dagens-lunch-content p {
  margin: 0;
}

.dagens-lunch-content p {
  font-weight: 400;
  line-height: none;
  color: white;
  font-size: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

/* HERO / MAIN PAGE CARDS */
.hero {
  width: 100%;
  background-size: cover;
  background-position: center;
}

#menu-hidden {
  display: none;
}

#menu-relative {
  position: relative;
}

.menu-items {
  width: 100%;
}

/* Make all hero/menu cards the same height */
.menu-items,
.menu-items.info-card {
  height: 260px;
}

.menu-items .menu-image,
.menu-items.info-card .menu-image {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Keep images cropped, not distorted */
.menu-items .menu-image img,
.menu-items.info-card .menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.menu-image {
  position: relative;
  width: 100%;
  height: 188px;
  overflow: hidden;
}

.menu-image img,
.menu-items img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.menu-image button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  box-shadow: 10px 10px 10px rgba(20, 20, 20, 0.7);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: maroon;
  border: none;
  cursor: pointer;
  min-width: 18rem;
  border-radius: 5px;
}

.menu-image button:hover {
  border: 5px solid maroon;
}

.menu-image button,
.menu-image button h1,
.menu-image button h2,
.menu-image button h3 {
  font-family: "Cinzel", serif;
}

.menu-image button h1 {
  font-size: 1.8rem;
}

.menu-image button h2 {
  font-size: 1.4rem;
}

.menu-image button h3 {
  font-size: 1rem;
}

.pizza-menu {
  width: min(1050px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

.flag-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-home img {
  width: 32px;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.flag-home:hover img {
  transform: scale(1.1);
}

/* MENU NAV */
.top-link {
  background: #d4af37;
  color: #fff !important;
  border-color: #b8921f !important;
  font-weight: 700;
}

.top-link:hover {
  background: #b8921f;
}

.menu-nav {
  position: sticky;
  top: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;

  padding: 1rem;
  background: #fffaf0;
  border-top: 2px solid maroon;
  border-bottom: 3px solid maroon;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-nav a {
  font-family: "Cinzel", serif;
  color: maroon;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border: 1px solid maroon;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-nav a:hover {
  background: maroon;
  color: white;
}

section[id] {
  scroll-margin-top: 100px;
}

/* MENU PAGES */
.meny-main {
  background-image:
    linear-gradient(rgba(34, 18, 1, 0.9), rgba(128, 30, 30, 0.8)),
    url("../Images/melodylogo.png");
}

.pizza-menu {
  width: 92%;
  max-width: 1050px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f5deb3;
  border: 8px solid maroon;
  border-radius: 6px;
  color: #2b1408;
}

.menu-title {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 4px solid maroon;
}

.menu-title h1 {
  font-family: "Cinzel", serif;
  color: maroon;
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

.menu-title p {
  font-size: 1.25rem;
  line-height: 1.6;
}

.pizza-category {
  margin-bottom: 2.5rem;
}

.pizza-category h2 {
  font-family: "Cinzel", serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: maroon;
  color: white;
  padding: 0.8rem 1rem;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pizza-category h2 span {
  font-size: 1.2rem;
  white-space: nowrap;
}

.pizza-row {
  display: grid;
  grid-template-columns: 280px 1fr 100px;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1rem;
  background: #fff8e7;
  border-bottom: 1px solid rgba(128, 0, 0, 0.15);
}

.pizza-row:nth-child(even) {
  background: #f9edcf;
}

.pizza-row h3 {
  font-family: "Cinzel", serif;
  color: maroon;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pizza-row p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
}

.pizza-row span {
  text-align: right;
  font-family: "Cinzel", serif;
  color: maroon;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ÖPPETTIDER PAGE */
.oppettider-main {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(34, 18, 1, 0.9), rgba(128, 30, 30, 0.85)),
    url("../Images/melodylogo.png");
  background-size: cover;
  background-position: center;
}

.oppettider-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.oppettider-card {
  width: 100%;
  max-width: 850px;
  text-align: center;
  background: #f5deb3;
  border: 10px solid maroon;
  border-radius: 8px;
  padding: 2rem 1rem;
  box-shadow: 12px 12px 20px rgba(0, 0, 0, 0.45);
}

.oppettider-card h1 {
  font-family: "Cinzel", serif;
  color: maroon;
  font-size: clamp(1.8rem, 4vw, 5rem);
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

.oppettider-list p {
  font-family: "Cinzel", serif;
  color: #2b1408;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.oppettider-list span {
  color: maroon;
}

.oppettider-link {
  display: inline-block;
  margin-top: 3rem;
  font-family: "Cinzel", serif;
  color: white;
  background: maroon;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  font-size: 1.1rem;
}

.oppettider-link:hover {
  background: #5f0000;
}

.open {
  color: maroon;
}

.closed {
  color: #c00000;
}

.open-status {
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.open-status.open {
  color: maroon;
}

.open-status.closed {
  color: #c00000;
}

/* RESPONSIVE */
@media (min-width: 850px) {
  #menu-hidden {
    display: block;
    width: 100%;
  }

  #menu-relative {
    display: none;
  }

  .dagens-lunch-wrapper,
  .hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .address {
    width: 20rem;
  }

  .header-items {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    padding: 0 1rem;
  }
}

@media (min-width: 1000px) {
  .dagens-lunch-wrapper {
    display: flex;
    flex: 1;
    height: 400px;
    overflow: hidden;
    justify-content: space-evenly;
  }

  .dagens-lunch-content h2 {
    font-size: 2rem;
  }

  .hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  #menu-hidden {
    width: 50%;
    flex-shrink: 0;
  }

  #menu-hidden img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .dagens-lunch-content {
    width: 50%;
  }
}

@media (max-width: 1024px) {
  .pizza-menu {
    width: 94%;
    padding: 1.5rem;
  }

  .pizza-row {
    grid-template-columns: 240px 1fr 90px;
  }
}

@media (max-width: 640px) {
  .pizza-menu {
    width: 95%;
    padding: 1rem;
    margin: 2rem auto;
    border-width: 5px;
  }

  .menu-title h1 {
    font-size: 2.3rem;
  }

  .menu-title p {
    font-size: 1.05rem;
  }

  .pizza-category h2 {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.25rem;
  }

  .pizza-category h2 span {
    font-size: 1rem;
  }

  .pizza-row {
    grid-template-columns: 1fr;
  }

  .pizza-row h3 {
    font-size: 1rem;
  }

  .pizza-row p {
    font-size: 1.1rem;
  }

  .pizza-row span {
    text-align: left;
    font-size: 1.35rem;
    margin-top: 0.25rem;
  }
}

@media (max-width: 420px) {
  .pizza-menu {
    width: 96%;
    padding: 0.75rem;
  }

  .menu-title h1 {
    font-size: 1.9rem;
  }

  .pizza-category h2 {
    font-size: 1.1rem;
    padding: 0.7rem;
  }

  .pizza-row {
    padding: 0.7rem;
  }

  .pizza-row span {
    font-size: 1.25rem;
    text-align: left;
    margin-top: 0.25rem;
  }

  .oppettider-card {
    padding: 3rem 1rem;
    border-width: 6px;
  }

  .oppettider-card h1 {
    letter-spacing: 2px;
    margin-bottom: 2rem;
  }

  .oppettider-list p {
    line-height: 1.8;
  }
}
