#page-home {
  margin: 0;
}

#page-home .comments a {
  text-decoration: none;
}

#page-home img {
  max-width: 90vw;
  max-height: 33vh;
}

#page-home #high-five img {
  max-height: 30vh;
}

#page-home nav {
  margin-top: 4vh;
  padding-bottom: 2rem;
}

body {
  padding: 13vh 0 0 0;
  text-rendering: optimizeLegibility;
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0;
  text-align: center;
  color: #303030;
  font-weight: 600;
}

h1 + h2 {
  text-align: center;
  font-weight: 300;
  color: #3a3a3a;
  margin: 4px 0 4vh;
  font-size: 1.22rem;
}

#page-home h1 + h2 + img {
  max-width: 74vw;
  max-height: 50vh;
}

p {
  margin-top: 3px;
}

a {
  color: #f54f5a;
}

#project-url {
  margin: 0;
}

#project-url input {
  padding: 14px 13px 12px;
  max-width: 90vw;
  font-size: 1.4rem;
  font-family: serif;
  box-sizing: border-box;
}

#project-url input:focus {
  z-index: 200;
  padding-left: 11px;
}

#project-url input:not( :focus ) {
  border: 1px solid #ccc;
  padding: 16px 13px 14px;
}


#project-url button {
  position: relative;
  font-size: 1.2rem;
  font-weight: 300;
  z-index: 20;
  box-sizing: border-box;
}


#project-url button:not( :focus ) {
  border: 1px solid #bbb;
  margin-right: 2px;
}

#project-highlights {
  margin-top: calc(1rem + 7vh);
  margin-bottom: calc(2rem + 5vh);
}

#project-highlights h2 {
  font-size: 2.6rem;
}

#project-highlights > a {
  font-size: 1.3rem;
  font-family: sans-serif;
  font-weight: 200;
}
#project-highlights h2 span {
  display: block;
  font-weight: 500;
  font-size: 1.2rem;
  padding-top: 5px;
  color: #505050;
}

#project-highlights h2 span:before {
  content: '...';
  margin-right: .2rem;
  font-size: 80%;
}

#project-highlights ul {
  font-family: sans-serif;
}

#project-highlights ul form {
  display: inline-block;
}

#project-highlights ul button {
  border: none;
  background: none;
  font-size: 1.8rem;
  padding: 1px;
  color: #444;
  font-weight: 200;
  margin: 0;
}

@media screen and (min-device-width: 700px) {
  #project-url {
    display: flex;
    justify-content: center;
  }

  #project-url input {
    display: inline-block;
    width: 16rem;
  }

  #project-url input:not( :focus ) {
    border-radius: 4px 0 0 4px;
  }

  #project-url button:not( :focus ) {
    padding: 2px 16px;
    border-radius: 0 4px 4px 0;
    left: -3px;
  }

  #project-url button:focus {
    margin-left: -4px;
    padding: 3px 12px 2px;
    left: -2px;
  }

}

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

  #project-url input {
    width: 24rem;
  }
}
@media screen and (min-device-width: 700px) and (max-width: 940px) {
  #intro-people li:first-of-type {
    display: none;
  }
}

@media screen and (min-device-width: 700px) and (max-width: 740px) {
  #give-feedback p br {
    display: none;
  }
}

@media screen and (min-device-width: 700px) and (max-width: 740px) {
  #project-highlights-ul li:nth-of-type(2),
  #project-highlights-ul li:nth-of-type(4) {
    display: none!important;
  }
}

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

  h1 + h2 span {
    width: 0;
    color: #fff;
    font-size: 0;
  }

  h1 + h2 span:after{
    content: "dina ";
    color: #303030;
    font-size: 1.22rem;
  }

  #project-url input,
  #project-url button {
    border-radius: 4px;
  }

  #project-url input {
    width: 90vw;
    max-width: 30rem;
  }

  #project-url button {
    margin-top: 1rem;
    padding: 5px 20px;
  }

  #intro-people li:first-of-type {
    display: none;
  }

  #give-feedback h3 br:last-of-type {
    display: none;
  }
  #give-feedback p br {
    display: none;
  }

  #project-highlights li:nth-of-type(2),
  #project-highlights li:nth-of-type(4) {
    display: none;
  }
}

#page-newproject img {
  max-width: 420px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 13px;
  margin: 4vh 0 13px;
}

#page-newproject #addNewProject input[type=text] {
  padding: 13px 20px;
  font-size: 1.3rem;
  display: block;
  margin: 0 auto 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#page-newproject #addNewProject label {
  display: block;
  margin: 0 auto 13px;
}

#page-newproject #addNewProject label input {
  margin-right: 5px;
  position: relative;
  top: -1px;
}

#page-dashboard {
  max-width: 600px;
  margin: 0 auto;
}

