/* ---------- GENERAL STYLES ---------------*/
* {
  box-sizing: border-box; /*wszytskie elementy będą włączały padding oraz border do kalkulowanego rozmiaru pudła*/
  text-align: center;
  font-family: "Arimo", sans-serif;
}

.important {
  font-weight: 600;
}

.noNormalizeMargin {
  margin-inline-start: 0;
  margin-inline-end: 0;
}

/* ---------- LINKS ---------------*/
a:link {
  color: darkgreen;
}

a:visited {
  color: darkgreen;
}

.mainNav a:visited {
  color: white;
}

a:hover {
  font-style: italic;
}

.logoLink img:hover {
  border: white 1px solid;
  border-radius: 50%;
}

a:focus {
  color: white;
  background-color: green;
}

.logoParent a:focus {
  background-color: #569b73;
}

.presentPage {
  border: greenyellow solid 1px;
}

/* ---------- NAB BAR ---------------*/

nav li {
  display: inline-block;
}

.navLinks {
  background-color: black;
  padding: 10px;
  border-radius: 7%;
  text-decoration: none;
  font-size: 1.3em;
}

nav li a:link {
  color: white;
}

nav li a:visited {
  color: gray;
}

nav {
  width: 100%;
  background-color: none;
}

/* ---------- HEADER ---------------*/

header {
  z-index: 1;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #569b73;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
}

.logo {
  height: 100%;
  max-height: 45px;
  margin: auto;
}

/* ---------- BODY STYLES ---------------*/

body {
  background-color: #141407;
  margin-bottom: 100; /* ---------- to chyba jakiś błąd do naprawienia?? #141407 poprzedni color---------------*/
}

.bodyDiv {
  width: 70%; /* NOT MOBILE FIRST!! */
  margin: auto;
  min-height: calc(100vh - 170px);
  background-color: #070d07;
  color: white;
}

/* ---------- MATCHES STYLES ---------------*/

/* 
000000
3E4634
3E664D
569B73
DBD76B
 */

.matchSection h2 {
  margin-top: 20px;
  /* background-color: red; */
}

.matchesTable {
  margin: auto;
  border-collapse: collapse;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  font-size: 0.9em;
}

.matchesTable th,
.matchesTable td {
  border: 2px solid white;
  padding: 11px 15px;
}

.matchesTable th {
  font-size: 1em;
  font-weight: bold;
}

.matchesTable thead {
  background-color: #3e664d;
}

.matchesTable tbody {
  background-color: #3e4634;
}

.host {
  color: #f9ff00;
}

.matchTips li {
  padding: 0 27% 0 27%;
  text-align: justify;
}

#matchTipsHeader {
  margin-bottom: 8px;
}

/*---------- Images size in gallery ------------------*/
.gridGallery img,
.gridGallery iframe {
  border: black 2px solid;
  max-width: 100%;
  margin-bottom: 15px;
}

.gridGallery a:link,
.gridGallery a:visited,
.galleryParagraph a:link,
.galleryParagraph a:visited {
  color: white;
  text-decoration: none;
}

.gridGallery a:hover,
.galleryParagraph a:hover {
  color: rgb(252, 232, 120);
}

.gridGallery a:hover img {
  border: darkkhaki solid 2px;
}

/*---------- Images size in rugby section ------------------*/
.rugbyImg {
  max-width: 100%;
  height: auto;
}

/*---------- MAIN PAGE ------------------*/
.welcome h2 {
  margin: 16px auto 8px;
}

.welcome p {
  margin: 8px auto 16px;
}

#teamName {
  margin-top: 0px;
}

.news h2 {
  margin: 12px auto 0px;
}

.news p {
  margin: 8px auto 8px;
}

.news article {
  margin-bottom: 18px;
}

.mainContent {
  display: grid;
  grid-template-columns: [col_1] 1fr [col_2] 1fr [col_3];
  grid-template-rows: [row_1] auto [row_2] auto;
}

.mainContent h1,
.mainContent h2 {
  margin-bottom: 0.2em;
}

