
@font-face {
  font-family: "Dancing Script";
  src: url(fonts/DancingScript/static/DancingScript-Bold.ttf);
}

@font-face {
  font-family: "Lora";
  src: url(fonts/Lora/static/Lora-Medium.ttf);
}

/*Generella regler*/

html {
  font-size: 105%;
}

body {
  font: 300 1rem/1.375 Lora, serif;
 
}

section {
  background-color: #f3eeea;
}

h1,
h2,
h3,
nav ul,
#copyright,
table th,
.heading {
  font-family: "Dancing Script", cursive;
  /* font-family: "Merriweather", Georgia, serif; */
  font-weight: 900;
  letter-spacing: 0.075rem;
}

header {
  background-image: linear-gradient(
    45deg,
    rgba(124, 117, 117, 0.4),
    rgba(251, 240, 240, 0.5)
  );
}

h1 {
  margin-top: 6rem;
  font-size: 2.25rem;
  text-transform: uppercase;
  color: whitesmoke;
  text-shadow: 2px 1px #000;
}

h2 {
  font-size: 2rem;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 2rem;
}

.saying {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

h3 {
  font-size: 1.5rem;
}

p {
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 1rem;
}

/*Bakgrundsfärger och bild*/

main,
#copyright {
  background-color: #fff;
}

#wrapper {
  background-color: #f3eeea;
  background-size: 100% auto;
}

nav,
footer {
  background-color: #f5f5f5;
}

main,
footer,
#copyright {
  margin: 0 auto;
  max-width: 74rem;
}

