/**************************************************************************************/
/*************************** set style of web page background *************************/

body {
   background-color: #f7f7f9;
   font-family: 'Archivo'; font-size: 14px;
}

/**************************************************************************************/
/***************************** set style of cookie banner *****************************/

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1c1c1e;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 10000;
    font-family: 'Archivo', sans-serif;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.accept-btn {
    background: #8e8e93; /* Your accent color */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}
.decline-btn {
    background: transparent;
    color: white;
    border: 1px solid #8e8e93;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}
.hidden { display: none !important; }


/**************************************************************************************/
/**************************** set style of content division ***************************/

#contents {
   margin-top: 0px;
   margin-left: auto;
   margin-right: auto;
   width:  100%;
   background-color: #f7f7f9;
}

/**************************************************************************************/
/********************************** set style of title ********************************/

#title {
   height: 10px;
   width: 100%;
   margin-top: 5px;
   text-align: center;
   font-size: 22px;
   background-color: #f7f7f9;
   color: #b0b0b3;
}

/**************************************************************************************/
/***************************** set style of navigation menu ***************************/

.active {
    background-color: #efeff4;
    color: #b0b0b3;
}

@media screen and (min-width: 801px) {
   nav {
	  display: table;
	  margin: 30px auto;
      z-index: 30;
   }

   .icon {
      display: none;
   }

   ul {
	  margin: 0;
	  padding: 0;
	  list-style: none;
   }

   ul ul {
	  opacity: 0;
	  position: absolute;
	  top: 160%;
	  visibility: hidden;
	  transition: all .4s ease;
	  -webkit-transition: all .4s ease;
      z-index: 30;
   }

   ul ul ul {
	  top: 0%;
	  left: 160%;
   }

   ul ul li:hover > ul {
	  top: 0%;
	  left: 100%;
	  opacity: 1;
	  visibility: visible;
   }

   ul li:hover > ul {
	  opacity: 1;
	  top: 100%;
	  visibility: visible;
   }
    
   ul li {
	  float: left;
	  position: relative;
   }

   ul ul li { 
     float: none; 
   }
}
	 
ul li {
	  background-color: #f7f7f9;
	  cursor: pointer;
}

ul a {
	  text-decoration: none;
	  display: block;
	  color: #2e2e2f;
	  padding: 10px 15px;
	  width: 6em;
	  text-align: center;
}

ul li:hover { color: #b0b0b3; }
ul li a:hover { color: #b0b0b3; }

/***************************** set the position of sub-menu ***************************/

@media screen and (max-width: 800px) {
  nav{
     position: absolute;
     left: 10px;
     top: 40px;
     z-index: 30;
  }
    
  ul {
	  margin: 0;
	  padding: 0;
	  list-style: none;
      z-index: 30;
  }
    
  ul ul {
	  opacity: 0;
	  position: absolute;
	  left: 160%;
	  visibility: hidden;
	  transition: all .4s ease;
	  -webkit-transition: all .4s ease;
      z-index: 30;
   } 
    
   ul ul li:hover > ul {
	  top: 65%;
	  left: 100%;
	  opacity: 1;
	  visibility: visible;
  }
    
   ul li:hover > ul {
	  opacity: 1;
	  top: 34%;
      left: 100%;
	  visibility: visible;
   }
    
   #menu1 {
      display: none;
   }
   #menu2 {
      display: none;
   }
   #menu3 {
      display: none;
   }
   #menu4 {
      display: none;
   }
   #menu5 {
      display: none;
   }
 
    
  .icon {
      display: block;
   }
    
  .icon:hover {
      background-color: #f7f7f9;
   }
}

/**************************************************************************************/
/************************** animated slideshow on home page ***************************/

#stage {
   padding-top: 10px;
}

@media screen and (max-width: 800px){
  #stage {
      padding-top: 70px;
    }
}
  #stage a {
    position: absolute;
  }
  #stage a img {
    background: #efeff4;
  }

  #stage a:nth-of-type(1) {
    animation-name: fader;
    animation-delay: 3s;
    animation-duration: 1s;
    z-index: 20;
  }
  #stage a:nth-of-type(2) {
    z-index: 10;
  }
  #stage a:nth-of-type(n+3) {
    display: none;
  }

  @keyframes fader {
    from { opacity: 1.0; }
    to   { opacity: 0.0; }
  }

.slideshowLink {
    display: none;
}

/**************************************************************************************/
/***************************** set style of photo galleries ***************************/

#photos {
    width: 85%;
    margin: auto;
}

@media screen and (max-width: 800px){
  #photos {
      padding-top: 70px;
    }
}
.column {
    float:left;
}
.column img {
  width: 95%;
  margin-top: 8px;
  vertical-align: middle;
}
#photos:after {
    content: "";
    display: table;
    clear: both;
}

