/* styling starter med generel opsætning ift. sizing og fonte  */
*,
*::before,
*::after {
 box-sizing: border-box;
}




* {
 margin: 0;
 padding: 0;
 font: inherit;
}


html {
 hanging-punctuation: first last;
}


/* ingen list styles (bullets/numbers) */
ol,
ul,
menu {
 list-style: none;
}


/* responsive images, videos,logo */


img,
picture,
svg,
video {
 display: block;
 max-width: 100%;
}




img {
 max-inline-size: 100%;
 max-block-size: 100%;
}


/* @media til at lave smooth scrolling, optimerer brugerrejsen*/
@media (prefers-reduced-motion: no-preference) {
 :has(:target) {
   scroll-behavior: smooth;
   scroll-padding-top: 3rem;
 }
}


img,
picture,
video,
canvas,
svg {
 display: block;
 max-width: 100%;
}


input,
button,
textarea,
select {
 font: inherit;
}




h1,
h2,
h3,
h4,
h5,
h6 {
 overflow-wrap: break-word;
}




p {
 overflow-wrap: break-word;
 text-wrap: pretty;
}


/* ===================================! gennerelle styles ! ======================================= */


:root {
 --primary-1-color: #082a2f;
 --secondary-1-color: #30a7b7;
 --accent-1-color: #FD8524;
 --accent-2-color: #ffffff;
 --primary-text-color: #f1f3f5;
 --secondary-text-color: #000000;
}


body {
 font-family: "Open sans", sans-serif;
 background-color: var(--primary-1-color);
 color: var(--primary-text-color);
 font-size: 18px;
 line-height: 2rem;
 margin:0px 0px;
}


main {
 margin:0px auto;
}




#content {
 padding:100px 50px;
 text-align:left;
 width:80%;
 margin:0px auto;
}

#content2 {
  padding:100px 50px;
  text-align:left;
  width:80%;
  margin:0px auto;
 }

 #content3 {
  padding:100px 50px;
  text-align:left;
  width:80%;
  margin:0px auto;
 }

 #content4 {
  padding:100px 50px;
  text-align:left;
  width:80%;
  margin:0px auto;
 }

.col-3 {
 float: left;
 width: 33.33%;
 padding: 16px;
}

.col-2 {
 float: left;
 width: 50%;
 padding: 16px;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(253, 134, 36, 0.18); /* Add your color filter here */
  z-index: 1;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}




.dark {
 width: 100%;
 text-align: left;
 padding: 80px 20%;
 background-color: var(--secondary-1-color);
}
.dark p{
 color: var(--primary-1-color);;
}
.dark h2{
 color: var(--primary-1-color);;
}

.dark2 {
  width: 100%;
  text-align: left;
  padding: 80px 20%;
  background-color: var(--secondary-1-color);
 }
 .dark2 p{
  color: var(--primary-1-color);;
 }
 .dark2 h2{
  color: var(--primary-1-color);;
 }


.row:after {
 content: "";
 display: table;
 clear: both;
}


.text-large{
 font-size: 1.4rem;
 font-weight: 600;
}
.text-small{
 font-size: 1rem;
}


/* =================================== ! responsive layout, så det tilpasser sig skærmstørrelse ! ======================================= */


@media screen and (max-width: 800px) {
.col-3 {
   width: 100%;
   text-align: center;
 }
 .col-3 img {
   width: 100%;
   align-items: center;
 }
 .col-2 {
   width: 100%;
   text-align: center;
}

#content {
 text-align: center;
}

#content2 {
  text-align: center;
 }

 #content3 {
  text-align: center;
 }

 #content4 {
  text-align: center;
 }

}


h1 {
 font-size: 2rem;
 font-weight: 600;
 line-height: 160%;
 padding-bottom: 60px;
}


h2 {
 font-size: 1.5rem;
 font-weight: 700;
 line-height: 180%;
}
h3 {
 font-size: 1.2rem;
 font-weight: 600;
}




/* =================================== ! styling af knap ! ======================================= */




/* vigtigt med .btn for at den kan fungere som knap */
.btn {
 display: inline-block;
 padding: 4px 20px;
 border: 2px solid var(--accent-1-color);
 border-radius: 5px;
 background-color: var(--accent-1-color);
 color: var(--accent-2-color);
 text-decoration: none;
 font-size: 1.2rem;
 font-weight: 400;
 transition: all 0.2s ease-in-out;
 cursor: pointer;
 margin: 20px 0;
}
.btn:hover,
.btn:focus {
 background-color: var(--accent-2-color);
 color: var(--accent-1-color);
 border-color: var(--accent-1-color);
 outline: none;
}





/* add to button or anker to make it larger */
.btn-lg {
 padding: 8px 32px;
 font-size: 1.3rem;
 font-weight: 600;
}


/* ====================================== ! styling af header og navigation ! ==================================== */


header {
 position: sticky;
 z-index: 99;
 width: 100%;
 min-height: 65px;
 display: grid;
}


