:root {
  --color: #000000;
  --highlight-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial";
  margin: 0;
  overflow: hidden;
}

a {
  color: blue;
}

.grey {
  color: grey !important;
  text-decoration: none;
  padding-inline: 5px;
}

main {
  position: absolute;
  top: 50px;
  left: 0px;
  right: 0px;
  bottom: 20px;
  overflow-y: scroll;
  scroll-behavior: smooth;
  z-index: 1;
}

main section {
  width: min(90%, 40em);
  margin: auto;
}

footer {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 20px;
  border-top: 1px black solid;
  color: grey !important;
  text-align: right;
  width: 100%;
  background-color: var(--highlight-color);
  z-index: 3;
}

nav {
  position: fixed;
  width: 100%;
  min-height: 50px;
  max-height: 90px;
  display: grid;
  place-items: center;
  background-color: var(--highlight-color);
  border-bottom: 1px solid black;
  z-index: 3;
}

nav ul {
  width: 100%;
  list-style: none;
  padding: 0 1rem 0 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

nav ul li a {
  padding: 0 10px;
  text-decoration: none;
  color: var(--color);
}

nav ul li a:hover {
  color: rgb(105, 105, 105);
}

h1 {
  font-size: 2rem;
}

.active {
  text-decoration: underline;
}

form,
.content {
  margin: 0px auto;
  padding: 20px;
  border: 1px solid #b0c4de;
  background: white;
  border-radius: 0px 0px 10px 10px;
}
.input-group {
  margin: 10px 0px 10px 0px;
}
.input-group label {
  display: block;
  text-align: left;
  margin: 3px;
}
.input-group input,
.input-group textarea {
  height: 30px;
  width: 93%;
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid gray;
}
.input-group textarea {
  height: 150px;
  resize: none;
}
.btn {
  padding: 10px;
  font-size: 15px;
  color: white;
  background: #5f9ea0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn:active {
  background: #77d1d4;
}
.eureka {
  color: #dd5800;
  background: #ffede2;
  border: 1px solid #dd5800;
  margin-bottom: 20px;
}

.card {
  width: 100%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 1rem;
}
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin: 0;
  padding: 1rem;
  padding-bottom: 0.5rem;
}

.container {
  padding: 0.5rem;
  border-top: 1px lightgray solid;
}

.disabled {
  opacity: 0.2;
}

.row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.row > p {
  margin: 0;
  margin-bottom: 16px;
}

.x-mas-img {
  margin-top: 2rem;
  object-fit: cover;
  max-height: 400px;
  width: 100%;
}

section > a {
  padding-top: 10px;
  padding-bottom: 10px;
  display: block;
}

.green {
  color: green;
}

.calendar-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.calendar-entry {
  color: black;
  border: 1px solid black;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  font-size: 1.5rem;
  text-decoration: none;
}
.calendar-entry:hover {
  background-color: rgb(233, 233, 233);
}
.calendar-entry-locked {
  color: gray;
  border-color: grey;
}
.calendar-entry-locked:hover {
  background-color: rgb(255, 255, 255);
}
.calendar-entry-started {
  color: rgb(163, 0, 0);
  border-color: rgb(163, 0, 0);
}
.calendar-entry-done {
  color: green;
  border-color: green;
}
.calendar-entry-locked:hover {
  color: gray;
  border-color: grey;
}
.calendar-entry > span {
  font-size: 12px;
}

.pixelated {
  image-rendering: crisp-edges;
  image-rendering: optimizeSpeed; /*                     */
  image-rendering: -moz-crisp-edges; /* Firefox             */
  image-rendering: -o-crisp-edges; /* Opera               */
  image-rendering: -webkit-optimize-contrast; /* Chrome (and Safari) */
  image-rendering: pixelated; /* Chrome as of 2019   */
  image-rendering: optimize-contrast; /* CSS3 Proposed       */
  -ms-interpolation-mode: nearest-neighbor; /* IE8+                */
}
