/*
=========
  RESET
=========
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

/*
===============
COLOR VARIABLES
===============
*/

:root {
  --l-gray: gainsboro;
  --gray: #808080;
  --red-orange: #f42;
  --nav-color: #aaa;
  --l-orange: #fff4f2;
  --pink: #ffebe7;
  --l-pink: #fffaf8;
  --black: #000;
  --white: #fff;
  --pink-gradient:
    linear-gradient(
      145deg,
      rgba(236, 106, 108, 0.906582701439951) 37%
    );
  --black-gradient:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.83375356978729) 33%,
      rgba(0, 0, 0, 0.45840342973126746) 47%,
      rgba(0, 0, 0, 0) 64%
    );
}

#wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 100vw;
  margin: 0 auto;
  grid-auto-rows: minmax(50px, auto);
  grid-template-areas:
    "nav nav"
    "header header"
    "main main"
    "footer footer";
}

header {
  grid-area: header;
}

a {
  text-decoration: none;
  color: var(--white);
}

main {
  grid-area: main;
}

nav {
  grid-area: nav;
  font-size: 12px;
  z-index: 1;
  position: relative;
  max-width: 1440px;
}

.head-logo {
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(
      118deg,
      rgba(211, 9, 137, 1) 39%,
      rgba(231, 36, 90, 1) 62%,
      rgba(255, 68, 34, 1) 90%
    );
  height: 47px;
  width: 100px;
  z-index: 2;
  position: absolute;
  position: fixed;
}

.head-logo img {
  object-fit: contain;
  z-index: 2;
  width: 70px;
  height: 70px;
}

.nav-bars {
  top: 0;
  position: fixed;
  min-width: 100%;
  max-width: 1440px;
  background-color: var(--black);
}

.flex {
  display: flex;
}

nav li {
  margin: 0 10px;
  display: none;
}

.right-nav {
  justify-content: flex-end;
  float: right;
}

.left-nav {
  float: left;
}

.top-articles a {
  color: var(--black);
}

.contact a {
  font-size: 8px;
  font-weight: 600;
  margin: 0 5px;
  color: var(--gray);
}

.bottom-nav a {
  color: var(--nav-color);
}

.flex-box a {
  font-weight: 700;
}

.funding a {
  color: var(--black);
}

.fund-body a,
.fund-bottom {
  color: var(--gray);
}

.cat-latest-box a,
.cat-latest-box h6 {
  color: var(--red-orange);
}

.fund-right a {
  padding-right: 15px;
  font-weight: 300;
}

.aside-social-icons a {
  color: var(--white);
}

.funding-titles a,
.deals-titles a,
.flex-box-cat > h3 > a {
  color: var(--red-orange);
}

.flex-deals figcaption a {
  color: var(--black);
}

.flex-box-cat li a {
  color: #555;
}

.top-articles > div > h2 > a {
  color: var(--red-orange);
}

.left-nav a:hover,
.right-nav a:hover {
  color: var(--l-gray);
}

.flex-deals a:hover {
  color: var(--red-orange);
  text-decoration: underline;
}

.funding a:hover {
  color: cornflowerblue;
  text-decoration: underline;
}

.bottom-nav a:hover {
  color: var(--gray);
}

.fund-right a:hover,
.funding-titles a:hover,
.deals-titles a:hover,
.flex-box-cat li a:hover,
.flex-box-cat > h3 > a:hover,
.top-articles > div > h2 > a:hover {
  color: var(--black);
}

aside {
  display: none;
  position: fixed;
  flex-direction: column;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background:
    linear-gradient(
      118deg,
      rgba(211, 9, 137, 1) 39%,
      rgba(231, 36, 90, 1) 62%,
      rgba(255, 68, 34, 1) 90%
    );
}

aside li {
  display: list-item;
  font-size: 16px;
  text-decoration: none;
  color: var(--white);
  margin: 5px 0;
}

