
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* Set core body defaults */
body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.5;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

h1 {
    /* font-size: 2rem; */
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif;
    color: #fff;
    margin-top: 0.75em;
    text-align: center;
    line-height: 1;
}

h2 {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 0;
  text-decoration: underline;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase; 
    color: #23424A;
    font-weight: 900;
    background-color: #38CFD9;
    padding: .75em 2em;
    border-radius: 100px;
}

.btn:hover,
.btn:focus {
    opacity: .75; 
}

header {
  background-color: #fff;
    padding: 1em 0 1em 0;
    text-align: center;
}

.container {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.nav {
    width: 100%;
    color: #fff;
}
.nav-toggle {
    cursor: pointer;
    border: 0;
    width: 3em;
    height: 3em;
    padding: 0em;
    border-radius: 50%;
    background: #009933;
    color: white;
    transition: opacity 250ms ease;
    position: absolute;
    right: -10%;
    top: 10%;

}

.nav-toggle:focus,
.nav-toggle:hover {
    opacity: .75;
}

.hamburger {
    width: 50%;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    margin: 0 auto;
    height: 3px;
    background: white;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(3px);
}

.nav {
    display: none;
    visibility: hidden;
    height: 0;
    position: absolute; 
    font-size: 1rem;
}

.nav--visible {
    visibility: visible;
    height: auto;
    position: relative;
    display: block;
} 
.nav__list {
    margin: 0;
    padding: 0;
    list-style: none; 

}

.nav__item {
  margin-top: 0.75em;
}

.nav__link {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;;
}

.nav__link:hover,
.nav__link:focus {
    opacity: .65;
    text-decoration: underline;
}

.logo--skylt {
  max-width: 250px;
}

main {
  min-height: 100vh;
  display: grid;
  padding: 2em 0;
  justify-items: center;
  align-items: center;
  justify-content: center;
  align-content:baseline;
  background-color:rgb(217, 250, 215);
}

.grid-container {
    display: grid;
    width: 80vw;
    grid-auto-columns: 2fr;
    grid-template-areas:
    'church'
    'title'
    'one'
    'two'
    'three';
}

.redtext {
  color: rgb(255 0 0);
}

.item {
  border-radius: 10px;
  font-size: 1.125rem;
}

.divchurch {
  grid-area: church;
  background-color: rgb(217, 250, 215);
}

.divtitle {
  grid-area: title;
  background-color: rgb(124 152 153); 
  padding: 0 1em 0 1em;
}

.item1 {
  grid-area: one;
  background-color: #fff;
  margin-top: 20px;
  padding: 0 1em 0 1em;
  border: 1px solid black;
  /* line-height: 1.25rem; */
}

.item2 {
  grid-area: two;
  background-color: rgb(217, 250, 215);
  margin-top: 20px;
  padding: 0;
} 

.item3 {
  grid-area: three;
  background-color: #fff;
  margin-top: 20px;
  padding: 0 1em 0 1em;
  border: 1px solid black;
}

.church {
  width: 100%;
  border-radius: 20px;
}
.herden {
  border-radius: 50%;
}

footer {
  background-color: #009933;
  color: #fff;
  margin-bottom: 0;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.foot--container {
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

.copyright {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #000;
  font-size: 0.75rem;
}

@media screen and (min-width: 700px) {

  .container {
    display: flex;
  }

  h2 {
    margin-bottom: 1em;
  }

  .grid-container {
    grid-template-areas:
    'church church church church'
    'title title title title'
    'one one two two'
    'three three three three'; 
  }
  
  .logo--skylt {
    max-width: 600px;
  }

  .item2 {
    margin-left: 20px;
  }

}

@media screen and (min-width: 900px) {

  .nav-toggle {
    display: none;
  }

  .container {
    display: flex;
  }

  .grid-container {
      grid-template-areas:
      'church church church church'
      'title title title title'
      'one one two two'
      'three three three three';
  }

  .logo--skylt {
    width: 350px;
  }

  .nav {
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content:flex-end;
    height: auto;
    position: relative;
  }

  .nav__list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
  }

  .nav__item + .nav__item {
    margin-left: 1em;
  }

  .nav__item {
    margin: 0;
  }

}