.welcomeContent {
  padding-top: 0%;
  padding-left: 5%;
  padding-right: 5%;
  grid-column-start: col_1;
  grid-column-end: col_3;
  /* background-color: rgba(255, 0, 0, 0.406); */
}

.gridMinor h2 {
  margin-top: 0.4em;
}

.gridMinor p {
  margin: 0.2em auto;
}

.gridMatches {
  padding-left: 20%;
  padding-right: 5%;
}

.gridTrainings {
  padding-right: 20%;
  padding-left: 5%;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: darkkhaki;
  position: relative;
  bottom: -3px;
}

.footer p {
  margin: 0;
  padding-top: 14.2px;
  padding-bottom: 14.1px;
  padding-right: 10px;
  color: black;
  font-weight: 600;
}

.followIcons {
  display: inline-block;
  max-height: 30px;
  margin: 0 7px;
}

.footer a:hover,
.footer a:active,
.footer a:visited,
.footer a:link {
  background-color: transparent;
}

hr {
  position: relative;
  bottom: -4px;
  margin-bottom: 0;
  background-color: #2a2e0c;
}

/* ---------- MAIN PHOTO ---------------*/
.mainPhoto {
  border-radius: 5px;
  max-width: 95%;
  margin-top: 5px;
}

.photoAndMainContent,
.treningi,
.kontakt,
.rugby {
  /*-- style dla podstrony  dla monitorów PC--*/
  margin-top: 60px;
}

/* ---------- Web Fonts ---------------------*/
@font-face {
  font-family: "Anolition Regular";
  src: url() format("woff");
}

/*---- trenings section ----*/

.treningi {
  padding: 5px 20px;
}

.gridBox h3 {
  margin-bottom: 0.5em;
}

.price,
.place {
  margin-top: 2em;
}

.clothing {
  margin-top: 2em;
}

#sectionsRemarks {
  margin-top: 0.5em;
}

#sectionsRemarks li {
  text-align: justify;
}

#sections h4 {
  margin: 0;
}

.junior {
  margin-bottom: 15px;
}

.when {
  margin-top: 5px;
}

.AdditionalInfo p {
  text-align: justify;
}

#importantTip {
  margin-top: 1px;
}

#importantTip span {
  font-weight: 700;
}

.clothing ul li {
  text-align: justify;
}

.clothing p {
  margin-bottom: 3px;
  text-align: justify;
}

/*---- gallery title ----*/

.galeryTitle {
  margin-bottom: 8px;
}

.galleryParagraph {
  margin: 8px auto;
}

/*---- rugby section ----*/

#rugbyDescription p,
#rugbyDescription h2,
#rugbyDescription h3 {
  text-align: justify;
}

#rugbyDescription {
  padding: 5px 20px;
}

.hide {
  display: none;
}

.sectionsBtn {
  margin-top: 15px;
}

/* ---- contact section ---- */
.kontakt {
  line-height: 140%;
}

.kontakt a {
  color: white;
}

.contactIcon {
  max-height: 20px;
}

/* ---------- Media Queries ---------------------*/
/* ---------- To (max-width: 576px) - should be mobile first---------------------*/

