body {
  font-family: "Lato", sans-serif;
}

body,
html {
  height: 100%;
  color: #777;
  line-height: 1.8;
}

#home,
.bgimg-1 {
  background-image: url('images/Keramik-baggrund.jpg');
  background-size: cover;
  background-position: center;
}

/* Container til produkterne */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 kolonner */
  gap: 20px;
  justify-items: center;
}

/*Sikre at billederne i product-grid ikke har nogle hvide kanter */
.product-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}

/* Til mobilvisning: 2 rækker med 3 produkter */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    /* Stadig 3 kolonner */
    gap: 15px;
    /* Mindre afstand på mindre skærme */
  }
}


/* Create a Parallax Effect */
.bgimg-1 {
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100%;
}

.w3-wide {
  letter-spacing: 10px;
}

.w3-hover-opacity {
  cursor: pointer;
}

/* Responsive adjustments for larger screens */
@media only screen and (min-width: 1600px) {
  .bgimg-1 {
    background-size: cover;
    background-position: top center;
    min-height: 100vh;
  }
}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1200px) {
  .bgimg-1 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

/* Styling til de seje sociale-medier-knapper, med skygge */
@import url(https://use.fontawesome.com/releases/v6.4.2/css/all.css);

.codetheworld-io {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.codetheworld-io a {
  margin: 0;
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: 0.5s;
  color: var(--color);
  font-size: 2.5em;
  position: relative;
}

.codetheworld-io a:hover {
  background: var(--color);
  color: #050801;
}

.codetheworld-io a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.codetheworld-io a:hover::after {
  opacity: 1;
}

/* Bæredygtigheds-sektionen*/
.bæredygtighed-row {
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .bæredygtighed-row {
    display: flex;
    flex-direction: column;
    /* Gør at kolonnerne stables vertikalt */
  }
}

/* Billede til kontaktformularen rykket til højre */
.w3-col.m4.w3-container img.w3-image.w3-round {
  float: right;
}

/* Skjul billedet på mobil (under 768px bredde) */
@media screen and (max-width: 768px) {
  .w3-col.m4.w3-container {
    display: none;
  }
}

/* Kontaktformular fylder hele bredden på bestemt px(601px til 768px) */
@media screen and (min-width: 601px) and (max-width: 768px) {
  /* Formularen fylder hele bredden */
  .w3-col.m8 {
    width: 100% !important;
  }

  /* Skjul billedet helt */
  .w3-col.m4 {
    display: none;
  }
}

/* CSS til knapperne ved produkterne*/
.btn {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  border: 3px solid #000;
  padding: 0.25em 0.5em;
  box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  background-color: #000;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}

.btn:hover {
  background-color: #ddd;
  color: black;
}

@media (min-width: 768px) {
  .btn {
    padding: 0.25em 0.75em;
  }
}

.product-container {
  position: relative;
  display: inline-block;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-container:hover .overlay {
  opacity: 1;
}

/* CSS til produktsiderne */
.thumbnail {
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  width: 70px;
  height: 70px;
  margin: 5px;
  border-radius: 10px;
}

.thumbnail:hover {
  opacity: 1;
}

.swap-image-btn {
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  /* Gør knappen rund */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  /* Tilføj flex for centrering */
  align-items: center;
  /* Centrer lodret */
  justify-content: center;
  /* Centrer vandret */
}

/* CSS til knappen til kontaktformularen på produktsiderne */
.button-60 {
  align-items: center;
  appearance: none;
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: .375em;
  box-shadow: none;
  box-sizing: border-box;
  color: #363636;
  cursor: pointer;
  display: inline-flex;
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  height: 2.5em;
  justify-content: center;
  line-height: 1.5;
  padding: calc(.5em - 1px) 1em;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}

.button-60:active {
  border-color: #7494ff;
  outline: 0;
}

.button-60:hover {
  border-color: #b5b5b5;
  background-color: #d1d0d0;
}