@font-face {
  font-family: "Jannsen";
  src: url("/jannsen.ttf");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:active { text-decoration: none; }

:root {
  --tume-lilla: #231754;
  --keskmine-lilla: #6750a1;
  --hele-lilla: #b795c5;
  --kuld: #ffd700;
  --heledam-hall: #747474;
  --tumedam-hall: #626262;
  --gray1: #333333;
}
html, body {
  height: 100%;
  background-color: #E6E6E6;
  margin: 0px;
  font-family: "Roboto Slab", serif !important;
  font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif !important;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
img{
  width: 100%;
  height: auto;
}

header {
  /* min-width: 1200px; */
  width: 100%;
}

.show{
  display: block !important;
}

/* top header styling */

#header-top{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;

  min-height: 250px;

  background-image: url(headerimg/sky.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0px;

  box-shadow: inset 0px -150px 80px -5px #c5ecff;
}

.logo-container{
  display: flex;

  width: 100%;
  margin: 0 auto;

  align-items: center;
  justify-content: center;
}


.logo{
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-clip: border-box;
  background-position: center;

  width: 115px;
  /* min-height: 115px; */
  height: 115px;
  max-width: 115px;
  margin: 0 1rem;

  flex: 1 1; 

  transition: transform 0.2s ease;
}

.logo:hover{
  transform: translateY(-10px);
}

.paketikas{
  background-image: url(headerimg/logosvgs/paketikas.svg);
  background-size: contain;

  min-width: 250px;
  min-height: 250px;

  transition: none;
}
.paketikas:hover{
  transform: none;
}
.novatours{
  background-image: url(headerimg/logosvgs/novatours.svg);
  min-width: 156px;
}
.joinup{
  background-image: url(headerimg/logosvgs/joinup.svg);

}
.coral{
  background-image: url(headerimg/logosvgs/CoralTravel_Logo_Blue.svg);
  
  min-width: 156px;
}
.anex{
  background-image: url(headerimg/logosvgs/Anex-Logo-w200px.svg);
}
.itaka{
  background-image: url(headerimg/logosvgs/itaka.svg);

  max-height: 56px;
}
.tez{
  background-image: url(headerimg/logosvgs/TEZ_TOUR_logo_CMYK_horizontal.svg);
}

/* bottom header styling */

#header-bottom{
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  

  height: 70px;
  background-color: #17317f;
}

#lang-selector{
  position: relative;
  float: right;
  margin-left: auto;

  margin-right: 1rem;
}

.dropdown-content{
  display: none;
  position: absolute;
  /* background-color: #08415D; */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* keelevaliku nupp */
#langDropdownBtn{
  height: 50px;
  width: 50px;
  padding: 0.1rem;

  background-color: #17317f;
  border: none;
}
#langDropdownBtn:hover{
  cursor: pointer;
}

#languageDropdown{
  min-width: 50px;
  background-color: white;

  border-radius: .25rem;
}

#languageDropdown > a{
  padding: 0.3rem;
  border-radius: .25rem;

  margin: 0;
}

#languageDropdown > a img{
  border: 1px solid black;
  width: auto;
  max-width: 40px;
}

.dropdown-content a{
  display: block;
  padding: 0.2rem;

  height: auto;
  width: auto;

  margin: 4px;
}
.dropdown-content a:hover{
  background-color: #17317f;
}

#city-selector-container{
  display: flex;
  flex-direction: row;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#city-selector{
  width: 210px;
  height: 45px;

  align-self: center;
  position: relative;

  margin: 0 1rem 0 0;
}

#city-selector > button{
  width: 100%;
  border-radius: 25px;
}

/* linnavaliku dropdowni avav nupp */
#city-selector button{
  background-color: white;
  padding: 10.5px 2rem 10.5px 60px;

  border: none;

  font-size: 18px;
  text-wrap: nowrap;
}

#cityDropdownText{
  text-align: left;
}

#city-selector button:hover{
  cursor: pointer;
  background-color: lightgray;
}

/* linnavaliku dropdowni container */
#cityDropdown.show{
  width: calc(100% - 55px);
  height: fit-content;
  border-radius: 15px;
  margin-top: 0.2rem;

  left: 48px;

  background-color: transparent;
}

/* linnavaliku dropdowni nupud */
#cityDropdown button{
  width: 100%;
  padding: 8% 15px 8% 15px;
  background-color: white;
  border: 1.5px solid rgb(0, 0, 0);
  text-align: left;
}
#cityDropdown button:hover{
  background-color: #17317f;
  color: white;
}
#cityDropdown button:first-child{
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border: 1.5px solid rgb(0, 0, 0);
  border-bottom: none;
}
#cityDropdown button:last-child{
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border: 1.5px solid rgb(0, 0, 0);
  border-top: none;
}

#citySelectPlaneIcon{
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  max-width: 80%; 
  max-height: 80%; 
  width: 40px;
  height: auto;
  object-fit: contain;
}

#confirmCityChange{
  position: absolute;
  align-self: center;
  right: -40%;
  height: 100%;

  background-color: white;
  border: none;
  border-radius: 25px;
  padding: 0 20px ;

  font-size: 18px;
}
#confirmCityChange:hover{
  cursor: pointer;
  background-color: lightgray;
}

#headerSlogan{
  color: white;
  font-size: 20px;
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);  
  text-wrap: nowrap;
}

nav .links {
  width: 100%;
  background-color: #66509F;
  margin-top: 10px;
  background-color: var(--tume-lilla);
  height: 40px;
  display: flex;
  justify-content: center;

}
nav .links a {
  height: 100%;
}
nav .links a > img {
  height: 80%;
  margin: 4px;
}

