* {
  box-sizing: border-box;
}

body {
  margin: 0;
    background-color: #f1f1f1;
}

/* Style the header */
.header {
    height: 25rem;
    font-weight: bold;
    background-image: url('../images/trees2.jpg');
}

/* Style the header 
Commented out for CNY special edition
.header {
    height: 25rem;
    font-weight: bold;
    background-image: url('../images/chinese-new-year.png');
}
*/

.header_text {
    padding: 35px;
    font-family: sans-serif;
    font-size: 45px;
    color: #ffffff;
    text-align: center;
}

/* responsive nav styles */
.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 13px 16px;
  text-decoration: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 13px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 13px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a {display: none;}
  .topnav a.icon {
    float: left;
    display: block;
  }
  
  .dropdown .dropbtn {display: none;}
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: fixed;width: 100%;}
  .topnav.responsive .icon {
    position: absolute;
    left: 0;
    top: 20;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* This is for the bar on index page */
ul {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  background-color: #333;
  height: 50px;
}

/* Button used to open the contact form - fixed at top of page */
.open-button {
  background-color: red;
  color: white;
  text-align: center;
  border: none;
  cursor: pointer;
  height: 50px;
  position: fixed;
  top: 0px;
  right: 0px;
  width: 135px;
}

/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  top: 50px;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

/* Add styles to the form container */
.form-container {
  max-width: 300px;
  padding: 10px;
  background-color: white;
}

/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #4CAF50;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover {
  opacity: 1;
}

.open-button:hover {
  opacity: 0.7;
}

.section {
  float: left;
  padding: 20px;
  background-color: #C0D3a1;
}

.section_opinion {
  width: 100%;
  padding: 20px;
  background-color: rgb(222, 228, 212);
}

.section_famtree {
  float: left;
  padding: 20px;
  background-color: #ffffff;
}

.section_history {
  width: 100%;
  padding: 16px;
  background-color: #d0dddf;
}

.section_gallery {
  float: left;
  padding: 10px;
  background-color: #fcecd8;
}

.section_melon {
  width: 100%;
  padding: 20px;
  background-color: #ffc1bd;
}

.section_glitter {
  float: left;
  padding: 10px;
  background-color: #e8edff;
}

.section_famtree img {
  float: left;
  padding: 10px;
  background-color: #ffffff;
}

.section_message img {
  float: left;
  padding: 10px;
}

.section_welcome_cny img {
  float: left;
  padding: 10px;
}

.section_gallery img {
  float: left;
  padding: 10px;
}

.famtree_text {
    font-family: sans-serif, "Verdana";
    font-size: 16px;
    color: #000000;
    text-align: left; 
    margin-left: 30px;
    margin-right: 20px;
}

.heading_text {
    font-family: sans-serif;
    font-size: 27px;
    color: #000000;
    text-align: left; 
    padding: 30px;
}

.section_message {
  float: left;
  padding: 16px;
  background-color: #fefde0;
}

/* temporary CNY greeting text */
.section_welcome_cny {
  Width:100%;
  padding: 20px;
  background-color: #f8c351;
}
.section_welcome_cny img {
  float: left;
  padding: 10px;
}
.cny_msg {
    height: 10rem;
    font-weight: normal;
}
.cny_msg_chi {
    Padding-top: 18px;
    font-family: sans-serif;
    font-size: 28px;
    color: #000000;
    margin-left: 30px;
    text-align: center;
}
.cny_msg_eng {
    Padding-top: 10px;
    font-family: sans-serif;
    font-size: 22px;
    color: #000000;
    margin-left: 30px;
    text-align: center;
}

.vid_hdg_text {
    font-family: sans-serif, "Verdana";
    font-size: 25px;
    color: #000000;
    padding-top: 0px;
    padding-bottom:10px;
    margin-left: 45px;
    margin-right: 40px;
    text-align: center;
}

hr {
        display: block;
        height: 10px;
        border: 0;
        border-top: 3px solid #ffc1bd;
        margin: 30px;
        padding: 0;
      }

/* Responsive layout...makes the sections stack on top of each other */
@media screen and (max-width: 600px) {
   .header, .section, .section_famtree, .section_history, .section_special {
    width: 100%;
  }
}

@media screen and (max-width: 360px) {
  iframe {
    width: 200px;
    height: auto;
  }
}

@media screen and (max-width: 360px) {
  ul {
    width: 70%;
    height: auto;
  }
}

/* Style the footer */
.footer {
    height: 5rem;
    padding: 4px;
    font-weight: normal;
    background-color: #f1f1f1;
}