#page-dashboard img {
  max-height: 30vh;
  max-width: 60vw;
  border: 1px solid #ddd;
  padding: 13px;
  border-radius: 4px;
}

#project-highlights-ul {
  padding: 0;
  max-width: 1160px;
  width: 90vw;
  margin: 1.1rem auto 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
}

#project-highlights-ul li {
  min-width: 290px;
  min-height: 21rem;
  padding: 9px 9px 3px;
  margin: 0 0 1.5rem;
  text-align: left;
  background: #fff;
}


#project-highlights-ul li:not(:last-child) {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 9px 9px 3px;
  box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.2);
}

#project-highlights-ul li:last-child {
  font-size: 1.3rem;
  font-family: sans-serif;
  font-weight: 300;
  color: #444;
}

#project-highlights-ul li:last-child span {
  position: relative;
}

#project-highlights-ul #icon-bulb,
#project-highlights-ul #icon-garn,
#project-highlights-ul #icon-clapping {
  bottom: -6px;
    font-size: 2rem;
  width: 2rem;
  text-align: center;
  left: 1px;
}

#details-garn {
  line-height: 140%;
}

#details-garn #icon-garn {
  padding-bottom: .5rem;
  display: inline-block;
}


#project-highlights-ul li:last-child span:nth-of-type(2) {
  bottom: -6px;
  font-size: 2rem;
  width: 2rem;
  text-align: center;
}

#project-highlights-ul li:last-child > span:last-of-type {
  position: relative;
  display: block;
  margin: 2px 0 13px;
}

#project-highlights-ul img {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 3px 3px 2px 2px;
}

#project-highlights-ul h3 {
  margin: 7px 0 0px;
  padding: 0 4px;
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
}

#project-highlights-ul h3 + p {
  margin-top: 3px;
  font-size: 1.1rem!important;
}

#project-highlights-ul h3 a {
  color: inherit;
  text-decoration: none;
}

#project-highlights-ul h3 a:hover {
  text-decoration: underline;
  cursor: pointer;
}

#project-highlights-ul li:not(:last-child) p {
  padding: 0 4px;
  font-size: 1.2rem;
  color: #777;
  height: 2.7rem;
  overflow: hidden;
  margin-bottom: 3px;
  line-height: 120%;
  font-weight: 300;
}
#project-highlights-ul li:first-child h3,
#project-highlights-ul li:nth-child(2) h3 {
  position: relative;
  bottom: -2px;
}

#project-highlights-ul li > div {
  display: flex;
  font-size: 1.8rem;
  justify-content: space-between;
  padding: 3px 4px 0 0;
  font-family: sans-serif;
  color: #444;
  font-weight: 100;
}

#project-highlights-ul .votes span span {
  font-size: 80%;
  position: relative;
  top: -2px;
}

#project-highlights-ul .votes-idea,
#project-highlights-ul .votes-useful,
#project-highlights-ul .votes-pretty {
  opacity: .8;
  margin-right: 5px;
}

#project-highlights-ul .votes-idea {
  margin-right: 5px;
}

#project-highlights-ul .votes-idea span {
  position: relative;
  left: -2px;
}

#project-highlights-ul .votes-useful span {
  position: relative;
  right: -1px;
}

#project-highlights-ul .votes-pretty span {
  position: relative;
  right: -2px;
  top: -1px;
}

#project-highlights-ul .votes-idea:hover,
#project-highlights-ul .votes-useful:hover,
#project-highlights-ul .votes-pretty:hover {
  opacity: 1;
  cursor: pointer;
}

#project-highlights-ul .votes-useful {
  position: relative;
  left: -1px;
  margin-right: 7px;
}

#how-this-works {
  margin: 13vh auto 0;
  max-width: 1000px;
  padding-left: 1rem;
  padding-right: 1rem;
}
#how-this-works h2 {
  font-size: 2.6rem;
}

#how-this-works p {
  color: #333;
}

#how-this-works > p {
  font-size: 1.8rem;
  max-width: 804px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 13px;
  line-height: 150%;
  text-align: left;
}

#intro-people {
  list-style: none;
  margin: 2rem auto calc(1.3rem + 4vh);
  display: flex;
  justify-content: space-around;
  padding: 0;
  flex-wrap: wrap;
}

#intro-people {
  display: none; /* Detta temporärt tills vi faktiskt har minst 3 personer att visa upp som vill synas på startsidan!  */
}

#how-this-works ul {
  position: relative;
}
#how-this-works ul:after {
  content: "";
  display: block;
  position: absolute;
  left: 10%;
  top: 8%;
  height: 84%;
  width: 80%;
  background: #f4f5f7;
  border: 1px solid #dadada;
  z-index: -400;
}

