/* --------------------------------------- 0 - sait ------------------------------------------------- */

html, body {
  background-color: #292929;
}

a:-webkit-any-link {
  color: inherit;
  text-decoration: none;
}

a {
  color: white;
  text-decoration-thickness: from-font;
}

body {
	font-size: 1.5rem;
  color: white;
  margin: 0;
  overflow-x: hidden;
}

#sait {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
}

h1 {
  font-size: 10rem;
  padding-bottom: 2rem;
}

@media only screen and (max-width: 767px) {
  h1 {
    font-size: 6rem;
  }
 }

h2 {
  font-size: 7rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media only screen and (max-width: 767px) {
  h2 {
    font-size: 4.5rem;
  }
 }


h1, h2, h3, h4 {
  font-family: 'Aalto Sans UltraLight';
  text-align: center;
  line-height: 100%;
  color: white;
  margin: 0;
}

h3 {
	font-size: 4rem;
}

h4 {
	font-size: 3rem;
}

@media only screen and (max-width: 767px) {
  h4 {
    font-size: 2rem;
  }
 }

/* --- keelevahetus - lang switcher --- */

#lang {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  color: rgb(255, 255, 255);
  cursor: pointer;
}

#lang:hover {
  text-decoration: underline;
}





@font-face {
  font-family: 'Aalto Sans';
  src: url('font/AaltoSansPro-Regular.eot');
  src: url('font/AaltoSansPro-Regular.eot?#iefix') format('embedded-opentype'),
       url('font/AaltoSansPro-Regular.woff') format('woff'),
       url('font/AaltoSansPro-Regular.ttf') format('truetype'),
       url('font/AaltoSansPro-Regular.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aalto Sans Black';
  src: url('font/AaltoSansPro-Black.eot');
  src: url('font/AaltoSansPro-Black.eot?#iefix') format('embedded-opentype'),
       url('font/AaltoSansPro-Black.woff') format('woff'),
       url('font/AaltoSansPro-Black.ttf') format('truetype'),
       url('font/AaltoSansPro-Black.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aalto Sans Light';
  src: url('font/AaltoSansPro-Light.eot');
  src: url('font/AaltoSansPro-Light.eot?#iefix') format('embedded-opentype'),
       url('font/AaltoSansPro-Light.woff') format('woff'),
       url('font/AaltoSansPro-Light.ttf') format('truetype'),
       url('font/AaltoSansPro-Light.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aalto Sans UltraLight';
  src: url('font/AaltoSansPro-UltraLight.eot');
  src: url('font/AaltoSansPro-UltraLight.eot?#iefix') format('embedded-opentype'),
       url('font/AaltoSansPro-UltraLight.woff') format('woff'),
       url('font/AaltoSansPro-UltraLight.ttf') format('truetype'),
       url('font/AaltoSansPro-UltraLight.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aalto Sans Thin';
  src: url('font/AaltoSansPro-Thin.eot');
  src: url('font/AaltoSansPro-Thin.eot?#iefix') format('embedded-opentype'),
       url('font/AaltoSansPro-Thin.woff') format('woff'),
       url('font/AaltoSansPro-Thin.ttf') format('truetype'),
       url('font/AaltoSansPro-Thin.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}


* {
  font-family: 'Aalto Sans UltraLight';
  font-weight: normal;
  line-height: 100%;
}

.lazy {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.lazy.visible {
  opacity: 1;
}


/* --------------------------------------- 1 - splash ------------------------------------------------- */

/* --- üldine ------ */

#splash-page {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- sisu ------ */

#splash-sisu {
  position: absolute;
  color: white;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
}

#nimi {
  display: flex;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
}


#tiitel {
  font-family: 'Aalto Sans UltraLight';
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 1rem;
}

  /* ---- suitsu efekt ----*/

  #suits, #suits2 {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;

  }

  #suits2 {
    mask-image: linear-gradient(transparent, black);
    mask-mode: alpha;
    bottom: 0;
    height: 1400px;
  }

  @media only screen and (max-width: 767px) { 
    #suits2 {
      display: none;
    }
  }

/* --- s2de ------ */

#s2de {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
  
/* --------------------------------------- 2 - esitlused ------------------------------------------------- */

#esitlus {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
}

