/*
Theme Name: Sport21
Theme URI: https://www.spor21.pl
Description: Unikatowy szablon dla rodzinnego klubu sportowego.
Author: borsacz
Author URI: https://www.borysuje.pl
Version: 1.0
License: GPL (General Public License)
*/

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;400;800&display=swap");

* {
  box-sizing: border-box;
}

/* Style the body */
body {
  font-family: "Nunito", Helvetica, sans-serif;
  margin: 0;
  height: 100%;
  min-width: 500px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

h1,
h2,
h3,
h4,
h5,
p {
  padding: 5px;
  margin: 10px 0;
  line-height: 1.2;
  text-align: justify;
}

p {
  font-weight: 400;
}
h1,
h2,
h3,
h4,
h5,
strong {
  font-weight: 800;
}

li {
  line-height: 1.2;
  text-align: justify;
  list-style-type: circle;
  list-style-position: inside;
}

a:link,
a:visited {
  text-decoration: none;
  color: black;
}

/* Header ------------------------------------------------------------------------------*/
header {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
  background: white;
  color: black;
}

.column {
  float: left;
}
.left {
  -ms-flex: 20%; /* IE10 */
  flex: 20%;
}
.right {
  -ms-flex: 70%; /*IE10*/
  flex: 70%;
}
header:after {
  content: "";
  display: table;
  clear: both;
}

#logo-strony img {
  max-height: 150px;
}

#header-image img {
  max-height: 150px;
  max-width: 100%;
  left: 0px;
  bottom: 0px;
}

/* Navbar ------------------------------------------------------------------------------- */
nav {
  overflow: hidden;
  background-color: white;
  top: 0;
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.1), 0 0 20px 0 rgba(0, 0, 0, 0.09);
}
.menu {
  max-width: 1200px;
  margin: 0 auto;
}

/* Style the navigation bar links */

.tablink {
  float: left;
  display: block;
  background-color: white;
  color: black;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  border: none;
}

.tablink.right {
  float: right;
}

.tablink:hover {
  background-color: white;
  color: black;
  text-shadow: 0 0 2px gray, 0 0 20px #0081d3 !important;
}

.tablink.active {
  font-weight: 800;
  background-color: rgb(0, 129, 211, 0.5);
  color: white;
}


.tabcontent {
  color: white;
  display: block;
  padding: 20px 20px;
  height: 100%;
  width: 100%;
}

#Klub {
  background-color: rgb(127, 192, 233);
}

#Treningi {
  background-color: rgb(129, 215, 165);
}

#Obozy-letnie {
  background-color: rgb(218, 255, 159);
}
#Obozy-zimowe {
  background-color: rgb(255, 227, 159);
}

#Galeria {
  background-color: rgb(251, 188, 159);
}

#Grafik {
    background-color: rgb(251, 159, 216);
}

#Kontakt {
  background-color: rgb(236, 126, 126);
}

/* Main content ------------------------------------------------------------------------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  z-index: 0;
}

/* Grid container */
.wrapper {
  display: grid;
  grid-template-columns: repeat(2fr);
  gap: 20px;
  grid-auto-rows: minmax(50px, auto);
}
/*Treningi*/
.treningi, .obozy{
  color: black;
}

.dla-dzieci{
  grid-column: 1/3;
  grid-row: 1;  
}
.dla-doroslych {
    grid-column: 1/3;
    grid-row: 5;  
}

.treningi .one {
  grid-column: 1;
  grid-row: 2; 
}

.treningi .two {
  grid-column: 2;
  grid-row: 2; 
}
.treningi .three {
  grid-column: 1;
  grid-row: 3; 
}

.treningi .four {
  grid-column: 2;
  grid-row: 3; 
}

.treningi .five {
  grid-column: 1;
  grid-row: 4; 
}

.treningi .six {
  grid-column: 1;
  grid-row: 6; 
}
.treningi .seven {
  grid-column: 2;
  grid-row: 6; 
}

.treningi .eight {
  grid-column: 1;
  grid-row: 7; 
}
.treningi .nine {
  grid-column: 2;
  grid-row: 7; 
}

.treningi .ten {
  grid-column: 1;
  grid-row: 8; 
}
.treningi .eleven {
  grid-column: 2;
  grid-row: 8; 
}

