@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,200;0,300;0,400;1,410;1,500&display=swap');

 body {
  margin: 0;
 }

html {
  background: white;
  font-family: 'Josefin Sans',sans-serif;
}

body {
  margin: 0;
}

nav {
  width: 100%;
  min-height: 50px;
  background-color: #ffff;
}

.navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  padding: 8px;
  width: 30%;
}

.logo-img {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: flex-end;
  list-style: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 300;
  padding: 0;
  margin: 0;
}

.nav-item a {
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  color: #000;
}

.nav-item:hover a {
  color: #f386a3;
  font-weight: 400;
}

/* big news article */
.big-news {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color:#47bfb1;
  padding: 0 0 20px;
}

.big-img {
  width: 95%;
  padding-bottom: 10px;
  padding-top: 10px;
}

h1 {
  width: 65%;
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  padding: 0 20px 10px 20px;
  margin: 0;
}

.p-big {
  width: 90%;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  margin: 0;
}

/* Many articles in one grid right here */
.grid-parent {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  column-gap: 8px;
  row-gap: 8px;
  margin: 8px;
}

.grid-item {
  display: grid;
  background-color: #f386a3;
  padding: 5px;
}

.grid-item>img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.grid-item>p {
  color: #5c63ad;
  font-size: 20px;
  margin: 0;
  padding: 10px 2px;
}

.grid-item:hover {
  background-color: #f04c29;
}

a, a:visited {
  text-decoration: none;
}

/* quote section */
.quote {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color:#5c63ad;
  padding: 20px 0;
  margin: 8px 0 0 0;
}

h2 {
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  max-width: 600px;
  color:#f386a3;
  padding: 20px 60px;
  margin: 0;
}

/* medium news with small box */
.medium-news {
  display: flex;
  flex-direction: column;
}

.small-box {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: center;
  align-content: stretch;
  height: 190px;
  background-color: #47bfb1;
  margin: 8px 0;
}

.small-img {
  width: 50%;
  height: 175px;
  padding: 0;
  margin-right: 5px;
}

h4 {
  width: 48%;
  height: 30px;
  font-size: 15px;
  color: #fff;
  text-align: left;
  margin: 0 0 8px 0;
}

.p-medium {
  width: 48%;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  margin: 0;
}

.medium-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 240px;
  background-image: url(./img/tatto.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom: solid #47bfb1 8px;
  border-top: solid #47bfb1 8px;
  padding: 20px 0;
  margin: 0;
}

h3 {
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  padding: 0 20px 10px 20px;
  margin: 0;
}

/* the end of story ie the footer */
footer {
  width: 100%;
  min-height: 50px;
  background-color: #ffff;
  font-size: 12px;
  font-weight: 300;
  margin-top: 8px;
}

.foot-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0 8px;
  margin: 8px;
}

.some-row {
  display: flex;
  justify-content: flex-end;
}

.some-logo {
  width: 20px;
  height: 20px;
}

.mailto {
  display: flex;
  justify-content: flex-end;
}

.technigo {
  display: flex;
  justify-content: flex-end;
}

.tech-logo {
  width: 40px;
}

.foot-links a {
  display: inline-block;
  text-decoration: none;
  margin: 3px;
  color: #000;
}

.foot-links:hover a {
  color: #f386a3;
}

/* responsive for tablet */
@media (min-width: 668px) {
  body{
      flex-direction: row;
      background: #fff;
      flex-wrap: wrap;
  }
  img {
      width: 40%;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 8px 0;
  }

  .nav-links {
    display: flex;
    align-items: flex-end;
    list-style: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 300;
    padding: 0 8px 0 0;
  }
  
  .nav-item a {
    display: inline-block;
    padding: 10px 10px 0 10px;
    text-decoration: none;
    color: #000;
  }

  .big-news {
    margin: 0 8px 8px;
  }

  .grid-parent {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote {
    width: auto;
    margin: 8px;
  }

  /* medium news with small box tablet */
  .medium-news {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 8px;
    gap: 8px;
  }

  .small-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    width: 200px;
    height: 280px;
    border: solid #47bfb1 8px;
    margin: 0;
  }

  .small-img {
    width: 100%;
    height: 50%;
    margin: 0 0 10px 0;
  }

  h4 {
    width: 170px;
    height: 10%;
    padding: 0 0 8px 0;
  }

  .p-medium {
    width: 170px;
    height: 40%;
    padding: 0 0 8px 0;
  }

  .medium-box {
    width: 75%;
    height: 240px;
    border: solid #47bfb1 8px;
    padding: 20px 40px;
    margin: 0;
  }

}

/* responsive for desktop */
@media (min-width: 1025px) {
  body {
      flex-direction: row;
      background: #fff;
      max-width: 1100px;
      margin: 0 auto;
  }

/* grid for desktop */
  .grid-parent {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2px;
    margin: 8px;
}

 /* medium news with small box desktop */
  .medium-news {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
}
  .small-box {
    width: 220px;
    height: 320px;
    padding: 0 0 20px 0;
}
   .small-img {
    width: 200px;
    height: 100%;
    margin: 0 0 10px 0;
}
  .medium-box {
    width: 75%;
    height: 300px;
    margin: 0;
}
}