/* ------------------------------ Logo + główne przyciski nawigacji ------------------------------ */    
#logo_container{
      display: grid;
      gap: 0;
      grid-template-columns: auto;
      grid-template-rows: 2fr fit-content 2fr;
      justify-content: center;
      justify-items: center;
      align-content: center;
      align-items: center;
      margin: 0;
      padding: 0;
      width: 100%;
      height: 80vh;
      max-height: 1800px;
  }
  @media only screen and (max-width: 940px) {
      #logo_container{
          height: fit-content;
          padding-top: 2rem;
          padding-bottom: 2rem;
      }
  }
  #logo {
      display: flex;
      flex-direction: column;
      align-content: center;
      justify-content: center;
      align-items: center;
      gap: 5rem;
  }
  #logo > img{
      width: 100%;
      margin-left: 1rem;
      margin-right: 1rem;
  }
  #links_content{
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto;
      gap: 1rem;
      align-content: center;
      justify-content: center;
      align-items: center;
  }
  #links_content a span{
    user-select: none;
  }
  #schedule_link, #kluczykomat_link {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-content: center;
    justify-content: center;
    align-items: center;
  }
  #schedule_link img, #kluczykomat_link img {
    width: 10rem;
    height: 10rem;
  }
  #schedule_link_content, #kluczykomat_link_content {
    color: black;  
    text-transform: uppercase;
    text-align: center;
  }
  #schedule_link:hover #schedule_link_content, #kluczykomat_link:hover #kluczykomat_link_content{
    color: black;
    text-decoration: none;
    text-shadow: none;
    text-decoration-line: underline;
  }
  #schedule_link:hover, #kluczykomat_link:hover{
      filter: drop-shadow(1px 1px 2px black);
  }
  #kluczykomat_link img{
      filter: invert(1);
  }
  @media only screen and (max-width: 919px) {
      #logo {
          padding-left: 2vw;
          padding-right: 2vw;
      }
      #logo > img{
          margin-top: 7vh;
      }
      #schedule_link_content, #kluczykomat_link_content {
          font-size: 0.8rem;
      }
      #schedule_link img, #kluczykomat_link img {
        width: 12vw;
        height: 12vw;
      }
  }
  @media only screen and (max-width: 339px) {
    
  }
/* ------------------------------ /Logo + główne przyciski nawigacji ------------------------------ */
/* ------------------------------ Oferty ------------------------------ */
#offers_main_container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr); 
    gap: 3rem;
    justify-content: space-evenly;
    justify-items: stretch;
    align-content: start;
    align-items: stretch;
    padding: 0;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    justify-self: center;
  }
.offer_container {
    position: relative;
    display: block;
    overflow: hidden;
    pointer-events: auto;
    transition: height 0.3s ease;
    max-height: 30rem;
}
.offer_inner {
  position: relative;
  width: 100%;
  height: 100% 
}
.offer_buttons, .offers {
    width: 100%;
    max-width: 45vw;
    min-width: 20rem;
    min-height: 20rem;
    padding: 20px;
    box-sizing: border-box;
    border: var(--secondary-color) solid 0.2rem;
    background: white;
    transition: transform 0.8s ease-in-out;
}
.offer_buttons {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: transform 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-items: center;
    justify-content: center;
    align-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 2rem;
    height: 100%;
    width: 100%;
    padding: 2rem;
    text-transform: uppercase;
    text-align: center;
}
.offer_buttons span {
  text-align: center;
}
.offer_buttons img {
    filter: invert(1);
    width: 10rem;
    height: 10rem;
  }
