@font-face {
  font-family: sourcesans;
  src: url("./fonts/SourceSansPro-Regular.ttf");
}

:root {
  --brown: #3f3030;
  --green: #656d49;
  --white: #ffffff;
  --background: #feeddb;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
}

body {
  margin: 0px;
  background-color: #feeddb;
  font-family: sourcesans;
}

.logo {
  width: 250px;
}

header {
  width: 100vw;
  height: 60px;
  position: fixed;
  top: 0px;
  left: 0px;
  background-color: var(--background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  z-index: 1338;
}

header nav ul {
  margin-right: 30px;
  list-style-type: none;
}

header nav ul li {
  display: inline-block;
  margin: calc(1rem + 2vw);
  font-size: 1.7rem;
  font-weight: 100;
  color: #000;
}

.mobileMenu {
  display: none;
}

.about {
  margin-top: 150px;
  width: 100%;
  height: 100vh;
  background-image: url("./images/doctor1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.aboutText {
  position: absolute;
  bottom: 0px;
  left: 0px;
  margin-left: 50px;
  width: min(500px, calc(100% - 50px - 40px));
  height: auto;
  font-size: calc(1rem + 0.5vw);
  background-color: #3f3030;
  padding: 20px;
  border-radius: 10px;
}

.aboutText p {
  margin: 20px;
  color: #fff;
}

.distributor {
  margin-top: 150px;
  margin-bottom: 150px;

  text-align: center;
  font-size: calc(2.5rem + 0.5vw);
}

.allOferts {
  margin: auto;
  width: 50vw;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-auto-rows: auto;
  gap: 100px;
}
.container {
  background-color: var(--brown);
  width: 100%;
  margin: 0px auto;
  position: relative;
  border-radius: 10px;
}

.cutoff-text {
  font-size: 1rem;
  --max-lines: 3;
  --line-height: 1.4;
  max-height: calc(var(--max-lines) * 1em * var(--line-height));
  line-height: var(--line-height);
  overflow: hidden;
  position: relative;
}

.expand-button {
  appearance: none;
  padding: 0.5em;
  border: 0.25em;
  cursor: pointer;
  margin-top: 1em;
  background-color: #656d49;
  color: var(--white);
  padding: 10px;
  border-radius: 10px;
}

.expand-button::before {
  content: "Czytaj więcej";
}

.expand-button:checked::before {
  content: "Zwiń";
}

.mini-container {
  width: 90px;
  height: 90px;
  background-color: var(--green);
  color: red;
  margin: 0;
  position: absolute;
  top: 50%;
  left: -10%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.mini-container img {
  width: 60%;
}

.description {
  color: white;
  margin-left: 20%;
  width: calc(100% - 20% - 40px);
  padding: 20px;
  text-transform: capitalize;
}

.contact {
  margin: auto;
  width: min(calc(20vw + 400px), 90%);
  height: auto;
  background-color: var(--green);
  border-radius: 50px;
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact h5 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 100%;
  font-size: 2rem;
  color: var(--white);
  font-weight: 300;
}

.contact input {
  width: 70%;
  height: 70px;
  text-align: center;
  border-radius: 50px;
  border: 1px solid white;
  font-family: sourcesans;
  font-size: 1.4rem;
}

.contact textarea {
  box-sizing: content-box;
  margin-bottom: 30px;
  width: 70%;
  height: 200px;
  text-align: center;
  border-radius: 30px;
  font-size: 1.5rem;
  font-family: sourcesans;
  resize: none;
}

.submit {
  width: calc(70% + 6px);
  height: 70px;
  border-radius: 50px;
  border: 2px solid var(--brown);
  font-family: sourcesans;
  font-weight: 900;
  font-size: 2rem;
  color: var(--white);
  background-color: var(--brown);
  border: 2px solid var(--brown);
  margin-bottom: 50px;
  box-sizing: border-box;
}

footer {
  margin: 0px;
  width: calc(100% - 40px);
  height: auto;
  padding: 20px;
  text-align: center;
  background-color: var(--brown);
  color: var(--white);
}

.active {
  max-height: none !important;
}

@media only screen and (max-width: 800px) {
  .about {
    background-image: url("./images/doctor2.jpg") !important;
  }

  .mobileMenu {
    display: flex !important;
    margin-right: 50px;
  }

  .sideBar {
    opacity: 0;
    position: fixed;
    z-index: 30;
    top: 0px;
    left: 0px;
    width: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--green);
    transition: 0.5s;
  }

  .sideBar ul {
    padding: 0;

    list-style-type: none;
  }

  .sideBar ul li {
    display: block;
    margin-top: calc(2rem + 2vw);
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
  }

  .sideBar ul a {
    text-decoration: none;
    color: var(--white);
  }

  .mobileMenu img {
    width: 60px;
    height: 60px;
  }

  .logo {
    width: 200px;
  }

  .description {
    margin-top: 40px;
    margin-left: 0%;
    width: 90% !important;
    text-transform: capitalize;
  }

  .allOferts {
    width: 80vw !important;
    margin: 0px auto;
    grid-template-columns: repeat(auto-fill, 100%);
  }

  .container {
    width: 100%;
  }

  header nav {
    display: none;
  }
  .contact {
    width: 100%;
    border-radius: 0px;
  }
  .mini-container {
    width: calc(50px + 5vw);
    height: calc(50px + 5vw);
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
  }

  footer h3 {
    font-size: calc(1rem + 0.5vw);
  }
}
