@font-face {
    font-family: "Nunito";
        src: url(/assets/fonts/Nunito/Nunito-VariableFont_wght.ttf);
    }

@font-face {
    font-family: "Noteworthy";
        src: url(/assets/fonts/Noteworthy.otf);
}

@font-face {
    font-family: "Noteworthy.light";
        src: url(/assets/fonts/Noteworthy-Lt.ttf);
}

:root {
    --dark-blue: #2C3843;
    --background-hell: #ECBE92;
    --sub-heading: #d5d5d5;
    --primary-btn: #F98313;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, p {
    margin: 0;
}

h1 {
    font-family: 'Noteworthy';
    font-size: 49px;
}

p {
    font-size: 25px;
}

body {
    background: linear-gradient(#212a33, #2c3843);
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    margin: 0;
}

/* HEADER */

button {
    width: 40px;
    height: 32px;
    border-style: unset;
    background-color: unset;
}

.btn-close {
    z-index: 10;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
    color: var(--dark-blue);
}

.hidden {
    display: none;
}

header>img:first-of-type {
    display: none;
}

/* mobile menu */

.primary-nav  {
    position: fixed;
    inset: 136px 0 0 30%;
    background: rgba(242,169,53);
    display: flex;
    flex-direction: column;
    gap: 2em;
    padding: 2rem 2rem;
    transition-duration: 0.4s;
}

.out {
    inset: 136px 0 0 100%;
}

/* For browsers not supporting blur */

@supports (backdrop-filter: blur(0.5em)) {
    .primary-nav {
        background: rgba(242,169,53,0.7);
        backdrop-filter: blur(0.5rem);
    }
}


  /* CONTACT SECTION */

  .contact {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 80px 50px ;
    background-color: var(--background-hell);
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 80px;
  }

  .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 250px;
    align-self: center;
  }

  .contact-content>h2 {
    font-family: 'Noteworthy';
    font-size: 49px;
  }

  .cont {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .cont>img {
    max-width: 30px;
  }

  /* FOOTER*/

  footer {
    background-color: #212a33;
}

.wrapper-footer {
    padding: 80px 50px;
    display: grid;
    gap: 70px;  
    max-width: 1300px;
    margin: 0 auto;
}

  .logo-footer {
    background-color: #212a33;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
  }

  .logo-footer>a>img {
    max-width: 225px;
  }

  .logo-footer>p {
    font-size: 20px;
    color: white;
    text-align: center;
  }

  .kontakt-footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .kontakt-footer>.cont>a {
    color: white;
    font-size: 20px;
  }

  .cont>svg {
    max-width: 30px;
  }

  .books-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
    font-size: 20px;
  }

  .books-head {
    display: flex;
    gap: 15px;
    align-items: center;
    color: white;
    font-weight: 400;
  }

  .books-head>img {
    max-width: 30px;
  }

  .big {
    max-width: 100px;
  }

  .legal-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
    font-size: 20px;
  }

  .legal-head {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .legal-head>img {
    max-width: 30px;
  }

  .legal-footer>a {
    color: white;
  }

  @media (min-width: 500px) {

    /* HEADER */

    .primary-nav {
      inset: 110px 0 0 30%;
    }

    .out {
      inset: 110px 0 0 100%;
  }

    header>img:first-of-type {
        display: unset;
        max-width: 300px;
    }

    img:nth-of-type(2) {
        display: none;
    }

  }

  @media (min-width: 700px){
    /* FOOTER */

    .wrapper-footer {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        justify-items: left;
    }    

    .logo-footer>p {
        text-align: left;
    }

  }

  @media (min-width: 1024px) {

    /* HEADER */

    button {
        display: none;
    }

    .primary-nav {
        position: unset;
        flex-direction: row;
        background-color: unset;
        align-items: center;
        transition: unset;
    }

    nav>a {
        font-size: 20px;
        text-decoration: none;
        color: white;
    }

    .btn-cont{
        padding: 10px 32px;
        background-color: var(--primary-btn);
        border-radius: 10px;
    }

    /* KONTAKT SECTION */

    .contact {
        max-width: 920px;
        margin: 0 auto;
        margin-bottom: 80px;
        border-radius: 20px;
        padding: 40px 120px;
        text-align: left;
    }

    .contact-cards {
        padding: 20px 0;
    }

  }

  @media (min-width: 1300px){

    .contact {
        max-width: 1200px;
        flex-direction: row;
        justify-content: center;
        gap: 80px;
        padding: 40px 50px;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 600px;
    }

    .wrapper-footer {
        grid-template-rows: 1fr;
        grid-template-columns: repeat(4,1fr);
    }

  }