@charset "UTF-8";

/* Grundstil för webbsidan */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  max-width: 1450px;
  margin: 0 auto;
}

body {
  font-family: "co-headline", sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  padding-top: 6em;
  background-color: #f2f2f2;
}

button,
h1,
h2,
h3,
.nav,
#nav-info,
.productCategories ul li {
  font-family: "co-headline", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #151515;
}




/* ^Grundstil för webbsidan^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* Grundstil för global navigering */
nav {
  background-color: #f2f2f2;
  font-size: 1.2em;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  position: fixed;
  width: 100%;
  max-width: 1450px;
  top: 0;

  z-index: 2;
}


nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav li {
  margin: 1em;
  padding: 1em;
}

nav a {
  text-decoration: none;
  color: #151515;
  position: relative;
}

.logo-container-phones {
  display: none;
}

/* Hover animation */
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #231f58;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
  transform: translateX(-50%);
}




nav li a:hover::after {
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* ^ hover animation ^*/

.active {
  color: #3a499e;
}


/* ^Grundstil för global navigering^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* nav icons style and animation */

@keyframes wiggle {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-5deg) scale(1.1);
  }

  50% {
    transform: rotate(0deg) scale(1);
  }

  75% {
    transform: rotate(5deg) scale(1.1);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

#cart {
  height: 50px;
  transition: transform 0.3s ease-in-out;
}



#cart:hover {
  cursor: pointer;
  animation: wiggle 0.5s ease-in-out;
  scale: 1.2;
}


#menuicon,
#menucheck {
  display: none;
  cursor: pointer;
}

#burger {
  width: 50px;
}


#menucheck:checked~.nav-container ul {
  display: flex;

}

.close-btn {
  display: none;
  cursor: pointer;

}

.logo-container-screens img,
.logo-container-phones img {
  width: 100px;
}

/* ^nav icons style and animation^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* dropdown-menu */

.dropdown-menu {
  display: flex;
  position: absolute;
  z-index: 1;
  background-color: #f2f2f2;
  max-height: 0;
  width: 100%;
  top: 100%;
  left: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;

}

.dropdown-menu li {
  display: block;
  font-size: 0.8em;
}

.dropdown:hover .dropdown-menu {
  max-height: 75px;

}

.dropdown:hover .dropdown {
  border-bottom: 10px solid transparent;
}

/* ^dropdownmeny^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */


/* Grundstil för sidhuvud/banner */

.banner {
  display: flex;
  width: 100%;
  max-height: 550px;
  align-items: center;
  justify-content: center;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 5px 5px 15px rgba(25, 25, 25, 0.2);
}

#nav-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em;
  margin: 0;
  font-weight: 500;
  color: #f2f2f2;
  background-color: #231f58;
}

/* ^Grundstil för sidhuvud/banner ^*/

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* Grundstil för grid-container */

.grid-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "nav nav"
    "nav-info nav-info"
    "header header"
    "main aside"
    "footer footer";
}

.nav {
  grid-area: nav;
}

#nav-info {
  grid-area: nav-info
}

.header {
  grid-area: header;
}

.main {
  grid-area: main;
}

.aside {
  grid-area: aside;
}

.footer {
  grid-area: footer;
}

/* ^Grundstil för grid-container^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* Grundstil för sidLayout */

.info-container,
.bottom-container,
.aside-top,
.aside-bot {
  padding: 3rem;
  margin: 2em;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 10px 15px rgba(25, 25, 25, 0.1);
}

#transparent-container {
  background-color: #f2f2f2;
  padding: 0;
  margin-top: 200px;
  box-shadow: none;
}

.aside-top,
.aside-bot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.info-container,
.aside-bot {
  font-size: 1.1em;
  font-style: italic;

}

.info-container img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 5px 5px 10px rgba(25, 25, 25, 0.1);
  border-radius: 10px;

}

.aside-bot img {
  width: 100px;
}

.aside-bot {
  padding: 3rem;
  margin: 1em;
  background-color: #ffffff;

}

.aside-bot table {
  width: 100%;
  padding: 1em;
  margin: 0;
  text-align: center;
  font-size: 1em;
}

.aside-bot td:first-child {
  text-align: right;
  padding-right: 1em;
}

.aside-bot td:last-child {
  text-align: left;
}

/* ^Grundstil för sidLayout^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* Grundstil för knappar */

#checkout-btn {
  margin: 20px;
}

button {
  width: 100px;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #add8e6;
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button a {
  text-decoration: none;
  color: #151515;
}

button::before {
  content: "";
  height: 200%;
  width: 20px;
  background: #9caad7;
  position: absolute;
  top: -20px;
  transform: translateX(-80px)rotate(20deg);
}

button:hover::before {
  animation: shine 2s ease infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-80px) rotate(20deg);
  }

  100% {
    transform: translateX(200px) rotate(20deg);
  }
}

button:hover,
button a:hover {
  background-color: #231f58;
  box-shadow: 0 5px 0px rgba(25, 25, 25, 1);
  color: white;
  transform: translateY(-2px);
}

/* ^Grundstil för knappar^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* Grundstil för sidan om oss */

#about-worker img {
  width: 200px;
  border-radius: 20%;
  margin-right: 1em;
  box-shadow: 10px 10px 15px rgba(25, 25, 25, 0.3);
}

#about-staff {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;

}

