/* General */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
}

.container {
  margin: auto;
  max-width: 1000px;
  box-sizing: border-box;
  width: 100vw;
  padding: 30px 10px;
  flex-grow: 1;
  background-color: #FFFFFFBF;
}

img.background {
  z-index: -1;
  position: fixed;
  filter: blur(5px);
  min-width: 100%;
  min-height: 100%;
}

/* Navbar */
.navbar {
  max-width: 1000px;
  width: 100vw;
  margin: auto;
  text-decoration: none;
  background-color: #F7F7F7;
  color: black;
  display: flex;
  align-items: stretch;
}

#navbar-expander img {
  padding: 0px 10px;
  max-height: 50px;
}

#navbar-expanded {
  display: none;
}

.navbar-content {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

@media only screen and (max-width: 800px) {
  #navbar-expander {
    text-align: center;
  }

  #navbar-expanded + .navbar-content {
    display: none;
  }
  
  #navbar-expanded:checked + .navbar-content {
    display: flex;
  }

  .navbar {
    flex-direction: column;
  }

  .navbar-content {
    flex-direction: column;
  }
}

.navbar-element {
  padding: 10px;
  color: black;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background-color: #00000000;
  font-size: initial;
  display: flex;
  align-items: center;
}

.navbar-element.selected {
  background-color: #E9E9E9;
}

.navbar-element:hover {
  background-color: #D7D7D7;
  border: none;
}

.navbar-element-image {
  padding: 5px;
  height: 40px;
}

/* Forms */
.form-element {
  padding: 5px 0px;
}

.form-label {
  padding: 5px;
}

.form-input {
  padding: 5px;
  border: 1px solid #6F6F6F;
  border-radius: 4px;
}

.button-submit {
  padding: 5px;
  background-color: #9FFF9F;
  border: 1px solid #007F00;
  border-radius: 4px;
}

.button-new {
  padding: 5px;
  background-color: #9FFF9F;
  border: 1px solid #007F00;
  border-radius: 4px;
}

.button-edit {
  padding: 5px;
  background-color: #9F9FFF;
  border: 1px solid #00007F;
  border-radius: 4px;
}

.button-delete {
  padding: 5px;
  background-color: #FF7F7F;
  border: 1px solid #7F0000;
  border-radius: 4px;
}

.button-with-image {
  height: 32px;
}

/* Text formatting */
h1, h2 {
  text-align: center;
}

p {
  text-align: justify;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.floating-right {
  float: right;
  width: 25%;
  margin: 5px 0px 5px 15px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.floating-left {
  float: left;
  width: 25%;
  margin: 5px 15px 5px 0px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.divider-img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 3;
  object-fit: cover;
}

/* Error list */
.error-list {
  padding: 5px 5px 5px 23px;
  background-color: #FF8F9F;
  color: #7F0000;
  border: 1px solid #7F0000;
  border-radius: 4px;
}

.notify-list {
  padding: 5px 5px 5px 23px;
  background-color: #9FFF9F;
  color: #005F00;
  border: 1px solid #005F00;
  border-radius: 4px;
}

/* Link Tiles */

.biglinkgroup {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.biglink {
  width: 22%;
  border: 1px solid #808080;
  border-radius: 8px;
  box-sizing: border-box;
  text-decoration: none;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000000;
  font-size: larger;
  text-align: center;
}

.biglink img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 10px 10px 20px 10px;
}

.biglink:hover {
  background-color: #FFFFFF5F;
}

.biglink-placeholder {
  width: 22%;
  box-sizing: border-box;
  text-decoration: none;
  padding: 20px;
}

@media only screen and (max-width: 800px) {
  .biglinkgroup {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
  }

  .biglink {
    width: 100%;
    flex-direction: row;
    border: 0px solid #00000000;
    background-color: #DFDFDF;
    font-size: x-large;
  }

  .biglink img {
    width: 48px;
    height: 48px;
    margin: 0px 20px 0px 0px;
  }

  .biglink-placeholder {
    display: none;
  }
}

/* Blurred Images */
.blurry:not(:hover) {
  filter: blur(25px);
}

@media only screen and (max-width: 800px) {
  .blurry {
    display: none;
  }
}

/* Tables */
.table {
  width: 100%;
  border: 1px solid #6F6F6F;
  border-collapse: collapse;
  margin-bottom: 5px;
}

.table tbody tr:nth-of-type(2n+1) {
  background-color: #00000010;
}

.table td {
  border: 1px solid #6F6F6F;
  padding: 5px;
}

.table th {
  border: 1px solid #6F6F6F;
  padding: 5px;
}

/* Device-Dependent */
@media only screen and (max-width: 800px) {
  .desktop-only {
    display: none;
  }
}

@media only screen and (min-width: 800px) {
  .mobile-only {
    display: none;
  }
}

/* Image Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.gallery * {
  width: 30%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 30px;
}

/* Footer */
footer {
  padding: 50px;
  min-height: 45px;
  display: flex;
  justify-content: center;
  background-color: #505050;
}

footer * {
  color: #DFDFDF;
}

footer > * {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #DFDFDF;
  border-left: 1px solid #DFDFDF;
  text-align: center;
  padding: 0px 15px;
}

/* Other Elements */
.dropdown {
  padding: 5px;
  width: 100%;
  max-width: 500px;
}

.listbox {
  padding: 5px;
  width: 100%;
}