#how-this-works li {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 9px;
  box-sizing: border-box;
  margin: 0 3px 13px;
  min-width: 8rem;
  max-width: 48%;
  box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.2);
}

#how-this-works li h3 {
  margin-bottom: 3px;
  font-size: 1.3rem;
  color: #333;
}

#how-this-works li img {
  max-width: 100%;
  border-radius: 3px 3px 0 0;
  max-height: 16rem;
}

#how-this-works li h3 + p {
  color: #444;
}

@media screen and (min-device-width: 700px) and (min-width: 700px) {
  #project-highlights-ul li {
    width: 46%;
  }
  #give-feedback h3 br:last-of-type {
    display: none;
  }
}

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


  #how-this-works li {
    width: 30%;
    max-width: 18rem;
  }

  #how-this-works li h3 {
    font-size: 2rem;
  }

  #project-highlights-ul {
    justify-content: space-between;
  }
  #project-highlights-ul li {
    width: 32%;
    position: relative;
    box-sizing: border-box;
  }
  #project-highlights-ul li:before,
  #project-highlights-ul li:after {
    background: #f4f5f7;
    border: 1px solid #dfdfdf;
    border: 1px solid #d7d7d7;
  }

  #project-highlights-ul li:first-child:before {
    content: "";
    height: 80%;
    width: 210%;
    position: absolute;
    right: calc(-200% - 3px);
    top: 2rem;
    display: block;
    z-index: -100;
  }
  #project-highlights-ul li:first-child:after {
    content: "";
    border: 1px solid #dfdfdf;
    width: 80%;
    height: 100%;
    position: absolute;
    bottom: calc(-100% - 3px);
    left: 2rem;
    display: block;
    z-index: -100;
  }
  #project-highlights-ul li:nth-child(5):before {
    content: "";
    border: 1px solid #dfdfdf;
    border-radius: 13px;
    height: 80%;
    width: 210%;
    position: absolute;
    right: -2.5vw;
    top: 2rem;
    display: block;
    z-index: -100;
  }

  #project-highlights-ul li:nth-child(5):after {
    content: "";
    border: 1px solid #dfdfdf;
    border-radius: 13px;
    height: 100%;
    width: 80%;
    position: absolute;
    bottom: -2rem;
    left: 2rem;
    display: block;
    z-index: -100;
  }

  #project-highlights-ul li:last-child {
    padding: 3rem 0 0 3rem;
    z-index: -110;
    font-size: 1.1rem;
  }
}

@media screen and (min-device-width: 700px) and (min-width: 1150px) {
  #project-highlights-ul {
    justify-content: space-around;
  }
}

@media screen and (min-device-width: 700px) and (min-width: 1200px) {
  #project-highlights-ul li {
    width: 31%;
  }

}


#money-to-charity {
  margin-bottom: calc(2rem + 13vh);
}
#money-to-charity h2 {
  font-size: 2rem;
  color: #333;
}

#money-to-charity p {
  font-size: 1.3rem;
  color: #555;
  line-height: 150%;
}

#money-to-charity a {
  text-decoration: none;
}

#give-feedback {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
#give-feedback h2 {
  font-family: sans-serif;
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0;
}

#give-feedback h3 {
  font-weight: 200;
  font-size: 1.8rem;
  line-height: 120%;
  color: #4f4f4f;
  margin-bottom: 7px;
}

#give-feedback p {
  font-size: 1rem;
  color: #444;
}

#give-feedback form {
  margin: 2rem auto 1rem;
  max-width: 20rem;
}

#give-feedback input {
  font-size: 1.3rem;
  margin-bottom: .6rem;
  padding: 8px 13px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#give-feedback button {
  background: #f2f2f2;
  padding: 13px 20px;
  border-radius: 3px;
  font-size: 1.1rem;
  margin-top: .7rem;
  cursor: pointer;
}

.keep-together {
  display: inline-block;
}

#page-home #donated {
  margin: calc(3rem + 8vh) auto calc(3rem + 8vh);
}

#page-home #donated h2 {
  font-size: 4rem;
  margin-bottom: 0;
}

#page-home #donated p {
  font-size: 1.4rem;
  line-height: 130%;
}

#top-lists {
  display: none; /* Gör såhär så länge tills det finns med att visa upp! */
}

#top-lists ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-around;
  max-width: 1000px;
  margin: 0 auto 13vh;
  flex-wrap: wrap;
}

#top-lists li {
  width: 32%;
  min-width: 20rem;
  margin-bottom: 3rem;
}
#top-lists ul img {
  max-width: 90%;
  box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto 2rem;
}

#top-lists li h3 {
  font-family: monospace;
  font-weight: 200;
  color: #777;
}

#top-lists li div {
  padding: 5px;
}

#top-lists a {
  color: #0091FF;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: 300;
  letter-spacing: -.01rem;
  font-size: 1.1rem;
}


