:root {
  --brightpurp: rgb(67, 0, 129);
  --darkpurp: rgb(42, 0, 81);
  /* --backpurp: rgb(13, 0, 24); */
  --backpurp: rgb(8, 0, 15);
}

@keyframes hoveron {
  100% {background-color: var(--darkpurp);}
}

@keyframes hoverongrade {
  100% {background-color: rgb(31 0 62);}
}

.navbar {
  list-style-type: none;
  margin-left: -10px;
  width: 100%;
  overflow: hidden;
  background-color: var(--brightpurp);
  font-size: 25px;
  position: fixed;
  top: 0;
  z-index: 2;
}

.navbar ul {
  margin: 0px;
  padding: 0px;
}

.navbar li {
  float: left;
  list-style-type: none;
}

.navbar li a {
  display: block;
  text-align: center;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
}

.navbar li a:hover, .sidenav a:hover {
  animation-name: hoveron;
  animation-duration: 200ms;
  animation-fill-mode: both;
}

.thispage {
  background-color: var(--darkpurp);
}

.sidenav {
  height: 100%;
  width: 130px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: var(--brightpurp);
  overflow-x: hidden;
  padding-top: 55px;
}

.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  display: block;
}

body {
  background-color: var(--backpurp);
  font-family: monospace;
  color: white;
}

main {
  margin-left: 130px;
  margin-top: 60px;
  font-size: 20px;
  text-align: center;
  margin-left: 19%;
  margin-right: 10%;
  list-style-position: inside;
}

main a {
  color: aqua;
}

.nametext {
  font-size: 60px;
}

/* ------------------- voor de Blog -------------------------- */


.bloglayout a {
  color: white;
  text-decoration: none;
}

.bloglayout p {
  padding-bottom: 10px;
}

.blogpost:hover {
  background-color: var(--brightpurp);
  animation-name: hoveron;
  animation-duration: 100ms;
  animation-direction: reverse;
  animation-fill-mode: both;
}

.blogpost {
  background-color: var(--darkpurp);
}

.secret a {
  color: var(--darkpurp);
  font-size: 10px;
}

.secret a:hover {
  color: var(--brightpurp);
}

/* ------------------ voor de Index  --------------------------------*/

@keyframes hzspin{
  0% {transform: rotate(0deg)}
  100% {transform: rotate(46080deg)}
}

#hzlogo {
  margin: 150px;
}

.hzhover:hover {
  cursor: pointer;
}

.hzlogospin {
  animation: hzspin;
  animation-duration: 20s;
  animation-iteration-count: infinite;
}

.tinytext {
  font-size: 10px;
  color: gray;
}

/* ------------------- voor de Profile -----------------------------------*/

.links {
  margin-top: -25px;
}

/* -------------------- voor de Dashboard --------------------------------- */


th, td {
  padding: 4px;
  border: 3px solid  var(--backpurp);
}

td {
  background-color: var(--darkpurp);
}

th {
  font-size: 25px;
  background-color: var(--brightpurp);
}

.failgrade {
  background-color: rgb(98, 0, 0);
}

.nograde {
  background-color: rgb(86, 56, 0);
}

.passgrade {
  background-color: rgb(0, 87, 0);
}

/* ------------------- voor de Formulier ----------------- */

.grade-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.grade-input {
  background-color: rgb(27 0 53);
  color: white;
  font-family: monospace;
  font-size: 20px;
  border: 3px solid black;
  padding: 2px;
  width: 70px;
  text-align: center;
  cursor: text;
}

.grade-input:hover,
.grade-input:focus {
  outline: none;
  background-color: rgb(31 0 62);
  border: 3px solid black;
  animation-name: hoverongrade;
  animation-duration: 100ms;
  animation-direction: reverse;
  animation-fill-mode: both;
}

.gradetable {
  margin-bottom: 50px;
}

.grade-input::-webkit-outer-spin-button,
.grade-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.grade-input {
  -moz-appearance: textfield;
}

.grade-btn {
  text-decoration: none;
  background-color: var(--darkpurp);
  color: white;
  font-family: monospace;
  font-size: 25px;
  padding: 15px 40px;
  border: none;
  margin-top: 25px;
  cursor: pointer;
}

.grade-btn:hover {
  background-color: var(--brightpurp);
  animation-name: hoveron;
  animation-duration: 100ms;
  animation-direction: reverse;
  animation-fill-mode: both;
}

/* ------------------- voor de Blog Edit Formulier ----------------- */

.blog-edit-form {
  max-width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left; /* Aligns form labels neatly */
}

.blog-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-form-group label {
  font-size: 22px;
  font-weight: bold;
}

.blog-form-input {
  background-color: rgb(27, 0, 53);
  color: white;
  font-family: monospace;
  font-size: 20px;
  border: 3px solid black;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  cursor: text;
}

.blog-form-input:hover,
.blog-form-input:focus {
  outline: none;
  background-color: rgb(31, 0, 62);
  border: 3px solid black;
  animation-name: hoverongrade;
  animation-duration: 100ms;
  animation-direction: reverse;
  animation-fill-mode: both;
}

/* Specific size behaviors for the textarea block */
.blog-form-textarea {
  resize: vertical;
  min-height: 250px;
}

.blog-form-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Modifies the cancel button to look correct alongside the submit button */
.blog-form-buttons .cancel-btn {
  margin-top: 25px; /* Aligns with grade-btn margin-top */
  text-align: center;
  background-color: rgb(98, 0, 0); /* Dark Red to signal cancel/discard */
}

.blog-form-buttons .cancel-btn:hover {
  background-color: rgb(150, 0, 0);
  animation-name: none; /* Disables standard purple animation for cancel button */
}

.navbar li.nav-right {
  float: right;
  margin-right: 20px; /* Zorgt voor een kleine afstand tot de rechterrand van het scherm */
}

.blog-form-input.failgrade,
.blog-form-input.failgrade:hover,
.blog-form-input.failgrade:focus {
  border-color: rgb(255, 100, 100);
  background-color: rgb(98, 0, 0);
  animation-name: none;
}

.blog-form-input.failgrade::placeholder {
  color: rgb(255, 100, 100);
  opacity: 0.8;
}

/* voor de messages */
.message {
  background-color: var(--darkpurp);
}