.offer_container:hover .offer_buttons, .offer_container.touchscreen_hover_handle .offer_buttons{
    transform: translateX(120%);
}
.offers {
    pointer-events: none;
    position: relative;
    z-index: 1;
    transform: translateX(100%);
    background-color: black;
    color: var(--secondary-color);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-content: space-between;
    align-items: space-between;
    justify-content: start;
    justify-items: start;
    width: 100%;
    height: 100%;
    text-align: left;
}
.offers article{
  font-size: 0.9rem;
}
.offers article strong{
  text-align: left;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.offers article p{
  text-align: justify;
}
.offer_show_button{
  max-width: 5rem;
}
.offer_container:hover .offers, .offer_container.touchscreen_hover_handle .offers{
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity 0.5s ease-in-out 0.2s, transform 0.8s ease-in-out;
}
#offer1{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/mechanika.jpg");}
#offer2{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/wulkanizacja.jpg");}
#offer3{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/elektryka.jpg");}
#offer4{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/klimatyzacja.jpeg");}
#offer5{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/podwozie.jpg");}
#offer6{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/hak.jpg");}
#offer7{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/olej.jpg");}
#offer8{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/adas.jpg");}
#offer9{background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%),url("../resources/images/wtryskiwacze.jpg");}

@media (max-width: 1660px) {
  #offers_main_container{
    gap: 1rem;
  }
}
@media (max-width: 1080px) {
  .offer_buttons, .offers {
    max-width: unset;
    min-width: unset;
    min-height: unset;
    padding: 1rem;
  }
  .offer_buttons {
    font-size: 1.5rem;
  }
  .offer_buttons img {
    width: 8rem;
    height: 8rem;
  }
}
@media (max-width: 859px) {
  .offers article{
    font-size: 0.5rem;
  }
  .offers article strong{
    font-size: 0.9rem;
  }
  .offer_buttons {
    font-size: 1.2rem;
  }
  .offer_buttons img {
    width: 5rem;
    height: 5rem;
  }
}
@media (max-width: 630px){
  #offers_main_container{
    display: flex;
    flex-direction: column;
    height: auto;
    width: auto;
    max-height: unset;
  }
}
/* ------------------------------ /Oferty ------------------------------ */
/* ------------------------------ Formularz kontaktowy ------------------------------ */
#contact_form{
  background-color: var(--secondary-color); 
  color: black;
  width: 66.6vw;
  min-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  padding-top: 1px;
  margin-top: 4rem;
  margin-bottom: 4rem;
  font-size: 1rem;
}
#form_title, #contact_title{
  font-size: 2rem;
  font-weight: bold;
}
#form{
  display: flex;
  flex-direction: row nowrap;
  align-content: center;
  align-items: stretch;
  justify-content: center;
  justify-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}
