/* Reset */

@font-face {
  font-family: "fontello";
  src: url("fonts/fontello1.woff2") format("woff2"),
       url("fonts/fontello1.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 200;
    color: rgb(59, 59, 59);
    background-color: rgb(255, 255, 255);
  }

  h2 {
    font-family: 'Playfair Display', serif;
    color: rgb(59, 59, 59);
    text-align: center;
  }

.fontello {
  font-family: "fontello", sans-serif;
}
  
.cen-container {
  display: flex;
  justify-self: center;
  align-items: center;
  flex-direction: column;

  width: 60%;
  height: auto;

  margin-top: 100px;
}

@media only screen and (max-width: 768px) {
  .cen-container {
    width: 90%
  }
}

.cen-container > div {
  width: 100%;
  height: auto;

  padding: 10px;
  margin: 50px 10px 10px 10px;

  text-align: center;
  line-height: 25px;
  font-size: 16px;
}

  .cen-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-self: center;
    justify-content: space-evenly;

    width: 90%;
    height: auto;

    margin-top: 50px;
  }

  .cen-grid-container > div {
    width: 325px;
    height: auto;

    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: rgb(235, 235, 235) solid 1px;
    border-radius: 5px;

    padding: 10px 40px 10px 40px;
    margin: 10px;

    transition: box-shadow 0.3s, transform 0.3s ease-in-out;

    text-align: center;
    font-size: 14px;
  }

  .cen-grid-container > div:hover {
    box-shadow: 0 0 16px rgba(0,0,0,0.125);
    transform: scale(1.02);
  }

  @media only screen and (max-width: 782px) {
    .cen-grid-container > div {
      width: 90vw;
    }
  }

  .cen-grid-container > div > h3 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bolder;
    text-align: center;
    text-transform: uppercase;
    padding: 10px;
  }

  .cen-grid-container > div > .cta-link-button {
    line-height: 75px;
  }

  .cta-link-button {
    background-color: rgb(255, 255, 255);
    width: 75px;
    height: 30px;

    padding: 7px 25px 7px 25px;

    font-weight: bold;
    font-size: 12px;
    color: black;
    text-decoration: none;
    line-height: 75px;

    border:rgb(46, 46, 46) solid 2px;

    transition: background 0.15s, color 0.15s, box-shadow 0.15s, border 0.15s ease-in-out;
  }

  .cta-link-button:hover {
    background-color: rgb(46,46,46);
    color: white;
    box-shadow: 0 4px 4px rgba(0,0,0,0.1);
  }
 
  .cta-link-button:active {
    background-color: white;
    color: rgb(46, 46, 46);
    box-shadow: 0 4px 4px rgba(0,0,0,0.1);
  }

  .div-line {
    margin-top: 100px;
    border: rgb(255, 255, 255) solid 2px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  }

  #div-line-projekt {
    margin-top: 100px;
    border: rgb(255, 255, 255) solid 2px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  }

  #div-line-hero {
    border: rgb(255, 255, 255) solid 2px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  }

  #div-line-övningar {
    border: rgb(255, 255, 255) solid 2px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    margin-top: 100px;
  }

  /* ================= */
  /* FOOTER */
  /* ================= */
  #footer {
    position: static;
    top: 0;
    left: 0;
    right: 0;
    height: 90vh;

    background-color: rgb(0, 0, 0);

    color: white;
  }

#footer-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-evenly;
    justify-self: center;

    height: 70%;
    width: 90%;

    font-size: 22px;
  }

  #footer-container > div > a {
    font-size: 50px;
    text-decoration: none;
    color: white;
    font-weight: 100;

    transition: font-weight 0.2s ease-in-out;
  }

  #footer-container > div > a:hover {
    font-weight: 900;
  }

  #footer-kontakt-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-evenly;
    justify-self: center;

    width: 90%;
  }

  #footer-kontakt-container > table > tbody > tr > td {
    width: 10%;
  }

  #footer-kontakt-container > table > tbody > tr > td > a {
    font-size: 18px;
    text-decoration: none;
    color: white;
    font-weight: 100;

    transition: font-weight 0.2s ease-in-out;
  }

  #footer-kontakt-container > table > tbody > tr > td > a:hover {
    font-weight: 400;
  }

  #footer-div-line {
    width: 90%;

    margin: 35px;
    justify-self: center;
  }

  #footer-copyright {
    width: 90%;

    margin-top: -22px;
    justify-self: center;

    font-size: 14px;
  }

  #footer-copyright > tbody > tr > td > a {
    color: rgb(225,225,225);
    font-family: "Roboto Flex", sans-serif;
    font-size: 12px;

    transition: font-weight 0.1s ease-in-out;
  }

  #footer-copyright > tbody > tr > td > a:hover {
    font-weight: 400;
  }
  
  /* ================= */
  /* NAVBAR */
  /* ================= */
  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
    z-index: 10;
    font-size: 14px;
  }
  
  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Meny */
  .menu {
    position: absolute;
    right: 20px;
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .menu a {
    text-decoration: none;
    color: black;
    font-weight: 200;
    transition: font-weight 0.1s ease-in-out;
  }

  .menu a:hover {
    font-weight: 400;
  }

  .menu a:active {
    font-weight: 100;
  }
  
  /* ================= */
  /* HERO */
  /* ================= */

  .hero {
    height: 100vh;
    background-image: url();
    
    min-height: 500px;

    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    position: relative;
    overflow: hidden;
  }
  
  /* Hero-text */
  #heroText {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 5rem;
    color: black;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center;
    transition: transform 0s linear;
    z-index: 20;
  }
  
 /* När texten fästs i navbaren */
#heroText.in-navbar {
    position: fixed;
    color: black;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 20;
  }

  /* Göm menyn på små skärmar */
@media (max-width: 768px) {
  .menu {
    display: none;
    position: fixed; /* overlay */
    top: 60px;
    right: 0;
    background: rgba(255,255,255,0.95);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 30;
  }

  .menu.open {
    display: flex;
  }

  /* Hamburger */
  #hamburger {
    display: block;
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 40;
  }
}

/* På större skärmar: visa menyn och göm hamburger */
@media (min-width: 769px) {
  #hamburger {
    display: none;
  }
  .menu {
    display: flex !important;
  }
}