/* Animation för fade in av anställda */
/* OBS 4/6-2024 fungerar detta endast i Chrome */
@keyframes appear {
  from {
    opacity: 0;
    scale: 0.9;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

.employee {
  margin-bottom: 1em;
  padding: 1em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appear linear;
  animation-timeline: view();
  /* Används för att styra när animationen ska spelas upp */
  animation-range: entry 10% cover 30%;
  /* Används för att styra när animationen ska spelas upp */

}

.employee p {
  background: white;

  &::first-letter {
    /* OBS 4/6-2024 fungerar detta endast i Chrome */
    font-weight: 800;
    font-size: 2em;
    background: linear-gradient(90deg, #231f58, #9caad7);
    color: transparent;
    background-clip: text;
  }
}

.employee img {
  width: 200px;
  border-radius: 20%;
  margin-right: 1em;
  box-shadow: 10px 10px 15px rgba(25, 25, 25, 0.3);

}

.employee-info {
  width: 50%;
  margin-left: 2em;

}

/* ^Grundstil för sidan om oss^ */
/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */


/* Grundstil för sidinnehåll kundvagn oss */

.checkout-container {
  width: 100%;
  border: #ccc 1px solid;
  display: flex;
  justify-content: space-around;
  align-items: center;
}



.cart-item {
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.cart-item h4 {
  margin: 0;
  padding: 0;
  color: #000000;
}

.cart-item p {
  width: 50%;
  padding: 0;
  margin: 0;
  color: #0f0f0f;
}

.cart-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-right: 10px;
}

#cart-total p {
  text-decoration: underline;
}

#cart-h1 {
  text-align: center;
}

#total-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: end;
  margin: 20px;
}

#checkout-btn-container {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;

}

/* ^Grundstil för sidinnehåll kundvagn oss^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* Grundstil för footern */
footer {
  background-color: #231f58;
  color: #f2f2f2;
  padding: 10px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  gap: 1em;
  flex-direction: row;
  margin: 2em;
}

.footer ul li img {
  vertical-align: middle;
  margin-right: 0.5em;
}

.footer-content .footer-column {
  flex: 1;
}

footer h3 {
  color: #f2f2f2;
}

footer a,
footer ul,
footer p {
  color: #f2f2f2;
  text-decoration: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer a:hover {
  text-decoration: underline;
  color: #9caad7;
}

/* ^Grundstil för sidfot^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* Grundstil för kartan */

/* Container för kartan. Höjden är satt till 0 för att låta padding-bottom kontrollera höjden. 
Detta gör behållaren responsiv, eftersom höjden kommer att vara 75% av bredden. */
.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
}

/* iFrame som innehåller kartan är absolut positionerad inom .map-container. 
Detta gör att den kan fylla hela utrymmet av .map-container. */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ^Grundstil för kartan^ */

/* ----------------------------------------------------------- */

/* ------------------------------------------------------- */

/* ----------------------------------------------------------- */

/* ----- Media Queries ----- */
/* 1010px */
@media screen and (max-width:1010px) {
  .employee img {
    width: 150px;
    margin-right: 1em;
  }
}

/* 955px */
@media screen and (max-width:955px) {
  .footer ul li img {
    width: 30px;
  }
}

/* 900px */
@media screen and (max-width:900px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "nav-info"
      "header"
      "main"
      "aside"
      "footer";
  }

  .info-container img {
    width: 300px;
    height: 300px;
    margin: 1em;
  }

  .cart-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
  }

  #total-container {
    flex-direction: column;
  }

  .checkout-container {
    align-items: left;
    justify-content: left;
    flex-direction: column;
  }


  #checkout-btn-container {
    border-top: 1px solid #ccc;
    justify-content: center;
    align-items: center;
  }
  

  /*Burger menu */
  #menuicon {
    display: inline-block;
    cursor: pointer;
    font-size: 2em;
    margin: 0;
    padding: 0;
  }

  #menucheckbox~ul {
    display: none;
  }

  #menucheckbox:checked~ul {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    background-color: #f2f2f2;
    position: fixed;
    left: -100%;
    transition: left 0.3s ease;
  }

  #menucheck:not(:checked)~.nav-container ul {
    left: -100%;
  }

  #menucheck:checked~.nav-container ul {
    left: 0;
    top: 0;
    padding-top: 1em;

  }

  #menucheck:checked~.nav-container .close-btn {
    display: block;
  }

  .dropdown-menu li {
    display: none;
  }

  /* ^Burger menu^ */

  /* ----------------------------------------------------------- */

  /* ------------------------------------------------------- */

  /* ----------------------------------------------------------- */

  .footer-content {
    flex-direction: column;
  }


  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-container-screens {
    display: none;
  }

  .logo-container-phones {
    display: flex;
  }

  .nav-left,
  .nav-right,
  .logo-container {
    display: flex;
    align-items: center;
    padding-left: 1em;
    padding-right: 1em;
  }

  .logo-container {
    justify-content: center;
  }

  #transparent-container {
    background-color: #f2f2f2;
    padding: 0;
    margin-top: 0px;
  }

}

/* 600px */
@media screen and (max-width: 600px) {

  html,
  body,
  .grid-container {
    max-width: 100%;
    width: 100vw;

  }


  .info-container,
  .bottom-container,
  .aside-top,
  .aside-bot {
    margin: 0;
    margin-top: 20px;
    padding: 1.5em;
  }

  .employee img {
    width: 100px;
    margin-right: 1em;
  }

  .employee-info {
    width: 80%;

  }


}

/* ^Media Queries^ */