@media only screen and (min-width: 1800px) { 
  #esitlus {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (max-width: 1000px) and (min-width: 768px) { 
  #esitlus {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 767px) { 
  #esitlus {
    grid-template-columns: repeat(1, 1fr);
  }
}

#esitlus::before {
  content: '';
  width: 0;
  padding-bottom: 100%;
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

#esitlus > *:first-child{
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

/* --- esitlus-pildikonteiner ------ */

.esitlus-konteiner {
  display: flex;
  margin-top: 0;
  cursor: pointer;
  overflow: hidden;
  padding-bottom: 100%;
  position: relative;
}

.esitlus-taust {
  width: 100%;
  height: inherit;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: width 400ms ease-in-out, opacity 400ms ease-in-out;
  -webkit-transition: width 400ms ease-in-out, opacity 400ms ease-in-out;
  opacity: 1;
  background-color: white;

}

.esitlus-konteiner:hover .esitlus-taust {
  opacity: 0;
}

.esitlus-konteiner.insuldiabi .esitlus-taust {
  background-color: rgb(68,199,244);
}

.esitlus-konteiner.fooddocs .esitlus-taust {
  background-color: rgba(0,192,109,1.0);
}

.esitlus-konteiner.chaga .esitlus-taust {
  width: 100%;
  transform: rotate(90deg);
  background-color: antiquewhite;
  padding: 1rem;
  box-sizing: border-box;
  object-fit: contain;
}


.esitlus-konteiner .hitarea {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.esitlus-konteiner:hover .esitlus-slaid {
  opacity: 1;
  -ms-transform: scale(2);
  -webkit-transform: scale(2);
  transform: scale(2);
}

.esitlus-tutvustus {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: black;
  height: 100%;
  opacity: 0;
  text-align: center;
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  transform: scale(1);  
  -ms-transition: opacity 400ms ease-in-out,-ms-transform 400ms ease-in-out;
  -webkit-transition: opacity 400ms ease-in-out,-webkit-transform 400ms ease-in-out;
  transition: opacity 400ms ease-in-out,transform 400ms ease-in-out;  
}

.esitlus-konteiner.insuldiabi .esitlus-tutvustus {
  background-color: rgb(68,199,244);
}
.esitlus-konteiner.omapala .esitlus-tutvustus {
  background-color: #523534;
}
.esitlus-konteiner.fooddocs .esitlus-tutvustus {
  background-color: rgba(0,192,109,1.0);
}
.esitlus-konteiner.karolill .esitlus-tutvustus {
  background-color: #cba8cf;
}
.esitlus-konteiner.chaga .esitlus-tutvustus {
  background-color: #e04403;
}
.esitlus-konteiner.shoko .esitlus-tutvustus {
  background-color: #4b0d62
}
.esitlus-konteiner.home4you .esitlus-tutvustus {
  background-color: #5a2218;
}
.esitlus-konteiner.toidupank .esitlus-tutvustus {
  background-color: #c4122f;
}

.esitlus-konteiner:hover .esitlus-tutvustus {
  opacity: 1;
  -ms-transform: scale(1.5);
  -webkit-transform: scale(1.5);
  transform: scale(1.5);
}

.esitlus-tutvustus .esitlus-silt {
  position: absolute;
  color: white
}

/* --------------------------------------- 3 - cv ------------------------------------------------- */


/* --- cv ------ */

#cv {
  display: flex;
  flex-direction: column;
  
  align-items: center;
  position: relative;
}

#cv > * {
  color: white;
  z-index: 2;
}

#cv p {
  line-height: 110%;
  margin-top: 1rem;
}


#cv-tutvustus {
  width: 100%;
}


#cv-tutvustus h2 {
  display: flex;
  justify-content: center;
  padding-top: 9rem;
}


@media only screen and (max-width: 1500px) {
  #cv-tutvustus .ikoonid {
    padding-top: 6rem;
  }
}

