@import url("theme.css");

/*-------------------------*/
/*-- Boilerplate section --*/
/*-------------------------*/

/* Reset box model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

body {
    margin: 0;
}

h1 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 2.8rem;
}
h3 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 2.3rem;
  color: grey;
}

a {
  font-weight: bold;
  text-decoration: none;
  color: darkgreen;
}
a:hover {
  color: magenta;
}

/*-------------------------*/
/*-- End Boilerplate ------*/
/*-------------------------*/


body {
  display: flex;
  flex-direction: column;
  background-color: var(--main-background-color);
  /*font-family: "Bodoni Moda", serif;*/
  font-style: normal;
  font-family: "Rajdhani", sans-serif;
  font-size: 2.8rem;
}

section {
  border: var(--debug-border);
  min-height: 20vh;
  min-width: 100vw;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

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

.placeholder {
  background-color: lightgreen;
  height: 20rem;
  width: 80vw;
  margin: 0 auto;
  border: 2px solid #333;
}

.chonburi-font {
  font-family: "Chonburi", serif;
  font-weight: 400;
  font-style: italic;
  color: grey;
}
/*----------------*/
/* Navigation Bar */
/*----------------*/

/* Add a black background color to the top navigation */
.topnav {
  background-color: var(--navbar-background-color);
  overflow: hidden;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.4rem;
  z-index: 9999;
}

/* Style the links inside the navigation bar */
.topnav a {
  display: block;
  color: var(--navbar-font-color);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: var(--navbar-link-hover-color);
  color: var(--navbar-font-color);
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: var(--navbar-current-link-background-color);
  color: var(--navbar-font-color);
}
.topnav a.active:hover {
  background-color: var(--navbar-link-hover-color);
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

#myTopnav {
    min-height: 5vh;
    height: max-content;
}

/*----------------------*/
/* Section : Top Banner */
/*----------------------*/
#top-banner {
  display: flex;
  justify-content: center;
  min-height: 0;
  z-index: 100;
}
#top-banner-image {
  max-height: 5rem;
  margin-top: 1rem;
  z-index: 99;
}


/*-----------------------*/
/* Section : Text Slices */
/*-----------------------*/
#top-quote * {
  text-indent: 3rem;
  max-width: 66vw;
}
#top-quote h1 {
  /*font-family: "Bodoni Moda", serif;*/
}
#top-quote h3 {
  font-family: "Chonburi", serif;
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: bold;
  text-indent: 0;
  text-align: center;
}

#bottom-quote * {
  font-family: "Chonburi", serif;
  font-style: italic;
  font-weight: bold;
  color: grey;
  font-size: 4rem;
}

/*---------------------------*/
/* Section : Image Slideshow */
/*---------------------------*/
#mobile-top-image { display: none; }

.image-slideshow {
  display: block;
  position: relative;
  margin: 0 auto 0 auto;
  height: 50rem;
  width: 100vw;
  background: black url("img/main_slideshow/slideshow-base.jpg") no-repeat fixed 50%;
  background-size: cover;
}
.slideshow-image{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50rem;
  -webkit-animation: fade 15s infinite;
  animation: fade 15s infinite;
}
#image-01 {
  background: black url("img/main_slideshow/slideshow-1.jpg") no-repeat fixed 50%;
  background-size: cover;
  animation-delay: 3s;
  opacity: 0;
}
#image-02 {
  background: black url("img/main_slideshow/slideshow-2.jpg") no-repeat fixed 50%;
  background-size: cover;
  animation-delay: 6s;
  opacity: 0;
}
#image-03 {
  background: black url("img/main_slideshow/slideshow-3.jpg") no-repeat fixed 50%;
  background-size: cover;
  animation-delay: 9s;
  opacity: 0;
}
#image-04 {
  background: black url("img/main_slideshow/slideshow-4.jpg") no-repeat fixed 50%;
  background-size: cover;
  animation-delay: 12s;
  opacity: 0;
}
@-webkit-keyframes fade {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  23% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* 3 image timing */
/*
@keyframes fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  38% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
*/
/* 5 image timing */
@keyframes fade {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  23% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/*----------------------*/
/* Section : Image Grid */
/*----------------------*/

.image-grid {
  display: flex;
  flex-wrap: wrap;
  width: 80vw;
  margin: 0 auto;
  padding: 0 4px;
}
.image-grid-column {
  flex: 33%;
  padding: 0 4px;
}
.image-grid-column img {
  margin: 2px auto;
  vertical-align: middle;
}

/*----------------*/
/* Client Gallery */
/*----------------*/

:root {
  --client-gallery-image-width: 33%;
}

.client-gallery {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 1rem;
}

.client-image-container {
  position: relative;
  max-width: 25rem;
  height: 25rem;
  max-height: 32vw;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.client-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
/*
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0.1;
  transition: .5s ease;
}
*/
.overlay {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 35%;
  z-index: 999;
  background-color: white;
  min-height: 20%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
}

.overlay * {
  color: #333;
  font-size: 2rem;
}

.client-image-container:hover .overlay {
  opacity: 0.8;
}

.overlay-image {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#logo-strip {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: white;
  /*height: 10rem;*/
  width: 100vw;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}
#logo-strip img {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  height: 8vw;
  /*width: auto;*/
}

/*----------*/
/* Services */
/*----------*/

.column-block-content {
  width: 50vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}
.column-block-content div {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: justify;
  text-wrap: auto;
  padding: 0 2rem;
}
.column-block-content h1 {
  text-align: center;
}

.placeholder {
  background-color: lightgreen;
  border: 1px solid darkgreen;

}

/*-------*/
/* About */
/*-------*/

.two-block-content {
  width: 80vw;
  display: flex;
  margin: 0 auto;
  flex-direction: row;
  justify-content: center;
}

.two-block-content div {
  height: 50rem;
  width: fit-content;
  margin-left: 1rem;
  margin-right: 1rem;

}

#portrait-block {
  background-image: url("img/about/portrait.jpg");
  background-size: cover;
}

.portrait-image {
  max-height: 100vh;
  max-width: 50%;
  width: auto;
  object-fit: cover;
}

#text-block {
  font-size: 2.5rem;
  padding: 3rem 1rem;
  text-align: justify;
  vertical-align: center;
  width: 33vw;
  text-indent: 3rem;
}

