@font-face {
    font-family: HelveticaRoman;
    src: url(./fonts/HelveticaNeueLTPro-Roman.otf);
    font-weight: normal;
}
@font-face {
    font-family: HelveticaRoman;
    src: url(./fonts/HelveticaNeueLTPro-RomanItalic.otf);
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: HelveticaBold;
    src: url(./fonts/HelveticaNeueLTPro-Bold.otf);
    font-weight: bolder;
}
@font-face {
    font-family: HelveticaBold;
    src: url(./fonts/HelveticaNeueLTPro-BoldItalic.otf);
    font-weight: bolder;
    font-style: italic;
}
@font-face {
    font-family: TWCenMT;
    src: url(./fonts/TCM_____.TTF);
}
@font-face {
    font-family: TWCenMT;
    src: url(./fonts/TCMI____.TTF);
    font-style: italic;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.invisible {
    opacity: 0;
    animation: slideIn ease-in 1s;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
}

.invisible.two {
    animation-delay: 0.5s;
}

.invisible.three {
    animation: slideIn ease-in-out 1s;
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
}

body {
    margin: 0 auto;
    background-color: #d0d0d0;
    background-attachment: fixed;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #9a9a9a;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    height: 120px;
    width: 100%;
    padding-left: 25px;
    box-shadow: 0px 5px 20px #4a4a4a;
}

.topbar img {
    height: 100px;
    max-width: 100%;
}


.navbar {
    overflow: hidden;
}

.navbar a {
    float: left;
    display: inline;
    color: #4a4a4a;
    background-color: rgba(130, 130, 130, 0);
    font-family: "HelveticaBold";
    font-size: 150%;
    margin: 0;
    padding: 20px;
    text-decoration: none;
    transition: 0.2s;
}

.navbar a:hover {
    color: black;
    background-color: rgba(130, 130, 130, 1);
}

.navbar a.selected {
    text-decoration: underline;
}

.navbar .icon {
    display: none;
    z-index: 1000;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-right: 25px;
}

.navbar li {
    display: inline;
    float: left;
    padding: 4px;
}

.navbar li a {
    color: #4a4a4a;
    background-color: rgba(130, 130, 130, 0);
    font-family: "HelveticaBold";
    font-size: 150%;
    padding: 20px;
    padding-top: 100%;
    text-decoration: none;
    transition: 0.2s;
}

.navbar li a:hover {
    color: black;
    background-color: rgba(130, 130, 130, 1);
}

/* MENU */

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-right: 25px;
}

.menu li a {
    flex-basis: 100%;
    text-align: center;
    overflow: hidden;
    margin: 0;
    color: #4a4a4a;
    background-color: rgba(130, 130, 130, 0);
    font-family: "HelveticaBold";
    font-size: 150%;
    padding: 20px;
    padding-top: 100%;
    text-decoration: none;
    transition: 0.2s;
}

.menu li a:hover {
    color: black;
    background-color: rgba(130, 130, 130, 1);
}

.menu li a.selected {
    text-decoration: underline;
}

.menu-button-container {
    padding-right: 25px;
    padding-left: 25px;
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #000;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

@media (max-width: 900px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 120px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    transition: height 300ms cubic-bezier(0.23, 1, 0.32, 1);
    transition: opacity 0ms cubic-bezier(0.23, 1, 0.32, 1);
    visibility: hidden;
  }
  #menu-toggle:checked ~ .menu li {
    visibility: visible;
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    height: 100%;
    padding: 0;
    opacity: 1;
    transition: height 300ms cubic-bezier(0.23, 1, 0.32, 1);
    transition: opacity 0ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu li {
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    padding: 0;
    width: 100%;
    color: white;
    background-color: #222;
    transition: opacity 0ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding-bottom: 10%;
}

#maintext {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
    transform: scale(95%);
    width: 100%;
    filter: drop-shadow(3px 3px 5px rgb(150, 150, 150));
}

#maintext a {
    color: #4a4a4a;
    background-color: rgba(0, 0, 0, 0);
    text-decoration: none;
    transition: 0.1s;
}

#maintext a:hover {
    color: white;
    background-color: rgba(0, 0, 0, 1);
    padding: 1px 5px;
}