@media only screen and (max-width: 767px) {
  #cv-tutvustus .ikoonid {
    padding-top: 4rem;
  }
}




/* ---  ikoonid ------ */

#cv-tutvustus .ikoonid {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  padding: 4rem;
  justify-content: center;
  column-gap: 6rem;
  row-gap: 4rem;
  margin: auto;
}


@media only screen and (max-width: 767px) {
  #cv-tutvustus .ikoonid {
    row-gap: 4rem;
  }
}

#cv-tutvustus .ikoon {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  z-index: 2;
  width: 11rem;
}

#cv-tutvustus .ikoon span {
  margin-top: 0rem;
  color: white;
  text-align: center;
}

/* --- cv-töövahendid ------ */

#cv-tutvustus .tööikoon {
  font-size: 10rem;
  margin: 0;
  font-family: 'Aalto Sans Thin';
  background: linear-gradient(to bottom, rgb(0,192,255), rgb(255,255,255));
  background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

#cv-tutvustus .tööikoonid {
  margin-top: -2rem;
}

#cv-tutvustus .tööikoonid .ikoon span {
  margin-top: -1rem;
}



/* --- cv-mets ------ */

#mets {
  padding: 5rem 0;
}

@media only screen and (max-width: 767px) {
  #mets {
    padding: 0;
  }
}

#mets h2 {
  padding-top: 8rem;
  padding-bottom: 3rem;
  margin-right: -3rem;
    margin-left: -3rem;
}

#mets .lehed {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#mets img {
  margin-left: -3rem;
}



#mets .leht {
  display: flex;
  column-gap: 4rem;
  flex-wrap: wrap;
}

@media only screen and (min-width: 1500px) {
  #mets .leht {
    column-gap: 7rem;
  }
}

@media only screen and (max-width: 600px) {
  #mets .leht {
    column-gap: 3rem;
  }
}

@media only screen and (max-width: 500px) {
  #mets .leht {
    column-gap: 2rem;
  }
}

#mets .leht .tüvi {
  width: 2px;
  margin-top: -18.5px;
  background-color: white;
  position: relative;
}




#mets .puu.karjaar .tüvi {
  margin-top: -22.5px;
}

#mets .puu.haridus .tüvi {
  margin-top: -12.5px;
}

#mets .puu.varia .tüvi {
  margin-top: -9.5px;
}

@media only screen and (max-width: 300px) {   #mets .leht .tüvi {display: none;}  }

#mets .leht .tüvi .tõru {
  height: 15px;
  width: 15px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  position: absolute;
  top: 7.5px;
  left: -7.5px;

}


#mets .leht .lehekasv {
  display: flex;
  column-gap: 4rem;
}

@media only screen and (min-width: 1500px) {
  #mets .leht .lehekasv {
    column-gap: 7rem;
  }
}

@media only screen and (max-width: 800px) {
  #mets .leht .lehekasv {
    flex-direction: column;
    width: 20rem;
  }
}

@media only screen and (max-width: 600px) {
  #mets .leht .lehekasv {
    flex-direction: column;
    width: 11rem;
  }
}

#mets .leht .lehevars h4 {
  text-align: left;
}

#mets .leht .lehevars {
  display: flex;
  width: 28rem;
  flex-direction: column;
  margin-bottom: 5rem;
  text-align: left;
}

@media only screen and (max-width: 800px) {
  #mets .leht .lehevars {
    width: auto;
  }
}

@media only screen and (max-width: 600px) {
  #mets .leht .lehevars p {
    display: none;
  }
}

@media only screen and (max-width: 300px) {   #mets .leht .lehevars  {margin-bottom: 2rem;}  }



#mets .leht .lehevars .kirj  {
  margin: .3rem 0rem .7rem 0rem;
}



#mets .leht #tm-kp   {
  text-align: center;
  padding: 0 .9rem;
}

@media only screen and (max-width: 800px) {
  #mets .leht #tm-kp   {
    text-align: left;
    padding: 0rem;
  }
}

@media only screen and (max-width: 300px) {
  #mets .leht #tm-kp   {
    text-align: center;
  }
}

/* --------------------------------------- 4 - soovitused ------------------------------------------------- */

