body {
  margin: 0%;
  background-color: #e7e6e6;
  box-sizing: border-box;
}
img {
  width: 100%;
}

/*Header*/
header {
  background-color: green;
  padding: 10px 0;
  width: 100%;
  display: grid;
  grid-template-columns: 15% 70% 15%;
}

header img {
  grid-column: 2/3;
  border: 1px white;
  border-radius: 10px;
  background-color: white;
  width: 100%;
}

/*Container*/
.container {
  display: grid;
  grid-template-columns: 15% 70% 15%;
  align-items: start;
  padding-top: 20px;
  overflow: hidden;
}

.container-right {
  display: grid;
  grid-template-columns: 1fr;
}

.container-middle {
  display: grid;
  grid-template-columns: 1fr;
}

/*Section 1*/
.section-1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.section-1::before,
.section-1::after {
  content: "";
  border-top: 2px solid green;
}

h1 {
  display: block;
  border: 2px solid white;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 5px 5px 10px #aaaaaa;
  color: green;
  font-size: 2.5em;
  font-family: "Dancing Script", cursive;
}

/*Section 2*/
.section-2 {
  border: solid 2px white;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
}

h2 {
  text-align: center;
  color: green;
  font-size: 2.5em;
  border-bottom: 2px dashed green;
  border-width: 1px;
  margin-bottom: 10px;
  margin-top: 0;
  font-family: "Dancing Script", cursive;
  line-height: 0.8;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  grid-auto-rows: 200px;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.img-wide {
  grid-column: span 3;
}

.img-small {
  grid-column: span 1;
}

.img-full {
  grid-column: span 4;
}

.mobile-only {
  display: none;
}

/*Section 3*/
.section-3 {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.info-box {
  flex: 1;
  text-align: center;
  border: 2px solid white;
  background-color: white;
  padding: 0 20px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.info-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.info-box h3 {
  color: green;
  border-bottom: 2px solid green;
  border-width: 1px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-family: "Dancing Script", cursive;
  font-size: 1.5em;
}

.info-box p {
  text-align: left;
  font-family: "Urbanist", sans-serif;
}

/*Container left*/
.container-left {
  padding: 20px;
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: 107px;
}

.start,
.lektioner,
.tips,
.galleri {
  background-color: white;
  border: solid 2px white;
  padding: 12px 20px;
  text-decoration: none;
  color: green;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  font-family: "Urbanist", sans-serif;
}

/*Footer*/

footer {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: green;
  padding: 0 20px;
  text-decoration: none;
  font-family: "Urbanist", sans-serif;
}

.backToTop {
  color: white;
  font-family: "Urbanist", sans-serif;
}

h3 {
  font-family: "Dancing Script", cursive;
  font-size: 1.5em;
}

.contact-info p {
  font-family: "Urbanist", sans-serif;
}

/*Container right*/
.container-right {
  padding: 20px;
}

.ads {
  gap: 20px;
  align-items: start;
  margin-top: 65px;
}

.ad-img {
  max-width: 220px;
  height: auto;
}

.reklam-h4 {
  margin: 0;
  font-size: 2em;
  color: green;
  font-family: "Dancing Script", cursive;
  text-align: center;
  margin-right: 20px;
}

/*Mobil responsivt*/
@media (max-width: 800px) {
  /*Allts staplat på varandra*/
  .container {
    grid-template-columns: 1fr;
    padding-top: 0.3rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  /*Header*/
  header {
    background-color: green;
    padding: 10px 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  /* order */
  .container-left {
    order: 1; /* Menyn högst upp */
  }
  .container-middle {
    order: 2; /* Innehållet i mitten */
  }
  .container-right {
    order: 3; /* Reklamen längst ner */
  }

  /*Menyn*/
  .container-left {
    padding: 0;
  }
  .side-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 0;
  }
  .side-menu a {
    flex: 1;
    flex-wrap: nowrap;
    text-align: center;
  }

  /*Header*/
  header img {
    grid-column: 2/3;
    border: 1px white;
    border-radius: 10px;
    background-color: white;
    display: block;
    margin: auto;
    width: 95%;
  }
  header {
    padding: 20px 0;
  }
  /* h1 title */
  .section-1::after,
  .section-1::before {
    display: none;
    content: none;
  }
  .section-1 {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 5px;
  }
  h1 {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* bilder i section-2 */
  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .img-small {
    grid-column: span 1;
  }
  .img-wide {
    grid-column: span 1;
  }
  /*lite Ai hjälp*/
  .mobile-only {
    display: grid;
    grid-column: span 2;
    height: auto; /* Viktigt: Låt texten bestämma höjden */
    margin: 5px 0; /* Minska marginalerna här om det fortfarande är för stort */
    padding: 15px;
    /* ... resten av din styling (border-left etc) ... */

    background-color: rgb(230, 255, 230);
    border-left: 6px solid green;
    border-radius: 10px;
  }
  .mobile-only p {
    font-family: "Urbanist", sans-serif;
    font-size: 0.9em;
  }
  .img-full {
    grid-column: span 2;
  }
  .image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
  }

  /* section-3 */
  .section-3 {
    display: flex;
    flex-direction: column;
    margin: 0.5rem;
    gap: 0.5rem;
  }
  .info-box {
    margin-bottom: 0;
  }

  /* reklam försvinner */
  .container-right {
    display: none;
  }

  /* footern */
  footer {
    display: block;
    text-align: center;
    padding: 5px 0;
  }
}