.treningi .twelve {
  grid-column: 1;
  grid-row: 9; 
}
/*Obozy*/
.letnie, .zimowe {
  grid-column: 1/3;
  grid-row: 1;  
}

.obozy .one {
  grid-column: 1;
  grid-row: 2; 
}

.obozy .two {
  grid-column: 2;
  grid-row: 2; 
}
.obozy .three {
  grid-column: 1;
  grid-row: 4; 
}

.obozy .four {
  grid-column: 2;
  grid-row: 4; 
}

.dane {
  grid-column: 1;
  grid-row: 1; 
}

.formularz {
  grid-column: 3;
  grid-row: 1;
}

.treningi .container, .obozy .container {
  background: rgba(255, 255, 255, 0.5); /* Black background with 0.5 opacity */
}


.container.dla-dzieci, .container.dla-doroslych, .container.letnie, .container.zimowe {
  background: none;
}
.container img {
  height: 300px;
  object-fit: cover;
}

.treningi .container .content, .obozy .container .content {
  width: 100%;
  padding: 20px;
}

.dla-dzieci .content,
.dla-doroslych .content {
    padding: 0 !important;
  }

.letnie .content,
 .zimowe .content {
  padding: 0 !important;
}

iframe {
  border: none;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1200px;
  height: 400px;
  position: relative;
  margin: auto;
  overflow: hidden;
}
.slideshow-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 0 -15vh;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {
    opacity: 0.1;
  }
  to {
    opacity: 1;
  }
}

.zoom {
  animation-name: scale;
  animation-duration: 8s;
}

@keyframes scale {
  from {
    scale: 1;
  }
  to {
    scale: 1.1;
  }
}

/* Gallery */
.gallery-row > .gallery-column {
  padding: 8px;
}

.gallery-row:after {
  content: "";
  display: table;
  clear: both;
}

.gallery-column {
  float: left;
  width: 25%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 60%;
  max-width: 1200px;
}

.modal-content img {
  width: 100%;
  aspect-ratio: 3/2;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.gallery-mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

img {
  margin-bottom: -4px;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*Grafik*/
#Grafik .grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto ;
    grid-template-rows: auto;
    grid-gap: 10px;
}
#Grafik .item {
    background-color: rgb(209, 111, 171) ;
    padding: 10px;
    
    display: flex;
    flex-direction: column;
    
}
#Grafik .center {
    justify-content: center;
    align-items: center;
}

/*Kontakt*/
.kontakt h1,
.kontakt h2,
.kontakt h3,
.kontakt h4,
.kontakt h5,
.kontakt p,
.formularz p,
.kontakt a:link,
.kontakt a:visited {
  text-decoration: none;
  color: black;
}

.kontakt .icon img,
.kontakt .icon svg {
  width: 48px;
  height: auto;
}

.formularz label{
  color: black;
}


.formularz button {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.formularz button:hover {
  background-color: #45a049;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

/* Footer ------------------------------------------------------------------------------*/
footer {
  overflow: hidden;
  background-color: white;
  position: -webkit-sticky;
  top: 0;
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.1), 0 0 20px 0 rgba(0, 0, 0, 0.09);
}

.sidebars {
  max-width: 1200px;
  margin: 0 auto;
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
}

.sidebar {
  -ms-flex: 50%; /* IE10 */
  flex: 50%;
  padding: 20px;
}
.sidebar h1,
.sidebar h2,
.sidebar h3,
.sidebar h4,
.sidebar h5,
.sidebar p {
  margin: 0;
}

.sidebar .icon img,
.sidebar .icon svg {
  width: 48px;
  height: auto;
}

.pfr img {
  float: right;
  width: 240px;
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  header,
  .row {
    flex-direction: column;
    align-items: center;
  }

  .slideshow-container img {
    object-position: 0;
  }
  .wrapper {
    grid-template-columns: repeat(1fr);
    grid-auto-rows: minmax(100px, auto);
  }
  .one {
    grid-column: 1;
    grid-row: 1;
  }
  .two {
    grid-column: 1;
    grid-row: 2;
  }
  .three {
    grid-column: 1;
    grid-row: 3;
  }
  .four {
    grid-column: 1;
    grid-row: 4;
  }
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 400px) {
}
