:root {
  --green-highlight-color: #04AA6D;
  --dark-nav-menu-color: #333;
}

* {
  box-sizing: border-box;
  font-family: "kanit";
}

::selection, ::-moz-selection {
  color: white;
  background: var(--green-highlight-color);
}

html {
  height: 100%;
  font-size: 16px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  padding: 0;
  padding-bottom: 7rem;
  margin: 0;
  background-color: white;
  background-image: url("../images/metal_cladding.jpg");
  background-repeat: repeat;
}

img {
  pointer-events: none;
}

ul.topnav {
  overflow: hidden;
  padding: 0;
  margin: 0;
  height: 60px;
  width: 100%;
  justify-content: center;
  list-style-type: none;
  background-color: var(--dark-nav-menu-color);
}

li.navhome, li.navmenu {
  position: absolute;
}

li.navhome {
  top: 10px;
  left: 10px;
}

li.navmenu {
  top: 10px;
  right: 10px;
}

ul.topnav li.navtitle {
  position: absolute;
  margin-top: 0.75rem;
  left: 50%;
  white-space: nowrap;
  font-size: 2rem;
  font-family: 'russo one';
  color: var(--green-highlight-color) !important;
  text-shadow: 0.16rem 0.16rem 0rem rgba(0,0,0,0.4);
  transform: translateX(-50%);
}

a.navbtn, img.navbtn {
  padding: 0;
  margin-top: 1px;
  height: 40px;
  width: auto;
  pointer-events: initial;
}

.navbtn:active {
  transform: scale(0.98);
}

li a, .menubtn {
  display: inline-block;
  padding: 14px 16px;
  text-align: left;
  text-decoration: none;
}

.dropdown-content {
  z-index: 1;
  display: none;
  position: absolute;
  overflow: hidden;
  margin-top: 1px;
  right: -10px;
  min-width: 190px;
  background-color: var(--dark-nav-menu-color);
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-style: hidden hidden outset outset;
  border-width: 5px;
  border-radius: 0px 0px 0px 20px;
  border-color: white white;
  animation-name: menu-fadein;
  animation-duration: 0.3s;
}

@keyframes menu-fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

a.dropdown-item {
  display: block;
  padding: 12px 16px;
  min-width: 190px;
  text-align: left;
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  transition: 0.4s;
}

.dropdown-content a:active, .dropdown-content .menu-item-highlight {
  background-color: var(--green-highlight-color);
  color: black;
}

.dropdown-content a:active {
  font-size: 1.4rem;
}

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

div.content, div.size {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: black;
  background-color: white;
  border-width: 5px;
  border-radius: 0px 0px 20px 20px;
  border-color: white white;
}

div.content {
  display: block;
  position: relative;
  padding: 5px;
  width: 95%;
  line-height: 1.6;
  word-wrap: normal;
  font-size: 1.25rem;
  font-family: 'kanit';
  border-style: outset;
}

h1.heading, h2.heading {
  font-family: "russo one";
  font-weight: 100;
  font-size: 1.5rem;
  text-shadow: 0.08rem 0.08rem 0rem rgba(0,0,0,0.4);
}

div.size {
  display: none;
  height: 100%;
  width: 100%;
  white-space: pre-wrap;
  font-size: 1.1rem;
  border-style: outset hidden;
}

a.linkbtn:link, a.linkbtn:visited {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  margin-bottom: 2rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  background-size: 200% auto;
  border-radius: 10px;
  box-shadow: 0px 0px 14px -7px #F09819;
  background-image: linear-gradient(45deg, #FF512F 0%, #F09819  51%, #FF512F  100%);
  transition: 0.5s;
}

a.linkbtn:hover, a.linkbtn:active {
  background-position: right center;
}

a.linkbtn:active {
  transform: scale(0.95);
}

div.size:before {
  content: '\A' "Browser viewport too narrow" '\A' '\A' "Zoom out or resize";
}

@media screen and (max-width: 429px) {
  ul.topnav li.navtitle {
    margin-top: 0.7rem;
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 344px) {
  ul.topnav li.navtitle {
    margin-top: -3px;
    white-space: normal;
    text-align: center;
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 189px), (max-height: 189px) {
  ul.topnav, div.content {
    display: none;
  }
  div.size {
    display: block;
  }
}

@media screen and (max-width: 69px) {
  div.size:before {
    content: '\A' "Zoom out or resize";
  }
}

@media screen and (orientation: landscape) {
  div.content {
    width: 84%;
  }
}