#text-block * {
  margin-top: 0;
}

#text-block p {
  font-size: 1.4rem;
  margin: 4rem auto;
}

.text-align {
  text-align: right;
}

/*---------*/
/* Contact */
/*---------*/

.contact {
    margin-bottom: 10rem;
}

#contact-text {
  display: flex;
  min-width: 25vw;
  width: auto;
  padding-top: 5rem;
  justify-content: center;
  align-items: center;
}

#contact-text div {
  align-items: center;
  justify-content: center;
  text-align: center;
}

#contact-text-block {
  font-size: 2.5rem;
  padding: 3rem 1rem;
  text-align: justify;
  width: 33vw;
}

#contact-text-block * {
  margin-top: 0;
}

#contact-text-block p {
  font-size: 1.4rem;
  margin: 0.5rem auto;
}
#contact-text-block h2 {
  font-size: 2.25rem;
  margin-top: 1rem;
}

/*--------------------------*/
/* Responsive Media Queries */
/*--------------------------*/

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 800px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav button.icon {
    float: right;
    display: block;
    position: absolute;
    right: 1vh;
    top: 1vh;
    z-index:9999;
    height: 5vh;
    width: 5vh;
    border: none;
    margin: auto;
    background-color: var(--navbar-background-color);
  }
  #myTopnav {
    min-height: 10vh;
    height: 10vh;
    justify-content: space-between;
  }
  #mobile-top-image {
    display: block;
    background-image: url("img/mobile-top-image.png");
    background-size: contain;
    background-repeat: no-repeat;
    height: 100vw;
    width: 100vw;
    margin: 0;
  }
  #top-quote * {
    max-width: 95vw;
  }
  .image-grid {
    width: 100vw;
    flex-direction: column;
  }
  .image-grid-column {
    flex: 100%;
  }
  .client-gallery {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
  }
  .client-image-container {
    margin-bottom: 1rem;
    max-height: none;
    max-width: none;
    height: auto;
  }
  .image-slideshow {
    width: 100vw;
  }
  .column-block-content {
    width: 100vw;
  }
  .column-block-content div {
    padding: 1rem;
  }
  .two-block-content {
    flex-direction: column-reverse;
    margin: 0 auto;
    width: 100vw;
  }
  .two-block-content div {
    height: auto;
    width: 100%;
  }
  #portrait-block {
    margin: 0 auto;
    height: 50rem;
  }
  .portrait-image {
    width: 100vw;
    max-width: 100vw;
    max-height: none;
  }
  #text-block {
    margin: 0 auto;
    padding: 3rem 2rem;
    height: fit-content;
    width: 90vw;
  }
  #text-block p{
    text-align: justify;
  }
  .contact p,h1 {
    text-align: center;
  }
  .overlay * {
    font-size: 2.8rem;
  }
  .overlay {
    opacity: 0.8;
  }
  #featured-image-slideshow {
    display: none;
  }
  .text-align {
    text-align: justify;
  }
  #contact-text-block {
    width: 98vw;
  }
  #logo-strip {
    flex-direction: column;
    align-items: center;
    height: auto;
    margin-bottom: 2rem;
  }
  #logo-strip img {
    height: auto;
    width: 70%;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 800px) {
  .topnav.responsive {
    position: sticky;
    display: block;
    justify-content: space-between;
  }
  .topnav.responsive button.icon {
    /*position: absolute;
    right: 0;
    top: 0;*/
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  #myTopnav {
    min-height: 5vh;
    height: auto;
  }
}

@media screen and (min-width: 801px)  {
  .two-block-content {
    margin: 0 auto;
    width: 100vw;
  }
  .two-block-content div {
    height: fit-content;
  }

}

