﻿/* Float clearer */

.clearfix {
  clear: both;
}

/* Document font-styles, link to background-image */

body {
  background: #f9f8f5 url("../image/tausta_logoton.gif");
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
}

/* Container for logo*/

.logo-container {
  width: 40%;
  margin: 2em auto 2em auto;
}

/* Styles for logo*/

.logo {
  width: 100%;
}

/* Styles for main elements*/

.header,
.main-container,
footer {
  width: 60%;
  min-width: 895px;
  margin: 2em auto 2em auto;
}
.main-container {
  background-color: white;
  margin-bottom: 2em;
  padding: 3em 0 8em 0;
}
section {
  width: 98%;
  margin: 0 1% 2em 1%;
}
footer {
  background-color: rgb(213, 218, 251);
  height: 2em;
  line-height: 2em;
  font-size: 16px;
  text-align: center;
}
footer > span {
  margin-right: 2em;
}
h1 {
  font-size: 24px;
  color: black;
  text-align: center;
}
h2 {
  font-size: 18px;
}
.h2-centered {
  text-align: center;
}
p {
  text-align: left;
  color: black;
  padding: 0.5em;
}
hr {
  background-color: rgb(252, 218, 218);
  color: rgb(252, 218, 218);
  width: 50%;
  height: 0.15em;
  margin-left: auto;
  margin-right: auto;
  border: 0 none;
}
ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style-type: none;
}
a:link {
  color: #70cfcf;
}
a:visited {
  color: #666666;
}
a:hover {
  color: #fcdada;
}
a:active {
  color: #d5dafb;
}

/* Styles for navigation*/

.navigation > li {
  width: 14.28%;
  float: left;
  position: relative;
}
.navigation > li:hover > ul {
  display: block;
}
.sub-navigation {
  display: none;
  position: absolute;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sub-navigation > li {
  border: 2px solid rgb(252, 218, 218);
  border-top: 0;
}
.sub-navigation > li:first-child {
  border-top: 2px solid rgb(252, 218, 218);
}
.navigation a:link,
.navigation a:visited {
  background-color: rgb(213, 218, 251);
  width: 100%;
  height: 3em;
  line-height: 3em;
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  color: black;
}
.navigation a:hover,
.navigation a:active {
  background-color: rgb(252, 218, 218);
}
.current-location {
  background-color: rgb(252, 218, 218) !important;
}
.mobile-navigation {
  display: none;
}

.index-section {
  height: 45em;
}

/* Styles for images*/
.image-container {
  width: 95%;
  margin: 0 auto 2em auto;
}

.image-container > img {
  width: 100%;
}

.image-front-bowls-container {
  height: 34em;
}

.image-front-bowls-container > img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.image-sari-container {
  width: 20%;
  margin: auto 4em auto 2em;
  float: right;
}

.image-sari-container > img {
  width: 100%;
}

.image-bowls-container {
  width: 20%;
  margin: auto 4em auto 2em;
  float: right;
}

.image-bowls-container > img {
  width: 100%;
}

.gallerycontainer {
  position: relative;
}
.thumbnail-small {
  width: 200px;
  height: 200px;
  border: 0;
}
.thumbnail img {
  border: 10px solid white;
  margin: 0 5px 5px 0;
}

.thumbnail:hover {
  background-color: transparent;
}

.thumbnail:hover img {
  border: 1px solid #fcdada;
}

.thumbnail span {
  /*CSS for enlarged image*/
  position: absolute;
  background-color: rgb(252, 218, 218);
  padding: 5px;
  left: -1000px;
  border: 1px solid white;
  visibility: hidden;
  color: black;
  font-weight: bold;
}

.thumbnail span img {
  /*CSS for enlarged image*/
  border-width: 0;
  padding: 2px;
}

.thumbnail:hover span {
  /*CSS for enlarged image*/
  visibility: visible;
  top: 0;
  left: 270px; /*position where enlarged image should offset horizontally */
  z-index: 50;
}
.mobile-pic {
  display: none;
}

/* Styles for tables*/

table {
  width: 50%;
  margin: 0 auto 0 auto;
}
th {
  text-align: left;
}
th,
td {
  padding: 8px 12px 8px 8px;
}
.mobile-prices {
  display: none;
}
.mobile-prices > ul > li:nth-child(odd) {
  font-weight: bold;
}
.mobile-prices > ul > li:nth-child(even) {
  margin-bottom: 1em;
}
/* Style for lists*/

.edu-list {
  list-style-image: url("../image/bullet.jpg");
}
.edu-list > li {
  margin: 1em auto 1em 2em;
}
.mobile-edu {
  display: none;
}

/* Styles for map*/

iframe {
  width: 70%;
  height: 450px;
  border: 0;
}

/*Styles for form*/

form {
  width: 50%;
}
.contact-email {
  width: 50%;
  margin-bottom: 1em;
}
.contact-text {
  width: 100%;
  margin-bottom: 1em;
}
.contact-submit {
  float: right;
}

/* Styles for mobile size*/
@media only screen and (max-width: 1790px) and (min-width: 915px) {
  footer {
    height: 4em;
  }
}

@media only screen and (max-width: 915px) {
  .header,
  .main-container,
  footer {
    min-width: 0;
    width: 90%;
  }
  h1 {
    font-size: 18px;
  }
  .header {
    position: relative;
  }
  .logo-container {
    float: left;
    margin: 0;
  }
  nav {
    display: none;
  }
  .mobile-navigation {
    position: absolute;
    bottom: 0;
    right: 0;
    display: block;
  }
  .mobile-navigation > select {
    width: 15em;
    height: 2.5em;
  }
  .clearfix-mobile {
    clear: both;
  }
  .image-container {
    display: none;
  }
  .image-sari-container {
    display: none;
  }
  .image-bowls-container {
    display: none;
  }
  .gallerycontainer {
    display: none;
  }
  .mobile-pic {
    display: block;
  }
  footer {
    height: inherit;
    line-height: inherit;
    padding: 0.5em;
  }
  footer > span {
    display: block;
  }
  .mobile-prices {
    display: block;
  }
  .edu-list {
    display: none;
  }
  .mobile-edu {
    display: block;
  }
  table {
    display: none;
  }
  iframe {
    height: 250px;
  }
  form {
    width: 99%;
    margin-right: 1%;
  }
}