/*navigation*/
nav {
  font-size: 1.2rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

nav ul {
  text-transform: uppercase;
}

nav ul li a {
  color: #7f669d;
  text-decoration: none;
  margin-top: 1rem;
}

nav a:focus,
nav a:hover {
  color: #ba94d1;
  font-weight: bold;
  letter-spacing: 0.15rem;
}

/*main*/

section > header p {
  font-style: italic;
  text-align: center;
}

section ul {
  list-style-type: circle;
  list-style-position: inside;
  line-height: 2;
}

.cakesContainer {
  display: inline-flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.cakesItem {
  width: 50%;
  margin: 2rem 0 0.5rem 0;
}

.cakesItem img {
  border: solid 5px #ba94d1;
}

article {
  background-color: #f5f5f5;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

picture {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 10px;
  margin-top: 0px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

picture img {
  width: 75%;
  background-color: #f5f5f5;
  border-radius: 10px;
  margin: 50px 0px 50px 0px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

img {
  width: 100%;
  height: 100%;
  margin: 1rem 0;
}

video {
  border: solid 5px #ba94d1;
  width: 50%;
  height: 10%;
  border-radius: 10px;
}

/*footer*/
footer {
  display: flex;
}

footer p {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

#copyright {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #000;
  background-color: #fff;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/*Table*/
tbody tr:nth-of-type(odd) {
  background-color: rgba(220, 220, 220, 0.25);
}

/*Form*/
input,
select,
textarea {
  border: 1px solid #dfdbdb;
  color: #212931;
  font-size: 1.3rem;
}

input[type="submit"],
input[type="reset"] {
  background-color: #212931;
  color: #fff;
  border: none;
  padding: 0.5rem 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background-color: #18bfef;
}

/*Landningssida (index)*/
body#grid,
#gridParent,
body#grid > div {
  background-color: #f3eeea;
  color: #fff;
  background-image: none;
}

@media (max-width: 600px) {
  h1 {
    text-shadow: 2px 1px #000;
  }
}


.saying {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

#food-widget {
  background-color: #f5f5f5;
}

#food-widget h2,
h3 {
  color: #7f669d;
}


#food-widget ul {
  list-style: none;
  padding: 0;
}

div > header {
  text-align: center;
  padding: 2rem 0;
}

nav {
  line-height: 2rem;
  padding-bottom: 1rem;
}

nav ul {
  flex-direction: column;
  padding: 0;
}

nav ul li {
  text-align: center;
  padding: 0;
}

main section {
  padding: 4rem 2rem 2rem 2rem;
}

#gridParent img {
    width: 40%;
    border: solid 10px #fff;
    border-radius: 200px;
  }

  #gridParentHome img {
    width: 55%;
    border: solid 5px #ba94d1;
    height: 100%;
    margin: 1rem 0;
  }

footer {
  flex-direction: row;
  padding: 0rem;
}

/*Table*/

th {
    color: #212931;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.75rem;
    padding-top: 0;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 0.3rem;
}

tbody tr:nth-of-type(odd) {
    background-color: rgba(220, 220, 220, 0.25);
}

td.right {
    text-align: right;
}




/*Form*/

label {
  width: 100%;
  text-align: left;
  display: block;
}

textarea {
  width: 15rem;
}

input[type="submit"],
input[type="reset"] {
  margin-bottom: 1rem;
}

/*Landningssida (index)*/
#grid h1 {
  color: #fff;
  text-shadow: none;
  text-shadow: 2px 1px #000;
}

@media (min-width: 601px) {
  h1 {
    padding: 1rem 1.75rem;
    margin-bottom: 1em;
  }

  h2 {
    font-size: 4rem;
  }

  .saying {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
  }

  #food-widget h2,
  h3 {
    color: #7f669d;
  }

  
 
  #food-widget ul {
    list-style: none;
    padding: 0;
  }

  #food-widget ul li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
  }

  #food-widget ul li:last-child {
    border-bottom: none;
  }

  h3 {
    font-size: 1.7rem;
  }

  div > header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 10rem;
    padding-bottom: 8rem;
  }

  /* Nav */
  nav {
    display: flex;
    justify-content: center;
  }

  ul li {
    display: inline-flex;
    gap: 1rem;
  }

  nav ul li a {
    padding: 0 1rem;
  }

  main section {
    padding: 6rem 4rem 4rem 4rem;
  }

  /* Footer */
  footer {
    justify-content: space-around;
  }

  footer address {
    width: 12rem;
    padding: 2rem 4rem;
    font-style: normal;
  }

  #copyright ul li {
    border-left: solid 2px black;
    display: inline-block;
    line-height: 1;
    margin-left: 1rem;
    padding-left: 1rem;
  }

  /* Form */
  form {
    width: 30rem;
    margin: 1rem auto 0;
  }

  label {
    width: 8rem;
    float: left;
    text-align: right;
    margin-right: 0.6rem;
    font-size: 1.2rem;
  }

  /* Table */
  table {
    width: 100%;
    max-width: 60rem;
    margin-bottom: 2rem;
  }

  th {
    color: #212931;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.75rem;
    padding-top: 0;
    text-align: left;
    text-transform: uppercase;
  }

  td {
    padding: 0.3rem;
  }

  td.right {
    text-align: right;
  }

  /*landningssida*/
  #grid header {
    padding-top: 5rem;
  }

  #intro {
    width: 75%;
    font-size: 3rem;
    /* line-height: 1.5;  */
    color: whitesmoke;
    text-shadow: 2px 1px #000;
  }

  #gridParent img {
    width: 45%;
    border: solid 10px #fff;
    border-radius: 200px;
  }

  #gridParent p {
    text-align: center;
    margin: 0;
  }

  #gridParentHome img {
    width: 65%;
    border: solid 5px #ba94d1;
    height: 100%;
    margin: 1rem 0;
  }


  /*Galleriet*/
  p img {
    width: 20%;
    margin-left: 1rem;
    border: solid 5px #ba94d1;
  }

  #gallery p {
    display: flex;
    justify-content: center;
  }

  @media (min-width: 1024px) {
    /* Nav */

    .saying {
      font-size: 1.5rem;
      margin-top: 0;
      margin-bottom: 0;
    }

    nav ul li a {
      padding: 0 2rem;
      
    }

    /*Landningssida (index) */
    #grid header {
      padding-top: 5rem;
      background-image: linear-gradient(
        45deg,
        rgba(124, 117, 117, 0.4),
        rgba(251, 240, 240, 0.5)
      );
    }

   

    #gridParent {
      display: grid;
      grid-template-columns: repeat(6, 1fr);

      column-gap: 1rem;
      row-gap: 0px;
    }

    #gridParent p {
      text-align: center;
      margin-bottom: 1rem;
    }

    #gridParent img {
      width: 60%;
    }


    #gridItem1,
    #gridItem2,
    #gridItem3,
    #gridItem4,
    #gridItem5,
    #gridItem6 {
      width: 242px;
    }

    #gridParent img {
      width: 75%;
    }

    #gridItem1 {
      grid-row: 4/5;
      grid-column: 1/2;
    }

    #gridItem2 {
      grid-row: 1/2;
      grid-column: 3/4;
    }

    #gridItem3 {
      grid-row: 3/4;
      grid-column: 2/3;
    }

    #gridItem4 {
      grid-row: 3/4;
      grid-column: 4/5;
    }

    #gridItem5 {
      grid-row: 4/6;
      grid-column: 5/6;
    }

    #gridItem6 {
      grid-row: 4/5;
      grid-column: 3/4;
    }

    /*Hem (Grid) */

    #gridParentHome {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: auto;
      column-gap: 0.5rem;
      row-gap: 3rem;
    }

    #gridParentHome p {
      text-align: center;
      margin-bottom: 2rem;
    }

    #gridItemHome1,
    #gridItemHome2,
    #gridItemHome3,
    #gridItemHome4,
    #gridItemHome5,
    #gridItemHome6,
    #gridItemHome7,
    #gridItemHome8 {
      width: 100%;
    }

    #gridParentHome img {
      width: 100%;
      border: solid 5px #ba94d1;
      --mask: radial-gradient(40px at 40px 40px, #0000 98%, #000) -40px -40px;
      -webkit-mask: var(--mask);
      mask: var(--mask);
    }

    #gridItemHome1 {
      grid-row: 8 / 9;
      grid-column: 3 / 4;
    }

    #textGridItemHome1 {
      grid-row: 8/9;
      grid-column: 1/2;
      align-self: center;
      border: solid 2px #ba94d1;
      border-radius: 50%;
      padding: 3rem;
    }

    #gridItemHome2 {
      grid-row: 2 / 3;
      grid-column: 3 / 4;
    }

    #textGridItemHome2 {
      grid-row: 2/3;
      grid-column: 1/2;
      align-self: center;
      border: solid 2px #ba94d1;
      border-radius: 50%;
      padding: 3rem;
    }

    #gridItemHome3 {
      grid-row: 3/4;
      grid-column: 1/1; /* Moved to the left */
    }

    #textGridItemHome3 {
      grid-row: 3/4;
      grid-column: 3/4;
      align-self: center;
      border: solid 2px #ba94d1;
      border-radius: 50%;
      padding: 3rem;
    }
    #gridItemHome4 {
      grid-row: 4 / 5;
      grid-column: 3 / 4;
    }
    #textGridItemHome4 {
      grid-row: 4/5;
      grid-column: 1/2;
      align-self: center;
      border: solid 2px #ba94d1;
      border-radius: 50%;
      padding: 3rem;
    }

    #gridItemHome5 {
      grid-row: 5 / 6;
      grid-column: 1 / 2; /* Moved to the left */
    }

    #textGridItemHome5 {
      grid-row: 5/6;
      grid-column: 3/4;
      align-self: center;
      border: solid 2px #ba94d1;
      border-radius: 50%;
      padding: 3rem;
    }

    #gridItemHome6 {
      grid-row: 6 / 7;
      grid-column: 3 / 4; /* Moved to the right */
    }

    #textGridItemHome6 {
      grid-row: 6/7;
      grid-column: 1/2;
      align-self: center;
      border: solid 2px #ba94d1;
      border-radius: 50%;
      padding: 3rem;
    }

    #gridItemHome7 {
      grid-row: 7 / 8;
      grid-column: 1 / 2; /* Moved to the left */
    }

    #textGridItemHome7 {
      grid-row: 7/8;
      grid-column: 3/4;
      align-self: center;
      border: solid 2px #ba94d1;
      border-radius: 50%;
      padding: 3rem;
    }

    #gridItemHome8 {
      grid-row: 1 / 2;
      grid-column: 1 / 8;
    }
    /* 
    food-widget */

    #food-widget {
      width: 100%;
      display: flex;
      align-self: center;
      flex-wrap: wrap;
      justify-content: center;

      border-radius: 10px;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
      background-color: #f5f5f5;
      margin-top: 50px;
    }

    #food-widget h2 {
      color: #7f669d;
      margin-top: 1rem;
    }

    #food-widget h3 {
      color: #7f669d;
    }
   
    #food-widget ul {
      list-style: none;
      padding: 0;
    }

    #food-widget ul li {
      padding: 10px;
      border-bottom: 1px solid #eee;
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      justify-content: center;
      
    }

    #food-widget ul li:last-child {
      border-bottom: none;
    }
  }
}
