@import url("https://fonts.googleapis.com/css2?family=Arvo&display=swap");

:root {
  --primary-color: #277cc2;
  --secondary-color: #5b92be;
  --dark-color: #002240;
  --light-color: #f4f4f4;
  --success-color: #5cb85c;
  --error-color: #d9534f;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 65%;
  font-weight: bolder;
  font-family: "Arvo", sans-serif;
}

.container {
  width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-self: center;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
}

p {
  font-weight: 100;
  font-size: larger;
}

h1 {
  font-size: 2rem;
  font-weight: lighter;
  margin-top: auto;
  margin-bottom: auto;
}

h2 {
  font-size: 1.8rem;
  font-weight: lighter;
  margin-top: auto;
  margin-bottom: auto;
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.hamburger {
  display: none;
  margin-right: 10px;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right: 15px;
  z-index: 1000;
}

.nav-item {
  margin-left: 4rem;
}

.nav-link,
.nav-link-has-sub {
  font-size: 1.4rem;
  font-weight: 500;
  color: rgb(255, 255, 255);
  padding-bottom: 4px;
}

.nav-link-sub {
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
  padding-bottom: 4px;
  font-style: italic;
}

.nav-link:hover,
.nav-link-sub:hover,
.nav-link-has-sub:hover {
  border-bottom: 1px solid white;
}

.nav-logo {
  font-size: 2rem;
  font-weight: 500;
  color: white;
  margin-left: 10px;
}

.sub-menu-item {
  display: none;
  position: relative;
  margin: 10px 0;
  padding: 0px 10px;
}

.sub-menu {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-top: 10px solid transparent;
  background-color: var(--primary-color);
}

.has-sub-menu:hover .sub-menu-item {
  display: block;
  top: 0;
}

.cos {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  max-width: 1100px;
  margin: auto;
}

.cos img {
  margin: 30px 10px;
  max-width: 40%;
  height: auto;
}

.cos .faculty {
  margin: 30px 10px;
  max-width: 40%;
  max-height: 160px;
}

.pasek {
  position: relative;
  width: 100%;
  height: 450px;
  transform: skewY(-2deg);
  background: var(--primary-color);
  z-index: -1;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

.img-grupa {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -450px;
}

.img-grupa img {
  max-width: 900px;
  min-width: 300px;
  height: auto;
  border-radius: 25px;
  margin: 30px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  animation: shimmy 1s;
}

.whats-new {
  font-size: 2.8rem;
  font-weight: bolder;
  margin: auto;
  max-width: 1000px;
  text-align: left;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 50px;
}

.news {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  justify-items: left;
  align-items: center;
  column-gap: 20px;
  row-gap: 5%;
  margin: auto;
  max-width: 1000px;
  padding-left: 30px;
  padding-right: 0px;
  padding-top: 30px;
  padding-bottom: 150px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
    rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.news1 {
  font-size: 1.1rem;
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 1;
  grid-row-end: 1;
}

.news2 {
  font-size: 1.1rem;
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 2;
  grid-row-end: 2;
}

.news3 {
  font-size: 1.1rem;
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 3;
  grid-row-end: 3;
}

.news4 {
  font-size: 1.1rem;
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 4;
  grid-row-end: 4;
}

.news-img {
  grid-column-start: 2;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 1;
}

.news-img2 {
  grid-column-start: 2;
  grid-column-end: 2;
  grid-row-start: 2;
  grid-row-end: 2;
}

.news-img3 {
  grid-column-start: 2;
  grid-column-end: 2;
  grid-row-start: 3;
  grid-row-end: 3;
}

.news-img4 {
  grid-column-start: 2;
  grid-column-end: 2;
  grid-row-start: 4;
  grid-row-end: 4;
}

.news-img img,
.news-img2 img,
.news-img3 img,
.news-img4 img,
.group-img img {
  max-height: 200px;
  margin: auto;
  border-radius: 50%;
}

.footer-flex {
  display: flex;
  background-color: var(--primary-color);
  margin-top: 50px;
  color: white;
  flex-wrap: wrap-reverse;
  justify-content: center;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

.footer-flex div {
  margin: 40px 10px;
  width: 250px;
  height: 100px;
  padding: 10px 0px;
}

.footer-flex div p {
  font-size: 1.25rem;
}

.footer-flex div a {
  color: white;
  text-decoration: underline;
}

/* OUR GROUP */

.tlo {
  position: absolute;
  top: 100px;
  left: -200px;
  width: 230px;
  height: 600px;
  z-index: -1;
}

.tlo img {
  height: 1000px;
}

.tlo2 {
  position: absolute;
  top: 1500px;
  right: 0px;
  width: 70px;
  height: 600px;
  z-index: -1;
  transform: rotate(180deg);
}

.tlo2 img {
  height: 800px;
  width: 200px;
}

.tlo3 {
  position: absolute;
  top: 2200px;
  left: -330px;
  width: 230px;
  height: 600px;
  z-index: -1;
  transform: skew(20deg);
}

.tlo3 img {
  height: 1000px;
  width: 400px;
}

.tlo4 {
  position: absolute;
  top: 900px;
  right: -230px;
  width: 230px;
  height: 600px;
  z-index: -1;
  transform: rotate(180deg);
}

.tlo4 img {
  height: 1000px;
  width: 400px;
}

.tlo5 {
  position: absolute;
  top: 1900px;
  left: -330px;
  width: 230px;
  height: 600px;
  z-index: -1;
  transform: skew(20deg);
}

.tlo5 img {
  height: 1000px;
  width: 400px;
}

.tlo6 {
  position: absolute;
  top: 850px;
  right: -230px;
  width: 230px;
  height: 600px;
  z-index: -1;
  transform: rotate(180deg);
}

.tlo6 img {
  height: 1000px;
  width: 400px;
}

.tlo7 {
  position: absolute;
  top: 770px;
  left: -210px;
  width: 230px;
  height: 600px;
  z-index: -1;
}

.tlo7 img {
  height: 1000px;
}

.tlo8 {
  position: absolute;
  top: 1500px;
  right: -270px;
  width: 230px;
  height: 600px;
  z-index: -1;
  transform: rotate(180deg);
}

.tlo8 img {
  height: 1000px;
  width: 400px;
}

.tlo9 {
  position: absolute;
  top: 3800px;
  right: 0px;
  width: 230px;
  height: 600px;
  z-index: -1;
  transform: rotate(180deg);
}

.tlo9 img {
  height: 800px;
  width: 200px;
}

.separator {
  margin: auto;
  height: 30px;
}

.group-img {
  margin: 5px 50px;
}

.group-headings1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  font-size: large;
  max-width: 1000px;
  background-color: var(--primary-color);
  color: white;
  height: 50px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 32px 16px;
  transform: skewX(-8deg);
}

.group-headings {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  font-size: large;
  max-width: 1000px;
  background-color: var(--primary-color);
  color: white;
  height: 50px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 32px 16px;
  transform: skewX(-8deg);
}

.group-team {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  font-size: 0.99rem;
  max-width: 1000px;
  background-color: var(--primary-color);
  color: white;
  height: 40px;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 16px 8px;
  transform: skewX(-8deg);
}


.stopien .group-img img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.more-than-one {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: auto;
  max-width: 1290px;
}

.flex-card {
  display: flex;
  flex-direction: row;
  justify-content: start;
  margin: 20px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.flex-card:hover {
  box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset,
    rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
}

.group-info {
  margin: 20px;
  line-height: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.group-info h1 {
  margin: 20px 0px;
}

.group-info p {
  margin: 5px 0px;
}

.stopien {
  min-width: 700px;
  max-height: 300px;
  border-radius: 20px;
}

@keyframes shimmy {
  0% {
    transform: translateX(-2000px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}
@media only screen and (max-width: 1053px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 4rem;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .pasek {
    height: 250px;
  }

  .img-grupa {
    margin-top: -230px;
  }

  .img-grupa img {
    max-width: 1000px;
    min-width: 300px;
    height: auto;
    border-radius: 25px;
    margin: 10px 20px;
    animation: none;
  }

  .nav-menu.active {
    left: 0;
  }

  .sub-menu {
    position: relative;
  }

  .nav-item {
    margin: 2rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .news {
    row-gap: 0%;
  }

  .news1,
  .news2,
  .news3,
  .news4 {
    font-size: 0.8rem;
  }

  .news-img img,
  .news-img2 img,
  .news-img3 img,
  .news-img4 img {
    max-height: 80px;
  }

  .tlo,
  .tlo2,
  .tlo3,
  .tlo4,
  .tlo5,
  .tlo6,
  .tlo7,
  .tlo8,
  .tlo9 {
    display: none;
  }

  .footer-flex div {
    margin: 15px 10px;
    width: 250px;
    height: 100px;
    padding: 10px 0px;
    text-align: center;
  }

  .flex-card {
    flex-direction: column;
  }

  .stopien {
    min-width: 330px;
    max-height: none;
  }
}