.navigation {
 background-color: var(--primary-1-color);
 padding: 0 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 position: sticky;
}


.navigation span {
 display: block;
 text-align: center;
}


.navigation span:first-child {
 font-size: 1.1rem;
 font-weight: bold;
}


.navigation span:last-child {
 font-size: 0.8rem;
}


.navigation img {
 height: 50px;
 width: 50px;
 cursor: pointer;
}


/* =================================== ! styling af sidebar ! ======================================= */


#showSidebar {
 margin: 0 10px;
 height: 30px;
 width: 30px;
 cursor: pointer;
}


.sidebar {
 position: fixed;
 top: 0;
 right: 0;
 height: 100vh;
 width: 300px;
 overflow-x: hidden;
 background-color: var(--primary-1-color);
 box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
 transition: transform 0.2s ease-in-out;
 transform: translateX(100%);
 z-index: 999;
}


.sidebar ul {
 position: relative;
 display: flex;
 flex-direction: column;
 gap: 25px;
 padding: 50px;
}


.sidebar ul::before,
.sidebar ul::after {
 content: "";
 width: 100%;
}


.sidebar ul::before {
 margin-bottom: 10px;
}


.sidebar ul::after {
 margin-top: 10px;
}


.sidebar li {
 font-size: 1.2rem;
}


.sidebar li:first-child {
 position: absolute;
 top: 0;
 right: 0;
 padding: 12px;
}


.sidebar img {
 height: 2rem;
 width: 2rem;
}


.sidebar a {
 text-decoration: none;
 color: var(--primary-text-color);
}


/* =================================== ! index.html med hero-sektion ! ======================================= */




#hero {
 position: relative;
 display: flex;
 justify-content: center;
 padding: 0;
 background-color: #000000;
 height: 500px;
}
#hero video {
 width: 100%;
 object-fit: cover;
}


/* vigtigt at knap placeres oven på videoen */


#hero button {
 position: absolute;
 bottom: 10%;
 z-index: 1;
}




 #hero button {
   padding: 8px 32px;
   font-size: 1.3rem;
   font-weight: 600;
 }


/* =================================== ! introsektion ! ======================================= */


.site-intro {
 padding: 20px;
 display: flex;
 justify-content: space-between;
}




.site-intro img {
 height: 100px;
 width: 100px;
 float: right;
}


/* =================================== ! sektion med teasers ! ======================================= */


.teaser {
 position: relative;
 text-align: center;
}


.teaser::after {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 2;
 background-color: #fd86242d;
 /* transparent baggrundsfarve er farvefilter til billeder */


}
.in-text-link {
 color: var(--accent-1-color);
 text-decoration: none;
}
.in-text-link:hover {
 color: var(--primary-text-color);
 text-decoration: underline;
}


.teaser img {
 z-index: 1;
 position: relative;
 width: 100%;
 max-height: 500px;
 object-fit: cover;
}




.title-to-teaser {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 color: var(--accent-2-color);
 font-size: 2.5rem;
 letter-spacing: 4px;
 font-weight: 700;
 text-transform: uppercase;
 z-index: 3;
}

/* =================================== ! sektion med produkter ! ======================================= */


.beer-catalog {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.beer-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 20px;
}
.beer-wrapper {
  display: flex;
  justify-content: center;
}
.beer-item {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.beer-image {
  padding: 0 20px;
}
.beer-image img {
  box-shadow: var(--item-shadow);
}
.beer-info-wrapper {
  position: relative;
  background-color: var(--secondary-1-color);
  box-shadow: var(--item-shadow);
  padding: 60px 30px 30px 30px;
  margin-top: -20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: -1;
}
.beer-info-wrapper .btn {
  font-size: 1rem;
}
.beer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.beer-info span:first-child {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  padding-bottom: 20px;
 
}
.beer-info span:last-child {

  text-align: center;
}


/* =================================== !sektion med footer ! ======================================= */


footer {
 text-align: center;
 background-color: var(--secondary-1-color);
 color: var(--primary-text-color);
}




footer li{
 float: left;
 width: 33.33%;
 padding: 8px 0;
}




footer a {
 color: var(--primary-text-color);
 text-underline-offset: 4px;
}




.footer-logo {
 width: 8rem;
 height: 8rem;
}


.copyright {
 padding: 10px 0 15px 0;
 background-color: var(--primary-1-color);
 color: var(--primary-text-color);
 font-size: 0.8rem;
 text-align: center;
}


/* ===================================MARK: @media ======================================= */


@media (min-width: 1024px) {
 /* Header */
 .navigation {
   justify-content: flex-end;
 }
 .navigation div:nth-child(2) {
   margin-right: auto;
 }
 #showSidebar {
   display: none;
 }
 .sidebar {
   position: relative;
   height: auto;
   width: auto;
   box-shadow: none;
   transform: translateX(0);
 }
 .sidebar ul {
   flex-direction: row;
   padding: 0;
 }
 .sidebar ul::before,
 .sidebar ul::after {
   display: none;
 }
 .sidebar li:first-child {
   display: none;
 }


}