#waavo-insert-iframe {
  width: 100%;
}

footer.jalus {
  margin-top: auto;
  
  width: 100%;
  background: #17317f;
}

.jalus-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.jalus-grid > div {
  justify-self: center;
}
.jalus-grid {
  max-width: 1200px;
  margin: auto auto auto auto;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-template-rows: 85px 35px 60px 85px;
  grid-template-areas: 
    "kontakt"
    "sotsmeedia"
    "aadress"
    "heateada" 
    ;
  font-family: Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",Verdana,"Verdana Ref",sans-serif;
  font-style: normal;
  color: white;
  padding: 5px;
}

.footer-logo {
  height: 190px;
  width: 190px;
  margin: 1rem 1rem;
  background-image: url(headerimg/Reisihunt-Logo-Mono-White-Stamp-noBG.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.heateada {
  grid-area: heateada;
}
.heateada h3 {
  margin: 0px;
  text-align: center;
}
.heateada a {
  display: block;
  text-align: center;
}

.sotsiaalmeedia {
  grid-area: sotsmeedia;
  margin-top: 0px;
}
.jalus a {
  color: white;
  text-align: center;
}
.jalus a:hover {
  text-decoration: none;
  color: white;
}
.sotsiaalmeedia .icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 5px;
}
.fb-icon {
  background-image: url(/svg/facebook-filled.svg);
}
.insta-icon {
  background-image: url(/svg/instagram-filled.svg);
}
.yt-icon {
  background-image: url(/svg/yt-filled.svg);
  background-image: url(/svg/youtube-round.svg);
}

.footer-kontakt {
  align-items: center;
  grid-area: kontakt;
}
.footer-kontakt a {
  color: white;
  text-align: center;
}
.footer-kontakt a:hover {
  text-decoration: none;
  color: white;
}

.footer-kontakt img {
  margin: 0px 5px;
}
.footer-kontakt img {
  height: 20px;
}

.aadress {
  grid-area: aadress;
}
.jalus p {
  margin: 0.2rem;
  text-align: center;
}

@media screen and (min-width: 600px) {
  .jalus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 0px 80px 80px;
    grid-template-areas: 
      " . ."
      "kontakt aadress" 
      "heateada sotsmeedia";
    padding: 15px;
    justify-content: center;
    align-content: center;
    margin: 1rem auto auto 1rem;
  }
  .jalus-container{
    flex-direction: row;
  }
  .footer-logo{
    margin: 1rem 1rem 1rem auto;
  }
  .sotsiaalmeedia {
    margin-top: -22px;
  }
}
@media screen and (min-width: 900px) {
  .jalus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 60px 30px;
    grid-template-areas: 
      " aadress kontakt heateada" 
      " sotsmeedia . .";
    /* padding: 15px;  */
    margin: auto auto auto 2rem;
  }

  .footer-logo{
    margin: 1rem 1rem 1rem auto;
  }

  .jalus-container{
    flex-direction: row;
  }

  .sotsiaalmeedia {
    margin-top: 0px;
  }

}

@media all and (max-width: 1150px) {
  .logo-container{
      display: grid;
      grid-template-areas: 
          "left center right";
        grid-template-columns: 1fr 2fr 1fr;
  }

  .logo{
      margin: 0;
      z-index: 1;
      min-width: 160px;
  }
/* negatiivse marginind on kohandatud vastavalt logo pildile, et need asetseksid võrdselt */
  .logo.left:nth-child(1){
    grid-area: left;
    margin-right: -100px;
  }
  .logo.left:nth-child(2){
    grid-area: left;
    grid-row: 2;
    margin-right: -15px;
  }
  .logo.left:nth-child(3){
    grid-area: left;
    grid-row: 3;
    margin-right: -82px;
    min-width: 180px;  
  }
  .logo.right:nth-child(5){
    grid-area: right;
    grid-row: 1;
    margin-left: -110px;
  }
  .logo.right:nth-child(6){
    grid-area: right;
    grid-row: 2;
    max-height: 80px;
    margin-left: -40px;
  }
  .logo.right:nth-child(7){
    grid-area: right;
    grid-row: 3;
    margin-left: -95px;
    min-width: 180px;
  }
  .logo.paketikas{
    grid-area: center;
    grid-row: 2;
    z-index: 0;
    min-width: 350px;
    min-height: 300px;
  }
  .logo  {
    justify-self: center !important;
  }

  #city-selector-container{
      margin-left: auto;
      transform: none;
      left: 0;
      position: relative;
  }
}

@media all and (max-width: 680px) {
  .logo{
    width: 100px;
    height: 60px;
    min-width: 100px !important;
  }
  .paketikas{
    /* margin-left: 4px; */
    min-width: 200px !important;
    min-height: 200px !important;
    background-size: cover;
  }
  .novatours{
    min-width: 130px !important;
  }
  .coral{
    min-width: 130px !important;
  }
  .itaka{
    max-height: 50px !important;
    min-width: 0 !important;
  }

  #header-bottom{
    height: 50px;
  }
}

/* @media all and (max-width: 480px){
  #city-selector-container{
    margin-left: 1rem;
  }
  #city-selector{
    width: 180px;
  }
  #city-selector button{
    padding-left: 20px;
    padding-right: 1.5rem;
  }
  #cityDropdown{
    left: 0 !important;
    width: 98% !important;
  }
  #cityDropdown button{
    padding: 6% 15px;
  }
  #confirmCityChange{
    right: -45%;
  }
  #lang-selector{
    margin-left: 0 !important;
  }
  #citySelectPlaneIcon{
    visibility: hidden;
    width: 0;
    height: 0;
  }
} */