@import url('https://fonts.googleapis.com/css?family=Josefin+Sans');
@font-face { font-family: calligraffiti; src: url(../assets/Calligraffiti.ttf); }


/* GENERAL */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Josefin Sans', sans-serif;
}

a {
  text-decoration: none;
  color: #00528C;
}

a:hover {
  color: #00528C !important;
  text-decoration: underline;
}

p {
  line-height: 150%;
  font-size: 1.1rem;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.55rem;
  text-align: center;
  margin: 48px 0;
}

h3 {
  font-size: 1.2rem;
  text-align: center;
  font-weight: 100;
}


/* HEADER */

header {
  z-index: 100;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background-color: #fff;
  box-shadow: 0 0 20px 0 #00000012;
  transition: none;
}

header nav {
  height: 100%;
}

header nav a {
  color: #000;
}

header nav a:hover {
  color: #00528C;
  text-decoration: none;
}

header nav ul {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

header nav ul li:not(:first-child) {
  display: none;
}

.logo {
  width: 240px;
  height: 50px;
  max-width: 60vw;
  background-image: url('../assets/YACHT-SHOP_Logo_4c.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header.open {
  height: 100vh;
  transition: height 300ms ease;
}

header.open nav ul {
  justify-content: space-around;
}

header.open nav ul li {
  display: block;
}

header.open #mobileMenuBtn {
  background-image: url('../assets/x.svg');
}

#mobileMenuBtn {
  position: absolute;
  right: 0;
  top: 0;
  width: 75px;
  height: 75px;
  background-image: url('../assets/menu.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;
}

@media only screen and (min-width:820px) {
  header nav ul {
    font-size: 18px;
    flex-direction: row;
    justify-content: space-between;
  }

  header nav ul li {
    display: block !important;
  }

  #mobileMenuBtn {
    display: none;
  }
}

/* FOOTER */

footer {
  margin-top: 72px;
  padding-top: 72px;
  padding-bottom: 24px;
  text-align: center;
}

footer nav {
  border-top: 1px solid #ebebeb;
}

footer nav ul {
  padding: 0;
  list-style: none;
}

footer nav ul li {
  margin-bottom: 12px;
}

/* LAYOUT */

.wrapper {
  padding-left: 18px;
  padding-right: 18px;
}

.wrapper.full {
  padding: 0;
}

.fullscreen {
  height: 100vh;
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.grid-gap {
  grid-gap: 18px;
}

.content {
  padding-top: 72px;
}

/* STYLES */

.msg-box {
  height: 72px;
  position: sticky;
  position: -webkit-sticky;
  top: 72px;
  z-index: 50;
  /* text-align: center; */
  /* background-color: #00528C; */
}

.msg-box iframe {
  width: 100%;
  height: 100%;
}

.intro {
  z-index: -1;
  position: relative;
  /* top: 80px; */
  color: #fff;
  /* height: calc(100vh - 75px * 2); */
  height: 70vh;
  text-shadow: 0 0 10px black;
  background-image: url('../images/02_web.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* background-attachment: fixed; */
}

.map {
  height: 62vh;
}

.map iframe {
  width: 100%;
  height: 100%;
}

/* pages */
#yachtshop h3 {
  margin: 18px 0;
}

#yachtshop .wrapper.small {
  background-color: #fff;
  padding: 12px;
  text-align: center;
}

#sortiment .center span  {
  font-size: 16px;
}

#sortiment .center img  {
  width: 20%;
  height: auto;
  margin-top: 18px;
  margin-bottom: 18px;
}

#about img {
  width: 40%;
  float: left;
  margin-right: 24px;
}

.sign {
  margin-top: 36px;
  font-family: calligraffiti;
}

/* MEDIA */
@media only screen and (min-width:360px) {
  .three-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width:620px) {
  h1 {
    font-size: 2.3rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .three-column {
    grid-template-columns: repeat(3, 1fr);
  }
  .wrapper.small {
    width: 580px;
    margin: auto;
  }
  #yachtshop .wrapper.small {
    margin-top: -96px;
  }
}

@media only screen and (min-width:1280px) {
  .wrapper {
    width: 1200px;
    margin: auto;
  }
}
