/*project-news-site*/
:root {
  --navbar-font-family: "Newsreader", serif;
  --logo-name-font-family: "Rubik Gemstones", cursive;
  --headings-font-family: "Rye", cursive;
  --second-headings-font-family: "Rancho", cursive;
  --paragraph-font-family: "Newsreader", serif;
  --review-paragraph-font-family: "Newsreader", sans-serif;
  --footer-font-family: "Newsreader", serif;
  --border-color: #94b1aa;
  --primary-bg-color: #94b1aa;
  --secondary-bg-color: #f4f6f6;
  --primary-text-color: #000;
  --secondary-text-color: #000;
  --image-link-color: #f4f6f6;
  --box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

h1 {
  font-family: var(--logo-name-font-family);
  font-size: 48px;
  font-weight: normal;
  text-align: center;
}

h2,
h3,
h4 {
  font-family: var(--headings-font-family);
  font-weight: lighter;
}

h5 {
  text-align: center;
  font-family: var(--second-headings-font-family);
  font-size: 32px;
  margin: 20px 0 20px 0;
}

p {
  font-family: var(--paragraph-font-family);
}

figure {
  max-width: 90%;
}

figcaption {
  color: var(--primary-text-color);
  font-family: var(--review-paragraph-font-family);
  font-size: 15px;
  text-align: center;
  padding: 5px 0 5px 0;
}

figcaption em {
  display: block;
}

.figcaption-other-news {
  background-color: var(--secondary-bg-color);
  max-width: 90%;
}

.figcaption-link {
  border-radius: 4px;
  padding: 20px 15px;
  margin: 5px;
  background: var(--primary-bg-color);
  box-shadow: var(--box-shadow);
  color: var(--primary-text-color);
  text-decoration: underline;
  text-align: center;
}

.border-container {
  border: 10px outset var(--border-color);
  background-color: var(--secondary-bg-color);
  margin: 0 90px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  max-width: fit-content;
}

.navbar {
  background-color: var(--primary-bg-color);
}

.navbar a {
  color: var(--primary-text-color);
  text-decoration: none;
  font-family: var(--navbar-font-family);
  margin-left: 5px;
  margin-right: 5px;
}

.navbar a:hover {
  background-color: var(--secondary-bg-color);
  border-radius: 20px;
  text-decoration: underline;
}

.navbar li {
  list-style: none;
  display: inline;
}

.logo-nav {
  position: relative;
  top: 18px;
  width: 50px;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  margin-left: 20px;
  margin-right: 20px;
}

.active {
  font-weight: bold;
  font-size: 20px;
}

a {
  color: var(--primary-text-color);
  transition: all 200ms ease;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.logo-magazine {
  display: flex;
  justify-content: center;
  margin: 20px 0 20px 0;
}

.big-news p::first-letter {
  font-size: 58px;
}

.grid-parent-big-news {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  gap: 10px;
}

.big-news-paragraph {
  margin: 30px 0 20px 40px;
}

.img-big-news-div {
  text-align: left;
}

.img-big-news-one,
.img-big-news-two,
.img-big-news-illustration-one {
  width: 100%;
  height: auto;
}

.img-big-news-one,
.img-big-news-two,
.video-big-news-one,
.video-big-news-two {
  border: var(--border-color) inset 5px;
}

.img-big-news-two {
  border-top-left-radius: 20%;
}

.video-big-news-div h4 {
  text-align: center;
}

.video-big-news-one {
  width: 100%;
  height: auto;
}

.video-big-news-two {
  width: 100%;
  height: auto;
}

.video-big-news-two-figcaption {
  text-align: center;
}

.other-news h4 {
  margin: 30px 0 20px 40px;
}

.grid-parent-other-news {
  display: grid;
  grid-template-columns: repeat(4, 4fr);
  gap: 10px;
  margin: 30px 40px 20px 40px;
}

.other-news-paragraph {
  border: 1px solid var(--border-color);
}

.medium-grid-item {
  margin: 5px 20px 5px 20px;
}

.img-other-news {
  width: 100%;
  height: auto;
  border-radius: 10%;
}

.review {
  font-family: var(--review-paragraph-font-family);
  text-align: center;
}

.primary-link {
  border-radius: 4px;
  padding: 20px 15px;
  margin: 5px;
  background: var(--primary-bg-color);
  box-shadow: var(--box-shadow);
  color: var(--primary-text-color);
  text-decoration: underline;
  text-align: center;
}

.primary-link:hover {
  border-radius: 4px;
  padding: 20px 15px;
  text-transform: capitalize;
  box-shadow: var(--box-shadow);
  background: var(--secondary-bg-color);
  color: var(--secondary-text-color);
  border: 1px solid var(--border-color);
}

.icon-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fa-instagram {
  font-size: 38px;
  filter: drop-shadow(2px 4px 1px rgb(0 0 0 / 0.3));
  background-clip: text;
}

.pets {
  filter: drop-shadow(2px 4px 1px rgb(0 0 0 / 0.3));
}

/*footer*/
.footer {
  margin-top: 50px;
}

.logo-footer {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.logo-footer img {
  width: 50px;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  margin-top: 5px;
}

.logoTextSpan {
  padding: 10px;
  font-family: var(--footer-font-family);
}

.footer-icons {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fa-linkedin,
.fa-github {
  font-size: 38px;
  padding-left: 25px;
  filter: drop-shadow(2px 4px 1px rgb(0 0 0 / 0.3));
  text-decoration: none;
}

.fa-linkedin {
  color: #0270ad;
}

.fa-github {
  color: var(--primary-text-color);
}

.flex-parent footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-child footer {
  display: inline-flex;
}

/*https://codepen.io/zajonsss/pen/abqZZe, January 12, 2023*/
.kwadrat {
  width: 232px;
  height: 180px;
  border-bottom: 1px solid #000;
  overflow: hidden;
}
.trojkat {
  position: relative;
  overflow: hidden;
  transform: rotate(45deg) skew(10deg, 10deg);
  border-left: 1px solid #000;
  border-top: 1px solid #000;
  width: 200px;
  height: 200px;
  margin: 81px 0 0 16px;
}

.trojkat_bg {
  display: aboslute;
  justify-content: center;
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  z-index: -1;
  background: url("img/smirre.jpg");
  background-size: 100%;
  background-position: center top;
  transform: skew(-10deg, -10deg) rotate(-45deg);
  transition: 0.3s;
  background-size: 80%;
}

.trojkat_bg:hover {
  background-size: 90%;
}

.kwadrat2 {
  width: 232px;
  height: 170px;
  border-top: 1px solid #000;
  overflow: hidden;
  margin-top: 5px;
}

.trojkat2 {
  position: relative;
  overflow: hidden;
  transform: rotate(45deg) skew(10deg, 10deg);
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 16px;
}
.trojkat_bg2 {
  position: absolute;
  justify-content: center;
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  z-index: -1;
  background: url("img/smirre.jpg");
  background-size: 100%;
  background-position: center top;
  transform: skew(-10deg, -10deg) rotate(-45deg);
  transition: 0.3s;
}

.trojkat_bg2:hover {
  background-size: 90%;
}

/*tablet*/
@media ((min-width: 668px) and (max-width: 1023px)) {
  .border-container {
    width: 100%;
    margin: 0 20px 0 20px;
  }

  .grid-parent-big-news {
    display: grid;
    grid-template-columns: repeat(1, 2fr);
    gap: 10px;
  }

  .big-news-paragraph {
    overflow-wrap: break-word;
    margin: 30px 20px 30px 20px;
  }

  .medium-grid-item {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .img-big-news-div {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .img-big-news-one,
  .img-big-news-two {
    margin: 20px;
  }

  .video-big-news-div {
    width: 80%;
    height: auto;
    justify-content: center;
    align-items: center;
  }

  .video-big-news-one,
  .video-big-news-two {
    margin: 20px;
  }

  .grid-parent-other-news {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 10px;
  }

  .other-news h3 {
    text-align: center;
    margin: 30px 0 30px 0;
  }
}

/*mobile*/
@media (min-width: 375px) and (max-width: 667px) {
  body {
    margin: 0 auto;
  }

  .logo-magazine {
    display: none;
  }

  .border-container {
    width: 100%;
    margin: 0 20px 0 20px;
  }

  .grid-parent-big-news {
    display: grid;
    grid-template-columns: repeat(1, 2fr);
    gap: 10px;
  }

  .grid-parent-other-news {
    display: grid;
    grid-template-columns: repeat(1, 2fr);
    gap: 10px;
  }

  .big-news-paragraph {
    overflow-wrap: break-word;
    margin: 30px 20px 30px 20px;
  }

  .other-news h3 {
    text-align: center;
    margin: 30px 0 30px 0;
  }
}

/*Galaxy fold*/
@media (min-width: 280px) and (max-width: 374px) {
  .logo-magazine {
    display: none;
  }

  .border-container {
    width: 80%;
    margin: 0 20px 0 20px;
  }

  .grid-parent-big-news {
    display: grid;
    grid-template-columns: repeat(1, 2fr);
    gap: 10px;
  }

  .grid-parent-other-news {
    display: grid;
    grid-template-columns: repeat(1, 2fr);
    gap: 10px;
    margin: 0;
  }

  .big-news-paragraph {
    overflow-wrap: break-word;
    margin: 30px 20px 30px 20px;
  }

  .other-news h3 {
    text-align: center;
    margin: 30px 0 30px 0;
  }
}
