@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    --main: #7e9076;
    --light: #A4B29D;
    --dark: #5E6E58;

    --cont1: #A77C7C;
    --cont2: #C6A3A3;
    --cont3: #7A5050;

    --acc1: #647E66;
    --acc2: #8F9473;
    --acc3: #BFD1B7;

    --bg: #F5F5F3;

    --text: #3E3E3A;

    --grass: #433c0c;
}

* {
  font-family: 'Quicksand';
  user-select: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
}

img { 
  border-radius: 16px;
}

body::-webkit-scrollbar {
  width: 16px;
}

body::-webkit-scrollbar-track {
  background: var(--main);
}

body::-webkit-scrollbar-thumb {
  background: var(--acc1);
  border-radius: 3px;
  
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--acc1)
                     var(--main);
  }
}

body {
  /* width: calc(100vw - 16px); */
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--bg);
  overflow-x: hidden;
}

body.no-scroll {
	overflow: hidden !important;
}

a {
    text-decoration: none;
}

.wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

#loader {
  position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: var(--main);
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transition: opacity .5s ease-in-out;
}

#loader.active {
  opacity: 1;
  pointer-events: all;
}

header {
  width: 100%;
  height: 10vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

header.scrolled {
  background-color: var(--main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991.98px) {
  header {
    width: 100%;
    justify-content: space-around;
  }
}

@media (max-width: 640px) {
  header {
    justify-content: flex-end;
    padding: 0 5% 0 0;
  }
}

nav {
  width: 80%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#navLogo {
  height: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('img/logo_transparent_2.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 640px) {
  #navLogo {
    display: none;
  }
}

nav > a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.3rem;
  position: relative;
}

nav > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--dark);
  transition: width .3s ease;
}

nav > a:hover::before {
  width: 100%;
}

.igLogo {
  height: 3vh;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('img/instagram_logo.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 90%;
  transition: scale .5s ease;
}

.igLogo:hover {
  cursor: pointer;
  scale: 1.1;
}

@media (max-width: 991.98px) {
  .igLogo {
    display: none;
  }
}

.divider {
  width: 100%;
  height: 200px;
}

#mobile-nav {
  display: none;
  cursor: pointer;
	z-index: 10;
  transition: 1.5s;
	background: none;
	border: none;
}

#mobile-nav.change {
    transform: rotate(-180deg);
}

#bar1, #bar2, #bar3 {
    width: 35px;
    height: 5px;
    background-color: #FFFFFF;
    margin: 6px 0;
    transition: .4s;
}

.change #bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change #bar2 {
    opacity: 0;
}

.change #bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

#mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

#mobileMenu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  nav {
    display: none;
  }

  #mobile-nav {
    display: inline-block !important;
  }
}

#mobileMenu > a {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 2rem;
}

#mobileMenu > a::after {
  text-decoration: none;
  color: #FFFFFF;
}

.mobileNavBtn {
  color: #FFFFFF;
}

main {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('img/stajnia.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-color: rgba(255, 255, 255, 0);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--grass) 100%);
}

@media (max-width: 640px) {
  main {
    background-image: url('img/stajnia_2.webp');
  }
}

#mainWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#title {
  font-size: 3.2rem;
  font-weight: 600;
  color: #FFFFFF;
  z-index: 10;
}

#mainLogo {
  height: 50%;
  aspect-ratio: 1 / 1;
  background-image: url('img/logo_transparent.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 2;
}

#second {
  width: 100%;
  min-height: 500px;
  display: flex;
  justify-content: space-around;
  color: #FFFFFF;
  padding: 10px;
  background-color: var(--grass);
  background-image: linear-gradient(180deg, var(--grass) 0%, var(--dark) 35%);
}

#secondHeader {
  width: 45%;
  margin-bottom: 15px;
  padding: 10px;
}

#secondDesc {
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
}

#writeToUs {
  position: relative;
  background-color: var(--light);
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  align-self: center;
  justify-self: center;
  padding: 15px;
  margin-top: 25px;
  color: var(--text);
  overflow: hidden;
}

#writeToUs::before {
  content: 'Nasz instagram';
  position: absolute;
  top: 0;
  left: 0;
  height: 0%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main);
  transition: height .5s ease;
  overflow: hidden;
  color: #FFFFFF;
}

#writeToUs:hover::before {
  height: 100%;
  cursor: pointer;
}

#secondHorizontal {
  width: 2px;
  background-color: var(--acc2);
}

#secondRight {
  position: relative;
  width: 50%;
  background-image: url('img/julia_na_koniu.webp');
  background-position: 0 30%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  border-radius: 16px;
}