#help-someone-today {
  padding: 1rem
}

#help-someone-today h2 {
  font-size: 2.8rem;
}

#help-someone-today h2 + p {
  font-size: 1.4rem;
  max-width: 40rem;
  margin: 0 auto 3rem;
  line-height: 130%;
}
#help-someone-today ul {
  padding: 0;
  list-style: none;
  text-align: left;
}

#help-someone-today li {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.2rem;
  border-top: 1px solid #ddd;
}

#help-someone-today li:nth-child(even) {
  background: #f4f4f4;
}

#help-someone-today li:last-child {
  border-radius: 0 0 13px 13px;
}

#help-someone-today li h3 {
  margin-top: 3px;
  margin-bottom: 3px;
}

#help-someone-today li p:last-child {
  text-align: right;
  margin-bottom: 0;
}

#high-five {
  padding-top: 8vh;
  font-size: 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 5vh;
}

#contact {
  margin-top: 4vh;
  font-size: 1.3rem;
  font-family: sans-serif;
  line-height: 130%;
  color: #666;
  font-weight: 200;
}

#contact img {
  max-height: 15rem;
}

#page-project-single #project img {
  width: 80vw;
  max-width: 100%;
  border: 1px solid #eee;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.1);
}

#page-project-single #project {
  max-width: 33rem;
  margin: 0 auto;
  text-align: left;
}

#page-project-single #project p:first-child {
  margin: 0 0 5px;
  text-align: right;
  font-family: monospace;
  font-size: 1.3rem;
}

#page-project-single #project h2 a:hover {
  cursor: pointer;
}

#page-project-single #donated span {
  font-size: 1.4rem;
}
#page-project-single #donated:before {
  content: "💶 ";
}

#page-project-single #comments_appreciated {
  margin: 3rem 0;
  font-size: 1.2rem;
  line-height: 130%;
  max-width: 24rem;
}

#page-project-single #comments_appreciated span:first-child {
  display: block;
  padding-bottom: 13px;
}

a {
  text-decoration-color: #FFB0B4;
}

#page-project-single #tasks {
  margin: calc(2rem + 3vh) auto 4rem;
  max-width: 33rem;
  text-align: left;
}

#page-project-single #tasks h3 {
  position: relative;
  font-size: 1.6rem;
}

#page-project-single #tasks h3:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #ddd;
  position: absolute;
  left: 0;
  bottom: 4px;
  z-index: -200;
}

#page-project-single #tasks-list {
  padding: 0;
  list-style: none;
}

#page-project-single #tasks li:before {
  content: "🧶 ";
}

#page-project-single #tasks li {
  margin-bottom: 4rem;
  line-height: 130%;
  font-size: 1.2rem;
}

#page-project-single #tasks span {
  display: block;
  padding: 13px 0;
  font-weight: 600;
}

#page-project-single #tasks button {
  display: block;
  margin: 0 auto;
}

#page-project-single #demo-info {
  max-width: 33rem;
  margin: calc(3rem + 13vh) auto 0;
}

#page-project-single #demo-info img {
  max-width: 100%;
}

#stats-comments {
  text-align: left;
  max-width: 29rem;
  margin: 0 auto;
  font-family: Georgia, serif;
}
#stats-comments:before{
  content: "💬";
  font-size: 6rem;
  display: block;
  margin-top: calc(2rem + 13vh);
  text-align: center;
  padding-bottom: 13px;
}

#stats-comments p {
  font-size: 1.4rem;
}

#stats-comments #stats-bubble{
  font-size: 1.8rem;
}
#stats-comments #stats-money{
  font-size: 1.8rem;
  position: relative;
  bottom: -3px;
}

#stats-comments-history h3 {
  margin-bottom: 2px;
  font-weight: 200;
}
#stats-comments-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#stats-comments-history li:before {
  content: "💶";
  display: inline-block;
  position: relative;
  bottom: -1px;
  margin-right: .3rem;
}

#leave-a-comment {
  margin: calc(3rem + 5vh) auto calc(2rem + 3vh);
  max-width: 30rem;
  text-align: left;
}

#leave-a-comment h2 {
  text-align: center;
  margin-bottom: 4px;
}

#leave-a-comment textarea {
  display: block;
  margin: 0 auto 1rem;
  width: 100%;
  box-sizing:border-box;
  font-size: 1.2rem;
  padding: 13px;
}

#leave-a-comment button {
  display: block;
  font-size: 1.3rem;
  border-radius: 3px;
  padding: 13px 20px;
}

#leave-a-comment input {
  margin-bottom: 5px;
  font-size: 1.2rem;
  padding: 3px 6px;
}

#leave-a-comment label {
  margin: 13px 0 5px;
  display: block;
}