.nav-btn:focus + aside {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.aside-social-icons {
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
  height: 60px;
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  margin-top: 100px;
}

.aside-lists {
  justify-content: space-around;
  font-weight: 300;
  margin-top: 50px;
}

.about-list {
  margin-bottom: 30px;
}

.header-articles > div {
  margin: 0 5px;
}

.header-articles {
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 20px 0;
  color: var(--white);
}

.left-box,
.right-box,
.right-box-2 {
  background-size: cover;
  height: 300px;
  background-position-x: center;
  background-position-y: center;
  position: relative;
  padding: 15px;
}

.left-box {
  background-image: var(--black-gradient), url(../assets/backgroundpic-1.jpg);
}

.right-box {
  background-image: var(--black-gradient), url(../assets/backgroundpic-2.jpg);
  margin-bottom: 5px;
}

.right-box-2 {
  background-image: var(--black-gradient), url(../assets/backgroundpic-3.png);
}

.head-box-text,
.left-box img,
.date {
  position: absolute;
}

.left-box img {
  display: none;
  width: 50%;
  max-width: 480px;
  padding: 20px 0 0 20px;
  top: 0;
  left: 0;
}

.head-box-text {
  font-size: 10px;
  bottom: 0;
  left: 0;
  padding: 0 0 10px 10px;
}

.head-box-text h3 {
  font-size: 20px;
  width: 90%;
}

.date {
  display: none;
  top: 0;
  right: 0;
  padding: 10px 10px 0 0;
}

figcaption span {
  padding-right: 5px;
}

.head-box-text span {
  margin: 0 10px;
}

.top-articles,
.deals-section,
.funding-container {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

.top-articles h2,
.deals-section h2 {
  padding-left: 23px;
}

.top-articles {
  margin-top: 40px;
}

.container {
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-box {
  flex-basis: 90%;
  margin: 10px auto;
  font-size: 13px;
}

.flex-box img {
  object-fit: cover;
  width: 70px;
  height: 70px;
  margin-right: 7px;
}

figcaption {
  color: var(--gray);
  flex-direction: column;
}

.funding {
  margin: 20px auto;
}

.flex-box-cat {
  flex-basis: 90%;
  margin: 10px auto;
  flex-direction: column;
}

nav li,
footer li,
.funding-titles li {
  list-style: none;
}

.social ul,
.contact ul {
  justify-content: space-between;
}

.bottom-nav {
  background-color: var(--white);
  align-items: center;
  width: 100%;
  height: 46px;
  font-weight: 600;
  border: solid 1px gainsboro;
  padding: 14px 5px;
}

.fa-search {
  margin: 7px 5px 0 0;
  color: var(--gray);
}

.nav-btn {
  padding: 6px;
  font-size: 30px;
  border: none;
  background: none;
  color: var(--red-orange);
  outline: none;
  cursor: pointer;
}

.search-aside-buttons {
  right: 0;
  bottom: 4px;
  position: absolute;
  font-size: 25px;
  margin-right: 10px;
}

.funding-container {
  margin: 50px auto;
}

.funding-titles {
  justify-content: space-between;
  flex-direction: column;
  position: relative;
}

.fund-left {
  padding-left: 25px;
  font-weight: bold;
  font-size: 17px;
}

.fund-right {
  padding-left: 15px;
  font-weight: 600;
  flex-direction: column;
  font-size: smaller;
}

.hide-funding {
  display: none;
}

.fund-right li {
  margin: 0 10px;
}

#see-no-border {
  border: none;
}

.funding div {
  padding: 10px;
}

.fund-header-1 h3 {
  color: var(--white);
}

.fund-header-1 {
  background-color: var(--red-orange);
}

.funding h3,
.fund-header-2 p {
  padding-left: 60px;
  cursor: pointer;
}

.fund-header-2 {
  background-color: var(--pink);
  position: relative;
}

.fund-header-2 img {
  position: absolute;
  top: -25px;
  width: 50px;
  height: 50px;
}

.fund-body {
  background-color: var(--l-pink);
  border-bottom: 2px solid var(--pink);
}

.fund-bottom {
  background-color: var(--l-pink);
}

/*
============================
CATEGORIES BACKGROUND IMAGES
============================
*/

.fork-img-box {
  background-image: var(--black-gradient), url(../assets/hard-fork.jpg);
}

.apps-img-box {
  background-image: var(--black-gradient), url(../assets/twitter.png);
}

.gear-img-box {
  background-image: var(--black-gradient), url(../assets/chart.png);
}

.tech-img-box {
  background-image: var(--black-gradient), url(../assets/tech-office.png);
}

.creative-img-box {
  background-image: var(--black-gradient), url(../assets/creative.jpg);
}

.podium-img-box {
  background-image: var(--black-gradient), url(../assets/podium.jpg);
}

.insights-img-box {
  background-image: var(--black-gradient), url(../assets/hard-fork.jpg);
}

.launch-img-box {
  background-image: var(--black-gradient), url(../assets/BMW.png);
}

.distract-img-box {
  background-image: var(--black-gradient), url(../assets/post-generator.png);
}

/* ======= END ======== */

.cat-box {
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: center;
  background-position-y: center;
  width: 100%;
  height: 300px;
  padding: 10px;
  justify-content: flex-end;
  flex-direction: column;
  bottom: 0;
  color: var(--white);
}

.cat-latest-box {
  background-color: var(--l-orange);
}

.cat-latest-text {
  width: 75%;
  height: 100%;
  padding: 10px;
}

.latest-img {
  width: 25%;
}

.latest-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.flex-box-cat ul {
  width: 90%;
  margin: 0 auto;
  font-size: 12px;
}

.flex-box-cat li {
  margin: 10px 0;
  color: var(--red-orange);
  padding: 5px 0;
  border-bottom: 1px solid var(--l-gray);
}

/*
=============================
           DEALS
=============================
*/

.deals-section {
  margin: 40px auto;
}

.flex-deals img {
  cursor: pointer;
}

.line-through {
  text-decoration: line-through;
}

.flex-deals figcaption {
  font-weight: 600;
}

.deals-section article {
  flex-direction: column;
}

.deals-titles {
  justify-content: space-between;
  font-size: smaller;
}

.deals-titles h4 {
  padding: 10px 42px 0 0;
  font-size: 12px;
  font-weight: 300;
}

/*
=======================
      FOOTER
=======================
*/

footer {
  grid-area: footer;
  background-color: #131313;
}

.top-footer {
  padding: 30px;
}

.social,
.contact {
  width: 100%;
  justify-content: space-evenly;
  margin: 15px auto;
}

.social li {
  width: 40px;
  height: 40px;
  font-size: 20px;
  background-color: grey;
  border-radius: 50%;
  text-align: center;
  margin: 0 3px;
}

.social li:hover {
  background-color: rgb(73, 73, 73);
}

.social i {
  margin-top: 10px;
  color: aliceblue;
}

.bottom-footer {
  padding: 40px;
  background-color: var(--black);
  color: var(--gray);
  font-size: 10px;
  text-align: center;
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}

.bottom-footer img {
  width: 30px;
}

.bottom-footer p {
  width: 160px;
}

/*
========================
MEDIA QUERIES
========================
*/

@media screen and (min-width: 768px) {
  .left-nav,
  .right-nav {
    padding: 12px;
  }

  .nav-btn {
    display: none;
  }

  .header-articles {
    height: 500px;
    margin: 50px 0;
    flex-direction: row;
  }

  .left-box {
    width: 70vw;
    height: 535px;
  }

  .right-box,
  .right-box-2 {
    width: 33vw;
    height: 265px;
  }

  .right-box {
    margin-bottom: 5px;
  }

  .head-box-text h3 {
    font-size: 16px;
    width: 90%;
  }

  .left-box h3 {
    font-size: 40px;
    line-height: 1.1em;
  }

  .head-box-text span,
  .head-box-text h6 {
    font-size: 12px;
  }

  .left-nav li,
  .bottom-nav li {
    display: flex;
  }

  .head-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  .head-logo {
    height: 88px;
    width: 90px;
  }

  .container {
    flex-direction: row;
  }

  .flex-box {
    flex-basis: 30%;
  }

  .fund-right {
    flex-direction: row;
  }

  .fund-right a {
    border-right: 2px solid var(--red-orange);
  }

  .fund-left {
    font-size: 25px;
  }

  figure {
    flex-direction: column;
  }

  .article-img img,
  .article-img-deals img {
    object-fit: cover;
    width: 100%;
  }

  .article-img img {
    height: 120px;
  }

  .article-img-deals img {
    height: 180px;
  }

  .flex-box-cat {
    flex-basis: 45%;
  }

  .cat-box {
    height: 270px;
  }

  .contact ul {
    font-size: 30%;
  }

  .nav-bars {
    padding-left: 90px;
  }

  .bottom-footer p {
    width: 550px;
    font-size: 14px;
  }

  .contact a {
    font-size: 12px;
  }
}

@media screen and (min-width: 800px) {
  .right-nav li {
    display: flex;
  }
}

@media screen and (min-width: 1024px) {
  .left-box {
    background-image:
      linear-gradient(
        145deg,
        rgba(236, 106, 108, 0.906582701439951) 37%,
        rgba(246, 165, 166, 0) 73%
      ),
      var(--black-gradient),
      url("../assets/backgroundpic-1.jpg");
  }

  .left-box img,
  .date {
    display: flex;
  }

  .head-logo {
    display: none;
  }

  .nav-bars {
    padding-left: 0;
  }

  .head-box-text h3 {
    font-size: 20px;
  }

  .left-box h3 {
    font-size: 50px;
  }

  .head-box-text span,
  .head-box-text h6 {
    font-size: 15px;
  }

  .top-articles h2,
  .fund-left,
  .deals-titles h2 {
    padding-left: 35px;
  }

  .container {
    justify-content: space-evenly;
  }

  .flex-box {
    flex-basis: 20%;
    margin: 10px 10px;
  }

  .fund-right {
    padding: 10px 10px 0 17px;
    font-weight: 600;
    position: absolute;
    right: 0;
  }

  .hide-funding {
    display: flex;
    flex-direction: column;
  }

  .flex-box-cat {
    flex-basis: 31%;
  }

  .cat-box {
    height: 260px;
  }

  .cat-latest-text a {
    font-size: 13px;
    font-weight: bold;
  }
}
