* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

header {
  text-align: center;
  background-color: #1d2b3a;
  color: white;
}

body {
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 30px;
  background: #1d2b3a;
}

/* Snake */
.snake-container {
  display: flex;
}

.snake-game {
  text-align: center;
  margin: auto;
  width: 100%;
  padding: 10px;
}

.snake-aside {
  border-radius: 25px;
  border: 2px solid #007bdf;
  height: auto;
  float: left;
}

.snake-colors {
  margin: auto;
  width: 100%;
  padding: 10px;
}

.snake-legend {
  margin: auto;
  width: 100%;
  padding: 10px;
}

.snake-highscore {
  margin: auto;
  width: 90%;
  padding: 10px;
  text-align: center
}


/* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #007bdf;
  color: white;
}

/* Right-aligned section inside the top navigation */
.topnav-right {
  float: right;
}

h1 {
  color: #007bdf;
}

p {
  color: #bcbcbc;
}

a:link {
  color: white;
}

a:visited {
  color: white;
}

textarea {
  background: #1d2b3a;
  color: rgba(255, 255, 255, 0.5);
}

button {
  background: #007bdf;
  border: none;
  color: black;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
}

table,
th,
td {
  color: white;
}

input[type=submit],
input[type=reset] {
  background: #007bdf;
  border: none;
  color: black;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
}

input[type="file"] {
  display: none;
}

.custom-file-upload {
  border: 1px solid #007bdf;
  background-color: #007bdf;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

.loginform {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  /*background-color: #E7E9EB;*/
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 20px;
  text-align: center;
}

.inputBox {
  margin: auto;
  display: block;
  width: 250px;
  position: relative;
}

.inputBox input {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #1d2b3a;
  border-radius: 5px;
  outline: none;
  color: #fff;
  font-size: 1em;
  transition: 0.5s;
}

.inputBox span {
  position: absolute;
  left: 0;
  padding: 10px;
  pointer-events: none;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  transition: 0.5s;
}

.inputBox input:valid~span,
.inputBox input:focus~span {
  color: #007bdf;
  transform: translateX(10px) translateY(-7px);
  font-size: 0.65em;
  padding: 0 10px;
  background: #1d2b3a;
  border-left: 1px solid #007bdf;
  border-right: 1px solid #007bdf;
  letter-spacing: 0.2em;
}

.inputBox:nth-child(2) input:valid~span,
.inputBox:nth-child(2) input:focus~span {
  background: #00dfc4;
  color: #1d2b3a;
  border-radius: 2px;
}

.inputBox input:valid,
.inputBox input:focus {
  border: 1px solid rgba(255, 255, 255, 0.25);
}


/* table style*/
#highscore {
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 90%;
}

#highscore td,
#highscore th {
  border: 1px solid #ddd;
  padding: 8px;
}

#highscore tr:nth-child(even) {
  background-color: #717171;
  color: black;
}

#highscore tr:hover {
  background-color: #ddd;
}

#highscore th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #04AA6D;
  color: white;
}

/* table style*/
.highscore {
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 90%;
}

.highscore td,
.highscore th {
  border: 1px solid #ddd;
  padding: 8px;
}

.highscore tr:nth-child(even) {
  background-color: #717171;
  color: black;
}

.highscore tr:hover {
  background-color: #ddd;
}

.highscore th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #04AA6D;
  color: white;
}

/* Zend */

.control {
  text-align: center;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}

.content {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}

.content p {
  color: black;
  font-size: 1.5em;
}

.codeSnippet {
  height: auto;
  background-color: #ffffff;
}

.result {
  text-align: center;
  width: 12em;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  background-color: #FFFFFF;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}

#falsch {
  font-size: 2em;
  color: red;
}

#richtig {
  font-size: 2em;
  color: green;
}

#questionID {
  text-align: center;
}

.zendstats {
  text-align: center;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
  color: black;
} 
.zendstats p {
  color: black;
  font-size: 1.5em;
}
/* The container */
.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: white;
  outline: 1px solid #2196F3;
}

/* On mouse-over, add a grey background color */
.container:hover input~.checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked~.checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.greencheck {
  color: green;
}
.redwrong {
  color: red;
}

.qlevel-good {
  color: green;
}
.qlevel-medium {
  color: yellow;
}
.qlevel-bad {
  color: red;
}

.profile {
  text-align: center;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}
.examtimer {
  position: fixed;
  text-align: right;
  right: 0;
  width: 5em;
  margin-left: auto;
  margin-right: 1em;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}
.examnav {
  text-align: center;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}
.examquestion {
  text-align: center;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}
.examsubmit {
  text-align: center;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  background-color: #E7E9EB;
  border: 1px solid black;
  border-radius: 50px;
  padding: 20px;
}

.questionIMG {
  justify-content: center;
  border: 1px solid black;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  background-color: white;
}