@media (max-width: 760px) {
  #secondHeader {
    width: 95%;
  }
  #secondHorizontal, #secondRight {
    display: none;
  }
}

#secondRightWrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.7rem;
  font-style: italic;
}

#third {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: var(--dark);
}

@media (max-width: 760px) {
  #third {
    flex-direction: column;
  }
}

.atCard {
  position: relative;
  width: 25%;
  height: 700px;
  background-color: var(--acc2);
  border-radius: 16px;
  overflow: hidden;
  z-index: 0;
  padding: 10px 5px 10px 5px;
  margin: 10px 0 10px 0;
  -webkit-box-shadow: 0px 0px 7px 0px var(--acc2);
  -moz-box-shadow: 0px 0px 7px 0px var(--acc2);
  box-shadow: 0px 0px 7px 0px var(--acc2);
}

@media (max-width: 991.98px) {
  .atCard {
    width: 30%;
  } 
}

@media (max-width: 760px) {
  .atCard {
    width: 90%;
    height: auto;
  }
}

.atCardWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.atImage {
  height: 154px;
  width: 154px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.atContent {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.atContent> h2 {
  color: #FFFFFF;
}

.atContentDesc {
  width: 90%;
  font-size: 1.3rem;
  color: #FFFFFF;
}

#fATCard, #sATCard, #tATCard {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#fATCard {
  background-image: url('img/konie_na_polanie.webp');
}

#sATCard {
  background-image: url('img/konie_w_galopie.webp');
}

#tATCard {
  background-image: url('img/kon_portret.webp');
}

.atHor {
  display: block;
  width: 2px;
  height: 600px;
  background-color: var(--acc1);
}

@media (max-width: 991.98px) {
 .atHor {
  display: none;
 } 
}

#fourth {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-image: url('img/stajnia.webp');
  background-position: center;
  background-size: cover;
}

#fourth::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
}

@media (max-width: 991.98px) {
  #fourth {
    align-items: center;
  }
}

@media (max-width: 640px) {
  #fourth {
    background-image: url('img/stajnia_2.webp');
  }
}

#fourthLeft, #fourthRight {
  width: 50%;
  padding: 10px;
  z-index: 2;
  color: #FFFFFF;
}

#fourthLeft {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px 5px 5px 20px;
  /* border-bottom: 2px solid var(--dark); */
  /* border-right: 2px solid var(--dark); */
  border-radius: 0 0 16px 0;
  background-color: rgba(0, 0, 0, 0.15);
}

#fourthLeft > span {
  font-size: 1.3rem;
}

@media (max-width: 760px) {
  #fourthLeft {
    width: 100%;
    height: auto;
    border-radius: 0;
  }
}

#fourthRight {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
}

@media (max-width: 991.98px) {
 #fourthRight {
  justify-content: center;
  align-items: center;
 } 
}

@media (max-width: 760px) {
  #fourthRight {
    display: none;
  }
}

#fRightPhoto1, #fRightPhoto2 {
  position: relative;
  height: 500px;
  aspect-ratio: 9 / 16;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 16px;
  overflow: hidden;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.6);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.6);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.6);
}

#fRightPhoto1 {
  background-image: url('img/dziewczyna_na_koniu.webp');
}

@media (max-width: 991.98px) {
 #fRightPhoto1 {
  display: none;
 } 
}

#fRightPhoto2 {
  background-image: url('img/kon_zachod_slonca.webp');
  margin-top: 100px;
}

@media (max-width: 991.98px) {
 #fRightPhoto2 {
  margin: 0;
 } 
}

@media (max-width: 760px) {
  #fRightPhoto2 {
    display: none;
  }
}

#contact {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: var(--dark);
}

#contactLeft {
  width: 50%;
  color: #FFFFFF;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

@media (max-width: 991.98px) {
  #contactLeft {
    padding-left: 15px;
    justify-content: space-between;
  }
}

#contactIg, #contactFb {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
  margin-top: 5px;
}

#igLogo2 {
  height: 3vh;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('img/instagram_logo.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 90%;
  transition: scale .5s ease;
}

#fbLogo {
  height: 3vh;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('img/Facebook_Logo_Secondary.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 90%;
  transition: scale .5s ease;
}

#contactRight {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

@media (max-width: 640px) {
  #contactLeft {
    width: 90%;
    margin: 5vh 0 5vh 0;
  }

  #contactRight {
    display: none;
  }
}

footer {
    width: 100%;
    height: 10vh;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
}

footer > a {
    color: #FFFFFF;
}