/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
  font-family: "Sarasa UI TC", "Noto Sans CJK TC Regular", sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  font-family: "Libre Baskerville", "Noto Serif CJK TC", serif;
}

.Logo {
  width: 2.5em;
  height: auto;
}

/*h2 {*/
/*  font-size: medium;*/
/*  text-indent: 10em;*/
/*}*/

h1 .Logo {
  margin-inline: 1em;
}

nav {
  display: flex;
  justify-content: flex-start;
}

nav a{
  font-size: 1.2em;
  padding: 0 10px;
  text-decoration: none;
  color: #333;
}

main {
  text-align: justify;
  padding: 20px;
}

a:hover {
  color: #0f4c81ff; /* Classic Blue, Pantone Color Of The Year 2020 */
  transition: color 0.5s ease;
}

footer {
  text-align: right;
}

footer a{
  text-decoration: none;
}

footer .Logo{
  vertical-align: -0.5em;
  margin-right: 1em;
}

.FooterIcon {
  width: 1.8em;
  height: auto;
  vertical-align: -0.5em;
  margin-inline: 0.8em;
}

.ContactInfo {
}


/* ==========================================================================
   Under Development Page
 */

#Under_Development_Main {
  background-image: url("data:image/svg+xml, %3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20576%20512%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%230f4c8177%22%0A%20%20%20%20%20%20%20%20%20%20%20%20d%3D%22M208%2064a48%2048%200%201%201%2096%200%2048%2048%200%201%201%20-96%200zM9.8%20214.8c5.1-12.2%2019.1-18%2031.4-12.9L60.7%20210l22.9-38.1C99.9%20144.6%20129.3%20128%20161%20128c51.4%200%2097%2032.9%20113.3%2081.7l34.6%20103.7%2079.3%2033.1%2034.2-45.6c6.4-8.5%2016.6-13.3%2027.2-12.8s20.3%206.4%2025.8%2015.5l96%20160c5.9%209.9%206.1%2022.2%20.4%2032.2s-16.3%2016.2-27.8%2016.2l-256%200c-11.1%200-21.4-5.7-27.2-15.2s-6.4-21.2-1.4-31.1l16-32c5.4-10.8%2016.5-17.7%2028.6-17.7l32%200%2022.5-30L22.8%20246.2c-12.2-5.1-18-19.1-12.9-31.4zm82.8%2091.8l112%2048c11.8%205%2019.4%2016.6%2019.4%2029.4l0%2096c0%2017.7-14.3%2032-32%2032s-32-14.3-32-32l0-74.9-60.6-26-37%20111c-5.6%2016.8-23.7%2025.8-40.5%2020.2S-3.9%20486.6%201.6%20469.9l48-144%2011-33%2032%2013.7z%22%2F%3E%0A%20%20%20%20%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-size: auto;
  background-position: left;
}

.ConstructionIcon {
  width: 50%;
  height: auto;
  display: none;
  margin: auto;
}


/* ==========================================================================
   Contact Page
 */

form {
  max-width: 600px;
}

label {
  margin-bottom: 5px;
  display: block;
  font-weight: bold;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0f4c81ff;
  transition: background-color 0.5s;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

