* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, Sans-serif;
}

header {
  display: block;
  background-color: #285480;
  padding: 2px;
  border-bottom: 2px solid #757575;
}

h1 {
  font-weight: normal;
  padding: 1.5em;
  color: white;
  text-shadow: 1px 1px 0px #444;
  width: 1000px;
  margin: auto;
}

nav {
  background-color: #443A5C;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover {
  color: #ddd;
}

nav ul {
  display: table;
  width: 1000px;
  margin: auto;
}

nav li {
  display: table-cell;
  text-align: center;
  padding: 1em;
}

main {
  overflow: auto;
  min-height: 30vh;
  background-color: #f7f7f7;
  /* width: 1000px; */
  /* margin: auto; */
  box-shadow: none;
  /* remove fake side margins */
  padding: 20px;
}

footer {
  padding: 1em;
  background-color: #FFC9A7;
  font-size: 0.8em;
}

p {
  margin-bottom: 1em;
}

body {
  font-size: 1.2em;
  font-family: arial, helvetica, sans-serif
}

input,
label,
select,
textarea {
  float: left;
  width: 30em;
  margin-bottom: 1em;
  padding: 0.5em;
}

label {
  clear: left;
  padding: 0;
  margin: 0;
}

input[type="submit"] {
  margin-left: 15em;
  width: auto;
  padding: 0.5em 1em;
  clear: both;
  font-size: 1em;
}

form {
  overflow: auto;
  clear: both;
  display: block;
}

blockquote {
  display: table;
  margin-bottom: 1em;
  border-bottom: 1px solid #ccc;
  padding: 0.5em;
}

blockquote p {
  display: table-cell;
  width: 90%;
  vertical-align: top;
}

blockquote form {
  display: table-cell;
  width: 10%;
}

.errors {
  padding: 1em;
  border: 1px solid red;
  background-color: lightyellow;
  color: red;
  margin-bottom: 1em;
  overflow: auto;
}

.errors ul {
  margin-left: 1em;
}

form p {
  clear: both;
}

input[type="checkbox"] {
  float: left;
  clear: left;
  width: auto;
  margin-right: 10px;
}

input[type="checkbox"]+label {
  clear: right;
}

.jokelist {
  display: table;
}

.categories {
  display: table-cell;
  width: 20%;
  background-color: #285480;
  padding: 1em;
  list-style-type: none;
}

.categories a {
  color: rgb(234, 213, 213);
  text-decoration: none;
}

.categories li {
  margin-bottom: 1em;
}

.jokelist .jokes {
  display: table-cell;
  padding: 1em;
}

.currentpage:before {
  content: "[";
  color: rgb(255, 15, 143);
}

.currentpage:after {
  content: "]";
  color: rgb(255, 15, 143);
}

/* Container */
.switch {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
}

/* Hide the default checkbox but keep it accessible */
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
.switch .slider {
  position: relative;
  width: 48px;
  /* track width */
  height: 28px;
  /* track height */
  background: #d1d5db;
  /* gray */
  border-radius: 999px;
  transition: background .2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

/* Knob */
.switch .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.btn-cancel {
  display: inline-block;
  padding: 0.4em 1em;
  border: 1px solid #999;
  background: #e0e0e0;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
}

.btn-cancel:hover {
  background: #d0d0d0;
}