@import './variables.css';

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  color: var(--body-color);
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  line-height: 1.5;
  margin: 0;
  padding-bottom: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  margin: 0;
}

p {
  margin: 0;
}

p + p {
  margin-top: 24px;
}

a {
  text-decoration: none;
}

.btn_container {
  padding-top: 30px;
  text-align: center;
}

.button {
  padding: 20px 30px;
  margin: auto;
  border: 0;
  background-color: var(--lighter-grey);
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: font-weight 0.3s ease;
}

.button:hover {
  font-weight: 400;
}

.button a {
  color: var(--dark-grey);
}

.button.dark {
  background-color: black;
}

.button.dark a {
  color: var(--lighter-grey);
}

/* Header */

.c-header__nav {
  width: 100%;
  height: 80px;
  padding: 24px 35px;
  margin-bottom: 100px;
  z-index: 1000;
  border-bottom: 1px var(--lighter-grey);
}

.c-nav__list {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.c-nav__list li {
  list-style-type: none;
}

.a-menu {
  font-family: var(--nav-font);
  font-size: 20px;
  letter-spacing: 0.05rem;
  color: var(--light-grey);
  transition: color 0.3s ease;
  margin: 0 40px;
}
.a-menu:hover {
  color: var(--mid-grey);
}

.active .a-menu {
  color: var(--dark-grey);
  cursor: default;
}
.active .a-menu:hover {
  color: var(--light-black);
}

@media (max-width: 880px) {
  .c-header__nav {
    margin-bottom: 80px;
  }
}

@media (max-width: 540px) {
  .c-header__nav {
    margin-bottom: 60px;
  }
}

@media (max-width: 500px) {
  .c-header__nav {
    height: 60px;
    padding: 16px 20px;
    margin-bottom: 60px;
  }

  .c-nav__list {
    justify-content: center;
  }

  .a-menu {
    font-size: 18px;
    margin: 0 30px;
  }
}


/* Sections */

.txtsection {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 80px auto;
}

.txtsection.summary {
  margin: -30px auto 50px auto;
}

.summary h4 {
  margin-bottom: 10px;
}
.txtsection.double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.imgsection {
  max-width: 1800px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 40px;
}

@media (max-width: 1920px) {
  .imgsection {
    width: calc(100% - 120px);
    margin: 0 60px 60px 60px;
  }
}

@media (max-width: 1320px) {
  .txtsection {
    width: calc(100% - 120px);
    margin: 0 60px 70px 60px;
  }

  .txtsection.summary {
    margin: 0 60px 70px 60px;
  }

  .imgsection {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .txtsection, .imgsection {
    width: calc(100% - 80px);
    margin: 0 40px 55px 40px;
  }

  .txtsection.summary {
    margin: 15px 40px 55px 40px;
  }

  .txtsection.double {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 540px) {
  .txtsection, .imgsection {
    width: calc(100% - 40px);
    margin: 0 20px 40px 20px;
  }

  .txtsection.summary {
    margin: 30px 20px 40px 20px;
  }

  .summary h4 {
    margin-bottom: 5px;
  }
}


/* Image containers */

.img-container-large {
  grid-column: 1 / -1;
}

.img-container-large, .img-container-small {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 60px 40px;
  transition: background-color 0.3s ease;
}

.imgtext-wrapper {
  display: flex;
  flex-direction: column;
}

.imgtext-wrapper > .img-container-small {
  flex-grow: 1;
}

.img-container-large img {
  max-width: 100%;
  max-height: 440px;
  align-self: center;
}

.img-container-large.neutral img {
  max-height: none;
}

.img-container-large.wireframes img {
  max-height: 440px;
}

.img-container-small img {
  max-width: 100%;
  max-height: 360px;
  align-self: center;
}

@media (max-width: 600px) {
  .img-container-large, .img-container-small {
    padding: 50px 30px;
  }

  .img-container-small img {
    max-height: 300px;
  }
}

@media (max-width: 440px) {
  .img-container-large, .img-container-small {
    padding: 40px 20px;
  }

  .img-container-small img {
    max-height: 240px;
  }
}

/* Project colors */

.lxp {
  background-color: var(--tinqwise-red);
}

a > .lxp:hover {
  background-color: var(--tinqwise-red-hover);
}

.stedin {
  background-color: var(--stedin-yellow);
}

a > .stedin:hover {
  background-color: var(--stedin-yellow-hover);
}

.ikea {
  background-color: var(--ikea-blue);
}

a > .ikea:hover {
  background-color: var(--ikea-blue-hover);
}

.hkm {
  background-color: var(--hkm-pink);
}

a > .hkm:hover {
  background-color: var(--hkm-pink-hover);
}

.gstar {
  background-color: var(--gstar-grey);
}

a > .gstar:hover {
  background-color: var(--gstar-grey-hover);
}

.zk {
  background-color: var(--zk-blue);
}

a > .zk:hover {
  background-color: var(--zk-blue-hover);
}

.takeaway {
  background-color: var(--takeaway-orange);
}

a > .takeaway:hover {
  background-color: var(--takeaway-orange-hover);
}

.neutral {
  background-color: var(--lighter-grey);
}

.wireframes {
  background-color: #ccc;
}


/* Paragraph styles */

.case-title {
  font-size: 22px;
  text-align: center;
  margin: 20px 0 5px 0;
}

.key-words {
  font-size: 16px;
  margin: 0;
}

p {
  font-size: 18px;
}

h1 {
  font-size: 60px;
  margin: 0;
}

h2 {
  font-size: 36px;
  margin: 0;
}

h3 {
  font-size: 24px;
  margin-top: -6px;
  margin-bottom: 16px;
}

h4 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}
h5 {
  font-size: 20px;
  margin: 0;
}

h6 {
  font-size: 14px;
}

.text-column.title h3 {
  text-align: right;
}

.img-description {
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
}

@media (max-width: 880px) {
  h1 {
    font-size: 52px;
  }

  .text-column.title h3 {
    text-align: left;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 42px;
  }

  p {
    font-size: 16px;
  }
}

@media (max-width: 440px) {
  .key-words {
    font-size: 14px;
  }
  
  h1 {
    font-size: 32px;
  }


}