#soovitused-konteiner h2 {
  margin:0;
  width: 100%;
}

#soovitused-konteiner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#soovitused-konteiner .soovitused {
  display: flex;
  padding: 8rem 2rem 0rem;
  align-items: flex-start;
  row-gap: 3rem;
  column-gap: 5rem;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}

@media only screen and (max-width: 767px) {
  #soovitused-konteiner .soovitused {
    padding: 10rem 2rem 4rem;
  }
}



#soovitused-konteiner .soovitused .soovitus {
  max-width: 35rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#soovitused-konteiner .soovitused p {
  margin: 0;
}
  
#soovitused-konteiner .soovitused .mull {
  position: relative;
  padding: 2rem;
  margin: 1em 0 2em;
  border: 2px solid #fff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}


#soovitused-konteiner .soovitused .mull:before {
	content: "";
	position: absolute;
	bottom: -20px;
	left:  calc(46% - 2px);
	border-width: 20px 20px 0;
	border-style: solid;
	border-color: #fff transparent;
	display: block;
	width: 0;
}

#soovitused-konteiner .soovitused .mull:after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: calc(46% - 2px);
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #292929 transparent;
  display: block;
  width: 0;
}


#soovitused-konteiner .soovitused .soovitus > h3 {
  margin-bottom: 2px;
}




/* --------------------------------------- 5 - teenused ------------------------------------------------- */

#teenused-konteiner {
  position: relative;
}

#teenused-konteiner .teenused {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15rem 4rem;
  margin-left: auto;
  margin-right: auto;
  gap: 5rem
}

@media only screen and (max-width: 767px) {
  #teenused-konteiner .teenused {
    padding: 5rem 3rem 11rem;
  }
}

.cta {
  z-index: 2;
}

.cta a {
  padding: 1.5rem 2rem;
  border: 2px solid #fff;
  border-radius: 10px;
  background-color: transparent;
  transition: background-color 200ms ease-in-out;
-webkit-transition: background-color 200ms ease-in-out;
  white-space: nowrap;
}

.cta span {font-family: 'Aalto Sans';}

.cta a:hover {
  background-color: white;
  color: #292929;
}


/* --------------------------------------- 6 - kontakt ------------------------------------------------- */

#kontakt {
  display: flex;
  justify-content: center;
  position: relative;
  background: black;
  z-index: 2;
  color: white;
  overflow: hidden;
}


/* --- sotsiaalid ------ */

.sotsiaalid {
  display: flex;
  justify-content: flex-start;
}

#tagasi-nupp i {
  padding: 0.8rem 1.2rem;
	font-size: 25px;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  filter: drop-shadow(2px 2px 2px #292929);
}

  #tagasi-nupp i:hover {
    filter: drop-shadow(2px 2px 7px #29292987);
  }


i {
  font-family: "Font Awesome 6 Brands";
	font-size: 25px;
  padding: 1.5rem;
  cursor: pointer;
  color: white;
}

#kontakt .sotsiaalid i {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

#kontakt i:not(.fa-brands), #tagasi-nupp {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

#kontakt .kiri i {
  font-weight: 400;
}

i:hover {
  background-color: white;
  color: black;
}


/* Cell */

#kontakt .cell {
  width: 33%;
}

@media only screen and (max-width: 767px) {
  #kontakt .cell.first {
    width: 18.5rem;
  }
  #kontakt .cell.second {
    display: none;
}
  #kontakt .cell.third {
    width: 5rem;
    margin-left: auto;
  }
}

@media only screen and (max-width: 400px) {
  #kontakt .cell.first {
    width: 100%;
  }
  #kontakt .cell.third {
    display: none;
  }
  .sotsiaalid {
    justify-content: space-around;
  }
}

#kontakt .cells {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

#kontakt .cell.first {
  float: left;
}

#kontakt .cell.second {
  text-align: center;
}

#kontakt .cell.second a {
  line-height: 0;
}

#kontakt .cell.second p {
  line-height: 0;
  font-size: 2rem;
}

#kontakt .cell.third {
  text-align: right;
}