#main video {
    right: 0; 
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    max-width: 100%;
    width: auto; 
    height: auto;
    background-size: cover;
    transform: scale(95%);
    box-shadow: 0px 0px 10px black;
}

#main h1 {
    font-family: "HelveticaBold";
    font-size: 40px;
    margin: 0;
}

#main h2 {
    font-family: "HelveticaBold";
    font-size: 80px;
    margin: 0;
    transform: scale(150%);
}

#main h3 {
    font-family: "TWCenMT";
    letter-spacing: 0.5px;
    font-size: 24px;
    margin-top: 0;
    margin-right: 10px;
}

#main h4 {
    font-family: "TWCenMT";
    letter-spacing: 0.5px;
    font-size: 36px;
    margin-top: 0;
    margin-right: 10px;
}

#main h1, h2 {
    animation: 0.5s ease-out 0s 1 slideIn;
    animation-fill-mode: forwards;
}

#main h3, h4 {
    animation: 0.5s ease-out 0s 1 slideIn;
    animation-fill-mode: forwards;
    animation-delay: 0.2s
}

#mainbuttons {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    transform: scale(95%);
    width: 100%;
    row-gap: 48px;
}

#patronaty {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}

#patronaty img {
    height: 200px;
    padding-right: 50px;
    filter: brightness(100%);
    transition: 0.5s;
    animation: 0.8s ease-in-out 0s 1 slideIn;
    animation-fill-mode: forwards;
}

#patronaty img:hover {
    filter: brightness(50%);
}

.formularz label {
    font-family: "TWCenMT";
    font-size: 24px;
}

.formularz input {
    height: 24px;
}

.formularz select {
    height: 24px;
}

.submit {
    min-height: 80px;
    font-family: "HelveticaBold";
    font-size: 27px;
    padding: 16px 30px;
    margin-right: 24px;
    margin-bottom: 64px;
    border: 4px solid black;
    color: black;
    background-color: rgba(0, 0, 0, 0);
    text-decoration: none;
    box-shadow: 3px 3px 5px rgb(150, 150, 150);
    transition: 0.2s;
}

.submit:hover {
    color: white;
    background-color: rgba(0, 0, 0, 1);
    cursor: pointer;
}

.produkty {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr min-content;
    grid-gap: 1rem;
    align-items: stretch;
    padding: 120px;
}

.produkty > article {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px 0px  rgba(0,0,0,0.3);
    overflow: hidden;
    width: 450px;
    padding: 10px;
    position: relative;
    transition: 0.1s;
}

.produkty > article:hover {
    background-color: rgba(180, 180, 180, 0.7);
}

.produkty > article img {
    max-width: 100%;
}

.produkty img {
    width: 100%;
    height: auto;
    transform: scale(80%);
    display: block;
    filter: drop-shadow(3px 3px 5px rgb(150, 150, 150));
    margin: -50px;
}

.produkt {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    width: 1250px;
}

.produkt > img {
    width: 400px;
}

.prodtext {
    font-family: "HelveticaRoman";
    margin: 0 20px 20px;
    font-size: 20px;
}

.prodtext > a > button {
    font-family: "HelveticaRoman";
    font-size: 24px;
    background-color: #767676;
    border: 0;
    color: white;
    padding: 10px;
    width: 100%;
    height: 50px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.2s;
}

.prodtext > a > button:hover {
    font-family: "HelveticaBold";
    background-color: #407d45;
    cursor: pointer;
}

.produkt > .prodtext{
    position: relative;
    flex-direction: column;
}

a.button {
    font-family: "HelveticaBold";
    font-size: 27px;
    padding: 16px 30px;
    margin-right: 24px;
    margin-bottom: 64px;
    border: 4px solid black;
    color: black;
    background-color: rgba(0, 0, 0, 0);
    text-decoration: none;
    box-shadow: 3px 3px 5px rgb(150, 150, 150);
    transition: 0.2s;
}

a.button:hover {
    color: white;
    background-color: rgba(0, 0, 0, 1);
}

video#bg { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -10000;
    opacity: 0.5;
    zoom: 0.7;
    transform: scale(0.7);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    filter: blur(10px);

    transition: 1s;
}

video#bg:hover {
    filter: blur(20px);
}

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer {
    font-family: "TWCenMT";
    font-size: 20px;
    text-align: center;
    padding: 3px;
    background-color: #767676;
    color: white;
}