#form_left, #form_right{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
}
#form_left input, #form_right textarea{
  font-size: 1rem;
}
#form_left input:hover, #form_right textarea:hover, #form_left input:focus, #form_right textarea:focus{
  outline: var(--primary-color);;
  border-color: var(--primary-color);
}
#form_left input{
  width: 16rem;
}
#form_right textarea{
  height: 100%;
  width: 32rem;
}
#form_rodo_text{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
#form_rodo_info{
  text-align: justify;
}
#rodo_checkbox1_text, #rodo_checkbox2_text{
  text-wrap: balance;
}
.checkbox{
  margin-right: 1rem;
}
#form_send {
  padding: 1rem;    
  padding-left: 4rem;
  padding-right: 4rem;
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  float: right;
  pointer-events: auto;
  user-select: none;
  border: var(--primary-color) solid 2px;
}
#form_send{
  border: black solid 2px;
}
#form_send:disabled {
  background-color: gray;
  border: gray solid 2px;
}
#form_send:disabled:hover {
  background-color: gray;
  border: gray solid 2px;
  color: white;
  filter: none;
}
@media only screen and (max-width: 1320px) {
  #form_left input{
    width: 10rem;
  }
  #form_right textarea{
    height: 100%;
    width: 20rem;
  }
}
@media only screen and (max-width: 789px) {
  #contact_form{
    width: 95vw;
    max-width: 100%; 
    min-width: unset;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  #form_title{
    text-align: center;
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
  }
  #form{
    flex-direction: column;
    align-content: center;
    align-items: stretch;
    justify-content: center;
    justify-items: center;
    margin: 0;
    gap: 2rem;
    width: auto;
  }
  #form_left{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    align-content: center;
    align-items: stretch;
    justify-content: center;
    justify-items: stretch;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  #form_label_your_data { 
    grid-area: 1 / 2 / 2 / 4; 
    text-align: center;
  }
  #form_name_surname { 
    grid-area: 2 / 1 / 3 / 3;
  }
  #form_phone { 
    grid-area: 2 / 3 / 3 / 5; 
  }
  #form_email { 
    grid-area: 3 / 2 / 4 / 4; 
  }
  #form_left input{
    width: auto;
    height: 2rem;
    padding: 0.25rem;
    font-size: 1rem;
  }
  #form_right textarea{
    padding: 0.25rem;
    width: 90%;
    height: 16rem;
    font-size: 1rem;
  }
  .checkbox{
    width: 1.5rem;
    height: 1.5rem;
  }
  #rodo_checkbox1_text, #rodo_checkbox2_text{
    text-align: left;
  }
  #form_rodo_text{
    margin: 0;
    padding: 1rem;
    width: auto;
  }
  #form_rodo_text div{
    width: auto;
  }
  #form_rodo_info{
    margin: 0;
    padding: 0;
    width: auto;
  }
}
@media only screen and (max-width: 509px) {
    #form{
    flex-direction: column;
    align-content: center;
    align-items: stretch;
    justify-content: center;
    justify-items: center;
    margin: 0;
    gap: 2rem;
    width: auto;
  }
  #form_left{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
  }
  #form_label_your_data { 
    grid-area:unset; 
    text-align: center;
  }
  #form_name_surname { 
    grid-area:unset;
  }
  #form_phone { 
    grid-area:unset;
  }
  #form_email { 
    grid-area:unset;
  }
}
/* ------------------------------ Formularz kontaktowy ------------------------------ */
/* ------------------------------ Kontakt ------------------------------ */
#contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 2rem;
  align-content: center;
  justify-content: center;
  background-color: var(--secondary-color); 
  color: black;
  width: 66.6vw;
  min-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
  font-size: 1.2rem;
} 
#contact_title{
  text-align: center;
  margin: 2rem;
}
#contact_content{
  pointer-events: auto;
  user-select: text;
  display: flex;
  gap: 2rem;
  flex-direction: column;
}
#contact_info article span:hover{
  text-decoration: underline;
  filter: drop-shadow(0px 0 15px black);
  color: black;
}
#contact_phone_numbers article{
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
#contact_phone_numbers article div{
  display: flex;
  gap: 1rem;
  flex-direction: row;
  align-items: center;
}
#contact_phone_numbers article div img{
  width: 2rem;
  height: 2rem;
}
#map {
  width: 100%;
  height: 100%;
  min-width: 10vw;
  min-height: 10vw;
  pointer-events: auto;
}
@media only screen and (max-width: 1280px) {
  #contact{
    font-size: 1rem;
  }
  #contact_title{
    font-size: 1.5rem;
    margin: 1rem;
  }
}
@media only screen and (max-width: 789px) {
  #contact{
    width: 95vw;
    max-width: 100%; 
    min-width: unset;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 1rem;
  }
  #contact_content{
    flex-direction: column;
    justify-items: center;
    align-items: center;
  }
  #open_hours, #contact_info{
    text-align: center;
    line-height: 1.5rem;
  }
  #map {
    width: 100%;
    height: 100%;
    min-width: 33.3vw;
    min-height: 33.3vh;
  }
}
/* ------------------------------ /Kontakt ------------------------------ */
/* ------------------------------ Loga partnerów ------------------------------ */
 #business_partners{
    width: 100%;
    max-width: 99vw;
    padding: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;  
    justify-content: space-evenly;
    justify-items: stretch;
    align-items: center;
    align-content: space-around;
    gap: 0.5rem;
    overflow: hidden; 
  }
  #business_partners img{
       max-width: 100px;
  }
  @media only screen and (max-width: 940px) {
    #business_partners img{
      max-width: 75px;
    }
    #business_partners{
      width: 100%;
      min-width: none;
    }
  }
/* ------------------------------ /Loga partnerów ------------------------------ */  
/* ------------------------------ Regulaminy ------------------------------ */
  #polices {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
  }
  #polices h3 {
    text-transform: uppercase;
  }
  #polices div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    align-content: center;
    max-width: 1200px;
  }
  #polices div img {
    width: 1.5rem;
  }
  #polices div a {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  @media only screen and (max-width:  460px) {
    #polices div, #polices div a{
      flex-direction: column;
    }
    #polices div a {
      justify-content: center;
      align-items: center;
      align-content: center;
    }
  }
/* ------------------------------ /Regulaminy ------------------------------ */ 