@media screen and (max-width: 576px) {
  p,
  li {
    font-size: small;
  }

  .navLinks {
    font-size: 0.8em;
    padding: 6px;
    margin-left: 5px;
  }

  .mainContent {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gridMain,
  .gridMinor {
    grid-column-start: 1;
    grid-column-end: 2;
    padding: 0 5%;
  }

  .gridTextContent {
    text-align: justify;
  }

  .gridMain p,
  .gridMinor p {
    font-size: 0.8em;
  }

  .gridMain h1 {
    font-size: 1.2em;
  }

  .gridMinor h2 {
    font-size: 1.1em;
  }

  footer p {
    font-size: small;
  }

  .followIcons {
    display: inline-block;
    max-height: 20px;
    margin: 0 3px;
  }

  .gridGallery img,
  .gridGallery iframe {
    border: black 2px solid;
    max-width: 90%;
    margin-bottom: 15px;
  }

  .gridGallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 2%;
    padding: 0 2%;
  }

  .map {
    margin-top: 10px;
    max-width: 100%;
    height: auto;
  }

  .logoParent {
    max-width: 50px;
    margin: 8px 5px 3px 5px;
  }

  .mainPhoto {
    max-width: 90vw; /*gdy ma 80vw to jest na środku ale to chyba nie od tego zależy - do poprawy */
  }

  .bodyDiv {
    width: 95%;
    min-height: calc(100vh - 120px);
  }
  /* ////////////////  Trainings SUBPAGE //////////////// */
  .treningi section h2 {
    margin-top: 4px;
    /* font-size: 1.4em; */
  }

  /* ////////////////  Matches SUBPAGE //////////////// */
  .matchSection h2,
  #matchTipsHeader,
  .matchSection h4 {
    font-size: 1em;
  }

  .matchTips li {
    padding: 5px;
  }

  .matchesTable {
    margin: auto;
    border-collapse: collapse;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    font-size: 0.5em;
  }

  .matchesTable th,
  .matchesTable td {
    border: 2px solid white;
    padding: 2px 2px;
  }

  .matchesTable th {
    font-size: 1em;
    font-weight: bold;
  }

  .matchesTable thead {
    background-color: #3e664d;
  }

  .matchesTable tbody {
    background-color: #3e4634;
  }

  /* ---------- Rugby section ----------- */
  .rugby h1 {
    font-size: 1.5em;
    margin-bottom: 0;
  }

  .firstHeaderRugby {
    margin-top: 12px;
  }

  #rugbyDescription h3 {
    margin-bottom: 5px;
  }
  #rugbyDescription p {
    margin-top: 0px;
  }
}

@media screen and (min-width: 577px) and (max-width: 899px) {
  header {
    height: 75px;
  }

  .photoAndMainContent,
  .treningi,
  .kontakt,
  .rugby {
    margin-top: 85px;
  }

  .logo {
    max-height: 75px;
    position: relative;
    top: 2px;
  }

  .navLinks {
    font-size: 1em;
    padding: 4px;
    margin-left: 10px;
  }

  .ulNav:first-child {
    margin-left: -30px;
  }

  .ulNav:last-child {
    margin-right: 20px;
  }

  .bodyDiv {
    width: 80%;
    min-height: calc(100vh - 145px);
  }

  .map {
    margin-top: 10px;
    max-width: 100%;
    height: auto;
  }

  /* /////////// Gallery //////////// */
  .gridGallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2%;
    padding: 0 2%;
  }

  .matchTips li {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media screen and (orientation: landscape) and (max-height: 576px) {
  header {
    z-index: auto;
    position: static;
  }

  .photoAndMainContent,
  .treningi,
  .kontakt,
  .rugby {
    margin-top: 10px;
  }
}

/* //////////////////// min-width: 900px ///////////////////// */
@media screen and (min-width: 900px) {
  header {
    height: 100px;
  }

  .logo {
    max-height: 95px;
    position: relative;
    top: 2px;
  }

  .logoParent {
    margin-left: 20%;
  }

  .mainNav {
    max-width: 50%;
  }

  .ulNav {
    display: flex;
    justify-content: flex-start;
  }

  .ulNav:first-child {
    margin-left: auto;
  }

  .ulNav:last-child {
    margin-right: auto;
  }

  .navLinks {
    padding: 10px;
    margin-left: 20px;
  }

  .photoAndMainContent,
  .treningi,
  .kontakt,
  .rugby {
    margin-top: 110px;
  }

  .photoAndMainContent figure {
    margin-bottom: 6px;
  }

  .mapaZG {
    display: block;
    max-width: 800px;
    margin: 20px auto;
    /* margin-top: 20px; */
  }

  .mapContainer {
    margin-top: 20px;
  }

  .gridBox {
    margin: auto 20px;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2%;
  }

  .kontakt {
    padding-top: 40px;
  }

  .gridGallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 2%;
    padding: 0 2%;
  }
}