/**************************************************************************************/
/*********************************** styling the modal ********************************/

.modal {
  display: none;
  width: 100%;
  margin: auto;
  z-index: 1;
  background-color: #f7f7f9;
}

@media screen and (max-width: 800px){
  .modal {
      padding-top: 70px;
    }
}

/* Modal Content */
#modal-content {
  position: relative;
  background-color: #f7f7f9;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

/* The Close Button */
.close {
  color: #2e2e2f;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 45px;
}
.close:hover,
.close:focus {
  color: #8e8e93;
  text-decoration: none;
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #2e2e2f;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  margin-right: 3%;
  border-radius: 3px 0 0 3px;
}

.prev {
    margin-left: 3%;
}

/* On hover, add a dark background color */
.prev:hover,
.next:hover {
  background-color: #efeff4;
}

/**************************************************************************************/
/***************************** set style of page content ******************************/

#pageContent {
   margin-top: 60px;
}

.textContent {
   margin: 30px auto;
   font-size: 12pt;
   color: #2e2e2f;
}

.textContent a {
   text-decoration: none;
   color: #2e2e2f;
}

.textContent a:hover {
   color: black;
}

.float-left {
   float: left;
   padding-right: 20px ;
   max-width: 100%;
}

/**************************************************************************************/
/************************************ set style of footer *****************************/

.footer { 
    background-color: #f7f7f9;
    text-align: center;
    position: relative; 
    margin-top: 40px;
    bottom: 0; 
    left: 0; 
    z-index: 10;
}

a.footer:link { color: #2e2e2f; text-decoration:none; font-weight:normal; }
a.footer:visited { color: #2e2e2f; text-decoration:none; font-weight:normal; }
a.footer:hover { color: #8e8e93; text-decoration:underline; font-weight:normal; }
a.footer:active { color: #8e8e93; text-decoration:none; font-weight:normal; }


/**************************************************************************************/
/**************************** set style of privacy policy division ********************/

div.privacyContent {
   display: inline;
   margin-top: 100px;
   width: 100%;
}

p.privacyContent {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
}

li.privacyContent {
    display: list-item;
}
a.privacyContent {
    color: #2e2e2f;
}

h1.privacyContent {
    display: block;
    font-size: 2em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold; 
}
h2.privacyContent {
    display: flex;
    font-size: 1.5em;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold; 	
} 	
h3.privacyContent{
    display: block;
    font-size: 1.17em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold; 	
} 	
h4.privacyContent{
    display: block;
    margin-top: 1.33em;
    margin-bottom: 1.33em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
} 

/**************************************************************************************/
/**************************** set style of contace form *******************************/

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.form-actions button {
  padding: 0.8rem 2rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

.form-actions button:hover {
  background: #555;
}

.required {
  color: #d00;
}

.honeypot {
  display: none !important;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
  max-width: 500px;
}

.form-row textarea {
  width: 90%;          /* stays full width */
}

/**************************************************************************************/
/************************** Storybook Layout ******************************************/

.storybook-layout {
    display: flex;
    flex-direction: row;          /* force side-by-side on desktop */
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* Default: image 60%, text 40% */
.storybook-layout img {
    flex: 0 1 60%;
    width: 60%;
    max-width: 60%;
    min-width: 0;
    height: auto;
    display: block;
    margin: 0;
}

.storybook-layout .text {
    flex: 0 1 40%;
    width: 40%;
    min-width: 0;
    font-size: 12pt;
    color: #2e2e2f;
}

/* Portrait / vertical image variant: image 40%, text 60% */
.storybook-layout--portrait img {
    flex: 0 1 40%;
    width: 40%;
    max-width: 40%;
}

.storybook-layout--portrait .text {
    flex: 0 1 60%;
    width: 60%;
}

/* Larger text + tighter content width on desktop only */
@media screen and (min-width: 801px) {
    #pageContent,
    #marketingMessage {
        max-width: 1450px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .textContent {
        font-size: 15pt;
        line-height: 1.55;
    }

    #marketingMessage h1 {
        font-size: 2.1em;
        margin-bottom: 0.6em;
    }

    #marketingMessage h2,
    .storybook-layout .text h2 {
        font-size: 1.55em;
        margin-top: 0;
        margin-bottom: 0.5em;
    }

    .storybook-layout .text {
        font-size: 15pt;
        line-height: 1.5;
    }
}

/* Mobile: stack image above text */
@media screen and (max-width: 800px) {
    .storybook-layout {
        flex-direction: column;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .storybook-layout img {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .storybook-layout .text {
        flex: none;
        width: 100%;
        font-size: 12pt;
    }
}