:root {
  --primary-bg-color: #1a1a1a;
  --secondary-bg-color: #222222;
  --tertiary-bg-color: #333333;
  --primary-color: #cccccc;
  --accent-color: #990000;
  --accent-color_intensified: #cc0000;
  --accent-color_compliment: #993333;
  --red-color: #990000;
  --green-color: #009900;

  --serif: Georgia, serif;
  --sans-serif: Verdana, sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-bg-color);
  & * {
    font-family: var(--sans-serif);
    color: var(--primary-color);
    text-decoration: none;
  }
}

h1, h2, h3, label {
  font-family: var(--serif);
  margin: 40px 0px;
}
h1 {
  font-size: 3em;
}
h2 {
  font-size: 2.25em;
}
h3 {
  font-size: 1.5em;
}

label {
  font-size: 30px;
}

p, li, span, .trix-content{
  font-size: 1.15em;
}

.trix-content a {
  text-decoration: underline;
  color: var(--accent-color_intensified);
}
p {
  margin-left: 20px;
  margin-right:20px;
}

/* form input fields*/
input[type=text], #post_content, #email_address, #password, #subscriber_email{
  font-size: 1.15em;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  padding: 12px;
  margin: 20px 0;
  display: inline-block;
  border: 2px solid var(--tertiary-bg-color);
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  background-color: var(--secondary-bg-color);
  color: var(--primary-color);
  &:focus {
    border: 2px solid var(--accent-color);
  }
}

/* Hide default checkbox */
.custom-checkbox input[type="checkbox"] {
  padding: 10px;
  display: none;
}

/* Create custom checkbox */
.custom-checkbox .checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--red-color);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  &:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 10px;
    height: 2px;
    border: solid var(--primary-color);
    border-width: 0 0 2px 0;
  }
}

/* Show checkmark when checked */
.custom-checkbox input:checked + .checkmark {
  background-color: var(--green-color);
  &:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
}

.text_highlight {
  color: var(--accent-color_intensified);
}

.intext-link {
  text-decoration: underline;
  &:hover {
    color: var(--accent-color_intensified);
  }
}

#navbar {
  position: fixed;
  height: 100%;
  width:90px;
  padding: 16px 0px 0px;
  background-color: var(--secondary-bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.navbar__link, .footer__link {
  padding: 8px 16px;
  text-decoration: none;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  & > span {
    font-size: 0.85rem;
    text-align: center;
  }
}

.navbar__icon, .footer__icon {
  width: auto;
  border-radius: 16px;
  padding: 4px 8px;
  margin: 0px 0px 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  & > img {
    padding: 0px 8px;
  }
  &:hover {
    background-color: var(--tertiary-bg-color);
  }
}

.navbar__link_current {
  & > .navbar__icon {
    background-color: var(--accent-color);
}
  & > span {
    color: var(--accent-color_intensified);
  }
}

#mainview {
  position: absolute;
  height: auto;
  width: calc(100% - 90px);
  left: 90px;
  & > * {
    width: calc(100% - 48px);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
  }
}

#header {
  position: sticky;
  height: 90px;
  top: 0;
  z-index: 1;
  background-color: var(--primary-bg-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.header__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.header__logo > img {
  position: relative;
  line-height: 0;
  height: 52px;
}

#main {
  background-color: var(--primary-bg-color);
  position: relative;
  min-height: calc(100vh - 180px) ;
  overflow-y: auto;
}

#footer {
  background-color: var(--primary-bg-color);
  position: relative;
  height: 90px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.footer__logo > img {
  position: relative;
  line-height: 0;
  height: 22px;
}

.footer__link > span:hover {
  color: var(--accent-color_intensified)
}
.button, input[type=submit]{
  font-size: 1.15em;
  width: 100px;
  height: 50px;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  text-decoration: none;
  background-color: var(--primary-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--tertiary-bg-color);
  margin: 10px 10px 0px 0px;
  &:hover {
    background-color: var(--tertiary-bg-color);
  }
  &:active {
    border: 2px solid var(--accent-color);
  }
  & > img {
    padding: 0px;
  }
}

.button_small {
  font-size: 1em;
  width: 80px;
  border-radius: 10px;
  padding: 3px;
  margin: 0px;
}

.button_large, input[type=submit] {
  width: 150px;
  height: 26px;
  box-sizing: content-box;
}

.post {
  width: auto;
  border-radius: 10px;
  padding: 20px 30px;
  background-color: var(--secondary-bg-color);
  border: 2px solid var(--secondary-bg-color);
  margin: 30px 0px;
  &:hover {
    border: 2px solid var(--accent-color);
  }
}

.post__title {
  font-size: 2em;
  color: var(--primary-color);
  margin: 15px 0px 20px 0px;
}

.post__date {
  font-size: 1.1em;
  margin: 15px 0px 20px 0px;
  font-weight: bold;
}

.post__p {
  margin-left: 0px;
  margin-right: 0px;
}

.red {
  background-color: rgba(200, 20, 24, 0.05);
  border: 2px solid rgba(200, 20, 24, 0.5);
}

.yellow {
  background-color: rgba(255, 214, 0, 0.05);
  border: 2px solid rgba(255, 214, 0, 0.5);
}

.blue {
  background-color: rgba(0, 240, 255, 0.05);
  border: 2px solid rgba(0, 240, 255, 0.5);
}

.map {
  position: relative;
  width: 300px;
  height: 230px;
  & > img {
    position: relative;
    top: -50px;
  }
}

.abn {
  width: 100%;
  font-size: 1.15em;
}

.button-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.fit-to-width {
  width: 100%;
}


.footer__text_email_short, .footer__text_phone_short {
  display: none;
}
@media screen and (max-width: 720px) {

  #navbar {
    width: 100%;
    height: 70px;
    bottom: 0;
    padding: 0;
    z-index: 1;
    flex-direction: row;
    justify-content: space-evenly;
  }

  #mainview {
    width: 100%;
    left: 0;
  }

  #main {
    /* viewheight - header, foooter, & navbar*/
    min-height: calc(100vh - 250px) ;
  }

  #footer {
    margin-bottom: 70px;
  }

  h1, h2, h3, label {
    font-family: var(--serif);
    margin: 40px 0px;
  }
  h1 {
    font-size: 2.5em;
  }
  h2 {
    font-size: 2em;
  }
  h3 {
    font-size: 1.5em;
  }

  label {
    font-size: 30px;
  }

  p, li, span, .trix-content{
    font-size: 1em;
  }
  p {
    margin-left: 20px;
    margin-right:20px;
  }

  /* form input fields*/
  input[type=text], #post_content, #email_address, #password, #subscriber_email{
    font-size: 1em;
  }

  .post__title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 15px 0px 20px 0px;
  }

  .post__date {
    font-size: 1em;
    margin: 15px 0px 20px 0px;
    font-weight: bold;
  }

  .post__p {
    margin-left: 0px;
    margin-right: 0px;
  }

  .footer__text_email_short, .footer__text_phone_short {
    display: flex;
  }

  .footer__text_email, .footer__text_phone {
    display: none;
  }
}

@media screen and (max-width: 460px) {
  .header__logo > img {
    height: 34px;
  }
  .navbar__link, .footer__link {
    padding: 8px 3px;
  }

  .footer__link_phone {
    display: none;
  }
  .map{
    width: 250px;
    & > img {
      max-width:250px;
    }
  }
}
