body {
  --site-bg-color1: #fff;
  --site-bg-color2: #d0d0d0;
  --content-bg-color: #e8e8e8;
  --alt-bg-color1: #a8a8a8;
  --alt-bg-color2: #cacaca;
  --content-fg-color: #000;
  --contrast-color1: #80580e;
  --contrast-color2: #422500;
  display: flex;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--site-bg-color1);
  background-image: url('/1554314818.svg');
  color: var(--content-fg-color);
}

body.dark {
  --site-bg-color1: #241100;
  --site-bg-color2: #642f00;
  --content-bg-color: #333;
  --alt-bg-color1: #111;
  --alt-bg-color2: #222;
  --content-fg-color: #ccc;
  --contrast-color1: #f7bd33;
  --contrast-color2: #f7dd33;
}

a {
  color: var(--contrast-color1);
}

a:hover {
  color: var(--contrast-color2);
}

body.modal {
  overflow: hidden;
}

#left-column {
  width: 25vw;
  padding-top: 20vh;
}

#left-column #logo {
  height: 6vw;
  width: 6vw;
  margin-left: 3vw;
  border: 3px solid var(--contrast-color1);
  border-radius: 50%;
  background-image: url('https://www.gravatar.com/avatar/c141db792aba209af4882d6613888c1d');
  background-size: 100%;
}

#left-column ul {
  padding-left: 3vw;
}

#main-menu {
  list-style: none;
  color: var(--contrast-color1);
  font-size: 6mm;
}

#user-menu {
  list-style: none;
  color: var(--contrast-color1);
  font-size: 5mm;
}

#left-column ul ul {
  font-size: 5mm;
}

#center-column {
  width: 65vw;
}

#header {
  height: 22vh;
  display: flex;
  flex-direction: column-reverse;
  padding-bottom: 6vh;
  padding-left: 2vh;
  font-size: 4.5vw;
  text-align: center;
}

#header .menu-button {
  display: none;
}

#site-content {
  background: var(--content-bg-color);
  padding: 5px 5px 100px 5px;
}

#site-content.loading {
  display: none;
}

#left-column .menu-button {
  display: none;
}

.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.2);
  overflow: auto;
}

body.dark .modal-background {
  background: rgba(255,255,255,0.2);
}

div.modal {
  background: var(--content-bg-color);
  border-radius: 10px;
  margin: 8vw;
}

div.modal .top {
  margin-bottom: 10px;
  padding: 10px;
  text-align: center;
  color: var(--contrast-color1);
  font-weight: bold;
  background: var(--site-bg-color1);
  border-radius: 10px 10px 0 0;
}

div.modal .bottom {
  margin-top: 10px;
  padding: 10px;
  background: var(--site-bg-color1);
  border-radius: 0 0 10px 10px;
}

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

.button-container > a {
  font-size: 0.8em;
  cursor: pointer;
}

.button-container > * {
  margin-left: 10px;
}

button:disabled {
  opacity: 0.5;
}

button {
  background: var(--site-bg-color1);
  border: 2px solid var(--content-fg-color);
  padding: 5px 20px;
  color: var(--contast-color1);
  font-weight: bold;
}

button:hover {
  color: var(--contrast-color2);
  background: var(--site-bg-color2);
}

@media screen and (max-width: 992px) {
  #left-column {
    width: 2vw;
  }

  #left-column ul {
    padding-left: 9vw;
  }

  #left-column * {
    display: none;
  }

  #left-column.active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80vh;
    overflow: auto;
    background: var(--site-bg-color1);
    background-image: url('/1554314818.svg');
  }

  #left-column.active * {
    display: inherit;
  }

  #left-column.active .menu-button {
    display: inherit;
    float: right;
    margin-right: 9vw;
    color: var(--contrast-color1);
    font-weight: bold;
    font-size: 9vw;
    cursor: pointer;
  }

  #left-column #logo {
    height: 18vw;
    width: 18vw;
    margin-left: 9vw;
    border: 3px solid var(--contast-color1);
    border-radius: 50%
  }

  #center-column {
    width: 96vw;
  }
  
  #main-menu {
    font-size: 7.5vw;
  }

  #user-menu {
    font-size: 6vw;
  }

  #left-column ul ul {
    font-size: 5vw;
  }

  #header {
    font-size: 6vw;
  }

  #header .menu-button {
    display: inherit;
    cursor: pointer;
  }

  div.modal {
    margin: 3vw;
  }
}

h1 {
  font-size: 140%;
}

h2 {
  font-size: 120%;
}

p, h1, h2, .form {
  margin-left: 5vw;
  margin-right: 5vw;
}

p, .form {
  margin-bottom: 1.5em;
}

.form label {
  display: block;
  font-size: 0.8em;
}
.form .block {
  display: inline-block;
  padding: 2px;
  vertical-align: top;
}
.form .separator {
  display:block;
  height: 8px;
  border-top: 1px solid var(--content-fg-color);
}

textarea, input {
  background-color: var(--content-bg-color);
  color: var(--content-fg-color);
  border: 2px solid var(--content-fg-color);
}

.contacts {
  display: inline-block;
  vertical-align: top;
  width: 20vw;
  overflow: auto;
  white-space: nowrap;
}
.contacts input {
  width: 100%;
  margin-left: -15px;
}
.contacts a {
  cursor: pointer;
}

.list-item {
  background-color: var(--alt-bg-color1);
  padding: 0.7em 1.5em;
}
.list-item:nth-child(2n) {
  background-color: var(--alt-bg-color2);
}
